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 |
What is tcode se16? For what is it used.
Is it possible to pass data to and from include programs explicitly? : abap modularization
What are the uses of secondary indexes?
what are the diff types of dispatcher in sap ?
What is user exists?
2 Answers FutureSoft, Unilogic Software,
I have two pages, In one page I want address, Header, Main & footer. In the second page I want only Main. How to do it?
5. I have two pages, In one page I want address, Header, Main & footer. In the second page I want only Main. How to do it?
Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.
What is structure?
How do you write a function module in sap?
which is procedure used for SAP Enhancement?
What is the difference between data elements and domains?