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...

if u have two internal table such as itab1 and itab2.in
itab1 has four fields such as f1,f2,f3,f4 and in itab2 has
two fields such as f1,f2.then how can u copy data from
first internal table to second internal table.

Answer Posted / abhishek buckal

REPORT ZAB_INTERNAL.

TABLES: mara.



TYPES: BEGIN OF str,

f3 TYPE pstat_d,
f4 TYPE mbrsh,
f1 TYPE matnr,
f2 TYPE ernam,
END OF str.

DATA:ITab TYPE TABLE OF STR.
DATA: wa LIKE LINE OF itab.


TYPES: BEGIN OF str1,

f1 TYPE matnr,
f2 TYPE ernam,
END OF str1.
DATA: ITab1 TYPE TABLE OF STR1.
DATA: wa1 LIKE LINE OF itab1.

select pstat mbrsh matnr ernam FROM mara into TABLE itab.



LOOP at itab into wa.
MOVE-CORRESPONDING wa to wa1.
APPEND wa1 to itab1.
ENDLOOP.

LOOP at itab1 into wa1.
WRITE: /01 wa1.
ENDLOOP.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between sum and collect?

1490


Why do we need to code a loop statement in both the pbo and pai events for each table in the screen?

1047


What is a logical database?

1137


Can we create an abap program without using y or z?

1042


In an abap/4 program how do you access data that exists on a presentation server vs on an application server?

1136


What functions does a data dictionary perform ?

981


What are the types of records that are transferred to sap r/3 and used by interfaces? : abap bdc

1078


How to do find it?

993


What are standard layouts sets in the sap script?

1018


In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically?

1085


What is payroll area

2189


There is a delivery that is being created through the ABAP code and in the middle it says delivery created but someone is modifying , how would you rectify this issue

8451


What is For-period and In-period

2156


What are the steps to execute session method?

1002


Difference between Insert, Update and Modify?

1114