‎2010 Mar 25 4:45 AM
Hi Experts,
I have to Create a Dynamic Internal table using Class:cl_salv_table.
Previously I have used 'create_dynamic_table' :
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_fieldcat
IMPORTING
ep_table = g_table
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.Do we have an option for the same in Class: CL_SALV_TABLE?
Thanks.
‎2010 Mar 25 8:01 AM
Hi there:)
No, acctually cl_salv_table is intended to work as dynamic ALV creator based on delivered table, not a table creator itself.
So basically you pass any table you want (might be that one already created dynamically) and it will create fieldcatalog for it automatically and then generate ALV instance based on that.
For pure dynamic table creation you should either use create_dynamic_table (the one you already used) or RTTS classes .
Regards
Marcin
‎2010 Mar 25 9:18 AM
HI Marcin,
I will use the method: CREATE_DYNAMIC_TABLE.
Thanks for the suggestions & prompt reply.