cancel
Showing results for 
Search instead for 
Did you mean: 

capture live cache values for keyfigures in SNP planning book

Former Member
0 Kudos

Hi Guys,

I would like to know how we can capture values in live cache for safety stock quantity maintained in Keyfigure 'SAFTY' in SNP planning book. Is there any standard BAPI or function module available for the same. If so, please also let me know what parameters we need to pass.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Using the standard BAPI BAPI_PBSRVAPS_GETDETAIL2 you can read safety stock quantity maintained in the keyfigure SAFTY in any planning book.You have to pass the parameters to this BAPI as below.

PLANNINGBOOK = Planning book name(eg:9ASNP_SSP)

DATA_VIEW = Data View name in above PB(eg: SAFETY)

PLANNING_VERSION = 000

READ_OPTIONS = TIME_PRESELECTION_FLAG = X

PERIOD_TYPE = A

DATE_FROM = as per your requirement

DATE_TO = as per your requirement

In SELECTION parameter table pass the MATERIAL name for which you want to read the data as below.

CHARACTERISTIC_NAME = 9AMATNR

CHAR_VAL_SIGN = I

CHAR_VAL_OPTION = EQ

CHAR_VAL_LOW = Material no.(eg: 12345)

in KEY_FIGURE_SELECTION parameter table pass the Keyfigure name as 9ASAFETY

in GROUP_BY parameter table pass group by characteristics names like 9ALOCNO,9AMATNR

You will get the values from desired values from the livecache.

I hope this will help you to read the safety stock values in SAFTY KF.

Regards,

Saurabh

Former Member
0 Kudos

Hi

In our case, we copy this information in the livechace Key figure using small default macros.

Once we copied the data into livechahce Key figure we can easy extract the information via RSA3 using data source based on planning area.

Please let us know if it helps you.

Thanks

Amol

Former Member
0 Kudos

Hi Amol,

Thank you for your explanation. Actually our requirement is that we need to capture values which are maintained under safety stock(SAFTY) KEY FIGURE in SNP planning book. Could you please let me know in detail how to capture values in livecache. For this we are making use of standard 'BAPI_PBSRVAPS_GETDETAIL2' but could not able to capture the same. Could you please let me know how to extract those values via RSA3 using data source. Kindly let me know what is RSA3 and how we can make use of that to capture values .