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: 

How to declare types dynamcally?

Former Member
0 Kudos

Hi guys,

I want to write the below types dynamically in my program. Is it possible? If yes, how?

TYPES : BEGIN OF ty_kna1,

kunnr TYPE kna1-kunnr,

land1 TYPE kna1-land1,

name1 TYPE kna1-name1,

ort01 TYPE kna1-ort01,

telf1 TYPE kna1-telf1,

END OF ty_kna1.

Thanks,

Ibrahim

3 REPLIES 3

Former Member
0 Kudos

Use field symbols

amit_khare
Active Contributor
0 Kudos

Search forum for dynamic Internal Tables. There will be some notes also by Rich for the same.

Former Member
0 Kudos

hi,

may be you can try the method CREATE of class CL_ABAP_STRUCTDESCR.