Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Passing multiple values to detail report

Hi

Could you please help me on below scenario..

Report1 has below data and it has “Year” prompt

Report2 has City and Revenue data and it has Year and State prompts

Scenario is: when user click on any state in report1 then report2 should display for that state and whatever ‘Years’ selected in Report1 should also pass to the Report2

Below hyperlink is created on State in report1. It is working as expected, i.e. when user selects 2 years (for ex: 2004;2005) in report1 then same 2 years are passing to report2.

http://<Server>/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=xxxxxx&sType=wid&sRefresh=Y&lsSState=([State])&lsMYear=([varYear])

------ Formula for varYear in above link = Userresponse(“Year”)

If I am using the 'Year' object instead of variable (varYear) then data is splitting for each year and displaying like below.

http://<Server>/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=xxxxxx&sType=wid&sRefresh=Y&lsSState=([State])&lsMYear=([Year])

 

I can’t use userresponse() because My report is on BEx query and as you know we should pass only ‘Key’and not the ‘Text’. And I can’t use ‘if else’ also like below to get the ‘Key’ values, because list is not static and user can select any values from the big list.

If(userresponse(“Material”)=”ABC”;”001”;if(userresponse(“Material”)=”ABC;XYZ”;”001;456”)

Issue is I need to pass multiple selected values in report1 to report2.

Could you please tell me why it is displaying correctly with variable and why it is not displaying correctly when using object ‘Year’ and is there any work around to display the aggregated data like below.

Thank you again,

Suri

Former Member
Not what you were looking for? View more on this topic or Ask a question