*CLEAR_DESTINATION

Hello everyone.
I am using BPC (7.5 - MS - SP04), where I have a problem in using the sentence * CLEAR_DESTINATION.
There are 5 applications in which, from 1 to 4 send data to 5 and the passage between them is performed by Script Logic.
The problem is that, for example, if I pass data to the application 1 through 5 using CLEAR_DESTINATION working properly.
But if data from the application step 2 through 5, implementing CLEAR_DESTINATION the same way as in the example above, does not work.
Any suggestions or recommendation?
Best regards.

Hi Roberto. i pass the contents of the scripts logics.
Any other information that you need, do not hesitate to contact me.
Best regards!
CLEAR_DESTINATION running:
//-------------------------------------------------------------------------PASAJE A EERR - INGRESOS-------------------------------------------------------------------------//
*SELECT(%ANIO%, PERIODO_ACTUAL, COMPARATIVO, ID='%COMPARATIVO_SET%') // Trae el Año Actual en funcion del comparativo seleccionado
*SELECT(%NRO%, MES_INICIO, COMPARATIVO, ID='%COMPARATIVO_SET%') //Trae el mes de inicio del comparativo seleccionado
//*SELECT(%PERIODO_COMPARATIVO% ,ID, TIEMPO, FISCAL_YEAR='%ANIO%' AND FISCAL_MONTHNUM>='%NRO%') // Trae todos los meses del año Actual a partir del Mes del comparativo
*SELECT(%PERIODO_COMPARATIVO% ,ID, TIEMPO, FISCAL_YEAR='%ANIO%')
*SELECT(%MES_INICIAL%, ID, TIEMPO, FISCAL_YEAR='%ANIO%' AND FISCAL_MONTHNUM='%NRO%') // Trae el mes inicial del Periodo Actual
*SELECT(%MES_ANTERIOR_ANIO%, PREVIOUS_YEAR, TIEMPO, ID='%MES_INICIAL%') //Trae el mes inicial del año anterior al actual
*SELECT(%ANIO_ANTERIOR%, FISCAL_YEAR, TIEMPO, ID='%MES_ANTERIOR_ANIO%') //Trae el año anterior al actual
*SELECT(%PERIODO_ANTERIOR% ,ID, TIEMPO, FISCAL_YEAR='%ANIO_ANTERIOR%')
*SELECT(%INGRESOS%, ID, CUENTACONTABLE, TIPO_SOCIO<>' ')
*SELECT(%OTROS_INGRESOS%, ID, CUENTACONTABLE, OTROS_ING<>' ')
//Limpio Aplicación Destino
*CLEAR_DESTINATION
////Pasaje a EERR Comparativo Seleccionado +  Real Año actual
*DESTINATION_APP = EERR
*XDIM_MEMBERSET COMPARATIVO = %COMPARATIVO_SET%,REAL
*XDIM_MEMBERSET DATASOURCE = CA,AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KIN09,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %INGRESOS%
*WHEN RATIOS
*IS KIN09
    *WHEN CUENTACONTABLE
    *IS %INGRESOS%
         *REC(FACTOR=1,RATIOS="KER02")  
*ENDWHEN
*ENDWHEN
*COMMIT
//PRUEBA MEL
////Pasaje a EERR Comparativo Seleccionado +  Real Año actual
*DESTINATION_APP = EERR
*XDIM_MEMBERSET COMPARATIVO = %COMPARATIVO_SET%,REAL
*XDIM_MEMBERSET DATASOURCE = CA,AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KIN14,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %INGRESOS%
*WHEN RATIOS
*IS KIN14
    *WHEN CUENTACONTABLE
    *IS %INGRESOS%
         *REC(FACTOR=1,RATIOS="KER01")  
*ENDWHEN
*ENDWHEN
*COMMIT
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*XDIM_MEMBERSET COMPARATIVO = %COMPARATIVO_SET%,REAL
*XDIM_MEMBERSET DATASOURCE = CA,AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KIN14,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %OTROS_INGRESOS%
*WHEN RATIOS
*IS KIN14
        *WHEN CUENTACONTABLE
        *IS %OTROS_INGRESOS%
             *REC(FACTOR=1,RATIOS="KER02")
*ENDWHEN
*ENDWHEN
*COMMIT
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*XDIM_MEMBERSET COMPARATIVO = %COMPARATIVO_SET%,REAL
*XDIM_MEMBERSET DATASOURCE = CA,AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KIN14,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = 510750
*WHEN RATIOS
*IS KIN14
  *WHEN TIPOSOCIO.CUENTA
  *IS
  *ELSE
             *REC(FACTOR=1,RATIOS="KER02")
*ENDWHEN
*ENDWHEN
*COMMIT
////Pasaje a EERR Real Año Anterior al actual
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KIN09,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_ANTERIOR%
*XDIM_MEMBERSET CUENTACONTABLE = %INGRESOS%
*WHEN RATIOS
*IS KIN09
    *WHEN CUENTACONTABLE
    *IS %INGRESOS%
         *REC(FACTOR=1,RATIOS="KER02")  
*ENDWHEN
*ENDWHEN
*COMMIT
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KIN14,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_ANTERIOR%
*XDIM_MEMBERSET CUENTACONTABLE = %OTROS_INGRESOS%
*WHEN RATIOS
*IS KIN14
        *WHEN CUENTACONTABLE
        *IS %OTROS_INGRESOS%
             *REC(FACTOR=1,RATIOS="KER02")
*ENDWHEN
*ENDWHEN
*COMMIT
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KIN14,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_ANTERIOR%
*XDIM_MEMBERSET CUENTACONTABLE = 510750
*WHEN RATIOS
*IS KIN14
  *WHEN TIPOSOCIO.CUENTA
  *IS
  *ELSE
             *REC(FACTOR=1,RATIOS="KER02")
*ENDWHEN
*ENDWHEN
*COMMIT
CLEAR_DESTINATION not running :
//------------------------------------------PASAJE A EERR - CM_Filial de Servicio-----------------------------//
*SELECT(%ANIO%, PERIODO_ACTUAL, COMPARATIVO, ID='%COMPARATIVO_SET%') // Trae el Año Actual en funcion del comparativo seleccionado
*SELECT(%NRO%, MES_INICIO, COMPARATIVO, ID='%COMPARATIVO_SET%') //Trae el mes de inicio del comparativo seleccionado
//*SELECT(%PERIODO_COMPARATIVO% ,ID, TIEMPO, FISCAL_YEAR='%ANIO%' AND FISCAL_MONTHNUM>='%NRO%') // Trae todos los meses del año Actual a partir del Mes del comparativo
*SELECT(%PERIODO_COMPARATIVO% ,ID, TIEMPO, FISCAL_YEAR='%ANIO%')
*SELECT(%CUENTAS_CM_FS%, ID, CUENTACONTABLE, GAPA_NOGAPA<>' ') // Trae las Cuentas Contables correspondientes a Costos Medicos
*SELECT(%CUENTAS_CM_OTROS%, ID, CUENTACONTABLE, CARGA_CM_OTROS='Y')
*SELECT(%MES_INICIAL%, ID, TIEMPO, FISCAL_YEAR='%ANIO%' AND FISCAL_MONTHNUM='%NRO%') // Trae el mes inicial del Periodo Actual
*SELECT(%MES_ANTERIOR_ANIO%, PREVIOUS_YEAR, TIEMPO, ID='%MES_INICIAL%') //Trae el mes inicial del año anterior al actual
*SELECT(%ANIO_ANTERIOR%, FISCAL_YEAR, TIEMPO, ID='%MES_ANTERIOR_ANIO%') //Trae el año anterior al actual
*SELECT(%PERIODO_ANTERIOR% ,ID, TIEMPO, FISCAL_YEAR='%ANIO_ANTERIOR%')
//Limpio Aplicación Destino
*CLEAR_DESTINATION
////Pasaje a EERR
///////////////// Cuentas FS
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = %COMPARATIVO_SET%
*XDIM_MEMBERSET DATASOURCE = CA
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM21,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_FS%
*WHEN RATIOS
*IS KCM21
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_FS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(EXPRESSION=(%VALUE%*-1), RATIOS="KER02", DATASOURCE="CA")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
///////////////// Cuentas Otros costos medicos
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = %COMPARATIVO_SET%
*XDIM_MEMBERSET DATASOURCE = IN
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM21,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_OTROS%
*WHEN RATIOS
*IS KCM21
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_OTROS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(FACTOR=1,RATIOS="KER02",DATASOURCE="IN")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
///////////// Frecuencia
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = %COMPARATIVO_SET%
*XDIM_MEMBERSET DATASOURCE = CA
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM15,KER03
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_FS%
*WHEN RATIOS
*IS KCM15
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_FS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(EXPRESSION=(%VALUE%*-1),RATIOS="KER03",DATASOURCE="CA")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
////Pasaje a EERR Real Año actual
///////////////// Cuentas FS
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM21,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_FS%
*WHEN RATIOS
*IS KCM21
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_FS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(EXPRESSION=(%VALUE%*-1), RATIOS="KER02")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
///////////////// Cuentas Otros costos medicos
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM21,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_OTROS%
*WHEN RATIOS
*IS KCM21
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_OTROS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(FACTOR=1,RATIOS="KER02")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
///////////// Frecuencia
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM15,KER03
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_COMPARATIVO%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_FS%
*WHEN RATIOS
*IS KCM15
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_FS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(EXPRESSION=(%VALUE%*-1),RATIOS="KER03")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
////Pasaje a EERR Real Año Anterior al actual
///////////////// Cuentas FS
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM21,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_ANTERIOR%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_FS%
*WHEN RATIOS
*IS KCM21
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_FS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(EXPRESSION=(%VALUE%*-1), RATIOS="KER02")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
///////////////// Cuentas Otros costos medicos
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM21,KER02
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_ANTERIOR%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_OTROS%
*WHEN RATIOS
*IS KCM21
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_OTROS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(FACTOR=1,RATIOS="KER02")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
///////////// Frecuencia
*DESTINATION_APP = EERR
//*SKIP_DIM= RATIOS
*SKIP_DIM= ORIGENGASTO
*XDIM_MEMBERSET COMPARATIVO = REAL
*XDIM_MEMBERSET DATASOURCE = AD
*XDIM_MEMBERSET FILIALES = %FILIALES_SET%
*XDIM_MEMBERSET MONEDA = PES
*XDIM_MEMBERSET RATIOS = KCM15,KER03
*XDIM_MEMBERSET VERSION = VA
*XDIM_MEMBERSET TIEMPO = %PERIODO_ANTERIOR%
*XDIM_MEMBERSET CUENTACONTABLE = %CUENTAS_CM_FS%
*WHEN RATIOS
*IS KCM15
*WHEN CUENTACONTABLE
     *IS %CUENTAS_CM_FS%
        *WHEN TIPOSOCIO.CUENTA
        *IS
        *ELSE
     *REC(EXPRESSION=(%VALUE%*-1),RATIOS="KER03")  
    *ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT

Similar Messages

  • Clearing values in a script

    Hello All,
    I have a scenario where I need to change the data from USD to LC? I have this script below to do it. But there are few values in LC but not in USD that I need to zero out before the copy. I tried Clear_destination but it does not seem to work. I am on BPC 7.0M version. I am aware that clear_destination does not work on NW platform. Any help is appreciated.
    *XDIM_MEMBERSET TIME= %TIME_SET%
    *XDIM_MEMBERSET ENTITY= DORSTAT
    *XDIM_MEMBERSET ACCOUNTP = <ALL>
    *XDIM_MEMBERSET RPTCURRENCY = USD
    //*XDIM_MEMBERSET CATEGORY=ACT
    *WHEN ACCOUNTP
    *IS *
    *REC(RPTCURRENCY="LC")
    *ENDWHEN
    *CLEAR_DESTINATION
    *COMMIT
    Thanks for your help.

    Try this:
    *XDIM_MEMBERSET TIME= %TIME_SET%
    *XDIM_MEMBERSET ENTITY= DORSTAT
    *XDIM_MEMBERSET ACCOUNTP = <ALL>
    *XDIM_MEMBERSET RPTCURRENCY = LC
    //*XDIM_MEMBERSET CATEGORY=ACT
    *WHEN ACCOUNTP
    *IS *
    *REC(FACTOR=0
    *ENDWHEN
    *COMMIT
    *XDIM_MEMBERSET TIME= %TIME_SET%
    *XDIM_MEMBERSET ENTITY= DORSTAT
    *XDIM_MEMBERSET ACCOUNTP = <ALL>
    *XDIM_MEMBERSET RPTCURRENCY = USD
    //*XDIM_MEMBERSET CATEGORY=ACT
    *WHEN ACCOUNTP
    *IS *
    *REC(RPTCURRENCY="LC")
    *ENDWHEN
    *COMMIT
    Edited by: Anis El-Mariesh on Oct 23, 2009 11:26 AM

  • .LGF Modification Error

    Hi,
    I am using BPC Version 7.0.104 MS
    OS: 2003 server edition
    I have created one application "Consolidate_1" using new dimension in it "C_Acct" , "C_Datasrc" ,"C_FLOW" and "C_Category"
    RATE1 application has been created and successfully imported.
    (Validation of Transformation file, Package execution and script logic validated)
    Well i am facing problem in the script logic for the consoildate_1 application
    I have modified my SYSTEM_CONSTANT.LGF file (from adminapp/consolidate_1) as follows:
    // application constants //
    *FUNCTION CATEGORYDIM=C_CATEGORY
    *FUNCTION TIMEDIM=TIME
    *FUNCTION CURRENCYDIM=GROUPS
    *FUNCTION ENTITYDIM=ENTITY
    *FUNCTION ACCOUNTDIM=C_ACCT
    *FUNCTION INTCODIM=INTCO
    *FUNCTION DATASRCDIM=C_DATASRC //
    This part is needed when a RATE cube
    // is associated to the application //
    (FX = single or multi currency) //
    *FUNCTION THISAPP=CONSOLIDATE_1 -- My consolidation application
    *FUNCTION RATEAPP=RATE1 ---New Rate Application consisting of in-built dimension.
    *FUNCTION RATEENTITYDIM=RATESRC
    *FUNCTION RATEACCOUNTDIM=RATE
    *FUNCTION INPUTCURRENCYDIM=INPUTCURRENCY
    *FUNCTION RATEENTITYMBR=RATEINPUT
    *FUNCTION RATESRCCALCMBR=RATECALC
    *FUNCTION AVGRATEID=AVG
    *FUNCTION ENDRATEID=END
    The modified FXTRANS.LGF (In the application) looks like :
    //============================================= //
    Currency translation logic //
    *INCLUDE SYSTEM_CONSTANTS.LGL
    *SYSLIB SYSTEM_LIBRARY.LGL
    *SYSLIB MULTICURRENCYTRANS.LGL
    *RUN_PROGRAM
    CURR_CONVERSION CATEGORY=%C_CATEGORY_SET%
    CURRENCY=%INPUTCURRENCY_SET%
    TID_RA=%TIME_SET%
    OTHER=ENTITY=%ENTITY_SET%
    RATEENTITY=Global
    *ENDRUN_PROGRAM
    *COMMIT
    I am facing 2 situations where I am getting errors:
    1. While executing the package - Error --> Mapping error; the dimension does not exist in the application. CATEGORY
    2. While validating the FXtrans.lgf/Default.lgf - Error --> "Invalid line in logic section : category = %C_categoy_set% invalid line in logic section"
    I have referred the threads mentioned below but still unable to resolve this issue as this is the first time I am working on SAP BPC so I don't know much about this tool!
    Invalid Dimension Entity in lookup
    Re: Invalid Dimension SALESACCOUNT in Lookup rule
    Can somebody show me the right path..
    Thanks
    SG

    Hi Nilanjan,
    yesterday i created new appset, application and new customized dimensions also.
    I have replaced RateSrc with R_Entity every where (System constant, in Default.lgf, Datafile and in Transformation file)
    Ratesrc -Entity - RptCurrency ( Dimension name- Dim Typ- Ref Dimension)
    R_Entity- Entity -InputCurrency ( Dimension name- Dim Typ- Ref Dimension)
    The why this RateSrc dimension error is coming up..
    My Questions:
    1. Do i need to change the default.xls of rate1 application also?
    2. Do i need to change the default.xls of other related application like finance which are referred by rate1 application?
    3. I have copied system_constant.lgl to my rate application from finance application but scrap this stuff n removed the file from rate1 application and created consolidate1 application and now the logic looks like below.
    *INCLUDE ..\consolidate1\system_constants.lgl
    *SELECT(%RATEMBRS%,[ID],RATEACCOUNTDIM,"CALC='N'")
    *XDIM_MEMBERSET RATEACCOUNTDIM=%RATEMBRS%
    *SELECT(%CURRMBRS%,[ID],INPUTCURRENCYDIM,"CALC='N'")
    *XDIM_MEMBERSET INPUTCURRENCYDIM=%CURRMBRS%
    *XDIM_MEMBER RATEENTITYDIM=RATEINPUT
    *WHEN INPUTCURRENCY.MD
    *IS "D"
    *REC(EXPRESSION=ROUND(1/%VALUE%,6),RATEENTITYDIM="RATECALC")
    *ELSE
    *REC(R_Entity="RATECALC")
    *ENDWHEN
    *CLEAR_DESTINATION
    *DESTINATION R_Entity=RATECALC
    also the system_constant.lgl look like:
    // application constants //
    *FUNCTION CATEGORYDIM=C_CATEGORY
    *FUNCTION TIMEDIM=TIME
    *FUNCTION CURRENCYDIM=INPUTCURRENCY
    *FUNCTION ENTITYDIM=R_ENTITY
    *FUNCTION ACCOUNTDIM=R_ACCT
    This part is needed when a RATE cube
    // is associated to the application //
    (FX = single or multi currency) //
    *FUNCTION THISAPP=CONSOLIDATE1 -- My consolidation application
    *FUNCTION RATEAPP=RATE1 ---New Rate Application consisting of in-built dimension.
    *FUNCTION RATEENTITYDIM=R_ENTITY
    *FUNCTION RATEACCOUNTDIM=R_ACCT
    *FUNCTION INPUTCURRENCYDIM=INPUTCURRENCY
    *FUNCTION RATEENTITYMBR=RATEINPUT
    *FUNCTION RATESRCCALCMBR=RATECALC
    *FUNCTION AVGRATEID=AVG
    *FUNCTION ENDRATEID=END
    Can you make out where i am missing??
    Thanks for the help till now..
    Saurabh

  • How to configure RATE in BPC 7.5

    Hello everyone,
    I just finished to instalar SAP BPC 7.5 MS the RATE app its there but I dont know how to configure.
    I work with RATE with version 7.0 but the RATE but was configurated for other person, but I dont know the steps to follow.
    Thanks for advance.

    Hello, my problem is I dont know how I do configurate RATE, in the before proyect I worked the RATE was configurated, but I dont know how, the last proyect is BPC 7 and in the app RATE in the spript Logic carpet inside the Default.lgf the next script.
    *SELECT(%RATEMBRS%,[ID],RATEACCOUNTDIM,"CALC='N'")
    *XDIM_MEMBERSET RATEACCOUNTDIM=%RATEMBRS%
    *SELECT(%CURRMBRS%,[ID],INPUTCURRENCYDIM,"CALC='N'")
    *XDIM_MEMBERSET INPUTCURRENCYDIM=%CURRMBRS%
    *XDIM_MEMBER RATEENTITYDIM=RATEINPUT
    *WHEN INPUTCURRENCY.MD
    *IS "D"
    //AV20100114 CONSOLIDACION DIFERENCIAL CAMBIARIO REQUIERE TODOS LOS DECIMALES
    //*REC(EXPRESSION=ROUND(1/%VALUE%,6),RATEENTITYDIM="RATECALC")
    *REC(EXPRESSION=1/%VALUE%,RATEENTITYDIM="RATECALC")
    *ELSE
    *REC(RATESRC="RATECALC")
    *ENDWHEN
    *CLEAR_DESTINATION
    *DESTINATION RATESRC=RATECALC
    But I saw the default.lgf is empty in the app RATE, I dont know what I have to put there.

  • Unable to run interface as scenario in package

    Hi All,
    I had a packages consists of variables,procedures and interfaces connected serially
    I created scenario for that package and it runs well
    later I created scenarios for the interfaces used in that package
    Instead of using interfaces i am using that scenarios in the package but it fails
    Please let me know if the above procedure is wrong
    Thanks,

    Dear Nilanjan,
    This is the Script logic we are using.
    //========================================
    //Send data at XX level to XXXX from FinanceDetails
    //Parameters:  Category, Time
    //Logic in FinanceDetails
    //========================================
    *SELECT(%XX_LIST%,ID,ORGDETAIL,[TYPE]='XX')
    //*XDIM_MEMBERSET DataSrc=Input
    *XDIM_MEMBERSET Category=ACTUAL
    *WHEN ORGDETAIL.XXENTRE
    *IS %XX_LIST%
    *REC(ORGDETAIL=ORGDETAIL.XXENTRE)
    *ENDWHEN
              *CLEAR_DESTINATION
              *DESTINATION_APP = FINANCE
              *ADD_DIM ACCTDETAILF=No_line
              *ADD_DIM RptCurrency=LC
              *RENAME_DIM  ORGDETAIL = ORGANISATION
    //========================================
    *COMMIT
    Please guide me .
    Regards,
    Srinivasan.

  • Currency conversion not working for foreign entity

    I am having an issue with currency conversion not generating the correct values for foreign entities. For entities where the currency is USD, I am able to see the LC amount being written to USD. However, for entites that have currencies other than USD, I just see zeros. I have double-checked to make sure that rates exist for the given currencies. Below is the logic script I am using which is a modificatio nof the multicurrency.lgl. Any help would be greatly appreciated.
    // filter the appropriate currencies and rates
    *SELECT(%REPORTING_CURRENCIES%, "[ID]", "RptCurrency", "[REPORTING] = 'Y'")
    *SELECT(%FX_RATES%,"[ID]","RATE","[GROUP]='FX RATE'")
    // set the appropriate region to clear
    //(all reporting currencies)
    *CLEAR_DESTINATION
    *DESTINATION RPTCURRENCY=%REPORTING_CURRENCIES%
    // load the rates from the RATE cube
    *LOOKUP RATE
    *DIM RATESRC="RATECALC"
    *DIM Rate=ARFIELD.RATETYPE
    *DIM SOURCECURR: INPUTCURRENCY=LOC_MILLOTH.CURRENCY
    *FOR %CURR%=%REPORTING_CURRENCIES%
    *DIM %CURR%:INPUTCURRENCY="%CURR%"
    *NEXT
    *ENDLOOKUP
    // define the translation rule
    *WHEN ARFIELD.RATETYPE
    *IS "NOTRANS"
    // translate
    *IS %FX_RATES%
           *FOR %CURR%=%REPORTING_CURRENCIES%
               *REC(FACTOR=LOOKUP(SOURCECURR)/LOOKUP(%CURR%),RptCurrency="%CURR%")
           *NEXT
    *ELSE
           *FOR %CURR%=%REPORTING_CURRENCIES%
               *REC(RptCurrency="%CURR%")
           *NEXT
    *ENDWHEN
    *FOR %CURR%=%REPORTING_CURRENCIES%
             [RptCurrency].[#%CURR%]=null
    *NEXT
    *COMMIT
    Regards,
    Karen

    Hi Karen,
    I'm no script logic expert so I won't comment on your code. If it's working for USD then the code is probably fine.
    There are a few other things you could check (these are based on investigation using the standard multicurrency script). They should line up with the standard Finance application from AppSet
    In the InputCurrency dimension for the currencies you want to convert into :
       Check property Reporting is equal to "Y"
       Check property Group is set to "Report"
       Check propoerty MD has a value of "M" or "D"
    In the RptCurrency dimension you need to have entries for the the currencies you want to convert into (AppSet only has USD and EUR to start). Also for each of the currencies :
       Check property Reporting is equal to "Y"
       Check property Group is equal to "Report"
       Check property Transfer is equal to "Y"
    I'm not convinced that the Transfer value is required but from my testing if you get the above set up and use the standard multicurrency script it will work.
    The testing I did was translating into USD, EUR, GBP, CHF, AUD etc
    Hope this helps.
    Thanks.
    Bradley Newcombe.
    Edited by: Bradley Newcombe on Apr 28, 2009 1:30 PM

  • Multiple input currencies for a single entity

    My client must support multiple currencies for any given Entity.  For instance, Spanish Company #1 must be able to record transactions (sales and purchases/costs) in both Euros and in British Pounds, since both currencies are used by this entity.  Since, by the default configuration, an Entity can only support one currency (LC), I am searching for alternatives.
    Option 1:
    Use a user-defined dimension, such as a Geography dimension, as the dimension that is tied to Rate, and modify the FX scripts accordingly.  The Spanish Company #1 will remain in the Entity Type dimension.
    Option 2:
    Assign a different dimension as the Entity Type, such as a Geography dimension.  And make the former Entity Type dimension, where the Spanish Company #1 lives, into a user-defined dimension.
    Are their other options to consider?
    We are planning on supporting multiple reporting currencies (it is currently just USD), so we are reluctant to use Option 1, because the business rules may be hard-coded to the Entity dimension (are they?).  We also plan on performing intercompany eliminations down the road, so we are reluctant to use Option 2, since at that time we will be relying on the entity type for those functions. 
    Thank you for your thoughts on this.

    If you're interested, here's some FX translation logic with account-level override. You may be able to modify this to choose some other dimension as your override -- datasrc, or whatever makes most sense.
    // Factors that impact currency conversion:
    // Entity.Currency property (required)
    // Account.Currency property (optional, overrides Entity.Currency if set)
    // Account.RateType - AVG & END use corresponding rate types, blank value translates at 1:1, NOTRANS produces no record in reporting currency
    // InputCurrency.Reporting = "Y" produces a translation; must have a matching member in RptBasis
    // look up dimension names and parameters
    *INCLUDE system_constants.lgl
    *SELECT(%REPORTING_CURRENCIES%, "[ID]", "RptBasis", "[REPORTING] = 'Y'")
    *SELECT(%FX_RATES%, "[ID]", "RATE", "[GROUP] = 'FX RATE'")
    *CLEAR_DESTINATION
    *DESTINATION RPTBASIS=%REPORTING_CURRENCIES%
    // look up rates from Rate cube
    *LOOKUP RATE
      *DIM RATEENTITY="RATECALC"
      *DIM RATE=ACCOUNTDIM.RATETYPE
      *DIM SOURCECURR1:INPUTCURRENCY=ENTITY.CURRENCY
      *DIM SOURCECURR2:INPUTCURRENCY=ACCOUNT.CURRENCY
      *FOR %CURR%=%REPORTING_CURRENCIES%
        *DIM %CURR%:INPUTCURRENCY="%CURR%"
      *NEXT
    *ENDLOOKUP
    // translation rule
    *WHEN ACCOUNTDIM.RATETYPE
      *IS "NOTRANS"
      // skip; no ReportingCurrency records are generated for these accounts
      *IS %FX_RATES%
      // translate AVG & END accounts
          *WHEN ACCOUNTDIM.CURRENCY
            *IS <>""
            // use the currency of the account
              *FOR %CURR%=%REPORTING_CURRENCIES%
                *REC(FACTOR=LOOKUP(SOURCECURR2)/LOOKUP(%CURR%),RPTBASIS="%CURR%")
              *NEXT
           *ELSE
            // use the currency of the entity
             *FOR %CURR%=%REPORTING_CURRENCIES%
               *REC(FACTOR=LOOKUP(SOURCECURR1)/LOOKUP(%CURR%),RPTBASIS="%CURR%")
             *NEXT
          *ENDWHEN
       *ENDWHEN
      *ELSE
      // For account.ratetype that is blank, ReportingCurrency values are equal to LC values.
         *FOR %CURR%=%REPORTING_CURRENCIES%
            *REC(RPTBASIS="%CURR%")
         *NEXT
    *ENDWHEN
    *COMMIT

  • Can you give a document link for script logic for NW version7??

    Hi all,
        who can give a document link for script logic for nw version7??
        thanks in advance!!

    Hi Sheldon,
    I read through your "HOW to...Custom BADI for replicating Destination_App...." and it was great. However, Can this call also be used with WHEN/ENDWHEN statements? In the MS version, when using Destination_App, I was also able to map source accounts into the correct destination accounts as well as source E type dim to desination E type dim with the following script (the mapping to destination ID was stored as properties within the source dimensions).
    *INCLUDE SYSTEM_CONSTANTS.LGL     
    *SELECT(%OPACCT%, "[ID]", "OPACCOUNT", " [TRF_FPA] = 'Y'")
    *SKIP_DIM = COSTCTR
    *ADD_DIM = BRANDS
    *RENAME_DIM OPAccount = Account_F
    *RENAME_DIM CATEGORY = CATEGORY_F
    *RENAME_DIM ENTITY = MARKET
    *RENAME_DIM DATASRC = DATATYPE
    *XDIM_MEMBERSET ENTITY = %ENTITY_SET%
    *XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
    *XDIM_MEMBERSET TIME = %TIME_SET%     
    *XDIM_MEMBERSET OPACCOUNT = %OPACCT%
    *DESTINATION_APP = FPA
    *CLEAR_DESTINATION
    *DESTINATION OPACCOUNT = %OPACCT%
    *DESTINATION TIME = %TIME_SET%
    *DESTINATION CATEGORY = %CATEGORY_SET%
    *DESTINATION CURRENCY = LC,USD
    *WHEN ENTITY
    *IS %ENTITY_SET%
    *REC(ENTITY=COSTCTR.FPA_MKT,OPAccount=OPAccount.Consol_FPA)     
    *ENDWHEN     
    *COMMIT
    I have tried the following code in the NW version, and it won't validate. Do you know if there's a way to achieve this?
    *XDIM_MEMBERSET CATEGORY<>ACTUAL
    *XDIM_MEMBERSET ACCOUNTHR =BASE_ANNL_SAL,BONUS,BENEFITS_TAX
    *XDIM_MEMBERSET CURRENCY=LC
    *START_BADI DAPP
    DESTINATION_APP=CC_PLAN
    RENAME_DIM="ACCOUNTHR=ACCOUNTCC"
    WRITE=OFF
    *END_BADI
    *WHEN ACCOUNTHR
    *IS "BASE_ANNL_SAL","BONUS","BENEFITS_TAX"
    *REC(ACCOUNTCC=ACCOUNTHR.CCPLANACCT)     
    *ENDWHEN
    Regards,
    Karen

  • Syntax Validation error in Runlogic section

    Hi Experts,
    I am using BPC 7.5 Microsoft version, I am validating a script logic containing Runlogic section and validation result is showing syntax error:
    Runlogic Section:
        *RUNLOGIC
            *APP=FINANCE
            *LOGIC=FXTRANS
            *DIMENSION DATASRC=HEADCOUNTAPP
            *DIMENSION EMPL_TYPE=
            *DIMENSION EMPLOYEE=
            *DIMENSION RPTCURRENCY=LC
            *DIMENSION TIME=descendants([time].[%TIME_PREFIX%.total],99,leaves)
        *ENDRUNLOGIC
    Syntax error showing at:
           *DIMENSION EMPL_TYPE=
            *DIMENSION EMPLOYEE=
    Above Runlogic section is being called from an headcount logic and as you see it is calling the Fxtrans logic of Finance Application, Now the 2 statements on which validation checker is showing syntax error are dimension instructions and are of headcount application.
    This same was working in BPC 5.1, Please advice how to correct this syntax error.
    Thanks & Regards,
    Rohit

    Hi John,
    Thanks for your reply, I don't have much knowledge and Experience in writing Script logic and this logic has been written by SAP consultants who implemented the BPC at our client place. As per my understanding The main logic "PushToFinance" is in Headcount application and Runlogic section in it is calling "FxTrans" logic of Finance application and these two dimension instructions are referring to headcount application dimension.
    I am thinking on these lines:
    1. Is it logically write to have dimension instructions pointing to dimensions of headcount application when runlogic section is calling the logic of Finance application and these dimensions are not available in finance application.
    2. Might be 5.1 Validation engine(logic engine) passes these kind of statements and 7.5 is showing syntax error on this.
    I have gone through help file of Runlogic and there it is written that these kind of instructions are used to "blank out scope of invalid dims" but not sure whether they are used to blank out the scope of dimensions of application (Finance) we are using in runlogic section or dimensions of the main application (Headcount)
    From help File:
    *RUNLOGIC
    *APP=MAIN
    *DIMENSION ENTITY2= //blank out scope of invalid dims
    *LOGIC=DefaultTranslation
    *ENDRUNLOGIC
    Please Advice and let me know your comments on this.
    Thanks & Regards,
    Rohit
    Please find the complete logic "PushToFinance" below:
        *INCLUDE SYSTEM_CONSTANTS.lgl
        // Move Headcount Cube Results to Finance Cube
        *XDIM_MEMBERSET TIME=%YEAR%.JAN,%YEAR%.FEB,%YEAR%.MAR,%YEAR%.APR,%YEAR%.MAY,%YEAR%.JUN,%YEAR%.JUL,%YEAR%.AUG,%YEAR%.SEP,%YEAR%.OCT,%YEAR%.NOV,%YEAR%.DEC
        *XDIM_MEMBERSET EMPLOYEE=<ALL>
        *XDIM_MEMBERSET EMPL_TYPE=<ALL>
        *XDIM_MEMBERSET DATASRC=<ALL>
        *FLAG_PERIOD = CATEGORY.CURRMO
        *XDIM_FILTER TIME > %FLAG_PERIOD%
        *CALCULATE_DIFFERENCE=0
        //*CLEAR_DESTINATION
        //   *DESTINATION DATASRC<>DUMMY
        *DESTINATION_APP=FINANCE
            *SKIP_DIM=Employee
            *SKIP_DIM=EMPL_TYPE
            *ADD_DIM RPTCURRENCY=LC
            *RENAME_DIM AccountHC=Account
        *WHEN ACCOUNTHC.TRANSFER
        *IS = Y
            *REC(FACTOR=1,DataSrc="HeadcountApp")
        *ENDWHEN
        *COMMIT
        *RUNLOGIC
            *APP=FINANCE
            *LOGIC=FXTRANS
            *DIMENSION DATASRC=HEADCOUNTAPP
            *DIMENSION EMPL_TYPE=
            *DIMENSION EMPLOYEE=
            *DIMENSION RPTCURRENCY=LC
            *DIMENSION TIME=descendants([time].[%TIME_PREFIX%.total],99,leaves)
        *ENDRUNLOGIC

  • ICELIM script in NW

    In BPC NW, we have the followieng ICELIM code.
    //For running US widely used intercompany elimination
    *RUN_PROGRAM US_ELIM
        CATEGORY = %C_CATEGORY_SET%
        GROUP = %GROUPS_SET%
        TID_RA = %TIME_SET%
        OTHER = [ENTITY=%ENTITY_SET%]//For More than one other scope parameters: OTHER = [ENTITY=%ENTITY_SET%;INTCO=%INTCO_SET%...]
    *ENDRUN_PROGRAM
    While in BPC M. we have the following script:
    *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] <>''")
         *XDIM_MEMBERSET ENTITYDIM<>%ELIM_ENTITIES%
         *XDIM_MEMBERSET CURRENCYDIM=%REPORTING_CURRENCIES%
         *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%
    *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)                              
              *REC(ENTITYDIM=%CPE%,ACCOUNTDIM=ACCOUNTDIM.ELIMACC)
              *ENDWHEN
         *ENDWHEN
         *GO
    *ENDSUB
    I would assume that  the above logic for IC elimination is same for both BPC M ans NW,  which function modeul we can we find the ABAP code function to realize the same logic

    Hi,
    I think the LC Output does not use Acrobat to render XDP's and the LC Output does not have a SOAP object and this is why I think you are getting the error.
    I can't think how to work around this, other that to try and make the code only run once it is opened in the Acrobat host and not on the server while it is being rendered.
    Regards
    Malcolm

  • BPC Intra-App Data transfer

    We need to copy data from APP1 to APP2,  In APP1, the source members are all calculated members and in APP2 they are leaf members.  The member names are the same in both apps.  We've wrestled with CALC_DUMMY_ORG and have gotten records returned from APP1, but they're not loading to APP2.
    We have a property in the source dim with a flag set to "Y" for those members that need to copy over, so our WHEN statement says *WHEN Dim.Property
    *IS "Y"
    Any help would be apprecated.
    Thanks
    Tom

    Hi Tom,
    I always do it a little bit different, but it works.
    I create a dimension in the source application with an extra property called somethin like: 'link_to_consol'. I set the value for all base members to which account the number must go in the destination app.
    The following piece of logic does in this case the trick:
    //this logic will copy the data from GL to CONSOL
    *xdim_memberset intco=<all>
    *xdim_memberset accountGL=<all>
    *xdim_memberset finspec=<all>
    *xdim_memberset costcenter=<all>
    *xdim_memberset jobnr=<all>
    *xdim_memberset groups=LC
    *calculate_difference
    *DESTINATION_APP =CONSOL
    *SKIP_DIM = jobnr
    *RENAME_DIM AccountGL = Account
    *ADD_DIM Datasrc = dUPLOAD
    *clear_destination
    *WHEN accountgl.link_to_consol
    *IS <> ""
        *REC(AccountGL=AccountGL.Link_TO_Consol)
    *ENDWHEN
    *COMMIT
    Alwin

  • Script Logic Error

    Hi All,
    I am trying to validate the following script in my finance application for currency conversion.
    *INCLUDE SYSTEM_CONSTANTS.LGL
    *SELECT(%REPORTING_CURRENCIES%, "[ID]", "CURRENCYDIM", "[REPORTING] = 'Y'")
    *SELECT(%FX_RATES%, "[ID]", "RATEACCOUNTDIM", "[GROUP] = 'FX RATE'")
    *SELECT(%FX_ENTITIES%, "[ID]", "ENTITYDIM", "[IS_CONVERTED] = 'Y' AND [ISBASEMEM] = 'Y'") 
    *CLEAR_DESTINATION
    *DESTINATION CURRENCYDIM=%REPORTING_CURRENCIES%
    *DESTINATION ENTITYDIM=%FX_ENTITIES%
    *LOOKUP RATEAPP
    *DIM RATEENTITYDIM="RATEINPUT"
    *DIM RATEACCOUNTDIM=ACCOUNTDIM.RATETYPE
    *DIM SOURCECURR:INPUTCURRENCYDIM=ENTITYDIM.CURRENCY
    *FOR %CURR%=%REPORTING_CURRENCIES%
    *DIM %CURR%:INPUTCURRENCYDIM = u201D%CURR%u201D
    *NEXT
    *ENDLOOKUP
    *XDIM_FILTER ENTITYDIM=%FX_ENTITIES%
    *WHEN ACCOUNTDIM.RATETYPE
    *IS "NOTRANS"
    *IS %FX_RATES%
                 *FOR %CURR%=%REPORTING_CURRENCIES%
                   *REC(FACTOR=LOOKUP(SOURCECURR)/LOOKUP(%CURR%),CURRENCYDIM="%CURR%")
                  *NEXT
    *ELSE
                  *FOR %CURR%=%REPORTING_CURRENCIES%
                   *REC(CURRENCYDIM="%CURR%")
                  *NEXT
    *ENDWHEN
    *COMMIT
    Validation gives me error saying "invalid Dimension "USD" in lookup".
    Please Suggest.
    Diksha.

    Hi Diksha,
    Try putting brackets in the default properties used in your select statements. For example:
    *SELECT(%REPORTING_CURRENCIES%, "ID", "CURRENCYDIM", "[REPORTING] = 'Y'")
    *SELECT(%FX_RATES%, "ID", "RATEACCOUNTDIM", "[GROUP] = 'FX RATE'")
    *SELECT(%FX_ENTITIES%, "ID", "ENTITYDIM", "[IS_CONVERTED] = 'Y' AND [ISBASEMEM] = 'Y'")
    Hope this helps,
    Marvin

  • Clear in Other Model

    Hello Experts,
    We are using BPC 10 microsoft version with SQL Server 2008, we are having a requirement where we need to clear the data in Finance application while logged in into Headcount application, I know its not possible to call a package of different model while not logged in that model.
    Can this be achievable with help of any logic instructions e.g. *RUNALLOCATION or *DESTINATION_APP
    Please Advise.
    Thanks & Regards,
    Rohit

    Hello Roberto,
    I have tried both ways:
    1. destination_model inside the clear_destination (1st code below)
    2. clear_destination inside destination_model (2nd code below)
    In both the cases it is giving error as Account Dimension is invalid in code "The dimension '[ACCOUNT]' was not found in the cube when the string, [ACCOUNT].[TOTAL_SALARY], was parsed.". It might be because code is in HCM and Account dimension exist in Finance model.
    Is there any example of *Clear Destination and *Destination Model used with each other?
    Thanks & Regards,
    Rohit
    destination_model inside the clear_destination
    *INCLUDE SYSTEM_CONSTANTS.LGL
    *CLEAR_DESTINATION
    *DESTINATION_MODEL = Finance
    *SKIP_DIM= Empl_Cat,EMPL_TYPE,Employee,Job_Grade,Location,Position_HCM
    *RENAME_DIM Account_HCM=Account,Version=Category,DataSrc_HCM=DataSrc,Cost_Center_E=Org,Currency=RptCurrency
    *SELECT (%TIMEIDS%,ID,TIME,CALC='N' AND HIR='H1' AND CLSD<>'Y' AND YEAR IN (SELECT [YEAR] FROM mbrCATEGORY WHERE ID='FORECAST'))
    *MEMBERSET(%ACCOUNTS%,"DESCENDANTS([ACCOUNT].[TOTAL_SALARY],999,LEAVES)")
    *DESTINATION TIMEDIM=%TIMEIDS%
    *DESTINATION CATEGORYDIM=FORECAST
    *DESTINATION ACCOUNTDIM=%ACCOUNTS%
    clear_destination inside destination_model
    *INCLUDE SYSTEM_CONSTANTS.LGL
    *DESTINATION_MODEL = Finance
    *SKIP_DIM= Empl_Cat,EMPL_TYPE,Employee,Job_Grade,Location,Position_HCM
    *RENAME_DIM
    Account_HCM=Account,Version=Category,DataSrc_HCM=DataSrc,Cost_Center_E=Org,Currency=RptCurrency
    *SELECT (%TIMEIDS%,ID,TIME,CALC='N' AND HIR='H1' AND CLSD<>'Y' AND YEAR IN (SELECT [YEAR] FROM mbrCATEGORY WHERE ID='FORECAST'))
    *MEMBERSET(%ACCOUNTS%,"DESCENDANTS([ACCOUNT].[TOTAL_SALARY],999,LEAVES)")
    *CLEAR_DESTINATION
    *DESTINATION TIMEDIM=%TIMEIDS%
    *DESTINATION CATEGORYDIM=FORECAST
    *DESTINATION ACCOUNTDIM=%ACCOUNTS%

  • Invalid line of logic for RolltoBS logic

    Hi all,
    When I try to validate my logic file, I receive the error "invalid line in logic section: ROLLTOBS( 3116000, CALCNI, FINSTMT, PL, DEC )
    I simply took this logic line from apshell and modified for my accounts.  Is there anything else I need to do?
    Thank you,
    Jennifer

    To help trouble-shoot your problem, I'll describe how ROLLTOBS works. But to cut a long story short -- you should really consider using the account transformation business rule (SPRunCalcAccount) instead of this ROLLTOBS function. It is far easier to set up, faster, more reliable, and more flexible. In periodic data storage apps, it does a wonderful job of accumulating the periodic P&L accounts to YTD B/S, without you needing to sweat all the details in messy code like the ROLLTOBS.
    ROLLTOBS isn't a logic instruction by itself.
    In ApShell (on 5.1 at least), it refers to a function that is located in the System_Library.lgl file. I can see that the Finance app's default logic has this ROLLTOBS commented out, but to make it work, you need the following:
    *SYSLIB System_Library.lgl
    // I'll explain this next line in a second...
    *INCLUDE system_constants.lgl
    //Move Net Income to Balance Sheet
    ROLLTOBS( CYNI, CALCNI, FINSTMT, PL, DEC )
    You may then have a problem if your application structure is different from ApShell. Check out the code in the system library file, which is located here:
    Data\Webfolders\ApShell\SystemLibrary\Logic Library
    You can see below that there are references to other functions such as ACCOUNTDIM and TIMEDIM, which must be defined somewhere for the logic to work. They are normally defined in your system_constants.lgl file, located in the same AdminApp\Application directory as the logic files themselves. Therefore, you need to include that file, too.
    Also, as I look at this code now, I see the time dim memberset definition is very old syntax. I believe there are now better ways to expand scope to prior periods.
    //=========================================================================================
    *SUB ROLLTOBS(%bsaccount%, %workaccount%, %acctproperty%, %propertyvalue%, %LastPeriod%)
    // Roll a periodic PL account to a BS account
    // Requires a property to identify the PL accounts to be totaled
    // Requires a temporary work account to calculate the total of the PL account
    //=========================================================================================
    // set the appropriate region to clear
    //(current period, not prior)
    *CLEAR_DESTINATION
    *DESTINATION TIMEDIM=%TIME_SET%
    *DESTINATION ACCOUNTDIM=%bsaccount%,%workaccount%
    *WHEN ACCOUNTDIM.%acctproperty%
      *IS "%propertyvalue%"
        *REC(ACCOUNTDIM=%workaccount%)
    *ENDWHEN
    *COMMIT
    // must process one period at a time
    *PROCESS_EACH_MEMBER=TIME
    // enforce loading the appropriate region
    *XDIM_MEMBERSET TIMEDIM=[TIMEDIM].[%TIME_SET%],strtomember("["+[TIMEDIM].[%TIME_SET%].properties("PRIOR")+"]")
    *XDIM_MEMBERSET ACCOUNTDIM=%workaccount%,%bsaccount%
    *WHEN ACCOUNTDIM.ID
    *IS %workaccount%
      *WHEN TIMEDIM.CURRENT
      *IS %TIME_SET%
       *REC(ACCOUNTDIM="%bsaccount%")
      *ENDWHEN
    *IS %bsaccount%
      *WHEN TIMEDIM.CURRENT
      *IS<>%TIME_SET%
       *WHEN TIMEDIM.PERIOD
       *IS<>%LastPeriod%
        *REC(TIMEDIM="%TIME_SET%")
       *ENDWHEN
      *ENDWHEN
    *ENDWHEN
    *COMMIT
    *ENDSUB
    //=========================================================================================

  • Limited Currency Translation pt2

    Hey Experts!   Apparently I tried to post too much information into that last post.  Here's the high level:
    We're running BPC 7.0 (SQL 2008 DB)
    We've recently setup FX tranlation usign Script Logic in BPC. After setting it up, we realized that we need to filter the data being converted. A few months ago, I was sent a document from SAP support named "How To Configure Limited Currency Translation".
    I've followed this document very closely and I'm getting the following error when trying to send data to my system:
    ExecuteBaseLogic::Error in step 1 of QueryCubeAndDebug: -2147467259 Query (1, 99) Parser: The syntax for ',' is incorrect.
    I know this is telling me that there's a comma in the wrong spot somewhere, but I've checked the code 10x over and it matches SAPs document perfectly.
    Does anyone know what is causing this?  I can try to post my FXTrans script a reply.  Maybe that'll work.

    FX Trans.lgf
    //============================================= // Currency translation logic //=============================================
    *INCLUDE SYSTEM_CONSTANTS.LGL
    *SYSLIB  SYSTEM_LIBRARY.LGL
    //=================================================================================
    // MULTI-CURRENCY TRANSLATION LOGIC
    //=================================================================================
    // filter the appropriate currencies and rates
    *SELECT(%REPORTING_CURRENCIES%, "[ID]", "RPTCURRENCY", "[REPORTING] = 'Y'")
    *SELECT(%FX_RATES%, "[ID]", "RATE", "[GROUP] = 'FX RATE'")
    //Filter the Actuals Category from the Currency Conversion
    *SELECT(%FX_CATEGORIES%, "[ID]", "CATEGORYDIM", "[IS_CONVERTED] = 'Y'")
    // set the appropriate region to clear
    //(all reporting currencies)
    *XDIM_MEMBERSET RPTCURRENCY=LC
    *CLEAR_DESTINATION
    *DESTINATION RPTCURRENCY=%REPORTING_CURRENCIES%
    *DESTINATION CATEGORYDIM=%FX_CATEGORIES%
    // load the rates from the RATE cube
    *LOOKUP RATE
                    *DIM RATE=ACCOUNT.RATETYPE
                    *FOR %CURR%=%REPORTING_CURRENCIES%
                                    *DIM %CURR%:INPUTCURRENCY=BUSINESSUNIT.CURRENCY   
                                    *DIM %CURR%:RATEENTITY="%CURR%_RATE"
                    *NEXT
    *ENDLOOKUP
    // define the translation rule
    *XDIM_FILTER CATEGORYDIM=%FX_CATEGORIES%
    *WHEN ACCOUNT.RATETYPE
    *IS "NOTRANS"
                    // skip
    *IS %FX_RATES%
                    // translate
                    *FOR %CURR%=%REPORTING_CURRENCIES%
                      *REC(FACTOR=LOOKUP(%CURR%),RPTCURRENCY="%CURR%")
                    *NEXT
    *ELSE
                    // take as is
                    *FOR %CURR%=%REPORTING_CURRENCIES%
                        *REC(RPTCURRENCY="%CURR%")
                    *NEXT
    *ENDWHEN
    *COMMIT

Maybe you are looking for

  • 15-inch MacBook Pro w/ Retina Custom Build Delay

    On 11/25 I ordered a custom build 15-inch MacBook Pro with Retina display 2.6GHz and 1TB PCIe-based Flash Storage. Item still has not been shipped any idea as to the hold up? Is it the Flash storage? Be intereseted in hearing from others about their

  • Report opportunity revenue based on a snap shot

    Is it possible to pull a report on what expected opportunity revenue was on the 3rd day of the month from the analytics section of the reporting? We are looking to compare the expected closed revenue from the snapshot taken on the 3rd to the current,

  • Acrobat 10.1.3 Word Crash when converting 2007 document to PDF.

    Word 2007 Crashes with the error seen below, when using the Convert to PDF button on the Acrobat ribbon in Word.  The document may have footnotes.  I can convert other docuemnts to pdf in this fashion.  Is there an issue converting Word Docuements to

  • [SOLVED] udev not creating gamepad device

    I'm having trouble with an USB gamepad that actually is an Playstation controller adapter in Arch, I cannot use it in PCSX-Reloaded for instance. Here's the output of lsusb when plugged: Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Ma

  • HELP in Select box

    Hi all, I have 3 select boxes in a single JSP page.Like First Select box <select name="animal> <option>Cat</option>      <option>Dog</option>      <option>Donkey</option>      <option>Monkey</option>      </select> Second select box      <select name