Application Development and Automation 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: 
Read only

Cancellation Transfer posting ref reservation using BAPI

Former Member
0 Likes
1,350

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.

1 ACCEPTED SOLUTION
Read only

TuncayKaraca
Active Contributor
865

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.

2 REPLIES 2
Read only

TuncayKaraca
Active Contributor
866

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.

Read only

Former Member
0 Likes
865

Thank you very much,Tuncay Karaca