‎2007 Nov 02 1:58 PM
Hi All,
I have 3 Dso. zmyDso1, zmyDso2, zmyDso3. my Requirement is I need to get data from This Dso's(zmyDso1 and zmyDso) and merg the fields and send to third Dso zmyDso3. To Do This I need to write a Start Routine.Please give me logic to Merg this fields and send to Third DSo.Merg to done on a field wich is common in both dso's.
The Dso ZmyDso1 contains Fields
Zccno,
Zmaterial,
zyear.
The Dso ZmyDso2 contains Fields
Zccno,
Zbillnumber,
0quantity.
The Merg to be done on Field Zccno.
Please Provide ABAP Program(logic) to do This.
Thanks in Advance.
Regards,
Santosh.
‎2007 Nov 02 2:26 PM
I assume that your zmyDso3 hjas fields
Zccno,
Zmaterial,
zyear.
Zbillnumber,
0quantity
first loop as zmydso1 has driver...
Loop at zmydso1.
read table zmydso2 with key zccno = zmydso1-zccno.
move-corresponding zmydso2to zmydso3.
move-corresponding zmydso1 to zmydso3.
append zmydso3.
clear zmydso1, zmydso2, zmydso3.
endloop.
second loop as zmydso2 has driver...
Loop at zmydso2.
read table zmydso1 with key zccno = zmydso1-zccno.
move-corresponding zmydso1 to zmydso3.
move-corresponding zmydso2 to zmydso3.
append zmydso3.
clear zmydso1, zmydso2, zmydso3.
endloop.
sort zmydso3.
delete adjacent duplicates from zmydso3.
Regards,
Naimesh Patel
‎2007 Dec 19 9:56 AM
‎2007 Dec 19 9:57 AM