Skip to Content
0
Former Member
Aug 29, 2011 at 10:17 AM

How to pass custom movement type to BAPI - BAPI_GOODSMVT_CREATE

759 Views

Hi Experts,

I would like to know how to pass the customized movement type "Z62" to the BAPI - BAPI_GOODSMVT_CREATE to create a material document. We want to pass this movement type ("Z62") in the table parameter GOODSMVT_ITEM.

This is the custom build movement type in SAP to reverse the goods which are consumed to the blocked status. Once we use this movement type for reversal, the consumed materials are moved to blocked status which we donu2019t want to use it again.

When we try to create the material document manually in SAP, we are able to create the material document successfully. If we pass the movement type as "Z62" and if I set the flag XSTOB to true, this BAPI is converting the movement type to "262" instead of the movement type "Z62" and creating the material document for the movement type as "262".

Please let us know how to pass the customized movement type to the BAPI - BAPI_GOODSMVT_CREATE to create the material document for the same movement type.

Please mention the fields in the structure GOODSMVT_ITEM that needs to be set for creating the material document with the same movement type which we are passing.

Thanks in Advance,

Mohan.