on 2016 Sep 08 7:56 PM
Hello Experts, Need your guidance to achieve below calculation in script logic: For Q1: ACCOUNT1 = (ACCOUNT2* 5%*-1)/4 For Q2: ACCOUNT1= (ACCOUNT2*5%*-1)/4 +Q1 value etc..... By writing below script, I m facing challenge is for Quater1 also, it is adding data for previous year last month which is not the requirement. It needs to add data for Q2 as Q2+Q1 , Q3 as Q3+Q2 and Q4 as Q4 as Q4+Q3 and Q1 should equal to Q1. *XDIM_MEMBERSET CAT = BUD *XDIM_MEMBERSET CURR_RPT = SEK *XDIM_MEMBERSET CURR_CODE = BAS(CURR_ALL) *XDIM_MEMBERSET PRC_B = %PRC_B_SET% *XDIM_MEMBERSET ACCOUNT_B = BAS(ACCOUNT2) *XDIM_MEMBERSET TIME = %TIME_SET%*XDIM_MEMBERSET PC_IG_B = BAS(PC_IG_ALL) *XDIM_MEMBERSET AUDIT_FB = BAS(UU3) *WHEN ACCOUNT_B *IS BAS(ACCOUNT2) *REC(FACTOR = -.01/4, ACCOUNT_B = "ACCOUNT1") *ENDWHEN *COMMIT *XDIM_MEMBERSET CAT = BUD *XDIM_MEMBERSET CURR_RPT = SEK *XDIM_MEMBERSET CURR_CODE = BAS(CURR_ALL) *XDIM_MEMBERSET PRC_B = %PRC_B_SET% *XDIM_MEMBERSET PC_IG_B = BAS(PC_IG_ALL) *XDIM_MEMBERSET ACCOUNT_B = ACCOUNT1 *XDIM_MEMBERSET TIME = TMVL(-3,%TIME_SET%),%TIME_SET% *XDIM_MEMBERSET AUDIT_FB = BAS(UU3) *WHEN_REF_DATA = MASTER_DATA *WHEN ACCOUNT_A *IS ACCOUNT1 *REC(FACTOR= 1,TIME_SET = %TIME_SET%) *ENDWHEN *COMMIT Regards, Apoorva
Request clarification before answering.
Sorry, please post your question in the readable form!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Experts, Need your guidance to achieve below calculation in script logic: For Q1: ACCOUNT1 = (ACCOUNT2* 5%*-1)/4 For Q2: ACCOUNT1= (ACCOUNT2*5%*-1)/4 +Q1 value etc..... By writing below script, I m facing challenge is for Quater1 also, it is adding data for previous year last month which is not the requirement. It needs to add data for Q2 as Q2+Q1 , Q3 as Q3+Q2 and Q4 as Q4 as Q4+Q3 and Q1 should equal to Q1. *XDIM_MEMBERSET CAT = BUD *XDIM_MEMBERSET CURR_RPT = SEK *XDIM_MEMBERSET CURR_CODE = BAS(CURR_ALL) *XDIM_MEMBERSET PRC_B = %PRC_B_SET% *XDIM_MEMBERSET ACCOUNT_B = BAS(ACCOUNT2) *XDIM_MEMBERSET TIME = %TIME_SET% *XDIM_MEMBERSET PC_IG_B = BAS(PC_IG_ALL) *XDIM_MEMBERSET AUDIT_FB = BAS(UU3) *WHEN ACCOUNT_B *IS BAS(ACCOUNT2) *REC(FACTOR = -.01/4, ACCOUNT_B = "ACCOUNT1") *ENDWHEN *COMMIT *XDIM_MEMBERSET CAT = BUD *XDIM_MEMBERSET CURR_RPT = SEK *XDIM_MEMBERSET CURR_CODE = BAS(CURR_ALL) *XDIM_MEMBERSET PRC_B = %PRC_B_SET% *XDIM_MEMBERSET PC_IG_B = BAS(PC_IG_ALL) *XDIM_MEMBERSET ACCOUNT_B = ACCOUNT1 *XDIM_MEMBERSET TIME = TMVL(-3,%TIME_SET%),%TIME_SET% *XDIM_MEMBERSET AUDIT_FB = BAS(UU3) *WHEN_REF_DATA = MASTER_DATA *WHEN ACCOUNT_A *IS ACCOUNT1 *REC(FACTOR= 1,TIME_SET = %TIME_SET%) *ENDWHEN *COMMIT Regards, Apoorva
Hi Apoorva,
Its just a matter of copying your content in Text or Word format and then copy paste again with correct formatting. Not too much to ask for. Otherwise how can people help you....
Here is your query in readable format:
For Q1: ACCOUNT1 = (ACCOUNT2* 5%*-1)/4
For Q2: ACCOUNT1= (ACCOUNT2*5%*-1)/4 +Q1 value etc.....
By writing below script, I m facing challenge is for Quater1 also, it is adding data for previous year last month which is not the requirement. It needs to add data for Q2 as Q2+Q1 , Q3 as Q3+Q2 and Q4 as Q4 as Q4+Q3 and Q1 should equal to Q1.
*XDIM_MEMBERSET CAT = BUD
*XDIM_MEMBERSET CURR_RPT = SEK
*XDIM_MEMBERSET CURR_CODE = BAS(CURR_ALL)
*XDIM_MEMBERSET PRC_B = %PRC_B_SET%
*XDIM_MEMBERSET ACCOUNT_B = BAS(ACCOUNT2)
*XDIM_MEMBERSET TIME = %TIME_SET%
*XDIM_MEMBERSET PC_IG_B = BAS(PC_IG_ALL)
*XDIM_MEMBERSET AUDIT_FB = BAS(UU3)
*WHEN ACCOUNT_B
*IS BAS(ACCOUNT2)
*REC(FACTOR = -.01/4, ACCOUNT_B = "ACCOUNT1")
*ENDWHEN
*COMMIT
*XDIM_MEMBERSET CAT = BUD
*XDIM_MEMBERSET CURR_RPT = SEK
*XDIM_MEMBERSET CURR_CODE = BAS(CURR_ALL)
*XDIM_MEMBERSET PRC_B = %PRC_B_SET%
*XDIM_MEMBERSET PC_IG_B = BAS(PC_IG_ALL)
*XDIM_MEMBERSET ACCOUNT_B = ACCOUNT1
*XDIM_MEMBERSET TIME = TMVL(-3,%TIME_SET%),%TIME_SET%
*XDIM_MEMBERSET AUDIT_FB = BAS(UU3)
*WHEN_REF_DATA = MASTER_DATA
*WHEN ACCOUNT_A
*IS ACCOUNT1
*REC(FACTOR= 1,TIME_SET = %TIME_SET%)
*ENDWHEN
*COMMIT
Regards,
JP
Hello,
Q1, Q2 are Quater1 and Quater2 of time dimension.
5% is fixed.
%TIME_SET% will be any following 4 months of a year: mar, june,sep or dec. on which data will be inputted.
Model is YTD.
BPC COmponents details are:
SAP BPC NW 10.0
SAP_BW with Release level as 730 and SP 11.
CPMBPC with Release level as 800 and SP 12.
The scenario is :
In the model, for example user will input the data for Account2 in period 2016.03, 2016.06, 2016.09 and 2016.12.
Now the requirement is, for Account1 the calculation should be as below:
In Q1: (A2*-5%)/4
In Q2: (A2*-5%)/4 +Q1
InQ3: (A2*-5%)/4 +Q2
In Q4: (A2*-5%)/4 +Q3
Regards,
Apoorva
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 10 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.