Professional Documents
Culture Documents
14) Zcreate Dynamic Table
14) Zcreate Dynamic Table
Now will build all three with type C and lenght 1024
la_comp-type = cl_abap_elemdescr=>get_c( p_length = 1024 ).
APPEND la_comp TO lt_comp.
CLEAR: la_comp.
ENDDO.
*&-------------------------------------------------------------------*& STEP. Three
*& Now we must create a Structure with all fields loaded before.
*&-------------------------------------------------------------------str_type = cl_abap_structdescr=>create( lt_comp ).
*& In this step we create a type table by using the structure
STR_TYPE,
at this point you will have a reference to your dynamic table type
BREAK-POINT.