01-07-2008 5:27 PM
DOMAIN IS WITHOUT VALUE TABLE, BUT WITH FIXED VALUES,
HOW CAN WE ACCESS THESE VALUES PROGRAMTICALLY,
WELL NOT FOR VALUE REQUEST TO SEE THE VALUES BUT TO DISLPAY ALL THE VALUES ENTRED IN THE VALUE RANGE OF DOMAIN , WITHIN THE PROGRAM
REGARDS
01-07-2008 6:37 PM
Using the FM is probably the best way to go.
report zrich_0001.
data: idd07v type table of dd07v with header line.
start-of-selection.
call function 'DD_DOMVALUES_GET'
exporting
domname = 'RFBSK' "<<--- Supply domain name here
text = 'X'
langu = sy-langu
tables
dd07v_tab = idd07v
exceptions
wrong_textflag = 1
others = 2.
loop at idd07v.
write:/ idd07v-domvalue_l, idd07v-ddtext.
endloop.
Regards,
Rich Heilman
01-07-2008 5:32 PM
Try this way
select * from ddval
into table i_ddval
where tabname eq <you table name >.
a®
01-07-2008 5:34 PM
01-07-2008 5:41 PM
01-07-2008 5:52 PM
01-07-2008 5:32 PM
For example:
r_bstat-sign = 'I'.
select domvalue_l domvalue_h
from dd07l
into (d1, d2)
where domname = 'BSTAT'
and as4local = 'A'.
if d2 is initial.
r_bstat-option = 'EQ'.
r_bstat-low = d1.
clear r_bstat-high.
else.
r_bstat-option = 'BT'.
r_bstat-low = d1.
r_bstat-high = d2.
endif.
append r_bstat.
endselect.
Rob
01-07-2008 5:55 PM
01-07-2008 6:37 PM
Using the FM is probably the best way to go.
report zrich_0001.
data: idd07v type table of dd07v with header line.
start-of-selection.
call function 'DD_DOMVALUES_GET'
exporting
domname = 'RFBSK' "<<--- Supply domain name here
text = 'X'
langu = sy-langu
tables
dd07v_tab = idd07v
exceptions
wrong_textflag = 1
others = 2.
loop at idd07v.
write:/ idd07v-domvalue_l, idd07v-ddtext.
endloop.
Regards,
Rich Heilman
01-28-2008 7:57 AM
Hi Rich,
Is there any function module similar to DD_DOMVALUES_GET which is rfc enabled..
Regards
Anuj