Posts

Showing posts with the label dynamic internal table declaration

Create/ Access Dynamic Internal Table - SAP ABAP

Image
A  Dynamic Internal Table  is the extension of the internal table concept which is used in the program to store itemized data with the fact that the number of columns are not known at the type of declaring the structure of the table. The final structure of the table is known at the runtime or compile time. How To Create Dynamic Internal Table There are few ways to declare the dynamic internal table. Now based on the requirement we need to decide which way we need to proceed for table creation. 1st Way: Here from selection screen (p_table) we are getting the table name whose data needs to be displayed. Now in the table <t_itab> we are having 20 records from MARA table stored to be displayed. 2nd Way:  Now the second way we can create the dynamic internal table is to using dynamic field catalog based on which the dynamic table will be created. Here we are dynamically populating the lt_fcat. Here few fields are fixed like aufnr, matnr, charg...