Question:
Hi All,
we are thinking of inserting a hyperlink in a web template to link to another web template. However we also want to pass the common variable value such as company code in the first template to the hyperlink template.
Think it should be possible? But not sure how start about it. Any ideas are greatly appreciated!
thanks
eddie
Answer:
You have some choices. Two ways you can tackle this is to (1) create a jump query (RSBBS) in which you can pass that value along to the recieving query. (I don't know if you could list the jump target as a hyperlink outside of the context menu, I have not looked at trying this b/c I haven't had a need to yet.)
(2) You can also create your URL by using Command URLs to pass the parameters you want to your recieving query. This can be done in a hyperlink like you want.
There is plenty of documentation on command URL's in the /BW area of the Service Marketplace, as well as [url]Help.SAP.COM [/url]for the general definitions. You can also look in this forum for various other examples and explinations of the different parameterizations you can do.
- Stephen
_________________
As a rule I don't answer Questions in PM.
(this is not to be a d**k, but it is to allow everyone to benefit from information. Not just one person.) Ask a question in the forum and I will answer it if I can.
Answer:
Thanks Sbobcat,
I have read lots of documentation but i just can't get it work... probably i don't quite understand how the command urls actually work. Can you help me more on this area? what i need to do is hyperlinking to another web template using the same parameter value.
thanks
eddie
Answer:
Hi Eddie
It depends what you exactly wanna do.
Do you wanna have your own hyperlink somewhere in the template or do you place it in the context menu?
You wanna use RSBBS (report-report-interface) or do you want to start a new template with the LDOC command.
Please provide some detailed information.
Thanks
Stephan
Answer:
Hi TeMatuaNgahere,
We are not putting the hyperlink in the context menu. It will be a normal hyperlink outside of the context menu. Not using RRI as well. I guess we have to use the LDOC command thingy but not sure how?
Wrapping up... we want to access to another web template(different web report altogether) by clicking the hyperlink without keying in the same variable values again eg. company code and fiscal year/period.
hope you could help me with this.
thanks
eddie
Answer:
Hi Eddie
in the template you are jumping in you should set VARIABLE_SCREEN=''
This avoids the variable screen to pop up.
Then you should read in the "web application designer" documentation about the LDOC command and the part about setting variables (search for "VAR_NAME_I")
In the part about setting variables you will find some examples. Think this
helps too to get the correct syntax.
There you find the way you can do it. To get the values you need to add to the variables you do some javascript-variables
var l_currency = '<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="GET_VALUE"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
<param name="DATA_PROVIDER" value="DP01"/>
<param name="GENERATE_LINKS" value=""/>
<param name="SHOW_COMMON_ELEMENTS" value=""/>
<param name="SHOW_FILTERS" value=""/>
<param name="ELEMENT_TYPE_1" value="VARIABLE_KEY"/>
<param name="ELEMENT_NAME_1" value="TRGTCU_M"/>
ITEM: GET_VALUE
</object>
Maybe you need to play around a little withe the ELEMENT_TYPE to get the value you need.
I know this is not really specific but at the moment i just have little time.
Hope it helps anyway