Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8556

Re: BADI Aggregation Error

$
0
0

Hello Vadim,

 

 

We had same problem like this .

 

So in order to make it aggregate at quarter and year level, we have a abap programe UJA_MAINTAIN_MEASURE_FORMULA      which needs to be customized .         

 

This aggregates values at quarter and year level for balance sheet accounts.

 

 

But when we modified and tested,  we didn't get successful results

 

Below are the customized codes for quarter and year :

 

 

Quarter

 

'IIF([%PLL_ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM(PERIODSTODATE([%TIME%].[%TIMEQUARTERLEVEL%], [%TIME%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA]),IIF([%PLL_ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME%].[%TIMEQUARTERLEVEL%], [%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%PLL_ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",SUM(PERIODSTODATE([%TIME%].[%TIMEQUARTERLEVEL%], [%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%PLL_ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",SUM(PERIODSTODATE([%TIME%].[%TIMEQUARTERLEVEL%], [%TIME%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA]),-[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3

 

Year

 

'IIF([%PLL_ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%],[%TIME%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA]),IIF([%PLL_ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%],[%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%PLL_ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%],[%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%PLL_ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%],[%TIME%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA]),-[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3

 

Is above two codes correct?

 

Is there anything else we need to do apart from changing the code?

 

 

 

Regards,

SAP BPC


Viewing all articles
Browse latest Browse all 8556

Trending Articles



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