Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is sales order confirmation and how can do design it in webdynpro. what is Tcode for the same?

2368


How can we handle table control in bdc? : abap bdc

1054


Give examples of transparent table?

1112


What is the difference between collect and append statements?

1038


Describe the difference between macro and subroutine?

1164


What are conditional chain statement?

1162


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

2160


What are field symbols and field groups? Have you used component idx of structure clause with field groups?

986


What are the control break events in abap? : abap data dictionary

1059


What is the difference between native sql & open sql? : abap data dictionary

1028


What are the different attributes that can be assigned to a variant?

986


What are the events used in interactive reports?

1087


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

3873


Can a constructor be redefined?

1317


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

8940