Skip to Content

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

Move data from one model to another model using Destination_App script logic.

Hi Everyone,

I am trying to move data from one model to another model using Destination_App script logic.

There are three accounts used in template(Created on first model) namely

Head count (Input Value)

Basic Salary (Input value)

Bonus (Calculated using script logic) - Used script logic before execute *Destination_app script in Default logic

Bonus Values are not moving to second model. But i am able see data for Head count and basic salary in Second model.

Guys help me on this issue.

Regards,

Viswanath

Former Member
replied

Some strange code in WHEN - why do you put *WHEN HCP_ACCOUNT second time?

Try the following, it will work correctly:

*WHEN HCP_VERSION

*IS PLAN

  *WHEN HCP_ACCOUNT

  *IS PA_SALARY

    *REC(EXPRESSION = %VALUE% * 0.25 ,HCP_ACCOUNT = PA_BONUS)

    *REC(EXPRESSION = %VALUE% * 0.10 ,HCP_ACCOUNT = PA_SOCINS)

    *REC(EXPRESSION = %VALUE% * 0.10 ,HCP_ACCOUNT = PA_UNEMPLOYTAX)

  *ENDWHEN

*ENDWHEN

*DESTINATION_APP = HCP_GUIDELINES

*SKIP_DIM = HCP_EMPLOYEE, HCP_PAY_GRADE, HCP_POSITION

*WHEN HCP_VERSION

*IS PLAN

  *WHEN HCP_ACCOUNT

  *IS PA_HEADCOUNT

    *REC(EXPRESSION = %VALUE%)

  *IS PA_SALARY

    *REC(EXPRESSION = %VALUE%)

    *REC(EXPRESSION = [HCP_ACCOUNT].[PA_BONUS],HCP_ACCOUNT = PA_BONUS)

    *REC(EXPRESSION = [HCP_ACCOUNT].[PA_SOCINS],HCP_ACCOUNT = PA_SOCINS)

    *REC(EXPRESSION = [HCP_ACCOUNT].[PA_UNEMPLOYTAX],HCP_ACCOUNT = PA_UNEMPLOYTAX)

  *ENDWHEN

*ENDWHEN

Vadim

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