Application Development 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: 

BAPI_GOODSMVT_CREATE Inconsistant for Inbound Delivery

Former Member
0 Kudos

Hi Experts,

I am Using BAPI_GOODSMVT_CREATE to Post Goods Receipt for Inbound Delivery in Which I am Passing Purchase Order and Item.

It is Posting Correctly in case where one Inbound Delivery is created for one Item.

I am facing issue in case there are multiple inbound deliveries created for one item on PO.

Below is the PO Item Deliveries :

Inbound Delv.ItemQuantity Reduced
18000061810

10

1800006191020
180000620100
180000621100
180000622100

Here I am Posting GR for 180000620 / 10.

In this case, BAPI is giving error "Qty to be posted is greater than maximum postable quantity: 180000618/000010".

Here it is giving error for the inbound delivery that is already Posted.

Why it is checking all the deliveries for the PO Item ? If it is checking then it should compare with the PO Item Quantity.

I have tried with passing Delivery Number and Delivery Item in the BAPI but it is considering it as an Outbound Delivery and giving error.

Please give your useful suggestions to resolve this issue.

Thanks and Regards,

Sachin

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Solved by Myself.

Need to pass   deliv_numb_to_search and   deliv_item_to_search parameters in the BAPI.

This will consider only that particular inbound delivery and Item that we have passed.

Regards,

Sachin

3 REPLIES 3

Former Member
0 Kudos

Hi Sachin,

I recommend you to use WS_DELVRY_UPDATE_2 FM rather than using BAPI_GOODSMVT_CREATE. Theoretically there is no wrong in using the latter. But using WS_DELVTY_UPDATE_2 is straight forward for your purpose. It is like using WHSCON message to do the PGR rather than using WMMBXY. You can pass the Inb Delivery to the FM with VBKOK_WA-WABUC = 'X'. That will do the PGR against the Inb Delivery.

0 Kudos

I was able to use this FM 'BAPI_GOODSMVT_CREATE'.....successfully for inbound delivery.

What is the error that u are receiving?

Hope that u are passing the 'GOODSMVT_CODE' as '01' and in the item details.....incase of a full goods receipt....u need to pass 'no_more_gr' as 'X'

Former Member
0 Kudos

Solved by Myself.

Need to pass   deliv_numb_to_search and   deliv_item_to_search parameters in the BAPI.

This will consider only that particular inbound delivery and Item that we have passed.

Regards,

Sachin