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

Auto PO creation

Former Member
0 Likes
546

Hi experts,

During SO creation, PR and PO are automatically created. When a new item is added to the SO, PR is updated with the new item and a new PO is created for the new item. Is it possible to just update the existing PO with the new item? Is there any exit/badi that can be used for this?

Thanks a lot.

Regards,

Nene

Hi experts,

During SO creation, PR and PO are automatically created. When a new item is added to the SO, PR is updated with the new item and a new PO is created for the new item. Is it possible to just update the existing PO with the new item? Is there any exit/badi that can be used for this?

Thanks a lot.

Regards,

Nene

1 REPLY 1
Read only

Former Member
0 Likes
437

Hi experts,

To add, we have the following configured:

transaction SWETYPV:

Object = BUS2032, Event = ALECREATED and ALECHANGED ,

Funtion module = PUR_ORDER_CREATE_VIA_SD_EVENT and PUR_ORDER_CHANGE_VIA_SD_EVENT.

When a new item is inserted, log contains the following message:

'The schedule line has already been ordered with purchase order &'

When the order is saved, a new PO is being created instead of updating the old one.

Any idea would be greatly appreciated.

Thanks,

Nene