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

ITAB like dynamic internal table table

Former Member
0 Likes
504

hi alll,


CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog = g_fieldcatalog
      IMPORTING
        ep_table        = i_table.

i want to create an internal table of type i_table

is this possible?

any suggestions are helpful

Thank You

regards,

PP

3 REPLIES 3
Read only

Former Member
0 Likes
476

assign it to field symbol.

FIELD-SYMBOLS: <i_dyntable> TYPE STANDARD TABLE

ASSIGN i_table->* TO <i_dyntable>.

Read only

0 Likes
476

iwant to create a normal internal table ITAB without header line.

Read only

Former Member
0 Likes
476

Hi ,

Use stmt

FIELD-SYMBOLS: <L_TABLE> TYPE TABLE,

<L_FIELD> TYPE ANY,

<L_LINE> TYPE ANY.

DATA: NEW_LINE TYPE REF TO DATA.

ASSIGN I_TABLE->* TO <L_TABLE>.

This will create a table without header line.

In order to create a work area for same use,

CREATE DATA NEW_LINE LIKE LINE OF <L_TABLE>.

ASSIGN NEW_LINE->* TO <L_LINE>.

here <L_TABLE> is as good as an internal table without a header line.

You can perform all the operations the way u do on internal table.

regards,

ajit.