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

Script writes triple values

$
0
0

Hi,

 

I have a simply script that writes data from one model to another:

 

*XDIM_MEMBERSET ICDATASRC = IC_INPUT
*XDIM_MEMBERSET CURRENCY = LC
*XDIM_MEMBERSET CONSOSCOPE = G_NONE
*XDIM_MEMBERSET TIME = %TIME_SET%
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET ICRENTITY = %ICRENTITY_SET%

 

*DESTINATION_APP = LEGAL

 

*SKIP_DIM = ICDATASRC

 

*ADD_DIM DATASRC = DS_INPUT

 

*RENAME_DIM ICRENTITY = ENTITY
*RENAME_DIM ICRINTCO = INTCO

 

*WHEN CURRENCY
*IS LC
*REC(EXPRESSION = %VALUE%, ICRENTITY = ICRENTITY.LEGAL_ENTITY, ICRINTCO = ICRINTCO.LEGAL_INTCO)
*ENDWHEN

When I run this script as a package via Excel it writes three times the value it should write. So, if in the source model I have a value of 100 then the script writes 300 into the destination model.

 

This log is from having more than one value in the source system:

 

 

LOG BEGIN TIME:2014-06-25 16:31:20

 

FILE:\ROOT\WEBFOLDERS\XXX\ADMINAPP\ICRECON\COPY_ICR_2_LEGAL.LGF

 

USER:XXX

 

APPSET:XXX

 

APPLICATION:ICRECON

 

[INFO] GET_DIM_LIST(): I_APPL_ID="ICRECON", #dimensions=10

 

ACCOUNT,ACCTDETAIL,CATEGORY,CONSOSCOPE,CURRENCY,ICDATASRC,ICRENTITY,ICRINTCO,MEASURES,TIME

 

#dim_memberset=6

 

ICDATASRC:IC_INPUT,1 in total.

 

CURRENCY:LC,1 in total.

 

CONSOSCOPE:G_NONE,1 in total.

 

TIME:2013.12,1 in total.

 

CATEGORY:IST,1 in total.

 

ICRENTITY:136,1 in total.

 

REC :%VALUE%

 

CALCULATION BEGIN:

 

QUERY PROCESSING DATA

 

QUERY TIME : 1.00 ms. 24 RECORDS QUERIED OUT.

 

QUERY REFERENCE DATA

 

CALCULATION TIME IN TOTAL :1.00 ms.

 

8 RECORDS ARE GENERATED.

 

CALCULATION END.

 

ENDWHEN ACCUMULATION: 8 RECORDS ARE GENERATED.

 

 

What confuses me is the 24 records queried out. I think I can explain them as follows:

 

I have entered 1 value in LC

The account based calculation business rule has added another one in LC (one additional flow)

The currency conversion has added another 2 (both flows converted to EUR)

The ICDATA script has added another 2 (additonal audit)

 

So for each 1 value entered I have six in the database, times 4 value entered equals 24.

 

Of those I would expect 2 to be transferred to the other model (only the LC on IC_INPUT). In the destination model I only have data on those members (LC and DS_INPUT) but the values are tripled.

 

Would anyone have any idea why this might happen?

 

Thanks,

Arnold


Viewing all articles
Browse latest Browse all 5414

Trending Articles