cancel
Showing results for 
Search instead for 
Did you mean: 

Data transfer issue from one model to another

0 Kudos

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,

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

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

0 Kudos

Hi Vadim,

Thanks for your quick response. Please have a look at the excel file where I have made an example how our system should work.

Regards,

Sami

former_member186338
Active Contributor
0 Kudos

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

0 Kudos

Hi Vadim,

Thanks for your reply. It does work. I am having a little issue right now. Its only picking up the baselevel values. How can I lookup values at parent level?

Regards

former_member186338
Active Contributor
0 Kudos

You can specify parent member in LOOKUP. But you have to clearly explain what parent member are you talking about!

Vadim

0 Kudos

Hi Vadim,

I need total figure of Material cost 54. Right now the lookup feature is picking the value Packing material wise for e.g. P1, P2, P3 indendently. When I select total it does'nt pick any value.

former_member186338
Active Contributor
0 Kudos

Please provide real dimension names, dimension members, hierarchy, etc... I simply don't understand "Right now the lookup feature is picking the value Packing material wise for e.g. P1, P2, P3"...

What is the parent of P1, P2, P3?

Vadim

0 Kudos

Dimension: COST_UNIT

COST_UNIT

     -     PACK_MAT (Packing Material) (want this value)     54

          -     P1     15

          -     P2     18    

          -     P3     21

P1, P2, P3 are base level members. I need to pick the value of their parents i.e. PACK_MAT .

Regards,

former_member186338
Active Contributor
0 Kudos

Ups, tested!

Looks like it's a bug in BPC NW 10! CPMBPC 800 SP14

Lookup returns zero for parent member defined as *DIM LABEL:DIMNAME="PARENTMEMBER"

The same code works fine in BPC NW 7.5

Vadim

0 Kudos

Hi Vadim,

Is there any work around for the same?

Regards

former_member186338
Active Contributor
0 Kudos

Open a support case with SAP support...

The workaround is possible but not elegant!

Vadim

0 Kudos

Hi Vadim,

Got a solution from SAP as that was a bug.. Thanks for the help. SAP Notes are listed below

1)2061621 - *LOOKUP function return zero when dimension member is set as parent node
2)2082344 - *LOOKUP function returns zero when dimension is defined as parent member


Thanks & Regards

former_member186338
Active Contributor
0 Kudos

New SP upgrade...

Answers (0)