Hi Experts,
We are looking into BPC 11.
The Requirement is as follows,
In row Axis would expand based on property.

To meet the above requirement i write a logic as followes,
*XDIM_MEMBERSET ACCOUNT=GL_PROD
*XDIM_MEMBERSET CATEGORY = ACTUAL
*SELECT (%TIME% , "[CURRENT_MONTH]",CATEGORY,"[ID]='PLAN' ")
*XDIM_MEMBERSET TIME=%TIME%
*XDIM_MEMBERSET SCENARIO = ACTUAL
*SELECT(%PRODUCTS%,"[ID]",PRODUCT,"[PL]='Y'")
*XDIM_MEMBERSET PRODUCT = %PRODUCTS%
*WHEN PRODUCT
*IS *
*FOR %ALL_PROD% = %PRODUCTS%
*REC(EXPRESSION=%VALUE%/%ALL_PROD%,ACCOUNT=STAT_PROD,CATEGORY=PLAN)
*NEXT
*ENDWHEN
When i run the above logic the package was failed.
Kindly suggest me.
Regards,
Uma
Request clarification before answering.
Sorry, but I do not understand you logic at all! The script provided is incorrect - missing NEXT after FOR, please be accurate!
Second: about FOR/NEXT!
Let's assume the code with NEXT is:
*WHEN ACCOUNT
*IS GL_PROD
*FOR %PROD% = %PRODUCTS%
*REC(EXPRESSION=%VALUE%,ACCOUNT=STAT_PROD,PRODUCT=%PROD%)
*NEXT //missing NEXT!
*ENDWHENThis code will result in:
*WHEN ACCOUNT
*IS GL_PROD
*REC(EXPRESSION=%VALUE%,ACCOUNT=STAT_PROD,PRODUCT=TM)
*REC(EXPRESSION=%VALUE%,ACCOUNT=STAT_PROD,PRODUCT=DH)
*REC(EXPRESSION=%VALUE%,ACCOUNT=STAT_PROD,PRODUCT=LH)
*REC(EXPRESSION=%VALUE%,ACCOUNT=STAT_PROD,PRODUCT=TS)
*REC(EXPRESSION=%VALUE%,ACCOUNT=STAT_PROD,PRODUCT=LGT)
*ENDWHENTotal will be calculated for each product - as a result a lot of useless calculations will be done and the code will be very slow in production environments! This is an example how NOT to write script logic!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 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.