- Go transaction SE11 and write your domain name.

- Set your values. Activate the object.

domain
FM to get spesific domain value
Imports:

Exports:

Tables:

Source Code:
FUNCTION ZGET_DOMAIN_VALUE.
*”———————————————————————-
*”*”Local Interface:
*” IMPORTING
*” REFERENCE(I_DOMAIN) TYPE STRING
*” REFERENCE(I_KEY) TYPE STRING OPTIONAL
*” EXPORTING
*” REFERENCE(E_VALUE) TYPE STRING
*” TABLES
*” RT_VALUES STRUCTURE DD07V OPTIONAL
*”———————————————————————-
data lt_domain type standard table of dd07v.
data ls_domain type dd07v.
data lv_domain type ddobjname.
lv_domain = i_domain.
call function ‘DDIF_DOMA_GET’
exporting
name = lv_domain
langu = sy–langu
tables
dd07v_tab = lt_domain
exceptions
illegal_input = 1
others = 2.
if sy–subrc <> 0.
message id sy–msgid type sy–msgty number sy–msgno
with sy–msgv1 sy–msgv2 sy–msgv3 sy–msgv4.
endif.
check lt_domain is not initial.
rt_values[] = lt_domain[].
if i_key is not initial.
read table lt_domain into ls_domain
with key domvalue_l = i_key.
e_value = ls_domain–ddtext.
endif.
ENDFUNCTION.
