cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function module MB_CREATE_GOODS_MOVEMENT cannot be executed

shaji_chandran
Participant
0 Kudos
5,562

Hello Friends,

I am invoking following 2 BAPI's from MII one after another.

1) BAPI_GOODSMVT_CREATE

2) BAPI_REPMANCONF_CREATE_MTS

First BAPI is getting executed successfully and it creates the Mat document number as well. But while calling second BAPI I am getting an error as "Function module MB_CREATE_GOODS_MOVEMENT cannot be executed".

Can anyone help me on this? I think both BAPI should execute in same transaction session to complete the transaction successfully at SAP.

MII Version 15.1 SP5

Thanks

Shaji Chandran

View Entire Topic
former_member185280
Active Contributor

Most of the time I have seen BAPI_GOODSMVT_GETDETAIL called in a loop until it gets a positive response for the mat doc before moving on to the next step. In terms of a rollback of the movement if the conf fails I think you would have to code the logic to do the reversal of the goods movement.

Typically for these kinds of situations I recommend moving things back into SAP by either creating a custom rfc to wrap the logic or enhancing a standard bapi if possible.