Skip to Content
Author's profile photo Raju C D

Posting GR only for few line items in an Inbound Delivery

Some times there will be rare scenarios that  GR to be done for only few line items in an inbound delivery. In this cases we can use  BAPI_GOODSMVT_CREATE to create GR. off course it is well know FM, but there is a reason why I am writing this blog, when we use this BAPI we will come across  two issues for this kind of scenarios, those are wired issues and to resolve them I had to struggle a bit, so I wanted to mention those remedies in this blog.

The first issue is Once GR has been created the GR is not showing in the Inbound Delivery document flow, for this we have one FM which can be used to resolve this. i.e SD_DELIVERY_UPDATE.

The Second issue is the Inbound status have not been updated as expected, for this we have a standard program RVDELSTA, after above FM has been called we need to run this program and it will be updated the IBD status as appropriate. actually for every delivery we can’t manually execute this program, so we have to call this program in our program. So, what I did just copied this program and removed the code which gives output. and called the program in my program and issue got resolved.

Those two remedies I just wanted share in this blog, for detailed code check the attachment which may helpful if you stuck in same situation.

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Peter Inotai
      Peter Inotai

      Hi,

      I had no problem with FM BAPI_GOODSMVT_CREATE for inbound delivery.

      Did you filled the following fields for the item table:

      deliv_numb, deliv_item, deliv_numb_to_search and deliv_item_to_search?

      Did you set the update doc history flag as it's mentioned in this OSS note?

      http://service.sap.com/sap/support/notes/1993787

      Cheers,

      Peter

      Author's profile photo CD Raju
      CD Raju
      Blog Post Author

      Hi Peter,

      I did as you said but i am doing GR only for few line items in IBD, that would be the reason the mentioned issues happened.

      Are you doing GR for few line items of IBD or whole IBD ?

      Thanks

      Raju C D

      Author's profile photo Peter Inotai
      Peter Inotai

      Hi Raju C D,

      This could be the difference, I did the GR for all lines in the InbDel, however they were also not the whole quanities for the PO. Currently I'm offline, but I'll test your scenario also, when I have system access.

      Peter