hello,
I'm using a prompt of type "COPYMOVE" or "COPYMOVEINPUT". In this type of prompt, there are 2 columns of dimension members list, one for defining the "source zone" and one for defining the "target zone" of logics.
The left colum of the prompt (for source zone) feeds the variables %DIMENSION_SET% : %ACCOUNT_SET%, %ENTITY_SET%, %CATEGORY_SET%, etc...and these variables can be used in the logic scripts in *XDIM_MEMBERSET instructions for example.
The right colum of the prompt feeds the variables %DIMENSION_TO_SET% : %ACCOUNT_TO_SET%, %ENTITY_TO_SET%, %CATEGORY_TO_SET%, etc...and I don't know how to SIMPLY use these variables in the logic scripts.
I've found a tricky way to do that but I meet 2 problems :
- it is complicated
- the multi-info instruction (BEGININFO/ENDINFO) seems to be bugged as blank lines are added all the time in the code and sometimes I have to wait for minutes when I try to modifiy the package code through BPC for excel eData/modify package menu.
So the question is how to SIMPLY get the %DIMENSION_TO_SET% variables into logic scripts and use them ? Thanks, R.
Here is the tricky package code I use at this time (I build one function for each %DIMENSION_TO_SET% variable and I pass these functions to the logic) :
PROMPT(COPYMOVE,,,,"ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
TASK(Execute formulas,USER,WS-WW\PlauchuR)
TASK(Execute formulas,APPSET,US)
TASK(Execute formulas,APP,SV)
TASK(Execute formulas,SELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\FROM_1561_.TMP)
TASK(Execute formulas,TOSELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\TO_1561_.TMP)
BEGININFO(%FSS%)
*FUNCTION TARGETACCDETAIL=%ACCDETAIL_TO_SET%
*FUNCTION TARGETACCOUNT=%ACCOUNT_TO_SET%
*FUNCTION TARGETCATEGORY=%CATEGORY_TO_SET%
*FUNCTION TARGETDATASRC=%DATASRC_TO_SET%
*FUNCTION TARGETENTITY=%ENTITY_TO_SET%
*FUNCTION TARGETTIME=%TIME_TO_SET%
*FUNCTION TARGETYEARS=%YEARS_TO_SET%
ENDINFO
TASK(Execute formulas,FORMULASCRIPT,%FSS%)
TASK(Execute formulas,LOGICFILE,D:\BPC\Data\WebFolders\US\SV
..\AdminApp\SV\_TEST.Lgf)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
Edited by: ALEXANDRE BEDIER on Jun 16, 2010 3:15 PM