cancel
Showing results for 
Search instead for 
Did you mean: 

Create inbound delivery with reference to purchase orders

Former Member
0 Kudos
15,824

Hi,

I´d like to create inbound deliveries using BAPI or transactions like vl10x (for outbound deliveries) for different purchase orders, items and quantities.

Does anyone know the way to do it?

Thank you in advance

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

VL31n is the t code for creating inbound dely wrt PO.

thanks

suresh

Former Member
0 Kudos

Hi,

Is there only that transaction to create inbound deliveries??

We want to do a load a file and create inbound deliveries. I was looking for bapi mass transactions, but I don´t know if the only way is to create a batch input of transaction VL31n.

Thanks

Former Member
0 Kudos

Hi,

There is no bapi for create inbound delivery. However try using FM BBP_INB_DELIVERY_CREATE

Pavan

Answers (1)

Answers (1)

Hi All,

Please kindly be noted that there is no Direct BAPI for this requirement. i did a good enough investigation on this and got into this conclusion.

I started with BBP_INB_DELIVERY_CREATE, i could able to achieve the results, but Material Number was not getting filled in Inbound delivery which in turn created another issue for me. Then i started debugging the whole FM (Standard Code) and got to know that none of the Straight forward FM/BAPI was there for the requirement.

so we have only one option for this to achieve i.e., GN_DELIVERY_CREATE . This i came to know only after debugging whole Standard code.

Solution:

Use this function module GN_DELIVERY_CREATE, and pass the parameters like VBSK_I & XKOMDLGN. Try to pass maximum data from PO by fetching it from EKKO EKPO. Most of the the parameters values we can get it from those tables.

Once we pass all the values to the above parameters, it will create an Inbound delivery and we can receive the delivery number in LT_LIPS Parameter.

Here is the sample code which i can share to you for your reference.(Which is attached)

Hope it helps for the people like me who struggles to get the inbound delivery with respect to a PO.

Note: I will be writing a Blog (Which is related to an OData Service) soon, in which i will be sharing the complete code for this Scenario.

Regards

Sri Ram

Hi sriram.kompell,

I have same issue was not able to use BBP_INB_DELIVERY_CREATE after many many trials !

Can you please guide with your code how to use GN_DELIVERY_CREATE or what mandatory to pass for it?

Thanks in advance,