Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Pass Data Manager ComboBox Variable to Script Logic?

Hello Experts,

I have used "combobox" option  in prompt of Data Manager Package Script as shown below in red color:

PROMPT(SELECTINPUT,,,,,%TIME_DIM%)

PROMPT(COMBOBOX,%PRC%,"Select PRC:",0,,{TESTDIM})

'PROMPT(TEXT,%PRC%,"PRC",)

INFO(%EQU%,=)

'INFO(%TAB%,;)

TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SUSER,%USER%)

TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SAPPSET,%APPSET%)

TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SAPP,%APP%)

TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SELECTION,%SELECTION%)

TASK(/CPMB/RUNCALCACCOUNT_LOGIC,LOGICFILENAME,UJ_MAPPING_BR2.LGF)

TASK(/CPMB/RUNCALCACCOUNT_LOGIC,REPLACEPARAM,PRC%EQU%%PRC%)

My requirement is to pass this variable "%PRC%" in  script logic of account transformation business rule so that the business rule run for only members which are selected by user while running DMP.

Can anyone help me on how to call the variable in Script logic of Business Rule. I tried the as shown below in red color but it didn't work for me:

*RUN_PROGRAM CALC_ACCOUNT//

//*XDIM_MEMBERSET PRC as %GMS% = $PRC$

CATEGORY = ACT

CURRENCY = SEK

TID_RA = %TIME_SET%

AUDITID = BAS(ALL_DATASOURCES)

OTHER=[ENTITY=$PRC$]

CALC = EA_LOGIC

*ENDRUN_PROGRAM

Regards,

Apoorva

Former Member
replied

Script is incorrect, have to be:

*XDIM_MEMBERSET ZAUDIT AS %A%=BAS(ALL_DATASOURCES) //not sure you need it!

*RUN_PROGRAM CALC_ACCOUNT

CATEGORY = ACT

CURRENCY = SEK

TID_RA = %TIME_SET%

OTHER=[PRC=$PRC$;ZAUDITID=%A%]

CALC = EA_LOGIC

*ENDRUN_PROGRAM

In OTHER you have to use REAL dimension names!

Vadim

P.S. TESTDIM is not a perfect name for the dimension member

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question