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

Need to run COPY and script logic for the same data for all Dimensions via same data manager package

$
0
0

Hi

 

My requirement is to copy the data and then multiply the amount by  which is entered by the user via a prompt in DM.

 

The screen should lokk like as Copy DMP. i acheived the screen using below advanced scrpit logic. Now i am running into problme where if i run the logic its failing and returning error message as  below

 

ERROR Message

 

More than one dimension in selection condition


model: TESTCOPY. Package status: ERROR

 

Below is my advanced scrpit Logic

 

 

PROMPT(COPYMOVEINPUT,%SOMEDIMFROM%,%SOMEDIMTO%,"Select the members to COPY and where to","%DIMS%")

PROMPT(TEXT,%PER_INC%,"Enter Factort:",)

INFO(%EQU%,=)

INFO(%TAB%,;)

INFO(%PREFIX%,@@@SAVE@@@@@@EXPAND@@@|X|)

INFO(%SUFFIX%,|)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,TAB,%TAB%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)

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,MEMBERSELECTION,PER_INC%EQU%%PREFIX%%PER_INC%%SUFFIX%%TAB%SOMEDIMFROM%EQU%%SOMEDIMFROM%%TAB%SOMEDIMTO%EQU%%SOMEDIMTO%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,TESTCOPY2.LGF)

 

Base of this code is from the SDN Thread :

 

Need to run COPY and script logic for the same data set via same data manager package

 

The above logic works fine for one single dimension mentioned as mentioned below

 

PROMPT(COPYMOVEINPUT,%SOMEDIMFROM%,%SOMEDIMTO%,"Select the members to COPY and where to","%TIMES_DIM%")

 

But i want to run for all dimensions as mentioned below.

 

PROMPT(COPYMOVEINPUT,%SOMEDIMFROM%,%SOMEDIMTO%,"Select the members to COPY and where to","%DIMS%")

 

 

My Script Logic

 

*WHEN TIME

*IS %SOMEDIMTO%

 

*WHEN AUDITTRAIL

*IS %SOMEDIMTO%

 

*WHEN RPTCURRENCY

*IS %SOMEDIMTO%


*WHEN ACCOUNT

*IS %SOMEDIMTO%

 

*WHEN CATEGORY

*IS %SOMEDIMTO%

 

*WHEN PROFITCTR

*IS %SOMEDIMTO%

 

*REC(EXPRESSION=%VALUE%*$PER_INC$,TIME =%SOMEDIMTO%,AUDITTRAIL=%SOMEDIMTO%,RPTCURRENCY=%SOMEDIMTO%,ACCOUNT=%SOMEDIMTO%,CATEGORY= =%SOMEDIMTO%,PROFITCTR = %SOMEDIMTO%)

 

*ENDWHEN

*ENDWHEN

*ENDWHEN

*ENDWHEN

*ENDWHEN

*ENDWHEN


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>