Hello,
we working with design studio 1.6 SP 2 (64 bit client) and have a problem with passing static filter to a planning function.
We implement some reports which are using the same structure:
- one input ready query (with 2 static filters)
- a local filter panel
- a planning function to calculate some values for all select rows (uses interface IF_RSPLFA_SRVTYPE_IMP_EXEC)
- …
The user can enter single values in the query or enter a value in an input field and use this in a planning function to calculate the values for all rows. The planning function is called by a click on a button which uses a short script like this example
// Set Filter
PF_1.copyFilters(DS_Query1);
PF_1.setFilterExt("ZVERSION", DS_Query1.getStaticFilterExt("ZVERSION"));
PF_1.setFilterExt("ZSUBVER", DS_Query1.getStaticFilterExt("ZSUBVER"));
// Set Variable
PF_1.setVariableValue("E_CEEP_PMFLAG001", "X");
PF_1.setVariableValueExt("E_CEEP_PKLNVMDM001", INPUTFIELD_PARAMETER_1B.getValue() );
…
// APPLICATION.alert(PF_1.getFilterExt("ZVERSION"));
// APPLICATION.alert(PF_1.getFilterExt("ZSUBVER"));
// Execute
PF_1.execute();
In the first call of the planning function (method init_execution) are only the local filters from the method copyFilters available (table: I_T_DATA_CHARSEL).
After the execution of the planning function are no errors or warnings in the log.
When I do a second click on the same button to start the same script (without changes or a refresh), there are one or two static filters available (depends on the report.. The reports used the same planning function, but different variable values).
A check of the filter bevor calling the planning function looks fine.
I tried also DS 1.6 SP 3, but it has no effect on this problem.
Thank you for the help
Peter