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
What is a multiple line field? : abap bdc
Is sap xi intended to replace ale?
What are the problems in processing batch input sessions? How is batch inputprocess different from processing online?
can anybody give me functional specification (or table name & field names) of stock analysis report, work in progress report,generating vendor detailed list
what is diff between ECC 5.0 AND ECC 6.0
Where are you used type casting?
Explain the difference between domain and data element? What are aggregate object?
What are the screen painter and menu painter?
What are the differences between session method and call transaction method? : abap bdc
What is the difference between abap and hr abap? : abap hr
I need some information regarding Vcentric Test pattern ? with questions.
What is the different between template and a table?
What is buffering in abap?
What are user exits? What is involved in writing them? What precations are needed?
A subroutine can be terminated unconditionally using exit. State true or false : abap modularization