I developed a custom process chain with the following code:
PROMPT(SELECTINPUT,,,,"%ACCOUNT_DIM%,%ENTITY_DIM%,%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%") PROMPT(TEXT,%SCRIPT_FILE%,"Choose Script Logic File",) PROMPT(TEXT,%PERCT%,"Input Percentage",) INFO(%EQU%,=) INFO(%TAB%,;) TASK(ZBPC_RUN_LOGIC,TAB,%TAB%) TASK(ZBPC_RUN_LOGIC,EQU,%EQU%) TASK(ZBPC_RUN_LOGIC,SUSER,%USER%) TASK(ZBPC_RUN_LOGIC,SAPPSET,%APPSET%) TASK(ZBPC_RUN_LOGIC,SAPP,%APP%) TASK(ZBPC_RUN_LOGIC,SELECTION,%SELECTION%) TASK(ZBPC_RUN_LOGIC,LOGICFILENAME,%SCRIPT_FILE%) TASK(ZBPC_RUN_LOGIC,REPLACEPARAM,PERCT%EQU%%PERCT%)
After this, I tried to execute a script logic with 2 accounts - UPSIDE_FACTOR & MY_ACCOUNT - with the following script logic code:
*WHEN ACCOUNT *IS UPSIDE_FACTOR *REC(FACTOR=$PERCT$, ACCOUNT = MY_ACCOUNT) *ENDWHEN *COMMIT
I am working with the following sample data:
During the package execution, i specified the factor PERCT (DM variable) as 2.0 (to double the values). I got an error saying that the package was executed successfully, but the formula log gives the values to be written back as 0.0.
Any idea why this is happening? All your help is greatly appreciated.