Dynamic Parameters in URL-IView
Hai,
I am using the ESS-framework and I want to create a link which calls an URL with dynamic parameters.
I have already created an URL-Iview with the example url:
http://a.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm
And I also defined a resource and a service in the backend (Customizing)
My question is:
How can I dynamically generate the Parameters SCENARIO and MODE in the url using the URL input field in the defined resource?
Hi Remco,
If you create several resources for the same webdynpro (isrform) you can pass params via the resource definition (URL params).
Your webdynpro application can be defined as:
- Webdynpro application (in the xss homepage framework) as a resource;
- URL resource linking to a portal page/iview (with params): url iview with params
- URL resource linking to a portal page/iview (with params): webdynpro iview with params
But before you are going to tweak with it, please try to find out if your url will work:
http://a.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?scenaro=SPEG&mode=CREATE.
If this works, then create an iview in the portal of the url type or webdynpro type. Does it still work with static params? If so, remove the static params from your iview properties.
Now try the following link:
http://yourportal:port/irj/portal?NavigationTarget=pcd_path_to_your_iview
If this works, check out the following link:
http://yourportal:port/irj/portal?NavigationTarget=pcd_path_to_your_iview&DynamicParameter=MODE%3DCREATE%26SCENARIO%3DSPEG
Everything after DynamicParameter must be encoded. To find out what the encoding is, just use google and search for your characher. As an example (let's find the = sign):
http://www.google.nl/search?hl=nl&q=%3D&meta=
%3D is the = sign
Last step:
Create a resource as described on top of this post.
This will be my approach to get this working
Good luck!
Similar Messages
-
Use of Parameters in URL iViews
I'm looking for information/documentation/examples of using parameters in URL iViews. In particular, I'm hoping that we can pick up some portal runtime info to include as parameters in the URL for a URL iView.
For example, here at my customer, Kodak, we plan to have country specific roles. The US Role will have a US specific Welcome Page which has a URL iView that points to a Content Management document for the US Welcome Page. The problem is that I could have one US user who's preferred language (and Portal Language Preference) is English and another who's preference is Spanish. Thus, I would need to point to the correct language version for the user. To do this, I would like to be able to pick up the language preference in the current Portal session and include it in the URL.
Is this possible? Is it standard stuff? What types of user or session context information or parameters can we pick up to use in the target URL of a URL iView and how would I use or code it in the iView.
Thanks for you help.Hi John & Luis,
The standard solution is the <i>Application Integrator</i> :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/the application integrator in ep 6.0
A flexible way of providing parameters to it (if the standard options described in the above document are not enough) is to write a <i>Customer Parameter Provider</i> :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/how to start transaction iviews with a dynamically computed language.pdf
Hope that helps,
Yoav. -
Pass Dynamic Parameters to a iView
Hi,
We have a reuirement where we need to pass the URL iView Parameters dynamically..The link to access the URL iView needs to be constructed in R/3 with a parameter value(Example: Work Item ID), which is dynamic.
This constructed link will be send as part of a email. So each email sent will have a different parameter value.
Thanks in Advance.Hi Sethuram,
What type of application is the iView running? I can provide code if you'd like to call a BSP or ABAP Web Dynpro application directly. -
Passing portal username and password as parameters in URL iview.
Hi Gurus,
i Have Created URL iView. i want to send the Username and password of portal to this url ,
how can i access the portal username and password.
Note: tried with j_user and j_password
Regards
K Naveen KishoreHi,
Jigar Oza
Thanks for u r reply, i have tried with application integrator but there is a problem with usermapping.
now what i have done is created HTTP System based on this system created URL iView,in application parameters username and password as MappedUser and MappedPassword every thing is working fine. user logged in automatically when he logged into portal.
there are tabs ,links in application .when i click on tabs or links it is assking to enter username and password of the application.
did i do any thing wrong in creating HTTP system or URL iView,
what are the necessary properties should be given.
replys are highly appreciated.
Regards
K Naveen Kishore -
Dynamic pass parameter URL iview Portal
Hi guys
i have url iview, this iview is assigned to a rol of anonymous user,
http://XXXXXXXX/irj/portal/anonymous?guest_user=Guest01
the ivew set automatically and i can see when user guest sign in.
this iview have 2 parameters i need this parameter, has set values with a link, like this
http://XXXXXXXX/irj/portal/anonymous?guest_user=Guest01¶meter1 = value1¶meter2 = Value2
i appreciated any help
Angel G.Hi Angel,
So you are trying to pass two parameters to your iView that is embedded in a portal role that is assigend to an anonymous user... is that right?
What problems are you having? Does the iView not see the parameters if passed as part of the top level URL (e.g.
http://XXXXXXXX/irj/portal/anonymous?guest_user=Guest01¶meter1=value1¶meter2=Value2)?
Not sure if it is just a typo but you have blank spaces between your "=" signs in that URL you posted, there should be no spaces.
A bit more info and perhaps I can help more,
Simon -
Pass parameters dynamically to url iview from web dynpro abap
Hi,
I am trying to pass 3 key-value pairs via absolute navigation to a URL iview.
The url expected is : http://www.sap.com?field1=value1&field2=value2&field3=value3
For this, I have done the following:
1) Created a url iview with the 3 parameters in get.
2) Used the pcd location of the url iview and referred it in the navigate_absolute method.
Following is the call:
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = wa_navigation-target
navigation_mode = wa_navigation-mode
use_sap_launcher = abap_false
business_parameters = l_bus_parameter_tab.
The l_bus_parameter_tab has the key-value pairs populated and I can see them populated.
However, when the url is being called the parameters are not getting passed. Am I missing anything to be passed?
Thanks.Hi Kumar,
I have followed your reccomendation and updated the code and iview properties.
The code now looks like:
l_parameter-key = 'userid'.
l_parameter-value = sy-uname.
INSERT l_parameter INTO TABLE l_bus_parameter_tab.
l_parameter-key = 'portal'.
l_parameter-value = 'test'.
INSERT l_parameter INTO TABLE l_bus_parameter_tab.
l_parameter-key = 'mode'.
l_parameter-value = 'I'.
INSERT l_parameter INTO TABLE l_bus_parameter_tab.
*End of business parameters population
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = wa_navigation-target
navigation_mode = wa_navigation-mode
use_sap_launcher = abap_true
business_parameters = l_bus_parameter_tab.
launcher_parameters = l_bus_parameter_tab.
However, when the method is called, it does nothing and the url does not get called.
When I manually add parameters to the url iview and preview it, it does the job.
For some reason, these parameters are not getting passed to the url iview or page.
Is there a limitation that parameters cant be passed to url iviews? -
Dynamic parameter in webgui Iview url
Hello experts,
here it's my problem : In a email notification i put a link like this :
[http://<myserver>.org:8000/sap/bc/gui/sap/its/webgui/?sap-client=210&sap-language=EN/webgui/!&transaction=SWNWIEX&P_WI_ID=000000018277&P_ACTION=EXECUTE&OKCODE=ONLI]
(i'ts for realease a purchase request in a webgui frame)
And for SSO reason i want to integrate this url in our portal. So i have created an url iview for join this adress [http://<myserver>.org:8000/sap/bc/gui/sap/its/webgui/] with my statics parameters in url parameters : sap-client, sap-language, transaction, P_ACTION and OKCODE.
I call this new iview with his pcd url like this for exemple :
[http://<myserver>.org:50000/irj/portal?NavigationTarget=ROLES://portal_content/iter_fd/test]
It works fine, my webgui frame with SWNWIEX transaction in client 210 is opening! But i want add a dynamic parameter in this url for open the right Work Item (P_WI_ID).
In fact, i want open an url like this:
[http://<myserver>.org:50000/irj/portal?NavigationTarget=ROLES://portal_content/iter_fd/test&P_WI_ID=000000018277]
But it doesn't work.
I search on this forum and i try this solutions with no results :
[http://<myserver>.org:50000/irj/portal?NavigationTarget=ROLES://portal_content/iter_fd/test&DynamicParameter=P_WI_ID%3D000000018277]
[http://<myserver>.org:50000/irj/portal?NavigationTarget=ROLES://portal_content/iter_fd/test&DynamicParameter%3DP%5FWI%5FID%3D000000018277]
Thanks a lot for your help !Dear ronando
why you don't use IAC iViews?
it's for that kind of thinks that you can use that xD
In the System you can setup the SSO config's and you can add the parameter by URL
http://.org:50000/irj/portal?NavigationTarget=ROLES://portal_content/iter_fd/test&DynamicParameter%3DP%5FWI%5FID%3D000000018277
You have to read this two pages:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e046cb5c-711a-2a10-95a9-81b365901b95
http://help.sap.com/saphelp_nw04/helpdata/en/5a/6898dddb7afd44b07ca4e3bb15f676/frameset.htm
it's seems very easly xD
Thank you
with best regards
João Macedo -
URL IView with parameters having no parameter identifier
I have created a url iview but the first parameter has no Parameter Identifier after the ?. Is there a way to code for this in the URL Parameters section of the iview. Here is par to of the URL:
.../Pages/ReportViewer.aspx?%2fExpress ...
if it said something like
/Pages/ReportViewer.aspx?codelink=%2fExpress
then it would be no issue.
Normally you would put something like codelink and the /Express in the value section. the portal will not let me leave it blank and I have tried using a space. I am trying to access a specific report on the Report Server of MIcrosoft Reporting Services.
Thanks
PaulGood day,
Review the following document:
https://cw.sdn.sap.com/cw/docs/DOC-41417
If that did not help, you may need to create your own template since the standard URL iview generates URL values based on it's own template OR create your own modified version of the PAR.
Review the following document:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0cbc309-ff89-2a10-8bad-bcde4c152ecb
View the following supplementary articles for information on creating your own appintegrator template:
https://cw.sdn.sap.com/cw/docs/DOC-109843
https://cw.sdn.sap.com/cw/docs/DOC-101603
http://help.sap.com/saphelp_nwesrce/helpdata/en/70/5a3842134bad04e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nwesrce/helpdata/en/36/5e3842134bad04e10000000a1550b0/frameset.htm
The benefit of this is that you can now create a system object that references the MS reporting Services system from the portal, and transport iviews pointing to this along yoru landscape without issue, and additionally you can specify parameters that can be dynamically determined when an iview is created using the template you have defined.
We use this for connecting to our BO systems dynamically as the landscape calls and apliaction in a different environment. Parameters are also defined differently in our templates. It take a little time getting your head around the documentation, but once you have it sorted it is very straight forward. If you find it too daunting you can also search for the download to com.sap.portal.howtos.webapp.par which has portion of this preconfigured for use already.
http://wiki.sdn.sap.com/wiki/display/EP/HowtodoSSOwithInternetsites
I trust this helps,
Doug. -
How to open URL IView with dynamic url parameter (navigate_absolute)
Hi Experts,
i would like to open an URL-IView from the WebDynpro ABAP Application in the Enterprise Portal 7.0
and i want to set the URL parameter dynamically. Is this possible and how can i achieve this!!
Thx MarkusHi Markus,
You can take help of the following code snippet.
Here we are calling an Iview using absolute navigation and passing URL parameters as well
* Select the input value entered and then pass it to REM INQ application---------
DATA lv_inputbusobjid TYPE wd_this->Element_context-inputbusobjid.
DATA lv_path TYPE string.
DATA lv_tab_wd_param TYPE wdy_key_value_list.
DATA lv_str_wd_param TYPE wdy_key_value.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA api_component TYPE REF TO if_wd_component.
DATA window_manager TYPE REF TO if_wd_window_manager.
DATA window TYPE REF TO if_wd_window.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
* read the imput data first-------------
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `INPUTBUSOBJID`
IMPORTING
value = lv_inputbusobjid ).
** call remuneration inquiry window using absolute navigation
CLEAR lv_tab_wd_param.
* Adding parameters
lv_str_wd_param-key = 'sap-wd-configId'.
lv_str_wd_param-value = 'CACS_REMINQ_CONF'.
APPEND lv_str_wd_param TO lv_tab_wd_param.
lv_str_wd_param-key = 'BUSOBJ_ID'.
lv_str_wd_param-value = lv_inputbusobjid.
APPEND lv_str_wd_param TO lv_tab_wd_param.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).
if lo_portal_manager is BOUND.
* PCD
lv_path = 'ROLES://portal_content/com.sap.pct/specialist/com.sap.pct.erp.common.workset_reuse/com.sap.pct.erp.icmparticip.bp_folder/com.sap.pct.erp.icmparticip.15.bp_folder/com.sap.pct.erp.icmparticip.15.pages/com.sap.pct.erp.icmparticip.RemInquiry'.
lo_portal_manager->navigate_absolute(
navigation_target = lv_path
navigation_mode = if_wd_portal_integration=>co_show_external
window_features = 'toolbar=no,resizable=yes,scrollbars=yes'
business_parameters = lv_tab_wd_param
endif.
Hope this helps
Regards
Manas Dua -
URL Iview - Dynamic properties.
Hi all,
I am using iview "Url iview" and I would pass some specific parameters.
Example: What is the page that directed to her, who was logged, and another dynamics parameters
And the result is -> http://sapportal/Log/index.asp?User=xxxx?PageID=com.company.xxxxxxx
Could someone help me?
Thanks
RicardoPlease read up about the application integrator. This allows the building on dynamic URLs based on things like the user's id etc.
For example: http://help.sap.com/saphelp_nw04/helpdata/EN/36/5e3842134bad04e10000000a1550b0/frameset.htm -
Hi Expert,
I need to create a page with two URL iviews. The first iview is fixed and the other one is flexible and the URL address must be passed by parameter. Is that possible?
Thank in advance
Sergio Sepulveda M.Hi Sergio,
it depends a bit from where the parameter should come... Anyhow, a general approach is to develop a wrapper iView around the target iView (component) which takes a parameter / calculates target parameter on the fly and then calls the target component with these dynamic parameters.
Serach for "proxy iView AND Detlev" on SDN for further details.
Hope it helps
Detlev
PS: As already mentioned, please consider rewarding points for helpful answers on SDN, see tool tips in second level navegation too -
How to set dynamic host name in the URL of a URL iView?
Hello,
I am using a standard URL iView that points to some J2EE app I've written and deployed on the same server.
I would like to set the host name to be a dynamic one, this way I won't need to change the iView URL when transporting it from one portal to another. As far as I know the system for a URL iView only controls authorizations but cannot replace the full URL set in the iView.
Any idea who can this be achieved?
RoyHi Mrityunjay,
forced URL at runtime will require me to call the URL iView from another iView that I will need to code (setting the URL in the Request object). If I did all this I might as well call it from this iView already.
I would like to do it with no further developments. I would have thought that SAP has constants that can be plugged in the URL for this type of thing, i.e. $hostname...
Rgds,
Roy
Edited by: Roy Cohen on Aug 21, 2008 4:03 PM -
ABAP WebDynpro app calling Transaction iview with Dynamic Parameters..?
Good day!
I need to code a call to a transaction (with dynamic parameters) from an Abap WD application. It appears that to achieve this, the app needs to call a new portal transaction iview, passing the parameters in the call..?
This should ideally be via a Sapgui for Windows, but Html also an option (does it matter with regards to the method used?).
Kindly assist with advise/instructions, idealy with sample code extract to illustrate (new to Abap WD)...
Kind regards
jHi
this will help you doing so
http://help.sap.com/saphelp_nw04s/helpdata/en/18/f96f4132f15c58e10000000a1550b0/frameset.htm
Use BUSINESS_PARAMETERS to pass the data
Abhi -
Wrong results in URL iview and overview of URL parameters
I have created an URL iView that is supposed to query an index and return results. I am using the URL:
/irj/servlet/prt/portal/prtroot/com.sap.km.cm.service
and added following URL parameters:
StartPage=SearchPage
ConfigFileName=Navigation.xml
layoutSetMode=exclusive
ResourceListType=com.sapportals.wcm.SearchResultList
SearchType=quick
QueryString=marketing
SelectedSearchIndices=KnowledgeBase
The problem that I have is that the iView returns the second page of results (11-20) instead of the first one (1-10). When I hit the Search button again the result is the first page of results.
Does anyone have experience with this problem?
I've searched SDN on an overview of URL parameters (for example a parameter to specify the number of results to be shown on a page) to solve this problem, but couldn't find anything. Does anyone have an overview on URL parameters?
Thanks in advance!
Kind regards, HilcoHi,
Please check if the iView properties are as per properties mentioned in this <a href="http://help.sap.com/saphelp_nw04/helpdata/en/4c/eee2bedf3b4082b14a933e5ee63472/frameset.htm">link</a>.
Regards,
Sujana -
Question about URL iView parameters
Hi experts.
I have this issue: I have several iviews in DEV instance, URL iViews that points to backend applicationes. The URL parameters in DEV instance, point to DEV instance of backend applications. But when a will need to transport these iview to PROD instance, the URL parameters then I need to point to PROD instance of this backends apps.
Which is the best practices to resolve this issue ?
<b>Example:
in DEV instance:
URL iView "A" point to http://dev.app.com.
in PROD instance
URL iVIew "A" point to http://prod.app.com</b>
But i try to avoid change this parameters after transport to Production , in Production instance directly.
I think for example, use a some type of configuration file o .ini, in order to iviews "take" the URL string from it; and do not harcdode this strings.
Is possible? How?
I am clear?
thanks in advance!thanks Atul, Wayne,
I could be use "http system" but..
Suposse this case:
In DEV instance, I have:
- URL iview "A" point to backend system "http://dev.zzz.com"
- URL iview "B" point to backend system "http://dev.xxx.com"
- URL iview "C" point to backend system "http://dev.yyy.com"
In PROD instance, I have:
- URL iview "A" point to backend system "http://prod.rrr.com"
- URL iview "B" point to backend system "http://dev.ddd.com/aspx"
- URL iview "C" point to backend system "http://dev.mmm.com/app3"
All different!. No pattern. If I use a Http system,I think that I am continue with the same problem: in the transport to PROD, I should be change all references, or all http systems.
For this reason, I am begin asking for use a some type of configuration file, but I dont know how.
thanks in advance..
Maybe you are looking for
-
KEY FIGURE: Effective purchase order value & K.F "No. of Purch.Orders"
Yo my fellow Gurus, Got a problem, when executing listcube on the Info-Cube 0PUR_C01 - I see the data/amounts in the column for "Effective purchase order value" / 0ORDER_VAL. But when running the query with the Key Figure I just get "0" I tried the o
-
E-Business Suite R12 Oracle services loading sequence in Windows 2003
Can anyone tell me what is the loading sequence for the following Oracle services for EBS R12 in Windows 2003. 1) Oracle Fulfillment Server service for VIS 2) Oracle Service VIS 3) OracleConcMgrVIS service 4) Oracle RDBMS TNS Listener 5) Oracle Tools
-
~~~ x11.app - optional installation ~~~
I need something called 'x11.app' in order to use a program called DarWine. I've looked around the internet and it seems that my only way to get x11.app for my PPC 10.4.11 Mac is to use the installation CD. This however, is missing as I never imagine
-
I can not find the dmg for upgrade Photoshop Extended CS5.5 to CS6
Hi buddy Can anyone tell me how can I download PS extended CS6 install pack (upgrade version from CS5.5 ,NOT RETAIL, for mac, dmg file)
-
Why does macbook pro not come back after closing shortly
This has become really annoying. If I close my macbook pro (13 inch from this year...but not the retina) and then decide to open it back up without waiting long enough (maybe just setting it down and then picking it back up and opening it), it become