Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

Incremental Mode through user selection in FXTRANS

$
0
0

Hi Experts,

 

I am trying to leverage the functionality of INCREMENTAL_MODE in FXTRANS.LGF through a user selection Radio button and Data Manager variable.

 

For example:

 

*RUN_PROGRAM CURR_CONVERSION

CATEGORY = %CATEGORY_SET%

GROUP = %SCOPE_SET%

TID_RA = %TIME_SET%

OTHER = [ENTITY=%ENTITY_SET%]

RATEENTITY = Global

INCREMENTAL_MODE=$ICR$

*ENDRUN_PROGRAM

 

PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%GROUP_DIM%,%TIME_DIM%")

PROMPT(RADIOBUTTON,%ICR%,"Incremental?",%N%,{"Yes","No"},{%Y%%N%})

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

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

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

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

TASK(/CPMB/FX_RESTATMENT_LOGIC,LOGICFILENAME,FXTRANS.LGF)

INFO(%EQU%,=)

INFO(%Y%,X)

INFO(%N%,  )

TASK(/CPMB/FX_RESTATMENT_LOGIC,REPLACEPARAM,ICR%EQU%%ICR%)

 

Even when I select "No" in the Radio button it still runs in Incremental Mode. It seems I am unable to provide an Empty Value through the Data manager Variable.

 

 

 

I have also tried

 

*RUN_PROGRAM CURR_CONVERSION

CATEGORY = %CATEGORY_SET%

GROUP = %SCOPE_SET%

TID_RA = %TIME_SET%

OTHER = [ENTITY=%ENTITY_SET%]

RATEENTITY = Global

$ICR$

*ENDRUN_PROGRAM

 

PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%GROUP_DIM%,%TIME_DIM%")

PROMPT(RADIOBUTTON,%ICR%,"Incremental?",%N%,{"Yes","No"},{%Y%%N%})

INFO(%Y%,INCREMENTAL_MODE=X)

INFO(%N%,INCREMENTAL_MODE=)

INFO(%EQU%,=)

TASK(/CPMB/FX_RESTATMENT_LOGIC,REPLACEPARAM,ICR%EQU%%ICR%)

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

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

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

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

TASK(/CPMB/FX_RESTATMENT_LOGIC,LOGICFILENAME,FXTRANS.LGF)

 

Even when I select "Yes" in the Radio button it still doesn't run in Incremental Mode. It seems I am unable to Replace $ICR$ in the Script.

 

 

 

 

For the time being, I have created 2 LGF's, one without Incremental Mode and one with "Incremental Mode=X" and through Radio button selecting the LGF file to run as below:

 

FXTRANS.LGF

 

*RUN_PROGRAM CURR_CONVERSION

CATEGORY = %CATEGORY_SET%

GROUP = %SCOPE_SET%

TID_RA = %TIME_SET%

OTHER = [ENTITY=%ENTITY_SET%]

RATEENTITY = Global

*ENDRUN_PROGRAM

 

FXTRANS_INCRE.LGF

 

*RUN_PROGRAM CURR_CONVERSION

CATEGORY = %CATEGORY_SET%

GROUP = %SCOPE_SET%

TID_RA = %TIME_SET%

OTHER = [ENTITY=%ENTITY_SET%]

RATEENTITY = Global

INCREMENTAL_MODE=X

*ENDRUN_PROGRAM

 

PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%ENTITY_DIM%,%TIME_DIM%,%GROUP_DIM%")

PROMPT(RADIOBUTTON,%X%,"Incremental?",FXTRANS.LGF,{"Yes","No"},{"FXTRANS_INCRE.LGF","FXTRANS.LGF"})

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

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

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

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

TASK(/CPMB/FX_RESTATMENT_LOGIC,LOGICFILENAME,%X%)

 

Is there a way to provide Incremental Mode on/off as a user selection without having 2 logic files?

 

Thanks and Regards,

 

Collin.


Viewing all articles
Browse latest Browse all 5414

Trending Articles