I finally found the solution for the issue with the optional prompts and the empty value string when connecting through BICS to a Bex query.
Unfortunately BW does not view the Excel formula =”" as an empty string as thus your query returns no data. Formerly with the Live Office connections you needed to pass “
I logged this error at SAP and they told me to create the optional prompts in the Bex query itself and then use the prompt selector. However I do not want to use this selector as I use the interactivity from the components (charts) itself to fill in the prompt. This huge box I do not want to use at all. If I wanted to bypass the prompt selector component then I needed to create 2 BW queries, one with a prompt and one without one. Come on, not really an option either!
After some trial and error I found the solution. If you want to use a formula to get the prompt values you could instead of the =”" a formula like =9/0. This returns a #DIV/0 error and when you have the general Excel setting to suppress errors like #DIV/0 then it will turn into an empty cell value and the prompt value is ignored by BW.
Note: The general Excel setting can be found here:
File – Preferences – Excel options – Ignore Excel Formula Errors
I usually use EMPTY cell to pass ALL values to Bex. This one might be useful also for some other cases.
Hi Zahid,
Can you please explain how you passed empty cell for all value? I am getting error while sending empty cell. I am writing – IF(A2=”All”,”",A2) but it passes 0 value .
Thanks
try to use or ‘
I tried your solution with a ” IN LIST” but it doesn’t work with an optional prompt.
I put 2 prompts :
Eg: col1 IN LIST ( Prompt1 ) OR col1 LIKE (Prompt2)
When I want ALL : Prompt1 = ” and Prompt2 = ‘%’
When I want Nothing : Prompt1 = ” and Prompt2 = ”
When I want a list : Prompt1 = (‘A’, ‘B’) and Prompt2 = ”
But if you have another solution for optional prompt with a List….. I will take it.
Thanks.
Delphine,
Did you figure out how to pass values to an INLIST prompt? I tried to separate the values using ; and , but neither worked. Any ideas here?
Hi when using an inlist prompt with Bex queries (via BICS) you can’t concatenate the values. If you link the selected values from your inlist prompt to multiple cells the webservices automatically passes this as seperate OR statements. Just note that you have the fill in the blanks (or the 9/0 option) for cells that do not have values if you have them filled with formulas.