cancel
Showing results for 
Search instead for 
Did you mean: 

Variable has to be restricted to a single value

former_member381836
Participant
0 Kudos
572

Hi, all,

I get an error "Variable has to be restricted to a single value"

I'm executing a planning function and using a filter in a planning sequence.

Said filter is restricted in 0FISCYEAR: '#' and a ZVAR_FISCYEAR variable.

Same with 0VERSION: '#' and ZVAR_VERSION.

The planning function reads the variable using VARV. The variables allow for only single values, so I'm positive that they are not passing multiple values.

I found a note that this error could be corrected in BW 7.3 with a Support Package but I haven't found anything for BW 7.5 which is the one we're using.

If anyone knows why this is happening or has any solution, I'd be grateful!

Accepted Solutions (0)

Answers (2)

Answers (2)

sheldon_piao
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nidia,

Have you given the fixed filter for 0FISCVARNT?

Best Regards,

Sheldon

cornelia_lezoch
Active Contributor
0 Kudos

Hi Nidia,

from which frontened are you running the function?

Is the variable value handed over from the frontend correctly to the function?

regards

Cornelia

former_member381836
Participant
0 Kudos

Hi, Cornelia,

I'm executing the planning function from TCODE RSPLAN. I'm executing the PF using a Planning sequence in RSPLAN.

cornelia_lezoch
Active Contributor
0 Kudos

Hi Nidia,

then check your variable coding, if that is correct, check also for other errors in planning function coding, because sometimes the error message text does not fit to the actual error in the function.

regards

Cornelia