2008 Jul 20 11:16 PM
Hello Experts.
how to create dynamic data type for structres. for example.
data lv_struc_name type strukname.
lv_struc_name = get_struct_name( ) ****** this method gives the structure name('ct_struc')
now I want to create one data type, which is having the type of lv_struc_name content.(ct_struct)
thanks
Tim
2008 Jul 21 2:30 AM
Hi,
here is the link to really good presentation about generic programming ABAP351.
It contains examples how to create dynamic structure and tables.
Cheers
2008 Jul 21 2:30 AM
Hi,
here is the link to really good presentation about generic programming ABAP351.
It contains examples how to create dynamic structure and tables.
Cheers
2008 Jul 21 6:00 AM
2008 Jul 21 6:03 AM
Hi,
You may try with field symbol.
try this link
http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm
Regards,
anirban
2008 Jul 21 6:05 AM
2008 Jul 21 6:39 AM
Hi Babu,
This can be done through Field Symbols which allow you to access data objects dynamically in ABAP programs.
Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents.
For more info on Field Symbols you can refer help.sap.com
Regards,
Swapna.