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

Batch split during delivery creation

pavel_pacyno1
Discoverer
0 Likes
1,912

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

3 REPLIES 3
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
1,783

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

Read only

1,783

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

Read only

0 Likes
1,783

pavel.pacyno1 See my updated answer.