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 are the aggregate objects in the data dictionary? : abap data dictionary
what is the t-code to link technical and functional operation?
Explain the components of selection table?
What kind of financial periods exist in sap? What is the relavent table for that?
1)can any body tell the transport request number concept and 2)there are 3 screens in one screen u have uploaded the resume and second screen also u have done the same thing but when u are uploading the resume in third screen u got some error in somewhere else but whatever u have uploaded the resume in 1 and 2 should not
What is new enhancement framework?
Can we write the code both call transaction and session method in single program?
Explain lsmw?
In events, start-of-selection is a default event. When we have to use this event explicitly? Why?
What is an rdbms?
What are the aggregate objects in data dictionary? : sap abap data dictionary
What does the ‘suppress dialog’ do?
What are Pull and Push Methods?
What are indexes? : abap hr
How can an internal table with header line and one without header line be distinguished when passed to a subroutine? : abap modularization