cancel
Showing results for 
Search instead for 
Did you mean: 

Z interface to update dynamic safty stock value

Former Member
0 Kudos

Hi All,

I have a requirement 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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rahul,

Could you please specify your question in more detail? As per my understanding, You want to update the Safety Stock value in product -location master (/SAPAPO/MAT1)>LotSize>Stock Data.

If it is yes,to update that field you can use the standard BAPI for product master change BAPI_PRDSRVAPS_SAVEMULTI2.

Please correct me if i am wrong.

Regards,

Saurabh

Former Member
0 Kudos

Hi Saurabh,

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

Former Member
0 Kudos

Hi,

I think you want to update the safety stock in the planning book keyfigure? for that first you need to activate som BAdi for the planning book where you can capture the details about data view and current planning book,after that to update the safety stock in keyfigure, you can use the BAPI : BAPI_PBSRVAPS_CHANGEKEYFIGVAL2 - Change Key Figure Values(for safety stock standard keyfigure name is SAFETY I guess please check this before updating the keyfigure values.)

Regards,

Saurabh

Former Member
0 Kudos

Hi Saurabh,

Thanks a lot for the help.

This is exactly what I was looking for.

Can you please elaborate on the BADI thing?

How and what needs to be done?

Thanks & Regards,

Rahul A

Former Member
0 Kudos

Try to use the /SAPAPO/SDP_INTERACT BAdi to capture the planning book details and update the keyfigure for safety stock using the BAPI given in above threads..

I hope now everything is clear to you.

Regards,

Saurabh

Former Member
0 Kudos

Hi Saurabh,

Can we have a piece of code for the same,

so that we can try to implement it for our requirement.

Thanks a lot in advance.

Rahul A