cancel
Showing results for 
Search instead for 
Did you mean: 

Pass a variable value dynamically for Web reporting

Former Member
0 Kudos

Hi,

I have a requirement in which I need to show only one particular customer id's account details when he logs in to the portal. When I integrate a report as an iView in a portal, is there any mechanism by which the Id can be dynamically passed to the web query at run time and then show the corresponding report.

Kindly help. ( Points assured -:) )

Rgds,

Sam..

Accepted Solutions (0)

Answers (2)

Answers (2)

udayabhanupattabhiram_cha
Active Contributor
0 Kudos

Hi:

case-1: Is it 1 report for all users with different values.

OR

case-2: Do you have multiple queries for multiple users.

In case-1, you can use a variable of tyoe USEREXIT and in the ABAP Code, you can use sy-uname to select the values.

In case-2, I cannot think of anything yet, but will let you know later depending on your requirement.

U.P.Ram Chamarthy

Former Member
0 Kudos

Hi Kenneth and Ram,

Let me try these options. Points assigned!!.

Regards,

Sam..

Former Member
0 Kudos

hai sam,

have you generated the report with variable ,?

check out by running the report in web browser ,if the browser starts with selection option then the iview will also start with selection option (variable) ..and those iviews can be assigned to portal..

check it and assign the points

suri

Former Member
0 Kudos

Hi Suri,

Thank you for the reply.

I have created a report using the variable. But when the report is getting generated in web, there is no pop up asking the custid. Also, i would want this to be associated with the login id, so that there is no pop up required.

Rgds,

Sam

sap_cohort
Active Contributor
0 Kudos

Yes, If you want to force the variable screen of the web app just append:

"&VARIABLE_SCREEN=X"

To add the variable do the following:

&VAR_NAME_1=ZUSERID&VAR_VALUE_EXT_1=USERID_VALUE