can u create internal table dynamically ? how?
Answer Posted / ravi kiran sankuru
By Using RTTI , we can create internal table dynamically.
PARAMETERS: P_TABLE TYPE CHAR20.
DATA : lo_table_struc TYPE REF TO cl_abap_structdescr,
lt_itab type ABAP_COMPDESCR_TAB.
*-----> Get structure of Table.
lo_table_struc ?= cl_abap_typedescr=>describe_by_name( P_TABLE ).
*-----> Move Table fields to Internal Table.
lt_itab[] = lo_table_struc->components[].
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is sap luw or update transaction?
What is the maximum number of match code id's that can be defined for one match code object ?
Different between Interface and Abstract classes?
What is pretty printer?
What are the tcodes for performance tuning?
How can we set the tablespaces and extent sizes ?
How to creat transactions? : abap data dictionary
What is the difference between sum and collect?
What is the difference between call transaction and session method? : abap bdc
The commands through which an abap/4 module can “branch to “ or “call” the next screen are?
Where do you create indexes in abap?
What is pnp-sw-found ? : abap hr
Cds views
When the get cursor command used in interactive lists?
What are the differences between interactive and drill down reports?