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 the xk01 in realtime.can it apply the others. how it it will goes to first page and next page.
What are the uses of interactive reporting?
how to create view in bdc..??
What are the steps to execute session method?
What are the functional modules used in sequence in bdc? : abap bdc
what is call back in alv?
Difference between call by value and call by reference? : abap data dictionary
What are the screen painter and menu painter?
Why do we use dynamic where conditions?
Reports: Event functionality.
What will exactly the hide statement do?
Print options in smartforms?
What will you code in start-of-selection & end-of-selection ?
Explain what is the difference between primary key and unique key?
How to create user interfaces for lists?