cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_GOODSMVT_CREATE - Error while posting a Material Document

Former Member
0 Kudos

Hi Experts,

We are trying to do the material document posting using the transaction "MB1C" manually in SAP. The movement type which we are using for the same is "261". While doing this is, it is asking for a work order number and the Recipient number. We gave the Recipient Number as "123". Material document is created successfully.

Again using the same transaction "MB1C" , we are trying to do the reversal of the material document which we posted previously against another work order number for the same material and the serial number if the material is serialised and as well as for the non serialised material.

Both this case, in SAP the material document is created succesfully. This is done manually in SAP.

When we are trying to create the material document using the BAPI 'BAPI_GOODSMVT_CREATE', for the above scenario, posting the material document '261' movement type for one work order and the reversal for another work order '262' movement type for the same material (whether it is a serialised or non serialised) we are getting the eror as "RE Qty. transferred exceeded 1 PC: 50,003,695 C001 USED 1200".

We are passing the following at the item level. MATERIAL Number, Plant, STGE_LOC, ENTRY_QNT, MOVE_TYPE, BATCH, ORDERID, RESERV_NO, RES_ITEM, ACTIVITY, XSTOB for reversal.

We are passing the GM_CODE as '05'.

Please let us know what needs to be changed inorder to create the material document properly without getting errors.

Thanks in Advance,

Mohan.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

We fixed this issue by removing the reservation number of the material when we are trying to post the material document with the movement type "262".

The reason for removing the reservation number for the movement type "262"

The reservation number is getting created against a work order when we trying to create the work order in IW32. This reservation number is used for validating the stock while we are trying to consume and doing the reversal.

SAP is allowing us to reverse the consumed quantities only based on the reservartion number and hence we got this error.

To fix this error, if we are trying to reverse a particular material against a different work order for which it has been consumed previiously, remove the reservation number and item number and try posting the material document.

Hope this solution will solve your issue:)

Thanks and Regards,

Mohan.