Skip to Content

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

Error when passing dynamic script to logic

Hi all

I have read many of the posts on this topic but just cant get it right. I need for the user to enter a year and then to use the year in the logic file PUSH_DATA.LGF

I have added YE to the run logic variant and my dynamic script looks as follows:

 

PROMPT(TEXT,%YE%,"Please enter the year",)

INFO(%EQU%,=)

TASK(/CPMB/PUSH_FROM_RAW_LOGIC,SUSER,%USER%)
TASK(/CPMB/PUSH_FROM_RAW_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/PUSH_FROM_RAW_LOGIC,SAPP,%APP%)
TASK(/CPMB/PUSH_FROM_RAW_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/PUSH_FROM_RAW_LOGIC,LOGICFILENAME,PUSH_DATA.LGF)
TASK(/CPMB/PUSH_FROM_RAW_LOGIC,REPLACEPARAM,YE%EQU%%YE%)

My Script logic then needs to use $YE$ like

*FUNCTION FCN_YEAR = $YE$

*SELECT(%TIME_LIST%, "[ID]", TIME, "[YEAR] = 'FCN_YEAR'") 

*XDIM_MEMBERSET TIME = %TIME_LIST%

The error message on the package is as follows:


/CPMB/MODIFY completed in 0 seconds
/CPMB/PUSH_FROM_RAW_LOGIC completed in 0 seconds
/CPMB/CLEAR completed in 0 seconds
[Selection]
------------------------------------------------------------
YE=2011
[Messages]
------------------------------------------------------------
Invalidate selection condition
Application: RAW Package status: ERROR

Any help would be appreciated

Byron

Former Member
Former Member replied

Hi,

Remove the below line:

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

from the dynamic script.

Hope this helps.

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