Skip to Content
0

Function module for Stock determination -MM/PP

Feb 20, 2017 at 02:00 PM

122

avatar image

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)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Caetano Almeida
Feb 20, 2017 at 03:05 PM
0

Hello

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

Regards,

Caetano

Share
10 |10000 characters needed characters left characters exceeded
G SAP Feb 20, 2017 at 06:12 PM
0

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?

Share
10 |10000 characters needed characters left characters exceeded
G SAP Mar 02, 2017 at 05:28 PM
0

Ok This is done. Thank you

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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!

0
G SAP Mar 03, 2017 at 03:26 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded