cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a field's title from the ABAP dictionary

Former Member
0 Kudos

Hi All,

I'm learning ABAP and want to include field titles in my program output from the ABAP dictionary, rather than coding them as text elements.

Is there a function module to do this? Can someone provide some sample code?

Cheers,

Steve

Accepted Solutions (1)

Accepted Solutions (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Try this function.




data: label type string.

CALL FUNCTION 'DDIF_FIELDLABEL_GET'
  EXPORTING
    tabname              = 'MARA'
    FIELDNAME            = 'MATNR'
*   LANGU                = SY-LANGU
*   LFIELDNAME           = ' '
  IMPORTING
    LABEL                = label.


Regards,

Rich Heilman

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Steve,

chk this if this FM AM_FIELD_TEXT_GET works in ur system