on 11-11-2014 2:39 PM
Hi Experts,
I have seen multiple threads for data transfer from one model to another. I'm following the same path as described but having an issue in moving the data. Can you help me. My issue is described below.
I have 2 Models with 6 dimensions each (4 mandatory dimensions are same E,C, T, A)
1) Model 1
- Products (Same)
- Cust_Group
2) Model 2
- Products (Same)
- Cost_Unit
Assuming the remaining dimensions are common. I want to move data from Model2 to Model1 with the following information. Here I want to move Cost_Unit total of model 2 to Model 1. I am confused how data will be divided further by cust_group in destination model? I have designed the following script but its not working.
*XDIM_MEMBERSET COST_UNIT = PACK_MAT
*XDIM_MEMBERSET ACCOUNT = MAT_COST
*DESTINATION_APP = ANNUAL_PLAN
*SKIP_DIM = COST_UNIT
*ADD_DIM CUST_GROUP = 0101
*WHEN COST_UNIT
*IS "PACK_MAT"
*REC(EXPRESSION=%VALUE%)
*ENDWHEN
*COMMIT
Regards,
Hi Sami,
Please explain the logic you want to implement: how you want the data to be stored for different members of Cust_Group?
To a single member?
To the member related somehow to Cost_Unit?
It's not a question about script but about business logic!
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this case you don't need DESTINATION_APP, use LOOKUP to get data from model 2:
Script in ANNUAL_PLAN:
*LOOKUP MODEL2 //the real name of model 2
*DIM PM:COST_UNIT="PACK_MAT"
*ENDLOOKUP
*XDIM_MEMBERSET ACCOUNT=SALESVOL
*WHEN ACCOUNT
*IS *
*REC(EXPRESSION=%VALUE%*LOOKUP(PM),ACCOUNT=GROSSCOST)
*ENDWHEN
Vadim
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.