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 |
Hi, Can any one help me. i have a dropdown list box with values like LG01 SAMPLEDRAW LG02 LASER......... Like this i have multiple values .and my table name is T496N. Whenever i select ex:lgo1 sampledraw the program title should be change with SAMPLEDRAW(With out execute f8 button). Thanks and Regards
Find the scenario and give the result: a, b, c are employees, where a, b will get basic, hra, da. C gets basic and da. How to group for the allowances? : sap abap hr
Can we define our own match code id's for sap matchcodes ?
Once the recording is done in BDC and LSMW...if we are asked to add an additional field later...then how do we add the field to the existing one...?
4 Answers Deloitte, Tata Steel Limited,
Explain data dictionary in abap?
how many type of index are there
Can we reuse a userexit?
what is the procedure to report/submit the Back ground Program and the results to the PM?
What are data classes? What are the various data classes available for selection? : abap data dictionary
Difference between interactive and ALV Reports
What is dialog module?
Suppose u r using FOR ALL ENTRIES. What happens when there is no data in the itab which is using all the entries?