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

Retrieve fieldtext with dynamic table.

Former Member
0 Likes
845

Hy everyone ,

Is it possible to retrieve the long or medium text of a field label in data element using cl_abap_elemdescr or cl_abap_typedescr ?

Thank's a lot. !!

Hy everyone ,

Is it possible to retrieve the long or medium text of a field label in data element using cl_abap_elemdescr or cl_abap_typedescr ?

Thank's a lot. !!

1 REPLY 1
Read only

karsten_korte
Participant
0 Likes
647

ahh, didn't see double posting, but same answer

Hi Barry,

what about CL_ABAP_ELEMDESCR->GET_DDIC_FIELD and SCRTEXT_S/M/L of returnstruct DFIES?


DATA: lo_elem_desc TYPE REF TO cl_abap_elemdescr,
      lf_dfies     TYPE dfies.

lo_elem_desc ?= cl_abap_elemdescr=>describe_by_name( 'SYLANGU' ).
lf_dfies = lo_elem_desc->get_ddic_field( ).
WRITE: / lf_dfies-scrtext_s,
       / lf_dfies-scrtext_m,
       / lf_dfies-scrtext_l.

regards, Karsten

Edited by: Karsten Korte on Oct 29, 2009 2:23 PM