cancel
Showing results for 
Search instead for 
Did you mean: 

GR using BAPI_GOODSMVT_CREATE

Former Member
0 Kudos

Hi fellow ABAPers,

Is it possible to use the BAPI BAPI_GOODSMVT_CREATE to post a Goods Receipt (create a material document) for an Inbound Delivery? When I use the delivery number as the reference document number, the BAPI returns me a material document number. MSEG also gets a new entry in it. But, the delivery is not getting updated with the Material document number. When I click on document flow of the delivery I don't see any additional documents in it. But, if I do a GR on MIGO, I see a new material document getting attached to the delivery.

Hope somebody can offer a tip or two to tackle this.

Thanks,

Mrk

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

in BAPI_GOODSMVT_CREATE

insert values for

GOODSMVT_ITEM-DELIV_NUMB

GOODSMVT_ITEM-DELIV_ITEM

and for

GOODSMVT_ITEM-PO_NUMBER

GOODSMVT_ITEM-PO_ITEM

this will update the document flow for the purchase order and for the delivery document

Former Member
0 Kudos

Check out <a href="https://service.sap.com/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700009068942001&">OSS Note 356665</a>. An Excerpt:

With the two fields, it is possible to post a goods receipt for an outbound delivery whereby the document flow of the delivery is updated.

Former Member
0 Kudos

Hi !

Bad news... The Bapi BAPI_GOODSMVT_CREATE (as MB01) does not support updating document flow or status of deliveries.

(See OSS Note 199703).

To do so you could probably use a Call-Transaction to the VL32 using the delivery number.

Hope that helps a bit... we do have this problem to but according to SAP ther's no way to do so.

Some Points would be fine...

Regards

Rainer