01-18-2014 8:47 AM
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. | Item | Quantity Reduced |
---|---|---|
180000618 | 10 | 10 |
180000619 | 10 | 20 |
180000620 | 10 | 0 |
180000621 | 10 | 0 |
180000622 | 10 | 0 |
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
01-21-2014 4:58 AM
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
01-20-2014 2:21 AM
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.
01-20-2014 6:32 AM
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'
01-21-2014 4:58 AM
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