‎2008 Dec 01 5:21 AM
Hi
can any one tel how to create Dynamic internal table is there any function module for that.
‎2008 Dec 01 5:23 AM
Hi,
Check this wiki link
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/dynamic%252binternal%252btable
Regards
‎2008 Dec 01 5:23 AM
Hi,
Check this wiki link
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/dynamic%252binternal%252btable
Regards
‎2008 Dec 01 5:28 AM
‎2008 Dec 01 5:30 AM
‎2008 Dec 01 5:30 AM
Hi,
Use below given FM
*--Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fcat
IMPORTING
ep_table = dy_table.
ASSIGN dy_table->* TO <dyn_table>.
CREATE DATA dy_lines LIKE LINE OF <dyn_table>.
ASSIGN dy_lines->* TO <wa_dytab>.
Regards,
Prashant
‎2008 Dec 01 5:35 AM
Hi
* Create dynamic internal table and assign to FS
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = ifc
importing
ep_table = dy_table.
assign dy_table->* to <dyn_table>.
* Create dynamic work area and assign to FS
create data dy_line like line of <dyn_table>.
assign dy_line->* to <dyn_wa>.
endform.