Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3353

Script logic Question allocation and acccumulated value

$
0
0

Hi exprets ,

 

I'm have "a" wich is  a loaded KPI from BW infoobject .

 

and I have "b" wich is the accumulated value of A ( accounttype AST)

 

and normaly the last value of "b" shoud be repeated till the last day of the year .

 

when i'm testing the script with  an input value the scripts are working well but with loaded value and with launching data load process it's giving wrong results .

 

1-

*SAP_BW    740    0009    SAPKW74009    SAP Business Warehouse

 

*CPMBPC    801    0009    SAPK-80109INCPMBPC    CPM Business Planning and Consolidation

2- DUMP

3-I Have 2 dimensions  TV_Extraction  and  Time dimension" Temps".

TIME:01.01.2015,02.01.2015

TV_Extraction : a ,b

 

4-Default.LGF

5 'm trying to calculate the accumulated value of a and repead it till the last of year

6-this is the script i'm trying

//calculating accumulated value

*XDIM_MEMBERSET MEASURES = PERIODIC

*WHEN TV_EXTRACTION

*IS a

*REC(EXPRESSION = [MEASURES].[YTD],TV_EXTRACTION=b)

*ENDWHEN

*COMMIT

//allocation

*SELECT(%LASTTID%,[TIMEID],JOUR,ID=%JOUR_SET%)

*SELECT(%Y%,[YEAR],JOUR,ID=%JOUR_SET%)

*SELECT(%BS%,[ID],TV_EXTRACTION,ACCTYPE=AST)

*SELECT(%TARGET%,[ID],JOUR,TIMEID>%LASTTID% AND YEAR=%Y% AND CALC=N)

*XDIM_MEMBERSET TV_EXTRACTION=%BS%

*RUNALLOCATION

 

*FACTOR=1

 

*DIM JOUR WHAT=%JOUR_SET%;WHERE=%TARGET%

 

*ENDALLOCATION

 

7- Data like 7800

8-

LGX:

 

*XDIM_MEMBERSET TV_EXTRACTION=a,b

*XDIM_MEMBERSET MEASURES = PERIODIC

*WHEN TV_EXTRACTION

*IS a

*REC(EXPRESSION=[MEASURES].[YTD],TV_EXTRACTION = b)

*ENDWHEN

*COMMIT

*XDIM_MEMBERSET TV_EXTRACTION=EXT001757,EXTR00121,EXTR0015,EXTR00151,EXTR0017,EXTR00170,EXTR0017300,EXTR001755,EXTR001756,EXTR00180,EXTR001800,EXTR0018000,EXTR00230,EXTR00240,EXTR0026,EXTR0091,b,EXTR0157,EXTR0178,EXTR152,Impu_Calcul

*RUNALLOCATION

*FACTOR=1

*DIM JOUR WHAT=01.05.2016;WHERE=01.06.2016,01.07.2016,01.08.2016,01.09.2016,01.10.2016,01.11.2016,01.12.2016,02.05.2016,02.06.2016,02.07.2016,02.08.2016,02.09.2016,02.10.2016,02.11.2016,02.12.2016,03.05.2016,03.06.2016,03.07.2016,03.08.2016,03.09.2016,03.10.2016,03.11.2016,03.12.2016,04.05.2016,04.06.2016,04.07.2016,04.08.2016,04.09.2016,04.10.2016,04.11.2016,04.12.2016,05.05.2016,05.06.2016,05.07.2016,05.08.2016,05.09.2016,05.10.2016,05.11.2016,05.12.2016,06.05.2016,06.06.2016,06.07.2016,06.08.2016,06.09.2016,06.10.2016,06.11.2016,06.12.2016,07.05.2016,07.06.2016,07.07.2016,07.08.2016,07.09.2016,07.10.2016,07.11.2016,07.12.2016,08.05.2016,08.06.2016,08.07.2016,08.08.2016,08.09.2016,08.10.2016,08.11.2016,08.12.2016,09.05.2016,09.06.2016,09.07.2016,09.08.2016,09.09.2016,09.10.2016,09.11.2016,09.12.2016,10.05.2016,10.06.2016,10.07.2016,10.08.2016,10.09.2016,10.10.2016,10.11.2016,10.12.2016,11.05.2016,11.06.2016,11.07.2016,11.08.2016,11.09.2016,11.10.2016,11.11.2016,11.12.2016,12.05.2016,12.06.2016,12.07.2016,12.08.2016,12.09.2016,12.10.2016,12.11.2016,12.12.2016,13.05.2016,13.06.2016,13.07.2016,13.08.2016,13.09.2016,13.10.2016,13.11.2016,13.12.2016,14.05.2016,14.06.2016,14.07.2016,14.08.2016,14.09.2016,14.10.2016,14.11.2016,14.12.2016,15.05.2016,15.06.2016,15.07.2016,15.08.2016,15.09.2016,15.10.2016,15.11.2016,15.12.2016,16.05.2016,16.06.2016,16.07.2016,16.08.2016,16.09.2016,16.10.2016,16.11.2016,16.12.2016,17.05.2016,17.06.2016,17.07.2016,17.08.2016,17.09.2016,17.10.2016,17.11.2016,17.12.2016,18.05.2016,18.06.2016,18.07.2016,18.08.2016,18.09.2016,18.10.2016,18.11.2016,18.12.2016,19.05.2016,19.06.2016,19.07.2016,19.08.2016,19.09.2016,19.10.2016,19.11.2016,19.12.2016,20.05.2016,20.06.2016,20.07.2016,20.08.2016,20.09.2016,20.10.2016,20.11.2016,20.12.2016,21.05.2016,21.06.2016,21.07.2016,21.08.2016,21.09.2016,21.10.2016,21.11.2016,21.12.2016,22.05.2016,22.06.2016,22.07.2016,22.08.2016,22.09.2016,22.10.2016,22.11.2016,22.12.2016,23.05.2016,23.06.2016,23.07.2016,23.08.2016,23.09.2016,23.10.2016,23.11.2016,23.12.2016,24.05.2016,24.06.2016,24.07.2016,24.08.2016,24.09.2016,24.10.2016,24.11.2016,24.12.2016,25.05.2016,25.06.2016,25.07.2016,25.08.2016,25.09.2016,25.10.2016,25.11.2016,25.12.2016,26.05.2016,26.06.2016,26.07.2016,26.08.2016,26.09.2016,26.10.2016,26.11.2016,26.12.2016,27.05.2016,27.06.2016,27.07.2016,27.08.2016,27.09.2016,27.10.2016,27.11.2016,27.12.2016,28.05.2016,28.06.2016,28.07.2016,28.08.2016,28.09.2016,28.10.2016,28.11.2016,28.12.2016,29.05.2016,29.06.2016,29.07.2016,29.08.2016,29.09.2016,29.10.2016,29.11.2016,29.12.2016,30.05.2016,30.06.2016,30.07.2016,30.08.2016,30.09.2016,30.10.2016,30.11.2016,30.12.2016,31.05.2016,31.07.2016,31.08.2016,31.10.2016,31.12.2016

*ENDALLOCATION

*COMMIT

 

-------------------------------------------------------------------------------------------------------------------------------------

LOG:

 

FILE:\ROOT\WEBFOLDERS\PLANNING_SHELL1 \ADMINAPP\Extraction_Sucreries\TEST.LGF

USER:FELAMRANI

APPSET:PLANNING_SHELL1

APPLICATION:Extraction_Sucreries

[INFO] GET_DIM_LIST(): I_APPL_ID="Extraction_Sucreries", #dimensions=5

JOUR,MEASURES,SITE,TV_EXTRACTION,VERSION

 

#dim_memberset=3

JOUR:01.05.2016,1 in total.

TV_EXTRACTION:EXTR0094,EXTR00940,2 in total.

MEASURES:PERIODIC,1 in total.

 

REC :[MEASURES].[YTD]

 

CALCULATION BEGIN:

QUERY PROCESSING DATA

QUERY TIME : 0.00 ms. 3  RECORDS QUERIED OUT.

QUERY REFERENCE DATA

QUERY TIME : 2.00 ms. 3  RECORDS QUERIED OUT.

CALCULATION TIME IN TOTAL :0.00 ms.

3  RECORDS ARE GENERATED.

CALCULATION END.

FACTOR:1

ALLOCATION DATA REGION:

JOUR:01.05.2016,

TV_EXTRACTION:EXT001757,EXTR00121,EXTR0015,EXTR00151,EXTR0017,EXTR00170,EXTR0017300,EXTR001755,EXTR001756,EXTR00180,EXTR001800,EXTR0018000,EXTR00230,EXTR00240,EXTR0026,EXTR0091,EXTR00940,EXTR0157,EXTR0178,EXTR152,Impu_Calcul,

JOUR:WHAT:01.05.2016,WHERE:01.06.2016,01.07.2016,01.08.2016,01.09.2016,01.10.2016,01.11.2016,01.12.2016,02.05.2016,02.06.2016,02.07.2016,02.08.2016,02.09.2016,02.10.2016,02.11.2016,02.12.2016,03.05.2016,03.06.2016,03.07.2016,03.08.2016,03.09.2016,03.10.2016,03.11.2016,03.12.2016,04.05.2016,04.06.2016,04.07.2016,04.08.2016,04.09.2016,04.10.2016,04.11.2016,04.12.2016,05.05.2016,05.06.2016,05.07.2016,05.08.2016,05.09.2016,05.10.2016,05.11.2016,05.12.2016,06.05.2016,06.06.2016,06.07.2016,06.08.2016,06.09.2016,06.10.2016,06.11.2016,06.12.2016,07.05.2016,07.06.2016,07.07.2016,07.08.2016,07.09.2016,07.10.2016,07.11.2016,07.12.2016,08.05.2016,08.06.2016,08.07.2016,08.08.2016,08.09.2016,08.10.2016,08.11.2016,08.12.2016,09.05.2016,09.06.2016,09.07.2016,09.08.2016,09.09.2016,09.10.2016,09.11.2016,09.12.2016,10.05.2016,10.06.2016,10.07.2016,10.08.2016,10.09.2016,10.10.2016,10.11.2016,10.12.2016,11.05.2016,11.06.2016,11.07.2016,11.08.2016,11.09.2016,11.10.2016,11.11.2016,11.12.2016,12.05.2016,12.06.2016,12.07.2016,12.08.2016,12.09.2016,12.10.2016,12.11.2016,12.12.2016,13.05.2016,13.06.2016,13.07.2016,13.08.2016,13.09.2016,13.10.2016,13.11.2016,13.12.2016,14.05.2016,14.06.2016,14.07.2016,14.08.2016,14.09.2016,14.10.2016,14.11.2016,14.12.2016,15.05.2016,15.06.2016,15.07.2016,15.08.2016,15.09.2016,15.10.2016,15.11.2016,15.12.2016,16.05.2016,16.06.2016,16.07.2016,16.08.2016,16.09.2016,16.10.2016,16.11.2016,16.12.2016,17.05.2016,17.06.2016,17.07.2016,17.08.2016,17.09.2016,17.10.2016,17.11.2016,17.12.2016,18.05.2016,18.06.2016,18.07.2016,18.08.2016,18.09.2016,18.10.2016,18.11.2016,18.12.2016,19.05.2016,19.06.2016,19.07.2016,19.08.2016,19.09.2016,19.10.2016,19.11.2016,19.12.2016,20.05.2016,20.06.2016,20.07.2016,20.08.2016,20.09.2016,20.10.2016,20.11.2016,20.12.2016,21.05.2016,21.06.2016,21.07.2016,21.08.2016,21.09.2016,21.10.2016,21.11.2016,21.12.2016,22.05.2016,22.06.2016,22.07.2016,22.08.2016,22.09.2016,22.10.2016,22.11.2016,22.12.2016,23.05.2016,23.06.2016,23.07.2016,23.08.2016,23.09.2016,23.10.2016,23.11.2016,23.12.2016,24.05.2016,24.06.2016,24.07.2016,24.08.2016,24.09.2016,24.10.2016,24.11.2016,24.12.2016,25.05.2016,25.06.2016,25.07.2016,25.08.2016,25.09.2016,25.10.2016,25.11.2016,25.12.2016,26.05.2016,26.06.2016,26.07.2016,26.08.2016,26.09.2016,26.10.2016,26.11.2016,26.12.2016,27.05.2016,27.06.2016,27.07.2016,27.08.2016,27.09.2016,27.10.2016,27.11.2016,27.12.2016,28.05.2016,28.06.2016,28.07.2016,28.08.2016,28.09.2016,28.10.2016,28.11.2016,28.12.2016,29.05.2016,29.06.2016,29.07.2016,29.08.2016,29.09.2016,29.10.2016,29.11.2016,29.12.2016,30.05.2016,30.06.2016,30.07.2016,30.08.2016,30.09.2016,30.10.2016,30.11.2016,30.12.2016,31.05.2016,31.07.2016,31.08.2016,31.10.2016,31.12.2016,USING:,TOTAL:

 

SCRIPT RUNNING TIME IN TOTAL:5.00 s.

 

 

thank you


Viewing all articles
Browse latest Browse all 3353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>