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 sales order confirmation and how can do design it in webdynpro. what is Tcode for the same?
How can we handle table control in bdc? : abap bdc
Give examples of transparent table?
What is the difference between collect and append statements?
Describe the difference between macro and subroutine?
What are conditional chain statement?
hi I am in training of functional module, i am unable to understand what exactly use of IDOC,BAPI,DIM and BIM. As LSMW and BDC methods are used for data conversion from legacy to sap. Might be it is silly question. please explain me
What are field symbols and field groups? Have you used component idx of structure clause with field groups?
What are the control break events in abap? : abap data dictionary
What is the difference between native sql & open sql? : abap data dictionary
What are the different attributes that can be assigned to a variant?
What are the events used in interactive reports?
how to create module pool program using table controls based on selection criteria specified for sales document item in the first screen and item details in the second screen. plz mention the detail coding Tahnks, Rahul
Can a constructor be redefined?
i have cleared my technical round and manager round in cts but they told me u will get a call with in couple of days now i dont know about my status