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
How to use messages in lists?
Define abap/4 layer?
Can you print decimals in type n? What is difference between float and packed data type?
What are the main events of which are used for logical database?
i have executed a report via back ground job, in this report i have used enqueue and dequeue function modules on a table, but before releasing the lock(before dequeue function module is not call) job gives the dump, so the lock is not released the table, here my question is how to set the lock automatically release the there is a short dump before calling the dequeue module?
How do you work with semi colon se[arated files in BDC ?
What are the different methods of passing data? : abap modularization
What are the 3 types of tables in sap? : abap data dictionary
What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?
What is repository info. Systems?
What are the functional modules used in sequence in bdc? : abap hr
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.
What function does data dictionary perform?
Explain the session method? : abap bdc
What are the types of search helps? : sap abap data dictionary