Skip to Content
0
Former Member
Jul 20, 2009 at 10:14 AM

creating dynamic sorted internal table.

668 Views

<l_table1> is defined as an sorted table and new_table from method create_dynamic_table is coming as standard table.

when we write a statement "ASSIGN new_table1->* TO <l_table1>." Its giving runtime error type conflict.

Could you please let me know how to create sorted internal table by using method create_dynamic_table.

  • Create a new Table

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING

it_fieldcatalog = it_fieldcat1

IMPORTING

ep_table = new_table1.

  • Create a new Line with the same structure of the table.

ASSIGN new_table1->* TO <l_table1>.