Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO ACESS DOMAINS VALUE RANGE PROGRAMTICALLY

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

8 REPLIES 8

former_member194669
Active Contributor
0 Kudos

Try this way


  select * from ddval
      into table i_ddval
      where tabname eq <you table name >.

0 Kudos

DOES THE TABLE NAME MEAN DOMAIN NAME ?

REGARDS

0 Kudos

Hi,

Please check the table DDVAL

0 Kudos

If you only have the domain name, better stick with dd07l.

Rob

Former Member
0 Kudos

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

Former Member
0 Kudos

Use FM DDUT_DOMVALUES_GET or DD_DOMVALUES_GET

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

Hi Rich,

Is there any function module similar to DD_DOMVALUES_GET which is rfc enabled..

Regards

Anuj