Symptom
Movement type 262 is replaced by 261 when using BAPI BAPI_GOODSMVT_CREATE.
Environment
Materials Management (MM)
- SAP R/3
- SAP R/3 Enterprise 4.7
- SAP ERP Core Component
- SAP ERP
- SAP enhancement package for SAP ERP
- SAP enhancement package for SAP ERP, version for SAP HANA
Reproducing the Issue
- Post a reversal movement 262 against an Order with the BAPI BAPI_GOODSMVT_CREATE.
- Specify the two fields RESERV_NO and RES_ITEM in the table GOODSMVT_ITEM as mentioned in the KBA 1944210.
- In the resulting material document you see that the system has replaced the movement 262 by the 261.
Cause
When the system reads the reservation, it takes the movement type from it.
In this way the system replaces the movement type 262 that we specify in the BAPI with the movement type 261 in the reservation item.
Resolution
Specify the data as follows in the Table GOODSMVT_ITEM:
MOVE_TYPE = 261
XSTOB = X
The field XSTOB = X indicates that this is a reversal movement. Then the system will post the reversal movement 262 with such a setting.