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

Applying Delivery Block when using BAPI_DELIVERYPROCESSING_EXEC

Former Member
0 Likes
563

I am successfully using the BAPI (BAPI_DELIVERYPROCESSING_EXEC) to create outbound deliveries from sales orders. However, when I made a recent change to the program to put a delivery block on the newly created delivery, the block is not applied.

I can see the block being passed to the BAPI and I can see that the delivery gets created. But when I look at the delivery via VL03N, the delivery block is not applied.

Anyone else have a similar issue? Any possible solutions?

I know there is a workaround of executing BAPI_OUTB_DELIVERY_CHANGE to apply the delivery block right after the delivery is created. However, I would prefer to create the delivery with the block applied.

Much thanks in advance for any help.

1 REPLY 1
Read only

ci985642
Explorer
0 Likes
447

Brian,

I hope you are on 4.6C release. This seems like this Delivery Block has to come in from your Sales Order document. In other words, check if the Sales Order has this field (VBAK-LIFSK) set ON.

FYI, this is an internal SAP FM that is not released to customers and has lots of OSS Notes (395545 for one).

Thanks,

Chaps.