‎2022 Nov 08 10:50 AM
Hello,
Could you please help me with the request below:
When delivering the order I need to add the batch split for some positions in the delivery. What would be the best place and way to archive this?
Thank you!
Pavel
‎2022 Nov 08 11:03 AM
Hello pavel.pacyno1
There is a standard functionality for that Batch Determination for Deliveries
If you need to update a delivery batch split programmatically then you can use WS_DELIVERY_UPDATE function. The function is not released for customer usage, so it is not documented. You'll have to play around with the input parameters to make it work. See this article for tips Picking (Split Batches) using WS_DELIVERY_UPDATE_2 / WS_DELIVERY_UPDATE
Also have a look at my response to the question How to use WS_DELIVERY_UPDATE to create batch split item for the existing item in delivery I propose there to use WHSCON IDoc, which is well documented to update a delivery batch split. The IDoc is ultimately processed by the WS_DELIVERY_UPDATE function, so you can figure out the way to call the function this way. You can test WHSCON IDocs in the WE19 transaction. Once you get the IDocs to update the delivery the way you want, you can put a break point in WS_DELIVERY_UPDATE and check how it is called under debugger.
Best regards
Dominik Tylczynski
‎2022 Nov 08 12:01 PM
Hi Dominik,
thank you for your reply, but I do not need to automatically determine the batch, in my case I need to copy batches (including the batch split) from another delivery.
Thanks!
Pavel
‎2022 Nov 08 2:06 PM