7

Cant find appended fields from table with cl_abap_typedescr=>describe_by_data

 1 year ago
source link: https://answers.sap.com/questions/13751156/cant-find-appended-fields-from-table-with-cl-abap.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
1 hour ago

Cant find appended fields from table with cl_abap_typedescr=>describe_by_data

21 Views

Hello,

I am currently working on a function module that has a dynamic table as a passing parameter and whose type I need to determine at runtime. This works fine so far, but the customer-specific fields are ignored (added to the original structure via an append structure).

In the lt_components table I see that from the point where the Z fields start in the original table an include structure has been detected but I don't know how to work with it so that its fields are included in the lt_components.

original-struktur.png
erkannte-struktur.png
LOOP AT table_in ASSIGNING FIELD-SYMBOL( <wa> ).  
 lro_strucdesc ?= cl_abap_typedescr=>describe_by_data( <wa> ).
 lt_components = lro_strucdesc->get_components( ).
ENDLOOP.




About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK