Skip to Content
author's profile photo Former Member
Former Member

BAPI_GOODSMVT_CREATE Inconsistant for Inbound Delivery

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

Pic1.JPG (63.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2014 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 20, 2014 at 02: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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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'

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.