2012 Apr 05 7:38 AM
Dear All Expert,
Can we cancel material document that post by Mvt. 311 ref Reservation document by using BAPI_GOODSMVT_CREATE in Mvt. 312 ref same reservation document? (I have to use only this FM)
Thank you for your suggestion and sorry for my English.
Regards,
Songphon.
2012 Apr 05 6:54 PM
Hi Songphon,
I think you can. I think you need to use GM_Code 06: Reversal of goods movements as transaction/event code.
BAPI_GOODSMVT_CREATE documentation says:
For 6 GM_Code 06: Reversal of goods movements
You can use the Cancel method to reverse goods movements. But you may also want to cancel a goods movement without referring to a material document (see the Cancel method).
If you want to work without referring to the document, you have to populate the BAPI_GM_ITEM_CREATE-XSTOB field in the interface (import table GOODSMVT_ITEM). In this case, the system converts the movement type assigned in the interface to the reversal movement type. Alternatively, you can set the reversal movement type in the interface. In this case, the BAPI_GM_ITEM_CREATE_XSTOB field must be transferred blank.
If you want to cancel a goods movement with reference to a reservation (without using the Cancel method) you can only transfer the BAPI_GM_ITEM_CREATE_XSTOB field if it is populated. Movement types are not transferred when you post with reference to a reservation, as the movement type is contained in the reservation item.
2012 Apr 05 6:54 PM
Hi Songphon,
I think you can. I think you need to use GM_Code 06: Reversal of goods movements as transaction/event code.
BAPI_GOODSMVT_CREATE documentation says:
For 6 GM_Code 06: Reversal of goods movements
You can use the Cancel method to reverse goods movements. But you may also want to cancel a goods movement without referring to a material document (see the Cancel method).
If you want to work without referring to the document, you have to populate the BAPI_GM_ITEM_CREATE-XSTOB field in the interface (import table GOODSMVT_ITEM). In this case, the system converts the movement type assigned in the interface to the reversal movement type. Alternatively, you can set the reversal movement type in the interface. In this case, the BAPI_GM_ITEM_CREATE_XSTOB field must be transferred blank.
If you want to cancel a goods movement with reference to a reservation (without using the Cancel method) you can only transfer the BAPI_GM_ITEM_CREATE_XSTOB field if it is populated. Movement types are not transferred when you post with reference to a reservation, as the movement type is contained in the reservation item.
2012 Apr 10 7:08 AM