cancel
Showing results for 
Search instead for 
Did you mean: 

Web App Designer: Handing over variables

Former Member
0 Kudos

Hi,

Lets say I have two reports, 1. "Sales last 5 years" and 2. "Sales this year per month". Both only require the customer number from 0CUSTOMER. The end user wants a link in the 1st report to invoke the 2nd report for the same customer. Without entering the customer number again.

How can i realize that with the WAD? I already tried the "VARIABLE_SCREEN="-command, but i didn´t worked properly.

Can someone give my a hint? Thanks!

Regards,

Sebastian

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks Heike,

everything works fine!

Regards

Former Member
0 Kudos

Hi Hari,

thanks for your suggestion. I read the example in the "Tips & Tricks for my SAP BI Web Applications" presentation. But: How can i toogle between the reports. As far as i understood, i always have to invoke the template that i want to see if i change the tab. And that causes excactly the same problem as before: How to give over the variables.

I implemented my test-file with an IFRAME for the respective template, which was chosen from the tabs.

tab1

tab2

tab3

----

-


...

----

-


So if you click on one of the tab-links, you always invoke a template with target in the iframe.

I didn´t find another way how to implement it. MAybe you can send me a code example, if you have one, to my email:

strugholtz@cetas.de

That would be fantastic!

Regards,

Sebastian

Former Member
0 Kudos

Hi Sebastian,

please have a look on the online documentation

http://help.sap.com/saphelp_nw04/helpdata/en/65/c54a7e1a1b584589d238ba188df053/frameset.htm

Regards

Heike

Former Member
0 Kudos

Hi,

You can achieve this by using tabs in your web template. Using javascript behind those tabs, you can toggle between one report to another report.

You can also hide the 1st report, when 2nd report is clicked & hide 2nd report when 1st report is clicked.

then, coming to entering variables only once, take advantage of MELT_VARIABLES property of web tempalte with which you need to enter same variable value only once for different queries.

You can also pass variable values from one web template to another web template (I used drop down box wrapped in a select statement with javascript coding and passed the selected value to another web template).

this might not be straigt forward but hope it helps you to ponder for more options.

thanks

hari

Former Member
0 Kudos

Hi, thanks for your help!

I already thought about the report-2-report interface and implemented it the way you suggested. But the end user wants a link in the first report to invoke the second import without entering the customer-id again. So, how can i get the value of the variable, that stores the customer-id, to generate an URL?

Regards

Former Member
0 Kudos

Hi Sebastian,

My recommendation would be set up a jump target to the corresponding R/3 tran/screen that would display the customer details.

Abdul

Former Member
0 Kudos

You don't. You want to use tx <b>RSBBS</b> for the Report-To-Report Interface. That will allow you to define a jump query to go from query 1 to query 2 and pass customer number.

Its documented in <a href="http://help.sap.com/">online help</a>, and a "<a href="https://websmp201.sap-ag.de/~sapidb/011000358700004677132003">3.0B Report-Report Interface</a>" document in the <a href="http://service.sap.com/bw/">BW section</a> of the service marketplace under documentation