cancel
Showing results for 
Search instead for 
Did you mean: 

display prompt values in report

Former Member
0 Kudos

Hi,

We have variable 'Test(X_TEST)' in BEx and when user selects values in prompt then I want to display its key values (Not Text) in report.-

it is displaying its text with Userresponse("X_TEST"), so i tried something like below.

=If(Userresponse("X_TEST")="TextA";"1001";If(Userresponse("X_TEST")="TextB";"2001"))


Above formula is fine if user selects single value, but user can select multiple values with any combination. So could you please help me how to handle this to display key values.

Thank you,

Suri

Accepted Solutions (0)

Answers (1)

Answers (1)

amitrathi239
Active Contributor
0 Kudos

Hi,

ideally if you have key value object in the  webi query then in webi report you will get the key values only based on the selection of user prompt values.

If you are displaying hard coded key values by variable in webi then use match function.

=If(match(Userresponse("X_TEST");"*TextA*")) then "1001"elseIf (match(Userresponse("X_TEST");"*TextB*" then "2001"))

Amit

Former Member
0 Kudos

Hi Amt,

Thank you for your reply. We have the Detail object in query and it is showing based on selection of user prompt only. But I have an issue when I try to pass these multiple values by assigning that detail object

So I am looking for the workaround to get those multiple selected values using userresponse() to pass to the detail report. As mentioned I tried it with userresponse() for one selected value and working fine, I am getting issue (above thread) when I tried to pass the value using detail object as user can select multiple values.

I am happy if there is any solution to get the keys of user selected prompt values OR

if any solution for above mentioned thread.

Thank you again,

Former Member
0 Kudos

Hi, why don't you drop a table containing just the field you want to display.

Only those coming from the database will be shown

Regards,

Rogerio

Former Member
0 Kudos

Hi Rogerio,

This webi report is on BW BEx query and variable is created in BEx.

Thank you,

Former Member
0 Kudos

And IF you drop the variableon the report what happens?

Regards,

Rogerio

Former Member
0 Kudos

Hi,

I need the variable as whatever the values user selects in the main report then same values needs to pass the detail report (As we know we can only pass the key values, so if I assign the detail object then I am facing the issue which I mentioned in above thread and if I try to get the Keys from the user selected prompt values using userresponse() then I am unable to get all the keys).

Thank you,

Former Member
0 Kudos

Hello Suri Babu,

I just want to make it clear, you cannot pass multiple keys to detail report from your Master report on Bex keys. WebI on bex can only take 1 key and can pass one value. Correct me if I understood you wrong!

We are on 4.1 sp2 patch 5 and no we cannot pass multiple keys to detail report.

What does the detail object have in it(Keys?) from the user selection? If users selects inlist values "TEXT1" , "TEXT2" it correspoding keys would be "KEY1" , "KEY2".

Your detail object holds what?

Regards

Venkat