cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for reservation with 261 and 531

Former Member
0 Kudos

Hello,

When I create an Order with itens to be consumed via 261 and itens co-product via movement 531, the same reservation is created.

In MIGO if a place the reservation number I'm able to confirm both movements (261 and 531).

Via BAPI I can not do this the same way, for BAPI_GOODSMVT_CREATE usinf WA_GOODSMVT_CODE = 03 (transaction MB1A) I can not do both, is there any way via BAPI that I can do this by submiting only one time the BAPI, or I really have to do it twice.

Thanks,

BMO

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It's done separate in the BAPI

Former Member
0 Kudos

But I've in RESB my reservation with the Order Number, what I can't do is to have both movements in the same document if this is done via BAPI.

former_member189817
Active Contributor
0 Kudos

Hi,

If u pass the order number in resb table, you will get the list of line items. In this we will have both 261 and 531 movement types also. Now take all the material, quantity, storage location, movement types from resb table and populate in the BAPI internal table GOODSMVT_ITEM. If you do like this one material document will be generated in which you will find both 261 and 531 movement types in the line items. i.e both will happen in this one call of BAPI_GOODSMVT_CREATE.

we did the same in 'BAPI_PRODORDCONF_GET_TT' it is working fine.

former_member189817
Active Contributor
0 Kudos

Hi

Pass order number in RESB and get all 261 and 531 movement type materials and qty to BAPI * BAPI_GOODSMVT_CREATE *

so that all 261 and 531 will be posted in one document.

Former Member
0 Kudos

use thsi Bapi

BAPI_GOODSMVT_CREATE & BAPI_TRANSACTION_COMMIT

Remamer both Bapi need to work one ofter other

SE37

Function module AS BAPI_GOODSMVT_CREATE

FROM Top Menu Function module > test > test sequence > Type BAPI_TRANSACTION_COMMIT

Check now it will work