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.
Answers were Sorted based on User's Feedback
Answer / kane
you can use "move-correspondings itab1 to itab2."
Is This Answer Correct ? | 15 Yes | 4 No |
Answer / 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 |
Answer / sivaramakrishna. s
we can also use this process as below.
loop at itab1 into wa1
append wa1_f1 to wa1_f1.
append wa2_f2 to wa2_f2.
append wa2 to itab2.
end loop.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / guest
By using the inner join condition in classical report
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / sateesh
By Using this Statement:
insert lines off itab1 from 3 to 5 into itab2.
loop at itab2 into w_tab1.
write:/ w_tab1.
End loop.
Is This Answer Correct ? | 1 Yes | 2 No |
Difference between sy-tabix and sy-index? Can you check sy-subrc after perform?
Explain the use of insert and append statement in sap abap?
How to write file to application server?
stock transfer from one plant to another plant ? i want the total description.
What are control tables? : abap data dictionary
Update types in Call transaction method. What is the difference?
What are the data classes in abap?
Pls reply me 1)can i debuging the idoc. 2)give some example of pool table and cluster table. 3)what is update module.
Can you transport variants of multiple programs in one step?
21) Difference between BAPI'S and Fumnction modules.?
What are user exits? What is involved in writing them? What precautions are needed?
Suppose Idoc is strucked in the Q then how can I resend it?