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

Internal Table

Former Member
0 Likes
538

Hi

can any one tel how to create Dynamic internal table is there any function module for that.

1 ACCEPTED SOLUTION
Read only

Former Member
5 REPLIES 5
Read only

Former Member
Read only

Former Member
0 Likes
519

Hi,

Check the following link:

http://www.sap-img.com/ab030.htm

Regards,

Bhaskar

Read only

Former Member
0 Likes
519

Hi,

Check this thread. Hope this will be helpful for you.(See Anid's Code snippet)

Thanks

NK

Read only

former_member386202
Active Contributor
0 Likes
519

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

Read only

former_member206439
Contributor
0 Likes
519

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.