Application Development and Automation 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: 
Read only

Dynamic internal table

Former Member
0 Likes
269

Hi everyone,

Thanks,

Goldie.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
241

Hi

refer to the following code snippet:


* 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 dynamic work area and assign to FS
  create data dy_line like line of <dyn_table>.
  assign dy_line->* to <dyn_wa>.

Regards

Ravish Garg

<b>

Reward if helpful</b>

1 REPLY 1
Read only

Former Member
0 Likes
242

Hi

refer to the following code snippet:


* 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 dynamic work area and assign to FS
  create data dy_line like line of <dyn_table>.
  assign dy_line->* to <dyn_wa>.

Regards

Ravish Garg

<b>

Reward if helpful</b>