Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Start Routine

Former Member
0 Likes
477

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.

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
453

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

Read only

0 Likes
453

Hi

My purpose is Resolved

Regards,

santosh

Read only

0 Likes
453

Hi,

Resolved