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 no update of inbound delivery Actual GR Date

giancarla_aguilar
Participant
0 Kudos

Hello Experts.

We have a program which creates an inbound delivery and posts GR using BAPI_GOODSMVT_CREATE.  Inbound delivery goods movement status is updated to completed but it does not update the Actual GR Date.  Did I miss to specify an indicator or a parameter?

So far, this is the only problem we have, GR is posted successfully and document flow is correctly updated.

I hope somebody can help me on this.

1 ACCEPTED SOLUTION

giancarla_aguilar
Participant

Resolved the issue by using WS_DELIVERY_UPDATE_2 for the goods receipt posting.

Another note though: this FM do not modify the production date in the delivery items (LIPS-HSDAT) even if indicator VBPOK-KZHSDAT = 'X' is set.  I have to use expiry date indicator (VBPOK-KZVFDAT) also but leave the expiry date blank to trigger the update in the item level.

Thanks for all the inputs!

7 REPLIES 7

former_member186746
Active Contributor
0 Kudos

Hi,

What do you mean with actual GR date? You can change document date and posting date with this BAPI exactly as you can do in MIGO.

Kind regards, Rob Dielemans

0 Kudos

The Actual GR Date in the inbound delivery.  I did define the document date and posting date in the header structure of the BAPI, and the GR document reflects it.  But looking into the inbound delivery, LIKP-WADAT_IST is blank.

tomasz_domanski
Contributor
0 Kudos

Hi Aguilar,

In older versions of SAP ECC (I guess few EHP back) it was a common problem that when someone used Inbound Delivery and did not post it with it's own function but used MIGO or BAPI you mentioned , the Inb Del was not updated with some information.

I know some people simply code in an additional step to update Inb Del, either using  call transaction VL32N with BDC data or with SD_DELIVERY_UPDATE, but I'm not sure if it is all relevant for your current EHP etc.

BR,

Tomek

0 Kudos

Exact. And in KBA 1901224 it is written black on white:

"It was not intended that the BAPI BAPI_GOODSMVT_CREATE updated the Inbound Delivery.

See the SAP Note 520813 question 16 about it."

0 Kudos

Hi Jurgen,

That is true, though there is no info there how to make it happen outside of this BADI and that is what I wanted to suggest here. Moreover, I can see that last modification of this BADI is done by SAP on 2015.08.13 and I don't know if someone really would change the old Q&A note if something around Inb Del was enhanced ? (e.g. Aguilar  declares that "Inbound delivery goods movement status is updated to completed"  - I think I remember this didn't happen couple of years ago if I used MIGO instead of VL32N)

BR,

Tomek

0 Kudos

Hello Tomasz.

Yes, you are right there.  The inbound delivery status and document flow was indeed updated using the BAPI, except for the GR Date.  Our program is already in production for a year already, only recently they noticed the issue.

Thanks!

giancarla_aguilar
Participant

Resolved the issue by using WS_DELIVERY_UPDATE_2 for the goods receipt posting.

Another note though: this FM do not modify the production date in the delivery items (LIPS-HSDAT) even if indicator VBPOK-KZHSDAT = 'X' is set.  I have to use expiry date indicator (VBPOK-KZVFDAT) also but leave the expiry date blank to trigger the update in the item level.

Thanks for all the inputs!