‎2009 Sep 08 12:53 PM
Hello ,
We need to do a GR for subcontracting orders , when i read the documentation for the fm MB_CREATE_GOODS_MOVEMENT , it says that subcontracting orders are not supported .
Searching the forum i found that we can use the fm BAPI_GOODSMVT_CREATE , but i am not sure how to use the fm , what about the components will the BAPI find it or do we need to pass the components .
So please suggest it there is some way we can use the FM MB_CREATE_GOODS_MOVEMENT to create GR for subcontracting orders as in i think the BAPI calls the same FM and how to handle the components.
Regards,
Arun
‎2009 Sep 08 1:41 PM
Hi,
Internally, within BAPI_GOODSMVT_CREATE, again it calls the function module MB_CREATE_GOODS_MOVEMENT.
for the TABLES field IMSEG, we need to pass only the parent material and its quantity.
Internally using the function module MD_KOMPONENTENVORSCHLAG_WE, it will calculate the components from the table RESB if we are creating with respect to any purchase or else take the reference from STKO/StPO i.e. CS03 transaction ration for the bom component.
‎2009 Sep 08 1:46 PM
Hi Arun,
Use this link.
https://wiki.sdn.sap.com/wiki/display/ABAP/BAPI_GOODSMVT_CREATEAndBAPI_GOODSMVT_Cancel
I hope this is useful for you.
Regards,
Vijay