Skip to Content

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

Destination_APP transfer values to different version from Source model

Hi,

I have the belwo requirement:

*SELECT(%YEAR%,[YEAR],VERSION,"[ID] = '%VERSION_SET%')
*XDIM_MEMBERSET CHANGE_LEDGER = CL_020
*XDIM_MEMBERSET LOCATION = LO_NONE
*XDIM_MEMBERSET PROJECT = PJ_NONE
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET TIME <> %YEAR%.INPUT
*XDIM_MEMBERSET VERSION = %VERSION_SET%
*XDIM_MEMBERSET COSTCENTRE <>  CC_NONE
*XDIM_MEMBERSET EST_POSITION <> NO_EMP
*XDIM_MEMBERSET GRADE <> NO_GRADE

*DESTINATION_APP = APPLICATIONX

*SKIP_DIM = EST_POSITION,GRADE

*ADD_DIM FLOW = FL_CLO, FUND_TYPE = FT_FTNA, DATASOURCE = DS_INPUT


*RENAME_DIM ACCOUNTHR = ACCOUNTG


*WHEN ACCOUNTHR

*IS BAS(AC_ACOA0000NETSAL),AC_ACOA0000000FTE

*REC(EXPRESSION = %VALUE%,PROJECT = PJ_PROJNA, LOCATION = LO_LONA)

*ENDWHEN

Now my requiremetn is, logic to post to user specified Version as Destination version.

I have changed the datamager for user to input source and destination version.

TASKCOPYCOLOUMS("SELECTION","%CATEGORY_DIM%","%CATEGORY_DIM%")

*REC(EXPRESSION = %VALUE%,PROJECT = PJ_PROJNA, LOCATION = LO_LONA, VERSION = ????????)

I have only %VERSION_SET% to determine the version input my user?

How to specify in *REC statment with destination version value?


Regards,


Tej

Tags:
replied

If yes, then your advanced script have to be:

PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Select the desired range",”%CATEGORY_DIM%”,)

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

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

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

INFO(%EQU%,=)

INFO(%TAB%,;)

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

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

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

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,MEMBERSELECTION,TARGETVERSION%EQU%%TOSELECTION%)

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

And TEST.LGF:

*SELECT(%YEAR%,[YEAR],VERSION,"[ID] = '%VERSION_SET%')

*XDIM_MEMBERSET CHANGE_LEDGER = CL_020

*XDIM_MEMBERSET LOCATION = LO_NONE

*XDIM_MEMBERSET PROJECT = PJ_NONE

*XDIM_MEMBERSET RPTCURRENCY = LC

*XDIM_MEMBERSET TIME <> %YEAR%.INPUT //Very strange!!! What do you mean?

*XDIM_MEMBERSET VERSION = %VERSION_SET%

*XDIM_MEMBERSET COSTCENTRE <>  CC_NONE

*XDIM_MEMBERSET EST_POSITION <> NO_EMP

*XDIM_MEMBERSET GRADE <> NO_GRADE

*XDIM_MEMBERSET ACCOUNTHR = BAS(AC_ACOA0000NETSAL)

*XDIM_ADDMEMBERSET ACCOUNTHR = AC_ACOA0000000FTE

*DESTINATION_APP = APPLICATIONX

*SKIP_DIM = EST_POSITION,GRADE

*ADD_DIM FLOW = FL_CLO, FUND_TYPE = FT_FTNA, DATASOURCE = DS_INPUT

*RENAME_DIM ACCOUNTHR = ACCOUNTG

*WHEN ACCOUNTHR

*IS *

*REC(EXPRESSION = %VALUE%,PROJECT = PJ_PROJNA, LOCATION = LO_LONA, VERSION = $TARGETVERSION$)

*ENDWHEN

Vadim

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question