Skip to Content
author's profile photo Former Member
Former Member

HOW TO ACESS DOMAINS VALUE RANGE PROGRAMTICALLY

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jan 07, 2008 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2008 at 05:32 PM

    Try this way

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2008 at 05:55 PM

    Use FM DDUT_DOMVALUES_GET or DD_DOMVALUES_GET

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.