Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

script logic for rolling forecast

$
0
0

Hi All,

 

 

we are doing 6 mont rolling forecast from current year as below

 

06.2013<-----01.2014--->06.2014

 

we are using BPC 10 NW

 

requirement is Rolling forecast for each month has to be the average of the preceding six months

 

I wrote the logic for the above requirement as below

 

Dimensions used here are ( CATEGORY_R,  ACCOUNT_R,  ENTITY_R,   RPTCURRENCY_R,   TIME_R)

 

1.Sript name : Rolling_forecast

 

//first month
*XDIM_MEMBERSET CATEGORY_R = FORECAST
*XDIM_MEMBERSET ENTITY_R =%ENTITY_R_SET%
*XDIM_MEMBERSET RPTCURRENCY_R=LC
*XDIM_MEMBERSET TIME_R= %TIME_R_SET%
*SELECT(%ACCTSET%,"ID",ACCOUNT_R, "IS_ACCT_FC='Y'")

*FOR %ACCT%= %ACCTSET%

 

[ACCOUNT_R].[#%ACCT%]=1/6*(([ACCOUNT_R].[%ACCT%],[CATEGORY].[ACTUAL],[TIME_R].[TMVL(-1,%TIME_R_SET%)])+([ACCOUNT_R].[%ACCT%],[CATEGORY].[ACTUAL],[TIME_R].[TMVL(-2,%TIME_R_SET%)])+([ACCOUNT_R].[%ACCT%],[CATEGORY].[ACTUAL],[TIME_R].[TMVL(-3,%TIME_R_SET%)])+([ACCOUNT_R].[%ACCT%],[CATEGORY].[ACTUAL],[TIME_R].[TMVL(-4,%TIME_R_SET%)])+([ACCOUNT_R].[%ACCT%],[CATEGORY].[ACTUAL],[TIME_R].[TMVL(-5,%TIME_R_SET%)])+([ACCOUNT_R].[%ACCT%],[CATEGORY].[ACTUAL],[TIME_R].[TMVL(-6,%TIME_R_SET%)]))

 


*NEXT
*COMMIT

 

.........

 

I have appled the same logic for remain 5 periods.

 

then i put logic in default logic and refreshed input form but forecasting values are not calculated

 

 

2. second requirement is while executing the package for the same, input fields like time and entity  need to appears selection inputs

 

how i can maintain in dynamic script

 

 

Thanks in advance

 

 

Ravi


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>