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: 

Create Dynamic Internal table using Class:cl_salv_table

Former Member
0 Kudos

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.

2 REPLIES 2

MarcinPciak
Active Contributor
0 Kudos

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

0 Kudos

HI Marcin,

I will use the method: CREATE_DYNAMIC_TABLE.

Thanks for the suggestions & prompt reply.