Hello,
I am not too much experienced with DM commands and script logic, so I am unable to pass SELECTINPUT variables to my SCRIPTLOGIC file. When I send one dimesion value, no problem, when I write SELECTINPUT command twice, dimension by dimension, still no problem, but package window comes twice to user screen. My purpose is getting Context Member values and passing them to my SCRIPTLOGİC file which is linked to a package calls BADI in it. My dimension IS_ALANI is Entity dimension, MUHATAP_SIRKET is an user-defined dimension. For now, I have changed my DM script coding as follows: PROMPT(SELECTINPUT,%SECIM%,,,"%ENTITY_DIM%,%CATEGORY_DIM%",1,1) TASK(/CPMB/ALLOCATION_LOGIC,SELECTION,%SECIM%) without writing any code in Script Logic file, however this does not suit my requirement fully, because there are more dimensions selected in context menu 4 of them are user defined dimensions, one of them is Entity dimension and one is Category dimension.
Below is my dynamic script coding I tried with 2 dimensions :
PROMPT(KEYDATE,%KEYDATE%,"Key date",0)
PROMPT(SELECTINPUT,"%IS_ALANI%,%MUHATAP_SIRKET%",,"SECIMLER","IS_ALANI,MUHATAP_SIRKET",1,1)
INFO(%KEYDATE%,)
INFO(%EQU%,=)
INFO(%TAB%,;)
TASK(/CPMB/ALLOCATION_LOGIC,TAB,%TAB%)
TASK(/CPMB/ALLOCATION_LOGIC,EQU,%EQU%)
TASK(/CPMB/ALLOCATION_LOGIC,SUSER,%USER%)
TASK(/CPMB/ALLOCATION_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/ALLOCATION_LOGIC,SAPP,%APP%)
TASK(/CPMB/ALLOCATION_LOGIC,MEMBERSELECTION,IS_ALANI%EQU%%IS_ALANI%%TAB%MUHATAP_SIRKET%EQU%%MUHATAP_SIRKET%)
TASK(/CPMB/ALLOCATION_LOGIC,KEYDATE,%KEYDATE%)
TASK(/CPMB/ALLOCATION_LOGIC,LOGICFILENAME,GSMM_DIG_SEKTORLER.LGF)
My Scriptlogic file content:
*XDIM_MEMBERSET IS_ALANI = $IS_ALANI$
*XDIM_MEMBERSET MUHATAP_SIRKET = $MUHATAP_SIRKET$
*CALL_CUSTOM_LOGIC GSMM_DIG_SEKT
With below coding Script logic file does not recognize variables selected in DM package which are actually read from Context Menu.
Does anyone have an idea what I am doing wrong?
Thanks in advance,
Songul Demir