cancel
Showing results for 
Search instead for 
Did you mean: 

Using BEx Variable in Filter *AND* FOX Formula

Former Member
0 Kudos

Hello everybody,

we're building a BW-IP planning application using Design Studio 16.0.5.

In Design Studio I have a data source "DS_1" that contains a BEx variable "FMV_P_VERSION_1". Next I'm passing the variable into a planning sequence PS_1 using the statement

    PS_1.copyVariableValue(DS_1, "FMV_P_VERSION_1");

    PS_1.execute();

In the planning sequence I'm using the variable in a filter *AND* a FOX formula (with the statement "V = VARV(FMV_P_VERSION_1)."). It's working when I have the variable only in the filter *OR* the FOX formula. When the variable is both in the filter *AND* the FOX formula I get the error message "Einen Wert für Variable Version eingeben". Using it in the FOX formula somehow opens a new context for the variable that prohibits passing it into the filter.

I do need the variable in both the filter and the FOX formula.

Thanks for any suggestions how to work around this issue

Karsten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Found a workaround this morning by eliminating the use of all variables in the FOX formula: For variables in the filter I can catch the values using OBJV() and I have replaced all other variables by calls to function modules.

My problem solved, the bug remains w/ SAP.

Answers (1)

Answers (1)

0 Kudos

Hi Karsten,

I guess this error will come when your variable is mandatory.

Can you please try having an optional variable and check the scenario again.

Also did you try executing the PS from RSPLAN.

Regards,

Rohit