Hi Experts,
System Details:
SCM 5.0
SP Pack: 13
SNP PA1- No Time series Key figures, only order series
SNP PA3: With time series KF, which also included dynamic safety stock time series KFs
We have created custom macro ZGSCM_SAFETY_STOCK copy
of /SAPAPO/SAFETY_CALC where we used BAPI- BAPI_PBSRVAPS_GETDETAIL2 to
get the dynamic safety stock values from PA3(Planning area3-Planning book3) to PA1(Planning area1-Planning book1). We are getting two issues while doing this as below:
1) Issue we are facing is that when it goes to PA3, it actually save
PA3 planning book for that user as a active planning book and return
back with PA3-planning book. So to avoid this, we call same BAPI again
where we are just calling PA1 planning book without any selection and It works fine and returns
the safety stock values correctly. But now when we load multiple items and
doing the drill down then we are getting an error message saying:
Error reading planning objects (No SNP master data table found)
Error reading data - Planning book cannot be processed further
Do we have any other way to set the active session for user after BAPI call with in the program?
2) Also it always call default macros when BAPI calls which we don't
want, Is there any way we can avoid calling default macros while calling BAPI-BAPI_PBSRVAPS_GETDETAIL2
Regards,
Hitesh