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

Create Delivery - VL01N

0 Likes
1,271

Hi Guys,

I've looking for a BAPI to create a Delivery based on Sales Orders.I found the link below :

[bapi for vl01n|https://forums.sdn.sap.com/click.jspa?searchID=24949211&messageID=6951804]

So, I tried the following ones:

BAPI_DELIVERYPROCESSING_EXEC

BAPI_OUTB_DELIVERY_CREATE_SLS

Both are good to create a simple delivery, but neither BAPI_DELIVERYPROCESSING_EXEC nor BAPI_OUTB_DELIVERY_CREATE_SLS allow me to provide more detail, I mean, the first one has almost all fields that I need, but does not work properly.

I need to create a delivery with a delivery block(LIFSK) filled.

I can use the VL01N's user-exit in order to fill out this field, but for me seems not to be a correct way.

Any Ideia I will apreciate it.

Best regards,

Alexandre Rocha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,080

Hi,

I hope you can use parameter 'REQUEST-DELIVERY_BLOCK' in the 'BAPI_DELIVERYPROCESSING_EXEC'.

Hi Guys,

I've looking for a BAPI to create a Delivery based on Sales Orders.I found the link below :

[bapi for vl01n|https://forums.sdn.sap.com/click.jspa?searchID=24949211&messageID=6951804]

So, I tried the following ones:

BAPI_DELIVERYPROCESSING_EXEC

BAPI_OUTB_DELIVERY_CREATE_SLS

Both are good to create a simple delivery, but neither BAPI_DELIVERYPROCESSING_EXEC nor BAPI_OUTB_DELIVERY_CREATE_SLS allow me to provide more detail, I mean, the first one has almost all fields that I need, but does not work properly.

I need to create a delivery with a delivery block(LIFSK) filled.

I can use the VL01N's user-exit in order to fill out this field, but for me seems not to be a correct way.

Any Ideia I will apreciate it.

Best regards,

Alexandre Rocha

5 REPLIES 5
Read only

Former Member
0 Likes
1,081

Hi,

I hope you can use parameter 'REQUEST-DELIVERY_BLOCK' in the 'BAPI_DELIVERYPROCESSING_EXEC'.

Read only

0 Likes
1,080

Satya,

I've already tried that... but does not work, I mean, I got the Delivery number.. but it did not get the field delivery block filled. I debugged this function and just in case of type is iqual = '12', it will use the field delivery block, but I was unable to get the delivery number.. I got an exception.

I've been using an user-exit to make this field works, but I think SAP must provide a BAPI to create a fulled Delivery.

Thank you anyway,

Alexandre

Read only

0 Likes
1,080

Hi,

Could you let me know what for exactly you are using this delivery block? to restrict the further process like GI / Billing docs creation?

Your are correct there should be way through BAPI also, i hope if you want to set delivery block for existed deliveries then it will be useful. Sorry i did not get this type of scenario.

Read only

0 Likes
1,080

Satya,

Yeah, with a specific delivery Block like for e.g 'Z3', I will send out an information to an external system and also restrict the P. Goods issue and nexts steps.

I hope now you get it right if not let me know,

Alexandre

Read only

0 Likes
1,080

Thanks for your information.