Skip to Content
0
Nov 15, 2012 at 02:35 AM

ERROR IN FUNCTION IN SCRIPT LOGIC

42 Views

Hello experts,

We have developed a function that passes some calculated accounts into P&L and BS accounts, the scope is determined through properties and selections via data manager.

We've tested this calc before, but now it seems that the script logic is not reading the first 3 months of the determined scope. Does any one have experienced this error? any idea why this could be happening?

all comments are welcome!!

Nidia

 
*SUB TRASPASO(%CONCEPTO%, %CUENTA%)
    *WHEN VERSION
    *IS <> REAL
        *WHEN CONCEPTO_CUENTA
        *IS %CONCEPTO%
            *REC(EXPRESSION=%VALUE% + GET(CONCEPTO_CUENTA="%CUENTA%"), CONCEPTO_CUENTA="%CUENTA%")
        *ENDWHEN
    *ENDWHEN
*ENDSUB

*MEMBERSET(%ART%, "Descendants([ART],100,LEAVES)")
*MEMBERSET(%ARTPURO%, "Descendants([ARTPURO],100,LEAVES)")
*MEMBERSET(%ARTFIN%, "Descendants([ARTFIN],100,LEAVES)")
*SELECT(%EJERPLAN%,"ID","TIEMPO","EJERCICIO='M'")

*XDIM_MEMBERSET TIEMPO = %EJERPLAN%
*XDIM_MEMBERSET VERSION = %VERSION_SET%
*XDIM_MEMBERSET MONEDA = MXN

TRASPASO_NEG(AFORO_IRREC, 52130304)
TRASPASO(AMORT_INGANT, 52010104)
TRASPASO_NEG(AMORT_OING, 521301)
*COMMIT