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

GR for Subcontracting Orders

Former Member
0 Likes
518

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

2 REPLIES 2
Read only

Former Member
0 Likes
412

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.

Read only

Former Member
0 Likes
412

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