2008 Nov 13 7:50 AM
Hello Experts,
I have <fs> contains 12 fields. the fields to this <fs> are dynamically created. Now I want to create internal table having same structure as <fs>.
Is it possible?
Pls suggest...........
Thanks in advance.
Zak.
2008 Nov 13 8:03 AM
Hi Zakir,
Yes it is possible. Try for example like :
FIELD-SYMBOLS :
<fs> TYPE vbak.
DATA :
t_tab LIKE STANDARD TABLE OF <fs>.
Regards,
Swapna.
Hello Experts,
I have <fs> contains 12 fields. the fields to this <fs> are dynamically created. Now I want to create internal table having same structure as <fs>.
Is it possible?
Pls suggest...........
Thanks in advance.
Zak.
2008 Nov 13 8:03 AM
Hi Zakir,
Yes it is possible. Try for example like :
FIELD-SYMBOLS :
<fs> TYPE vbak.
DATA :
t_tab LIKE STANDARD TABLE OF <fs>.
Regards,
Swapna.
2008 Nov 13 8:10 AM
Hi,
Is ur <fs> a structure having all the 12 fields. Thenu can build the field catalogue from that using the FM LVC_FIELD_CATALOG_MERGE.
Using that field catalogue, a dynamic internal table can be created using call method cl_alv_table_create=>create_dynamic_table
-Satya Priya