Skip to Content
0
Former Member
Mar 27, 2008 at 12:44 PM

Fox code: unable to access infocube data

17 Views

Hi Friends,

Multi planning area consists of 2 basic areas. One infocube based on key figure model and other infocube based on account model.

Now unable to access infocube(keyfigure model) data in multi area. Here my taget cube is based on account model.

Operand display format is

{Key Figure Name,Calendar Year/Month,Key Figure Type,Plng Area}.

I haven't used any fields for condition. Below is excerpt of code.

calmon is global varible with range 04.2006 to 03.2007

DATA BPER TYPE 0CALMONTH. 'begin period

DATA SPER TYPE 0CALMONTH. 'starting period

DATA DPER TYPE 0CALMONTH. 'previous period

DATA COUNTER TYPE I.

SPER = VARI('CALMON',1).

DO.

BPER = TMVL(SPER,COUNTER).

DPER = TMVL(BPER,-1).

IF COUNTER > 0.

  • Assign previous period closing stock to opening stock

{ZQTY,BPER,000074,CASHFLOW} = {ZQTY,DPER,000079,CASHFLOW}.

ENDIF.

COUNTER = COUNTER + 1.

  • Production from crushing(28.5%)

{ZQTY,BPER,000076,CASHFLOW} =

{ZCRUSHING,BPER,#,SPROPLAN} * (28.5 / 100).

  • Raw Closing stock

{ZQTY,BPER,000085,CASHFLOW} =

{ZQTY,BPER,000084,CASHFLOW} -

{ZRAWSUGAR,BPER,#,SPROPLAN}.

IF COUNTER = 12.

EXIT.

ENDIF.

ENDDO.

Could any one of you help me out in this regard..appreciate ur help with points..

thanks,

RP

-


I also tried by incorporating versions too..

{Key Figure Name,Calendar Year/Month,Key Figure Type,Version,Plng Area}

  • Plan version

DATA NVER TYPE 0VERSION.

NVER = VARV(PVER). " returns globle variable value

{ZQTY,BPER,000074,NVER,CASHFLOW} =

{ZQTY,DPER,000079,NVER,CASHFLOW}.

{ZQTY,BPER,000076,NVER,CASHFLOW} =

{ZCRUSHING,BPER,#,FPV,SPROPLAN} * (28.5 / 100).

  • FPV is final version of SPROPLAN(planning application)

{ZQTY,BPER,000085,NVER,CASHFLOW} =

{ZQTY,BPER,000084,NVER,CASHFLOW} -

{ZRAWSUGAR,BPER,#,FPV,SPROPLAN}.

thanks, ...RP

-


I tried by inserting two fields Fiscal yr & value type in "fields for condition" , still i'm not getting..what might be the reason?

Is there any other way to achieve this?

thanks...RP

-


I'm already using standard area SPROPLAN in another multi-area, in that multi-area consists of 2 cubes both are based on key figure model only and correctly able to access the data for that application requirement, but here i'm not able to access SPROPLAN cube's data. I checked with different combinations. Any suggestions....

thanks,..RP

-


Keyfigure ZCRUSHING of SPROPLAN plannning area is already accessed in just above mentioned mulit-area, is because of this, am i getting the problem? Is there any refresing setting i have to mention?...thanks

Edited by: Kumar RP on Mar 27, 2008 1:51 PM

Edited by: Kumar RP on Mar 28, 2008 7:42 AM

Edited by: Kumar RP on Apr 1, 2008 6:53 AM

Edited by: Kumar RP on Apr 2, 2008 11:20 AM