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 a multiple line field? : abap bdc

713


Is sap xi intended to replace ale?

665


What are the problems in processing batch input sessions? How is batch inputprocess different from processing online?

653


can anybody give me functional specification (or table name & field names) of stock analysis report, work in progress report,generating vendor detailed list

1623


what is diff between ECC 5.0 AND ECC 6.0

2953






Where are you used type casting?

1013


Explain the difference between domain and data element? What are aggregate object?

672


What are the screen painter and menu painter?

663


What are the differences between session method and call transaction method? : abap bdc

633


What is the difference between abap and hr abap? : abap hr

700


I need some information regarding Vcentric Test pattern ? with questions.

1794


What is the different between template and a table?

683


What is buffering in abap?

727


What are user exits? What is involved in writing them? What precations are needed?

690


A subroutine can be terminated unconditionally using exit. State true or false : abap modularization

681