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

Script Logic - RUNALLOCATION

$
0
0

Hi,

Please help with folowing scenario in Script logic :-

We have to move a value planned at Company code level (maintained inside ENTITY Dimesion) to Cost Center level based on Actuals.

We have separate dimensions for ENTITY, COSTCENTER AND FUNCTIONAL AREA. And inside Cost center dimension we have functional area property and Entity property.

Master data for cost center dimension is maintained as follows:-

Cost Center dimension

 

IDFUNC_AREA (Property)C_CODE(Property)
C_1000F_400E_1000
C_2000F_500E_1000
C_3000F_400E_1000
C_4000F_500E_1000
C_5000F_400E_1000

 

Test data sample for the scenario
Company code level data  - Input(Actuals)(Plan)
Company CodeCost centerFunctional Area2012.082012.09
E_1000DEFAULT_CCDEFAULT_FA200500

 

We have to distribute the same to all the cost centers mapped to this company code based on Actuals. So the output will be as follows:-
Cost Center level Data - Output(Actuals)(Plan - To be found out)
Company code Cost centerFunctional Area2012.082012.09
E_1000C_1000F_40030=500*30/200 = 75
E_1000C_2000F_50040=500*40/200 = 100
E_1000C_3000F_40035=500*D30/200 = 87.5
E_1000C_4000F_50045=500*45/200 = 112.5
E_1000C_5000F_40050=500*50/200 = 125

 

 

*SELECT(%COSTCENTER%,[ID],COSTCENTER,[C_CODE]=E_1000)   /// C_1000,C_2000,C_3000,C_4000,C_5000 will be scoped inside the variable
*FOR %CC% = %COSTCENTER%
*RUNALLOCATION
*FACTOR = USING/TOTAL
*DIM ENTITY WHAT = E_1000 ; WHERE = E_1000 ; USING = E_1000 ; TOTAL = E_1000
*DIM COSTCENTER WHAT = DEFAULT_CC ; WHERE = %CC% ; USING =  %CC% ; TOTAL = DEFAULT_CC
*DIM FUNC_AREA WHAT = DEFAULT_FA ; WHERE =<FUNC_AREA Property value maintianed inside the cost center dimension> ; USING = <FUNC_AREA Property value maintianed inside the cost center dimension>  ; TOTAL = DEFAULT_FA
*ENDALLOCATION
*NEXT

 

Please help us with the syntax that can be called inside the RUNALLOCATION for a dimension which is maintained as a property in another dimension.
Versiondetails :-
BPC 10.0 NW Version
BW Config details
SW ComponentReleaseLevelHighest support packageDescription
BI_CONT7472SAPK-74702INBICONTBusiness Intelligence Content
BI_CONT_XT7472SAPK-74702INBICONTXTBusiness Intelligence Content for Bobj I
SAP_BW7314SAPKW73104SAP Business Warehouse

 

Regards,

Sreeja V


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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