2008 Aug 11 6:59 AM
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.
2008 Aug 11 7:12 AM
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.
2009 Oct 13 7:44 AM