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.
Second, in Planning funciton, I setup project and version as fields for conditions.
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.
Please kindly help. Thank you very much in advance.
Regards,
Wei