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

Script logic calculating wrongly

$
0
0

Hello All,

 

I have created script logic which is giving me wrong value. Actually it is giving me twice the value which is supposed to arrive.

 

Below mentioned is the Script Logic.

 

*XDIM_MEMBERSET SP_Category = SP_Actual

*XDIM_MEMBERSET SP_Account = SP_Amount

*XDIM_ADDMEMBERSET SP_Account = SP_Quantity

*XDIM_ADDMEMBERSET SP_Account = SP_Price

*XDIM_MEMBERSET SP_Entity = SP_ABC

*XDIM_MEMBERSET SP_Rate = SP_INR

*XDIM_MEMBERSET SP_SKU = BAS(S_OP_XYZ)

*XDIM_ADDMEMBERSET SP_SKU = BAS(S_OP_ABC)

*FOR %MNTH% = 01,02,03,04,05,06,07,08,09,10,11,12

*XDIM_MEMBERSET SP_Time = 2012.%MNTH%

*XDIM_ADDMEMBERSET SP_Time = 2013.%MNTH%

*XDIM_ADDMEMBERSET SP_Time = 2014.%MNTH%

*WHEN SP_Account

*IS SP_Quantity

*WHEN SP_Time

*IS*

*REC(EXPRESSION=((((([SP_Category].[SP_Actual],[SP_Time].[2013.%MNTH%])-([SP_Category].[SP_Actual],[SP_Time].[2012.%MNTH%]))/([SP_Category].[SP_Actual],[SP_Time].[2012.%MNTH%]))+1)*([SP_Category].[SP_Actual],[SP_Time].[2013.%MNTH%])),SP_CATEGORY=SP_Planning,SP_TIME=2014.%MNTH%)

*ENDWHEN

*ENDWHEN

*NEXT

*COMMIT

 

Calculation

=(((200-100)/100)+1)*200

 

Actual 2012.01 = 100

Actual 2013.01 = 200

Planning 2014.01 = 400 (But I am getting value as 800)

 

Regards

Bhagyesh Ravange


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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