Application Development and Automation 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: 
Read only

Any Func Module to pull the value from DD07T ?

Former Member
0 Likes
1,925

Hi Experts,

In my system, we hv a Z domain and 100 values are supplied in VALUE RANGE for it.

So, I need to pull the short description(DDTEXT) of these fixed values, so, the tbl is DD07T, fine, but the issue is that, the field DOMVALUE_L(which I can supply apart from DOMNAME)..........I can pull it by a SELECT........but this filed is DOMVALUE_L not a KEY FILED so, so, SELECT takes much time.........so, let me know that Is there any Func module to pull the values from this tbl DD07T?

thanq

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,202

Check this FM.GET_DOMAIN_VALUES

but internally it will also use the SELECT statement.

best solution is to get all the DDTEXT matching the domain and in the program filter it using DOMVALUE_L.

Check this FM.GET_DOMAIN_VALUES

but internally it will also use the SELECT statement.

best solution is to get all the DDTEXT matching the domain and in the program filter it using DOMVALUE_L.

3 REPLIES 3
Read only

Former Member
0 Likes
1,203

Check this FM.GET_DOMAIN_VALUES

but internally it will also use the SELECT statement.

best solution is to get all the DDTEXT matching the domain and in the program filter it using DOMVALUE_L.

Read only

former_member156446
Active Contributor
0 Likes
1,202

if you have all the Zdomains in one structure you can use the

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name         = gd_repid
      i_internal_tabname     = 'I_ZSCHED'
      i_structure_name       = 'Z_ALV'  "><<<<<<<<<<<< structure name
      i_client_never_display = 'X'
      i_inclname             = gd_repid
    CHANGING
      ct_fieldcat            = fieldcatalog
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.

you can read the field catalog and get the values..

Read only

Former Member
0 Likes
1,202

FM:DD_DD07V_GET

REPORT.
data:i_domain TYPE STANDARD TABLE OF DD07V WITH HEADER LINE,
      domain like DD01L-DOMNAME VALUE 'CURTP'.

CALL FUNCTION 'DD_DD07V_GET'
  EXPORTING
    domain_name          = domain
   LANGU                = SY-LANGU
   WITHTEXT             = 'X'"--<<<This Is must
  tables
    dd07v_tab            = i_domain
* EXCEPTIONS
*   ACCESS_FAILURE       = 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.
LOOP AT i_domain.
WRITE / i_domain-ddtext.
ENDLOOP.