Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8538

Re: IC Elims

$
0
0

Yes it is the standard ICELIM package. The the script but it is pretty long, below is the first portion which I think is the most important...We're on BPC 10 SP08, and epm add-in 14 patch 1.

 

I will try validating the script before running the dmp next time - is that the standard procedure? Why would we only be facing the issue with this script and not others.

 

//=================================================================================


// SQL-BASED ELIMINATION LOGIC


//---------------------------------------------------------------------------------


// This logic scans all accounts having property ELIMACC not blank,


// all base entities not defined as ELIM, and all reporting currencies.


// It reverses the found amounts into the account specified in account property


// ELIMACC and into the entity defined as an immediate dependant of the first


// common parent of current entity and current intco in the org PARENTHn,


// having property ELIM=Y.


// The elimination will be performed on the STORED data view (periodic or ytd)


//---------------------------------------------------------------------------------


// This logic should be invoked from a DTS package allowing the user to select


// the CATEGORY and TIME periods for which the eliminations should be performed.


// This logic is not suited for being included in a DEFAULT modeling logic.


//---------------------------------------------------------------------------------


// REQUIREMENTS AND LIMITATIONS:


// The application must contain the dimensions of type "I" and "R"


// (INTCO and CURRENCY)


// The ACCOUNT dimension must have the property ELIMACC (accountname)


// The ENTITY dimension must have the property ELIM (Y/N)


// The INTCO dimension must have the property ENTITY (entityname)


// The CURRENCY dimension must have the property REPORTING (Y/N)


// The accounts to eliminate must NOT be calculated in DIMENSION logic or HIERARCHY


//---------------------------------------------------------------------------------


// This library only contais subs that must be invoked from the actual elim logic.


// Here is how to invoke them:


// 1) Invoke the INITIALIZE_ELIM() sub


// 2) Invoke the ELIMINATE_ORG() sub once per each org to eliminate (H1, H2, etc.)


// 3) Don't forget to add a COMMIT at the end


// Example:


//                    INITIALIZE_ELIM()


//                    ELIMINATE_ORG(H1)


//                    ELIMINATE_ORG(H2)


//                    ELIMINATE_ORG(H3)


//                    *COMMIT


//=================================================================================



*SUB

INITIALIZE_ELIM()



 

// create the required sets


 

//-------------------------


 

*SELECT(%REPORTING_CURRENCIES%, "[ID]", "CURRENCYDIM", "[REPORTING] = 'Y'")



 

*SELECT(%NON_ELIM_ENTITIES%, "[ID]", "ENTITYDIM","[ELIM] <> 'Y' AND [CALC]='N'")


 

*SELECT(%ELIM_ENTITIES%, "[ID]", "ENTITYDIM","[ELIM] = 'Y'")



 

*SELECT(%ELIM_ACCS%, "[ID]", "ACCOUNTDIM","[ELIMACC] <>''")


 

*SELECT(%PLUG_ACCS%, "[ELIMACC]", "ACCOUNTDIM","[ELIMACC] <>''")



 

// use the appropriate sets


 

//--------------------------------


 

*XDIM_MEMBERSET ENTITYDIM<>%ELIM_ENTITIES%


 

*XDIM_MEMBERSET CURRENCYDIM=USD


 

*XDIM_MEMBERSET ACCOUNTDIM=%ELIM_ACCS%



 

// set the appropriate region to clear


 

//(all elim entities and all elim and plug accounts)


 

//--------------------------------------------------


 

*CLEAR_DESTINATION


 

*DESTINATION ENTITYDIM=%ELIM_ENTITIES%


 

*DESTINATION ACCOUNTDIM=%ELIM_ACCS%,%PLUG_ACCS%


 

*DESTINATION DATASOURCE=ELIM



*ENDSUB




*SUB

ELIMINATE_ORG(%ThisOrg%)



 

// define the elimination rule


 

//============================


 

*WHEN ENTITYDIM.ELIM


 

*IS<>"Y"


 

*WHEN CPE(INTCODIM.ENTITY,ENTITYDIM,%ThisOrg%,ELIM)


 

*IS<>""


 

*REC(ENTITYDIM=%CPE%,FACTOR=-1,DATASOURCE=ELIM) // eliminate original amount...


 

*REC(ENTITYDIM=%CPE%,ACCOUNTDIM=ACCOUNTDIM.ELIMACC,DATASOURCE=ELIM) // ...into elimination account


 

*ENDWHEN


 

*ENDWHEN



 

*GO



*ENDSUB


Viewing all articles
Browse latest Browse all 8538

Trending Articles



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