04-01-2011 7:31 AM
Hi All,
I have a requirement in APO for creating an interface to update dynamic safty stock values.
I have no clue how this can be achived.
The transaction in picture is /N/SAPAPO/SDP94.
I feel BDC wont help me, because the sequence of Planning book / Data view
can be different for each material and location combination.
Please suggest how it can be achived.
Are there any function modules which can be used to achieve this requirement ?
Thanks & Regards,
Rahul
04-01-2011 8:24 AM
Hi!
I did not do this myself
but:
Look at FM /SAPAPO/HEU_TEST_STOCK_CREATE
it use '/SAPAPO/DM_STOCK_PUT_OLD' to create stock
Try to create FM ( heuristic) based on /SAPAPO/HEU_TEST_STOCK_CREATE
and change
ls_stock-stocktype = gc_om_stock_unrestricted.
to
ls_stock-stocktype = gc_om_safety_stock .
in code.
This may be helpful for you
Thank you.
04-01-2011 10:38 AM
Hi Andrei,
Thanks for your interest.
But what I required is a way by which I can update planning book.
Transaction is /N/SAPAPO/SDP94.
Now, what I feel is that, we have 2 options to do that.
1. Through BDC.
2. By using a FM or a BAPI to do the upload.
If we get a BAPI FM to perform our task, then I feel, it will be pretty straight forward.
But if we try it through BDC, then we will have to do a recording of transaction.
And the problem in recording will be,
How do we locate our required planning book / Data view ?
These problem will occur as the sequence of planning book / Data view will keep on changing
for each combination of material and location. we need to resolve this first.
I hope it provides a better picture.
Thanks & Regards,
Rahul