on 2018 Jun 04 12:08 PM
Dear experts,
we are currently facing a strange issue in our SAP BPC 10.1 NW system. We got several custom DM packages which all include a REPLACEPARAM statement for updating the script logic behind. These DM packages run all well, but, and this is the strange thing, only once. If we execute them a second time, we get the error message attached. The BW transaction ST22 did not receive any error, but the SLG1 shows the following message:

Following the instructions in the message (logoff and logon) does not solve the problem. Deleting meta data cache neither. Any research did not help.
Does anyone of you guys know, how to solve this issue? We are running on BPC 10.1 SP16 and SAP BW SP18.
Thank you in advance,
Karsten
Request clarification before answering.
"Version 10.0 SP23 .NET 4, Build 9256" - very old!
Try something recent!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Absolutely strange! Never have any issues with REPLACEPARAM!
Try very simple test:
Create new DM package based on chain /CPMB/DEFAULT_FORMULAS
PROMPT(TEXT,%CATMEMBER%,"Enter CATEGORY",,)
INFO(%EQU%,=)
INFO(%TAB%,;)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,TAB,%TAB%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,REPLACEPARAM,CATMEMBER%EQU%%CATMEMBER%)
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,LOGICFILENAME,TEST.LGF)
$CATMEMBER$ variable will be passed using REPLACEPARAM
with the script like:
*XDIM_MEMBERSET CATEGORY=$CATMEMBER$ //use your name for category dimension
// Add extra scoping for other dimensions to narrow down the scope
*WHEN CATEGORY //use your name for category dimension
*IS *
*REC(EXPRESSION=%VALUE%) // no changes
*ENDWHEN
And post results!
It's the same we talked about in another thread (regarding time dependent hierarchies and eliminations):
PROMPT(SELECT,%SELECTION%,,"Please make your selections ...","%ENTITY_DIM%,%CATEGORY_DIM%,%TIME_DIM%",0)
INFO(%EQU%,=)
INFO(%TAB%,;)
TASK(/CPMB/IC_ELIMINATION_LOGIC,TAB,%TAB%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,EQU,%EQU%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,REPLACEPARAM,KD%EQU%%SELECTION_KEYDATE%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,SUSER,%USER%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,SAPP,%APP%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,LOGICFILENAME,ICELIM.LGF)
And in the script logic:
*RUN_PROGRAM US_ELIM
CATEGORY = %CATEGORY_SET%
CURRENCY = EUR,CHF
TID_RA = %TIME_SET%
OTHER = [PRCTR=%PRCTR_SET%]
KEYDATE = $KD$
*ENDRUN_PROGRAM
Thanks, Karsten
Like this?
PROMPT(SELECT,%SELECTION%,,"Please make your selections ...","%ENTITY_DIM%,%CATEGORY_DIM%,%TIME_DIM%",0)
INFO(%EQU%,=)
INFO(%TAB%,;)
TASK(/CPMB/IC_ELIMINATION_LOGIC,TAB,%TAB%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,EQU,%EQU%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,KEYDATE,%SELECTION_KEYDATE%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,REPLACEPARAM,KD%EQU%%SELECTION_KEYDATE%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,SUSER,%USER%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,SAPP,%APP%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/IC_ELIMINATION_LOGIC,LOGICFILENAME,ICELIM.LGF)
Found the reason ...
It depends on the saved prompt values in the system. If you run the package and afterwards clear the saved prompts, then it works. There is a setting in the DM pane (More - Clear Saved Prompt Values ...). If you do so, it will work.
Do you know if there is a possibility to add this clearing to the package in some way (process chain or script etc.)?
Hi Vadim,
I already tried this, but without any success. Data checker did not show any issues, caches are cleared and refreshed.
It is really strange that all DM packages with a REPLACEPARAM statement run only once.
Regards,
Karsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I recommend you to refresh master data cashes for TDH
UJA_REFRESH_DIM_CACHE
UJXO_CLEAN_CACHE
UJXO_CLEAN_DIM_CACHE
UJXO_CLEAN_TDH_DIM_CACHE
UJA_DATA_CHECKER
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 6 | |
| 3 | |
| 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.