Skip to Content

maximum loops *for *next allowed in bpc logic script

Hi,

I am trying the below logic script but I get the following error. I have 5 loops for 5 variable using *for/*next. Is it because of more looping? I did not get this error when tried with 2 loops.

at UJKT:

"no more space for extending..

at validation in BPC web client:

error: "unhandled error(HTTP Status:500):unmarshal.invalid.xml"

*XDIM_MEMBERSET TIME AS %TIME_VAR%=BAS(2014.TOTAL)

*SELECT(%PROD_SKU_VAR%,"[ID]",PRODUCT_SKU,"[CALC]='N'")

*SELECT(%PROD_VAR%,"[ID]",PRODUCT,"[CALC]='N'")

*SELECT(%UOM_VAR%,"[ID]",UOM,"[CALC]='N'")

*XDIM_MEMBERSET COMPANY AS %COMPANY_VAR%=DR01,DV01

*XDIM_MEMBERSET UOM=NO_UOM

*XDIM_MEMBERSET VERSION=BUDV0_2014

*XDIM_MEMBERSET TIME=2014.INP

*XDIM_MEMBERSET INPUTCURRENCY=AED

*XDIM_MEMBERSET PRODUCT_SKU=NO_PRDSKU

*XDIM_MEMBERSET PRODUCT=NO_PRD

*XDIM_MEMBERSET METRICS=COGS_PRICE

*WHEN PRODUCT_RM

*IS "<>NO_RM"

*FOR %TIME_LOOP%=%TIME_VAR%

*FOR %PROD_SKU_LOOP%=%PROD_SKU_VAR%

*FOR %PROD_LOOP%=%PROD_VAR%

*FOR %UOM_LOOP%=%UOM_VAR%

*FOR %COMP_LOOP%=%COMPANY_VAR%

*BEGIN

*REC(EXPRESSION=([TIME].[%TIME_LOOP%],[PRODUCT].[%PROD_LOOP%],[PRODUCT_SKU].[%PROD_SKU_LOOP%],[INPUTCURRENCY].[NO_INPUTCURR],[UOM].[%UOM_LOOP%],[METRICS].[COGS_VOL],

[COMPANY].[%COMP_LOOP%])*%VALUE%,TIME=%TIME_LOOP%,PRODUCT=%PROD_LOOP%,PRODUCT_SKU=%PROD_SKU_LOOP%,METRICS="COGS_AMT",COMPANY=%COMP_LOOP%,UOM=%UOM_LOOP%)

*END

*NEXT

*NEXT

*NEXT

*NEXT

*NEXT

*ENDWHEN

Regards,
Draksharam

Error1.PNG (37.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 06, 2014 at 03:39 PM

    Hi,

    Even the validation is taking a long time and failing at the end with these loops. It's not throwing any format error though. I had to use these many loops for variables since those can't be hardcoded? is there any other way than loops? your ideas are highly appreciated.

    Regards,
    Draksharam

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.