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 the xk01 in realtime.can it apply the others. how it it will goes to first page and next page.

2297


What are the uses of interactive reporting?

1080


how to create view in bdc..??

2813


What are the steps to execute session method?

1054


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

1086


what is call back in alv?

2458


Difference between call by value and call by reference? : abap data dictionary

1079


What are the screen painter and menu painter?

1015


Why do we use dynamic where conditions?

1425


Reports: Event functionality.

1343


What will exactly the hide statement do?

1029


Print options in smartforms?

1992


What will you code in start-of-selection & end-of-selection ?

1061


Explain what is the difference between primary key and unique key?

1111


How to create user interfaces for lists?

1011