Hi, Experts!
We are using SAP BPC 10.0 SP04 NW.
In a Logic Script ,we have a lookup that has *XDIM_MEMBERSET ACCT = "AREA_APOIOADM".
Unfortunately, it only works if we change:
*DIM ENTITY=ACCT to *DIM = ENTITY = "AREA_APOIOADM" // we would like to have more members at *xdim_memberset...
We use in another logic scripts the quite same logic and it is working well.
for example:
*XDIM_MEMBERSET ACCT = BAS(VENDAPRODUTOS)
*XDIM_MEMBERSET CATEGORY = "PROJETADO"
*XDIM_MEMBERSET ENTITY = BAS(TOTALEMPRESAS)
*XDIM_MEMBERSET RPTCURRENCY = "LC"
*XDIM_MEMBERSET TIME = %DAYS_NOTCLOSED%
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*LOOKUP SALES
*DIM LOOKSALES:TIME=TIME
*DIM CATEGORY=CATEGORY
*DIM ACCOUNT = "VLRRECEBVENDA"
*DIM AUDITCV = "CV_AREALIZAR"
*DIM CUSTOMER = "TOTALCLIENTE"
*DIM ENTITY = ENTITY
*DIM PRODUCT = ACCT
*DIM RPTCURRENCY = "LC"
*DIM SALESAGREEMENT = "TOTALCONTRATOVENDA"
*DIM MEASURES = "PERIODIC"
*ENDLOOKUP
*WHEN ACCT
*IS *
*REC(EXPRESSION=LOOKUP(LOOKSALES))
*ENDWHEN
*COMMIT
We reproduce the test we did below:
a) SCRIPT 1: IT WORKS!
*SYSLIB SYSTEM_CONSTANTS.LGF
*SELECT (%MTHS_NOTCLOSED%, "[ID]",TIME, "[CLOSED]='N' AND [LEVEL]='MONTH' AND [CALC]='N'") // INCLUI MESES NAO FECHADOS
*SELECT (%ACCT_CALC_DESP%, "[ID]",ENTITY, [TYPE]='GRUPOAREA') // INCLUI AS RUBRICAS DE DESPESAS
*XDIM_MEMBERSET ACCT = "AREA_APOIOADM"
*XDIM_MEMBERSET CATEGORY = "PROJETADO"
*XDIM_MEMBERSET ENTITY = "EMP_CECO"
*XDIM_MEMBERSET RPTCURRENCY = "LC"
*XDIM_MEMBERSET TIME = %MTHS_NOTCLOSED%
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*LOOKUP EXPENSE
*DIM LOOKEXPENSE:TIME=TIME
*DIM CATEGORY= "ORCADO"
*DIM RPTCURRENCY="LC"
*DIM ACCTEXP="TOTALCONTA"
*DIM ENTITY="AREA_APOIOADM"
*DIM AUDITTRAIL="DESP_TOTALCOMALOC"
*DIM SCHEME="CAIXA"
*DIM FLOW="SEMABERTURA"
*DIM MEASURES="PERIODIC"
*ENDLOOKUP
*WHEN ACCT
*IS *
*REC(EXPRESSION=LOOKUP(LOOKEXPENSE))
*ENDWHEN
//*COMMIT
A.1 ) DATA TO WRITE BACK:
ACCT CATEGORY ENTITY RPTCURRENCY TIME SIGNEDDATA
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.01 163256.11
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.02 684867.86
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.03 1000419.39
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.04 916873.34
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.05 947116.22
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.06 963849.12
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.07 942231.11
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.08 992421.86
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.09 1015967.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.10 944560.73
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.11 961716.98
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.12 947449.16
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.01 463132.33
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.02 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.03 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.04 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.05 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.06 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.07 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.08 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.09 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.10 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.11 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.12 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.01 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.08 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.09 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.10 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.11 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.12 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2017.01 0.00
B) SCRIPT 2: NOT WORKING - Change in line *DIM ENTITY = ACCT
*SYSLIB SYSTEM_CONSTANTS.LGF
*SELECT (%MTHS_NOTCLOSED%, "[ID]",TIME, "[CLOSED]='N' AND [LEVEL]='MONTH' AND [CALC]='N'") // INCLUI MESES NAO FECHADOS
*SELECT (%ACCT_CALC_DESP%, "[ID]",ENTITY, [TYPE]='GRUPOAREA') // INCLUI AS RUBRICAS DE DESPESAS
*XDIM_MEMBERSET ACCT = "AREA_APOIOADM"
*XDIM_MEMBERSET CATEGORY = "PROJETADO"
*XDIM_MEMBERSET ENTITY = "EMP_CECO"
*XDIM_MEMBERSET RPTCURRENCY = "LC"
*XDIM_MEMBERSET TIME = %MTHS_NOTCLOSED%
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*LOOKUP EXPENSE
*DIM LOOKEXPENSE:TIME=TIME
*DIM CATEGORY= "ORCADO"
*DIM RPTCURRENCY="LC"
*DIM ACCTEXP="TOTALCONTA"
*DIM ENTITY=ACCT
*DIM AUDITTRAIL="DESP_TOTALCOMALOC"
*DIM SCHEME="CAIXA"
*DIM FLOW="SEMABERTURA"
*DIM MEASURES="PERIODIC"
*ENDLOOKUP
*WHEN ACCT
*IS *
*REC(EXPRESSION=LOOKUP(LOOKEXPENSE))
*ENDWHEN
//*COMMIT
B.1 ) LGX: - RETURN THE RECORDS, BUT ALL RECORDS WITH ZERO
*XDIM_MEMBERSET ACCT = "AREA_APOIOADM"
*XDIM_MEMBERSET CATEGORY = "PROJETADO"
*XDIM_MEMBERSET ENTITY = "EMP_CECO"
*XDIM_MEMBERSET RPTCURRENCY = "LC"
*XDIM_MEMBERSET TIME = 2014.01,2014.02,2014.03,2014.04,2014.05,2014.06,2014.07,2014.08,2014.09,2014.10,2014.11,2014.12,2015.01,2015.02,2015.03,2015.04,2015.05,2015.06,2015.07,2015.08,2015.09,2015.10,2015.11,2015.12,2016.01,2016.08,2016.09,2016.10,2016.11,2016.12,2017.01
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*LOOKUP EXPENSE
*DIM LOOKEXPENSE:TIME=TIME
*DIM CATEGORY= "ORCADO"
*DIM RPTCURRENCY="LC"
*DIM ACCTEXP="TOTALCONTA"
*DIM ENTITY=ACCT
*DIM AUDITTRAIL="DESP_TOTALCOMALOC"
*DIM SCHEME="CAIXA"
*DIM FLOW="SEMABERTURA"
*DIM MEASURES="PERIODIC"
*ENDLOOKUP
*WHEN ACCT
*IS *
*REC(EXPRESSION=LOOKUP(LOOKEXPENSE))
*ENDWHEN
*COMMIT
-------------------------------------------------------------------------------------------------------------------------------------
LOG:
LOG BEGIN TIME:2014-02-20 12:08:22
FILE:\ROOT\WEBFOLDERS\CEREAL \ADMINAPP\CASHFLOW\TEST.LGF
USER:BPCADMINBIP
APPSET:CEREAL
APPLICATION:CASHFLOW
[INFO] GET_DIM_LIST(): I_APPL_ID="CASHFLOW", #dimensions=6
ACCT,CATEGORY,ENTITY,MEASURES,RPTCURRENCY,TIME
#dim_memberset=6
ACCT:AREA_APOIOADM,1 in total.
CATEGORY:PROJETADO,1 in total.
ENTITY:EMP_CECO,1 in total.
RPTCURRENCY:LC,1 in total.
TIME:2014.01,2014.02,2014.03,2014.04,2014.05,...31 in total.
MEASURES:PERIODIC,1 in total.
REC :LOOKUP(LOOKEXPENSE)
CALCULATION BEGIN:
QUERY PROCESSING DATA
QUERY TIME : 182.00 ms. 31 RECORDS QUERIED OUT.
QUERY REFERENCE DATA
QUERY LOOKUP DATA FROM APPLICATION: EXPENSE
QUERY TIME : 1071.00 ms. 807 RECORDS QUERIED OUT.
CALCULATION TIME IN TOTAL :28.00 ms.
31 RECORDS ARE GENERATED.
CALCULATION END.
ENDWHEN ACCUMULATION: 31 RECORDS ARE GENERATED.
DATA TO WRITE BACK:
ACCT CATEGORY ENTITY RPTCURRENCY TIME SIGNEDDATA
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.01 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.02 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.03 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.04 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.05 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.06 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.07 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.08 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.09 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.10 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.11 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2014.12 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.01 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.02 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.03 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.04 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.05 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.06 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.07 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.08 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.09 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.10 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.11 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2015.12 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.01 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.08 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.09 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.10 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.11 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2016.12 0.00
AREA_APOIOADM PROJETADO EMP_CECO LC 2017.01 0.00
31 RECORDS HAVE BEEN WRITTEN BACK.
WRITING TIME :336.00 ms.
SCRIPT RUNNING TIME IN TOTAL:1.83 s.
LOG END TIME:2014-02-20 12:08:24
Could anybody help us? Is there any way to write *DIM ENTITY= ACCT (maybe the problem is because one dimension is entity and another is account...), because when we use *DIM PRODUCT= ACCT it works...
Best regards,
Ana Teresa