on 2015 Aug 26 2:25 PM
Hi Experts.
I have written a default script logic. I am loading data from flat file and executing script logic for the load. this script logic should consider account type and then create record in database. But it is not behaving that way.
flat file record:
account time category amount
A100 2015.01 ACTUAL 100
dimension : Account
account acct_type
A100 EXP
A200 INC
script logic:
*when account
*is A100
*rec(factor = 1, account = A200)
*endwhen
this script is generating record 100 instead of -100 in database. but script works correctly for input template.
Please help.
regards,
Sonali
Request clarification before answering.
Hi Sonali,
For sign logic please read my article:
Section: "SIGN and ACCTYPE in EXPRESSION calculations" at the end - see comments about DM package.
In your sample for DM package:
100 EXP will be copied to 100 INC without sign change.
On the report 100 INC will be shown as -100 due to measure formula.
Result - you can't use the same script for data load with EXP->INC accounts
Vadim
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 | |
| 6 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 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.