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

V2 Update

itabhishek9
Participant
0 Likes
1,091

Hi SDNites,

I have to update Purchase Order quantity while I am creating outbound delivery based on a custom logic. I am trying to implement the same in user exit EXIT_SAPLATPC_002 but update of PO BAPI requires Commit work so I have thought of creating a separate FM and calling it in update task. When called in update task using V1 update, I am getting the problem of PO being locked i.e. when commit work is triggered and update FM is called, PO was not released at that point.

Now I am thinking of using V2 update (Start Delayed) but the PO is not getting updated. Can you please guide me if this is the right approach and if yes how can I debug V2 update in this scenario.

Note : I have checked the update FM locally and is doing the job it is intended to.

Regards,

Abhishek

4 REPLIES 4
Read only

Lakshmipathi
SAP Champion
SAP Champion
0 Likes
1,037

Can you tell me what is the business requirement and why you were trying to change the purchase order quantity when an outbound delivery is generated?

Read only

matt
Active Contributor
0 Likes
1,037

It does seem a bit odd doesn't it. By the time thel delivery is being initiated, the PO is fixed. If I as a customer order 5 widgits and 2 thingies, if the delivery ends up a 4 widgits and no thingies, I don't expect to call up customer service to be told - no, your PO was only for 4 widgits.

Read only

0 Likes
1,037

Maybe they are using this process to add promotional items to a shipment outside of the order?  I.e., if order is for 5 widgets, include a sample of widget oil.

Just guessing.

Read only

itabhishek9
Participant
0 Likes
1,037

I am able to meet the above requirement using V2 update.

Updating the PO while creating outbound delivery is happening as we are working around blocked stock functionality.