Hi All,
We are using SAP BPC NW 10.1 classic and EPM add-in: 10.0 SP20 .NET 4
I wrote below code to move data from FORECAST version to other version (using filter condition) and it's working fine.
Here, My requirement is, I want to copy comments from the same source FORECAST to other version. i.e i want to read source and destination (to where i want to move data i.e %DST_VER%) from script region to copy comments.
How i can add read script scope and script destination range to copy comments??
*XDIM_MEMBERSET ACCOUNT = <ALL>
*XDIM_MEMBERSET AUDITTRAIL = <ALL>
*XDIM_MEMBERSET RPTCURRENCY = <ALL>
*XDIM_MEMBERSET NETITY = %ENTITY_SET%
*XDIM_MEMBERSET TIME = %TIME_SET%
*XDIM_MEMBERSET SCENARIO = FORECAST
*SELECT(%DST_VER%,"[PRIOR_FCST]",SCENARIO,"[ID]='FORECAST'")
// CLEARLING THE DESTINATION SCENARIO DATA
*WHEN SCENARIO
*IS %DST_VER%
*REC(FACTOR = 0,SCENARIO="%DST_VER%")
*ENDWHEN
*COMMIT
//MOVING DATA FROM CUR_FCST SCENARIO
*WHEN SCENARIO
*IS FORECAST
*REC(FACTOR=1,SCENARIO="%DST_VER%")
*ENDWHEN
*COMMIT
//CLEARING THE SOURCE SCENARIO DATA
*WHEN SCENARIO
*IS FORECAST
*REC(FACTOR = 0)
*ENDWHEN
*COMMIT
I have created below custom process chain to execute above code. Here, I have to select different prompts. one for data and another for comments.
How i can call script master data range (scope and destination) for comments??
PROMPT(SELECTINPUT,%SELECTION%,,,"%ENTITY_DIM%,%TIME_DIM%")
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when copy comments.",1,{"Yes, check work status settings when copy comments","No, do not check work status settings"},{"1","0"})
PROMPT(SELECTINPUT,%TARGET%,"SELECT ORG AND TIME TO COPY COMMENTS",,"%ENTITY_DIM%,%TIME_DIM%")
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,ARCHIVE_FORECAST.LGF)
TASK(/CPMB/COPY_COMMENTS,SELECTION,%SELECTION%)
TASK(/CPMB/COPY_COMMENTS,TOSELECTION,%TARGET%)
TASK(/CPMB/COPY_COMMENTS,CHECKLCK,%CHECKLCK%)
Thanks,
Naidu