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 are the aggregate objects in the data dictionary? : abap data dictionary

1487


what is the t-code to link technical and functional operation?

2360


Explain the components of selection table?

1066


What kind of financial periods exist in sap? What is the relavent table for that?

1076


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

2109


What is new enhancement framework?

1298


Can we write the code both call transaction and session method in single program?

1047


Explain lsmw?

1029


In events, start-of-selection is a default event. When we have to use this event explicitly? Why?

1002


What is an rdbms?

1044


What are the aggregate objects in data dictionary? : sap abap data dictionary

1145


What does the ‘suppress dialog’ do?

1417


What are Pull and Push Methods?

2179


What are indexes? : abap hr

1065


How can an internal table with header line and one without header line be distinguished when passed to a subroutine? : abap modularization

1039