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

Data element from short description

Former Member
0 Likes
1,542

Dear Experts,

Is there any FM to get Data element from short description?

Ex : If for short description : Company code, It should return BUKRS.

Thanks

Katrice

1 ACCEPTED SOLUTION
Read only

vtsuchidak
Explorer
0 Likes
1,505

Hello,

You can browse table DD04T.

7 REPLIES 7
Read only

vtsuchidak
Explorer
0 Likes
1,506

Hello,

You can browse table DD04T.

Read only

0 Likes
1,505

Thank you for your prompt response.

Thanks

KH

Read only

sivaganesh_krishnan
Contributor
0 Likes
1,505

HI Katrice,

you can use the function module DDIF_FIELDINFO_GET . But you have to pass the fieldname to get the dataelement of that particular field.

U can use the tables DD03l, DD04T-Contains all Data elements with description , u can search in se11 also if you want to search only with description.

Regards,

Sivaganesh.

Read only

0 Likes
1,505

Thank you for your prompt response.

Thanks

KH

Read only

sivaganesh_krishnan
Contributor
0 Likes
1,505

Hi Katrice,

You could also use SWU_GET_ROLLNAME_TO_FIELDNAME .

You can pass the value as tablename-fieldname .

ex : Import parameter :    zapt_book-status

      Output Parameter :    status ( DATA ELEMENT)

Read only

Former Member
0 Likes
1,505

Hi,

please check the code

TYPES : BEGIN OF ty_fies.

        INCLUDE STRUCTURE DFIES.

TYPES END OF ty_fies.

parameters : p_table  like dd02l-tabname,

             p_string(60) type c.





data : it_fies type standard table of ty_fies initial size 0,

       wa_fies type ty_fies.

CALL FUNCTION 'DDIF_FIELDINFO_GET'

    EXPORTING

      TABNAME              = p_table

*   FIELDNAME            = ' '

*   LANGU                = SY-LANGU

*   LFIELDNAME           = ' '

*   ALL_TYPES            = ' '

*   GROUP_NAMES          = ' '

*   UCLEN                =

* IMPORTING

*   X030L_WA             =

*   DDOBJTYPE            =

*   DFIES_WA             =

*   LINES_DESCR          =

   TABLES

     DFIES_TAB            = it_fies

*   FIXED_VALUES         =

EXCEPTIONS

   NOT_FOUND            = 1

   INTERNAL_ERROR       = 2

   OTHERS               = 3

            .

  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 it_fies into wa_fies WHERE FIELDTEXT = p_string.



  write:wa_fies-ROLLNAME.

  CLEAR wa_fies.

endloop.

Read only

0 Likes
1,505

Thank you for your prompt response.

Thanks

KH