Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_GOODSMVT_CREATE--For PGI Outbund delivery

I am using the BAPI : BAPI_GOODSMVT_CREATE

To PGI the outbound delivery. In process this is done from VL02n.

In this case once the PGI done for a delivery a materiel document is getting generated and the PGI Gets Completed with the PICKING Quantity. If i want to reverse it i can reverse it through VL09.

If i am doing the same thing through BAPI It is also posting and generating the material document but if i want to see it in VL09 for reversal it is not appearing and also if i want to post the same Outbound delivery Number through VL02N once again it is allowing me to post and generating one more material document Number. In ideal case which should not happen .

I am passing The following Parameters :

BAPI_GOODSMVT_CREATE

Exporting

GOODSMVT_HEADER-PSTNG_DATE = SY-date

GOODSMVT_HEADER -DOC_DATE = SY-date

GOODSMVT_HEADER- REF_DOC_NO = Out bound Delivery Number

GOODSMVT_CODE- GM_CODE = '03'

Tables :

GOODSMVT_ITEM -MATERIAL = MATERIAL

GOODSMVT_ITEM -PLANT = PLANT

GOODSMVT_ITEM -STGE_LOC = LGORT

GOODSMVT_ITEM -BATCH = CHARG

GOODSMVT_ITEM -MOVE_TYPE = '601'

GOODSMVT_ITEM -STCK_TYPE = 'F'

GOODSMVT_ITEM -ENTRY_QNT = PICKING QTY

GOODSMVT_ITEM -ENTRY_UOM = BUM

GOODSMVT_ITEM -QUANTITY = DELIVERY QTY

GOODSMVT_ITEM -BASE_UOM = BUM

GOODSMVT_ITEM -NO_MORE_GR = 'X'

GOODSMVT_ITEM -DELIV_NUMB = OUT BOUND DELIVERY NUMBER

GOODSMVT_ITEM -DELIV_ITEM = ITEM NUMBER

GOODSMVT_ITEM -CUSTOMER = CUSTOMER

GOODSMVT_ITEM -MVT_IND = 'L'

GOODSMVT_ITEM -GR_RCPT = CUSTOMER

GOODSMVT_ITEM -COMP_SHIP = 01

After that i am committing through

BAPI_TRANSACTION_COMMIT

Regards

Sujit

Tags:
Not what you were looking for? View more on this topic or Ask a question