‎2016 Oct 03 5:14 PM
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
‎2016 Oct 03 5:18 PM
‎2016 Oct 04 6:10 AM
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.
‎2016 Oct 04 1:05 PM
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.
‎2016 Oct 05 1:33 AM
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.