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 design pattern? Provide example .Why are we using it?
How is conversion of data types done between abap/4 & db layer? : abap data dictionary
How can we access the correction and transport system?
How many types of buffering? : abap data dictionary
What is bdc programming? : abap bdc
How do you control printer functions from sapscript?
How can you distinguish between different kinds of parameters?
Name a few data dictionary objects? : abap data dictionary
What is difference between dependent and independent data?
What is generic area buffering in abap?
What are function modules?
What are the components of sapscript?
To how many tables can an append structure be assigned. : abap data dictionary
What are the domains and data elements?
any 1 having notes on SAP-ABAP certification, or even if any 1 could provide the url for getting notes on SAP-ABAP certification, would be appreciated.