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

Writing a routine

Former Member
0 Likes
323

Hello experts,

I need help wherein I have to transfer Price value from Sales order to Purchase order. Can somebody help me in writing a routine for the same as it is the first time that i'll be writing a ABAP Routine.

Regards,

VR

Moderator message: first please search for available information/documentation.

Message was edited by: Thomas Zloch

Hello experts,

I need help wherein I have to transfer Price value from Sales order to Purchase order. Can somebody help me in writing a routine for the same as it is the first time that i'll be writing a ABAP Routine.

Regards,

VR

Moderator message: first please search for available information/documentation.

Message was edited by: Thomas Zloch

1 REPLY 1
Read only

Former Member
0 Likes
291

Routines are for single value / condition calculation

I suppose you want t o write a copy control kind of object where depending on purchase order

The values are copied into sales order condition.

This can be achieved by using EDI Functionality in PO.

As the SO needs to be created with reference to SO you can send the PO as an EDI [IDoc] to self.

This will convert all data including pricing and will create the SO directly.

Else you can write a Z program to create an SO with reference to PO and use BAPI to update the same.