Application Development 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: 

defining table from DDIC-structure dynamically

Former Member
0 Kudos

Hi folks!

Does anybody know whether it is possible to build an internal table from DDIC-structures dynamically?

I have a deep structured itab_upload(whose structure is defined in the DDIC), which contains 2 fields(Number Name) and a third field which contains itab_desc.

This itab_desc can contain either 2 fields(Number Name) and a third field which contains another itab_desc <b>or</b> 3 fields for numbers(without any other itab).If itab_desc contains another itab_desc, the second itab_desc contains only 3 fields for numbers and names...

help will be very appreciated and points will be rewarded!

Felix

3 REPLIES 3

Former Member
0 Kudos

Found a way to work around this....

Former Member
0 Kudos

Hi Felix,

Please find below the material which will help you to solve your problem :-

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b73...

Please reward points if helpful.

Regards.

Srikanta Gope.

srikanta.gope@tcs.com

Former Member
0 Kudos

field-symbols: <itab> type table.

data: w_tab type ef to data.

CREATE DATA w_tab TYPE STANDARD TABLE OF (DDIC-STR).

ASSIGN w_tab->* TO <itab>

reward poitns if useful

Regards

Prax