Quantcast
Channel: SCN : All Content - Business Planning
Viewing all articles
Browse latest Browse all 278

How to Parse the value from filter in RSPLAN into FOREACH in FOX Code?

$
0
0

Hi Experts,

 

I got a requiremnt to get value from key figure in FOX, but the value of the 2 of the characterics would be parsed from filter when run the planning sequence.

 

Based on the documents I searched, seems function VARV or OBJV could do it. but no luck with that. Pleaes see the detail below:

 

First, I setup 2 variables in filter in RSPLAN, so that user could select project an version manually before doing the FOX calculation.

1.jpg

 

Second, in Planning funciton, I setup project and version as fields for conditions.

2.jpg

Third, in FOX code, I parse the value from the variables using VARV or OBJV. But not working at all.

 

* For KEY FIGURE ZFORECAST

DATA Z_FORECAST TYPE F.

 

FOREACH Z_ACCOUNT.

* Get Values for Calculation

Z_FORECAST = { ZFORECAST, #, 'R-0001-01', JUL16 }. ------- If I hardcode the value, it is working

Z_FORECAST = { ZFORECAST, #, VARV('VAR_PROJECT'), VARV('VAR_VERSIONS') }. ----- not working

Z_FORECAST = { ZFORECAST, #, OBJV('VAR_PROJECT'), OBJV('VAR_VERSIONS') }. ----- not working

ENDFOR.

 

 

The error is always as below.

3.JPG

 

Please kindly help. Thank you very much in advance.

 

Regards,

 

Wei


Viewing all articles
Browse latest Browse all 278

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>