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: 

dynamic table

Former Member
0 Kudos
68

Hi All,,i'm generating my dynamic internal table through this code n this works fine.

DATA: ldo_data TYPE REF TO data.

FIELD-SYMBOLS:

<lt_itab> TYPE table.

*" Dynamically create itab

CREATE DATA ldo_data TYPE TABLE OF (id_tabname).

ASSIGN ldo_data->* TO <lt_itab>.

SELECT (field) INTO CORRESPONDING FIELDS OF TABLE <lt_itab>

FROM (ID_TABNAME) UP TO 20 ROWS.

but i want to know that if some one created dynamic table through

call method cl_alv_table_create=>create_dynamic_table

exporting

it_fieldcatalog = ifc

importing

ep_table = dy_table.

then wht different i have to face in further processing simply wht's the difference in both methods.

2 REPLIES 2

Former Member
0 Kudos
40

Hi ,

In the first method , the field catalog i.e the length , data type is based on the dictionary. in the second method the u can explicity make your own length and data types for the fields in the internal table .This is the only difference that i have found.

Former Member
0 Kudos
40

thanks all.