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

How to use messages in lists?

1113


Define abap/4 layer?

1457


Can you print decimals in type n? What is difference between float and packed data type?

1268


What are the main events of which are used for logical database?

1189


i have executed a report via back ground job, in this report i have used enqueue and dequeue function modules on a table, but before releasing the lock(before dequeue function module is not call) job gives the dump, so the lock is not released the table, here my question is how to set the lock automatically release the there is a short dump before calling the dequeue module?

2247


How do you work with semi colon se[arated files in BDC ?

1988


What are the different methods of passing data? : abap modularization

1121


What are the 3 types of tables in sap? : abap data dictionary

1142


What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?

1348


What is repository info. Systems?

1148


What are the functional modules used in sequence in bdc? : abap hr

1168


any 1 having notes on SAP-ABAP certification, or even if any 1 could provide the url for getting notes on SAP-ABAP certification, would be appreciated.

2442


What function does data dictionary perform?

1196


Explain the session method? : abap bdc

1218


What are the types of search helps? : sap abap data dictionary

1110