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 |
how can be restore a project deleted in lsmw?
What do you do with errors in BDC batch sessions?
To how many tables can an append structure be assigned. : abap data dictionary
What is a size category?
Hi all, How can u get the Sales order no. if u know only Delivery order
where u can create the rfc function module?
Explain the advantages/disadvantages of logical databases?
What is the use of buffering?
suppose you are using session method for 1000 records and there is error in 400 and 500 records.how many records will be updated to the database?
A window is missing while copying a sapscript from one client to another client. What should be done?
Differentiate between the uline and write: sy-uline statements if any?
Which one of the following statements would occur in the PBO of a dialog program using table control? a) module user_command. b) set screen '0100'. c) loop at itab. d) loop at itab with control itab_tc.