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

Limitations with script logic BPC 10 NW

$
0
0

Dear All,


While writing script logic we face couple of difficulties which are as below 

 

1)While using *REC it with  IIF statement in it,we are getting an error

 

Sample Statement:

FOR %Time_for%=2012.01,2012.02,2012.03,2012.04

*WHEN TIME

*IS %Time_for%

*REC(EXPRESSION=(IIF([ACCOUNT].[SR2000],[TIME].[%Time_for%])>0,([ACCOUNT].[DUMMY],[TIME].[%Time_for%]),(([ACCOUNT].[DUMMY],[TIME].[TMVL(-1,%Time_for%)])-([ACCOUNT].[RETAILSALES],[TIME].[%Time_for%]))),ACCOUNT=TOTAL_AVAIL,TIME=%Time_for%)

*ENDWHEN

*NEXT

*COMMIT


Error: Unknown dimension name in keyword “2$”

 

do we have any alternative way to check the values like, if >0 store in Dummy acct or else if <0,do some calcu and store in another Acct.?

 

2) Cannot use GET function do we have any alternative for this?

 

3) Cannot use stand alone IIF statement in WHEN and ENDWHEN?

 

4) When storing the values back using IIF statement….we cannot give cross dimension like ACCT+TIME to store the value.How to achieve this ?

Ex:

([ACCOUNT]. [#TOTAL_AVAIL], [TIME].[%Time_for%])=IIF((([ACCOUNT].[DUMMY],[TIME].[%Time_for%])+([ACCOUNT].[RETAILSALES],[TIME].[%Time_for%])-([ACCOUNT].[DUMMY],[TIME].[TMVL(1,%Time_for%)]))>0,([ACCOUNT].[DUMMY],[TIME].[%Time_for%]),(([ACCOUNT].[DUMMY],[TIME].[TMVL(1,%Time_for%)])-([ACCOUNT].[RETAILSALES],[TIME].[%Time_for%])))

 

5)Cannot use temporary memory variables (ACCT=#TEMP) for calculation purpose,as shown in How to use BPC scripting logic(V1-2006) page 58,Do we have any other alternative for memory variables.?

 

6)Is it possible to check a value using WHEN statement not the member of the Dimension.?

 

7) Do we have any examples/how to use  for MDX statements  ?

 


Thanks

Aamer


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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