cancel
Showing results for 
Search instead for 
Did you mean: 

Function module for Stock determination -MM/PP

former_member231735
Participant
0 Kudos

I would like to know the function module that could do the stock determination in the background . I would like to use this to do the stock determination in background based on the Stock determination group (In material Master) and determine the "Special stk " indicator say "K". This could be eventually used in the IDOC that post the "Component consumption" to consignment stock in REM backflush (MFBF)

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member231735
Participant
0 Kudos

Sure..

I used the FM BF_STOCK_DETERMINATION for stock determination. The results of the same were then used in the Goodsmovements Table in BAPI_REPMANCONF1_CREATE_MTS to do the REM backflush of components with stock determination. This table got the no of lines with the respective stk values (Unrestricted/Consignment) that got posted accordingly.

Hope this helps.

former_member231735
Participant
0 Kudos

Ok This is done. Thank you

raghug
Active Contributor
0 Kudos

It would be nice if you could share how you achieved your goal rather than just saying "This is done"... that will go a long way in helping people in the future who have the same question. Also, if you are no longer soliciting answers, please click on "Actions" by your post and close this question. Thank you!

former_member231735
Participant
0 Kudos

Actually , I am using the REM BAPI (for backflush)

'BAPI_REPMANCONF1_CREATE_MTS'. which has the "Goodsmovement" table with BAPI2017_GM_ITEM_CREATE. : SPEC_STOCK-SOBKZ

I need the SPEC_STOCK-SOBKZ-Special stock indicator to have a value based on stock determination.

This value for SPEC_STOCK-SOBKZ should be determined by a Function module (Stock determination) that uses the "Stock determination grp" in material master.

Now BAPI_REPMANCONF1_CREATE_MTS posts the component to the respective stock based SPEC_STOCK-SOBKZ

So How I can CO_WB_STOCK_DETERMINATION work here?

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

For PP you can use CO_WB_STOCK_DETERMINATION. The MM function module should be called inside this one.

Regards,

Caetano