Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Z interface to update dynamic saftey stock values in APO

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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.

0 Kudos

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