on 2015 Nov 12 8:42 PM
I'm very new to writing scripts in BPC and could really use help in understanding why I'm not able to get the script functioning. Here is what I have:
*XDIM_MEMBERSET ACCOUNT=PRODFICP
*XDIM_MEMBERSET ENTITY=00028
*XDIM_MEMBERSET TIME=2015.JAN
*XDIM_MEMBERSET CATEGORY=JANFORECAST
*XDIM_MEMBERSET DATASRC=LOCALGAAP
*LOOKUP RATES
*DIM INTRATE:R_ENTITY="GLOBAL"
*DIM INTRATE:INPUTCURRENCY=ENTITY.CURRENCY
*DIMINTRATE:R_ACCOUNT="PROD"
*DIM INTRATE:CATEGORY="JANFORECAST"
*DIM INTRATE:TIME="2015.JAN"
*ENDLOOKUP
*WHEN ACCOUNT
*IS "PRODFICP"
*REC(EXPRESSION=LOOKUP(INTRATE),ACCOUNT="PRODFICP")
*ENDWHEN
*COMMIT
I'm running using the Logic Debugger and always returns with no record to process. What this script in intending to perform is to lookup a rate and multiply that rate to the account PRODFICP. It isn't working. Any help will be greatly appreciated.
Message was edited by: Karen Langlois
Request clarification before answering.
Hi Karen,
To start with, to check which records are in scope, run the following in simulation mode in the debugger:
*WHEN *
*IS *
*REC(category=#scope)
*ENDWHEN
This displays temporary records of what's in the defined scope.
/Cecilia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karen
If you remove the WHEN condition - does it behave any different?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 7 | |
| 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.