Web Dynpro iView - how to pass URL parameters?

I have a Web Dynpro application that is housed in the Enterprise Portal.  We have a requirement where we need to provide an external link to the iView/Web Dynpro component - for the sake of this discussion, assume it's email.  As part of this URL link, we need to pass a parameter that will cause the Web Dynpro app to fetch some data. 
The Web Dynpro has a startup plug parameter - call it 'id'.
I can invoke the Web Dynpro application directly, and pass the id paramter on the URL - the application can see the parameter just fine.  However, when I try and do the same via a Roles-based URL, the parameter does not survive.  I've tried two different methods:
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview&id=1234
and
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview!26id=1234
neither of which work.
is there a way to do what I'm trying to do?  Note that the 'id' paramter is dynamic - I can't code it in the Web Dynpro iView configuration.

Hi,
please try the following:
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview&DynamicParameter=<encode(id=1234)>
The value of the DynamicParameter value must bei encoded.
For details please have a lool to
<a href="http://www.sap-press.de/katalog/buecher/titel/gp/titelID-1078">this</a>
This book will be also available in English soon.
Best regards
Jochen

Similar Messages

  • ABAP Web Dynpro iView error

    My ABAP Web Dynpro iView encouters errors:
    The URL http://sp06:8004/sap/bc/webdynpro/sap/z_jgo_demo// was not called due to an error.
    Note
    The following error text was processed in the system SB2 : WebDynpro Exception: Error in UCF Template POPUP_PAGE ($).
    The error occurred on the application server sw06_SB2_04 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: RENDER_TEMPLATE of program CL_WDR_UCF====================CP
    Method: HANDLE_TEMPLATE of program CL_WDR_UCF====================CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    I was able to run the ABAP web dynpro application outside of portal by using the url: http://sp06:8004/sap/bc/webdynpro/sap/z_jgo_demo/. But with the extra / at the end, I get the same error.
    Can anyone point me to how to remove that extra / at the end?
    Thanks
    Ben

    Hi Gurus ,
    We have upgraded the SAP HR system from ECC6.3 to ECC6.4 and netweaver from 7.0 to 7.1 .
    Following are the list of error in EHP4 system ,
    1) Layout of ABAP Webdynpro Component are not displayed .
    2) Any ABAP WEBDYNPRO Application is not displayed by tesing in SAP-R3 and also in ESS .
    error are as follows while trying to view layout in abap webdynpro application :
    http://dv.hr.co.in:4567/sap/bc/wdvd/painting.html?_vdrespkey=4IS29CT7NDRIOI511AFI0R1E3&_vdframe=painting&sap-client=435
    If any one have information for this kindly let me know .
    Thanks :
    Vishwas

  • How to mapping Bapi_EeCatimesheet with Web Dynpro iview

    I have problem with CATS:
    1. mapping field from Web Dynpro iview with Bapi_EeCatimesheet_Worklist
    Column: Activity = Bapi_EeCatimesheet_Worklist_input_Out.???
    Column: xxx = ???
    Variable as TimeSheet of SAP Easy View
    2. How to insert Employee timesheet into SAP System by Bapi

    Hi,
    At first time the ApplicationParameter was not displayed among the mappable properties. After that I changed the ApplicationParameter property of the WD iView (so it became different from the default one) and created a new room template. What happened ? At the new template I could map to room_id to the ApplicationParameter. Interesting, not?
    One other thing: What do you think about the following ?
    1. First creating a "Concat Strings" extension to create a string like "room_id=<room_id>"
    2. Creating an other extension and mapping the newly created string to the ApplicationParameter property
    3. Getting the parameter from WD with the help of getRequestParameter(java.lang.String key)
    I have not tried it yet, but I plan to do it.
    Regards,
    Ferenc

  • How to create web dynpro iView?

    Hi all,
       How to create web dynpro iView?
    I want to create a web dynpro iView where WD is displayed in its icon when create.
    Can you give me the steps and which options to select on each steps.
    Thanks.

    Hi Virenp
    Welcome to SDN
    First Check the below Link  before the below message.so it would give clear idea
    [Creating a Web Dynpro-Based iView|http://help.sap.com/saphelp_nw70/helpdata/en/11/0d653f0c9fa075e10000000a114084/content.htm]
    http://help.sap.com/saphelp_nw70/helpdata/en/11/0d653f0c9fa075e10000000a114084/content.htm
    Go to Content_Administration --> Click on Portal content  -
    > Go any of your Folder
    Right click on the Folder and Click on New -
    >  Iview
    Selct the 3rd Option webdynpro java applicaiton.
    Select the iview as FULL page for one application
    Then select the webdynpro application you deployed  (it would be either under Local or in SAP.com folder)
    Click on next,. and UNCHECK the Option where it would prompt to Create Page.. this is necessary only when u need a page
    Click Finish  ,  and Preview the Iview..
    Suggestion : Always check on [help.sap.com |http://help.sap.com ] for any queries, which is the Bible for SAP reference.
    Thanks
    KT

  • How to get the portal user id into the web dynpro iview at runtime?

    Hi,
    Can any one let me know, How to display portal id and as well as backend SAP user id into Web Dynpro iview at runtime. I am using Adaptive RFC model in my web dynpro application.
    Raj.

    Raj:  check this thread. I think that will help you.
    Can i get Portal User's details in webdynpro??
    I had the same requirement and its works whit this solution.
    regards.

  • IView not found error when excuting ABAP Web Dynpro iView

    Hi Experts,
    I have created one ABAP Web Dynpro iView for an existing Application.
    Parameters I have passed for iView creation.
    Namespace : sap
    Application Name: SampleApp
    System Name: R3_SYS.
    Can any one please pass on me the details what are the mandatory parameters need to be passed.
    Thanks in Advance,
    Chinna.

    Hi Chinna,
    You need to check the following parameters like
    Namespace - should be 'sap' as this is root node in SICF
    Application Name: - check name of WD application in se80
    Please refer to below thread for creating WD ABAP iview.
    Re: Webdynpro ABAP iView Blank Page
    Web Dynpro for ABAP iVIew's Namespace parameter
    how to create iview from webdynpro application  abap
    Hope it helps
    Regards
    Arun

  • Eventing between Web Dynpro iView and regular DynPage iView

    I have seen, done eventing between two dynpage iviews and two webdynpro iviewsHowever, and gone through "How to Use the Portal Eventing for Web Dynpro iViews". However, I have been trying to have a webdynpro iview talk to a dynpage iview but they just won't communicate. Is this even possible?
    Ok basically I have a portal page in a popup window with no masthead and top level navigation. The page has two iviews -  the top one being an iView that points to a webdynpro application on Server A, and the bottom one being a dynpage iview on the Portal Server B.
    In the webdynpro iview, the code for when a button is clicked is
    public onSomeAction(Event event) {
        WDPortalEventing.fire("urn:myUrn","eventName","value");
    In the dynpage iview, the code i have for it is
    myServ = (IEpcfToolbox) PortalRuntime.getRuntimeResources().getService(IEpcfToolbox.KEY);
    myReceiver = myServ.getClientEventReceiver(request, "urn:myUrn", "eventName");
    form.addRawText(myReceiver.getWrappedScript());
    try {
        if (!myReceiver.isReceived()) {
            form.addComponent(createMainScreen());
        } else {
         form.addComponent(new TextView("event received!"));
    } catch (Exception e) {       
        form.addComponent(createErrorScreen());
    I tried all the things I could think of but the receiving iView just won't get the event fired.
    Can someone confirm that this should work? and correct me where I've done wrong.
    Please help. this is very urgent. your help will be greatly appreciated. thanks in advance
    PS. My environments are EP 6.0 SP2 and WAS 6.40 SP14

    > hi,
    >
    > portal eventing  works properly if all participants
    > are in the same domain. Otherwise portal eventing
    > g does not work. If the SAP J2EE
    > Engine on which the Web Dynpro application is
    > deployed is in another domain, you have to  map the
    > IP address of the SAP J2EE Engine to the domain name
    > of the
    > SAP J2EE Engine on which the SAP Enterprise Portal is
    > running, by editing the configuration file hosts.
    >
    > regards,
    >
    > Ganesh.N
    I am no direct access to the boxes so I can't try your suggestion. It really makes sense that eventing won't work if the iViews are on different domains. I know they are in the same domain but different subdomains.
    Anyway, good news I got eventing to work with the mentioned set. I found that that the SAP Java EPCFToolbox API had a bug that kept throwing javascript errors when I tried to have the web dynpro iview fire an event and the SAP one subcribed to it.
    I got around it but using the EPCF Javascript API instead.
    Code:
    response.write("<script>");
    response.write("EPCM.subscribeEvent('urn:dla.telework', 'createPdf', doSomething);");
    response.write("function doSomething() {");
    response.write("window.location = self.location + '&eventReceived=true';");
    response.write("}");
    response.write("</script>");
    So basically just output raw text through the response object and it just works.
    On a similar topic, since eventing can only pass string parameters back and forth, I'm still looking for a way to pass other more complex Java objects between web dynpro and sap iviews. From what I haven't they don't share the same session object (which I thought they did). So basically I can't just stick stuff in the session and pull it down on the other end. I'm clueless right now. If anybody has some tips, plesae share. Thanks

  • Web dynpro iview in web page composer ?

    Hi All,
                     I am developing one Web site by using Web Page Composer. Can anyone help me for how to use Web Dynpro iview on web page.
    Regards,
    Rahul.

    HI Rahul,
    As of now we can not include a Web Dynpro iView on the WPC page like other iViews.
    But you can try to create a URL iView from Web Dynpro application
    and then add that URL iView to your page.
    _Vishal

  • How to read URL parameters of one wdp component into other WDP component?

    Dear Experts,
    Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
    My requirement is i have one standard WDP component with 3 URL parameters and i needto
    read that URL parameters along with their values in my Z-WDP component.
    Thanks
    SK

    Hi Santosh,
    You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
    data: lt_parameter             type tihttpnvp,
             ls_parameter             type ihttpnvp.
    lo_api_controller ?= wd_this->wd_get_api( ).
       call method lo_api_controller->get_message_manager
         receiving
           message_manager = lo_message_manager.
       clear : ls_parameter.
       refresh : lt_parameter[].
    * Read all URL parameters
       wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
    if not lt_parameter[] is initial.
         clear : ls_parameter.
         read table lt_parameter into ls_parameter index 1.
         if ls_parameter-name = 'ACTION' and
            ls_parameter-value is initial.
           lv_flag = 'X'.
           clear : lo_msg.
           lo_msg = 'Action Parameter Missing in URL Link !'.
    *         report message
           call method lo_message_manager->report_error_message
             exporting
               message_text = lo_msg.
         else.
         endif.
    Best Regards
    Priyesh Shah

  • Portal 7.3 & Web Dynpro iView, both accessed from Internet via Web Dispatch

    Hi guru,
    I'd like to know the best (or the correct) way to configure the FQDN and required DNS setting to allow user access ABAP Web Dynpro iview from internet.
    My setup here is very typical:
    One EP 7.3 in intranet, having "ep.internal.mycomp.com" as FQDN (given during installation)
    One SAP ECC in intranet, having "erp.internal.mycomp.com" as SAPLOCALHOSTFULL parameter
    One Web Dispatcher in DMZ, having "service.mycomp.com", and listen to 80 port (later added 8000 port for AS ABAP).
       User access my portal by using http://service.mycomp.com/irj, no problem.
    But problem raised during access WD4A iview, here are my problem and questions:
    [Problem]
    At the beginning, we found that the WD4A iView can only be accessed in intranet, not from internet. Eventhough we register "service.mycomp.com" in public DNS. After some http level analysis, I was shock that the WD4A iview is provided directly by AS ABAP which running this WD4A, EP does not play a "relay" role. (Don't believe the URL bar in your IE, use Tamper Data or HTTP live to check the HTTP requests, you will get it). Since we DO NOT have "erp.internal.mycomp.com" in public DNS, so the iview cannot be displayed. But I DON'T want direct access to my ERP box.
    I don't know a way to get rid of the "erp.mycomp.com" request generated by EP. So I tried to overcome the problem by leveraging the same Web Dispatcher used by EP. And I did make the WDisp -> ERP WD4A work using WDisp's FQDN (ie. service.mycomp.com:8000, also keep original service.mycomp.com:80 to EP), but the iview in EP does not use this FQDN. It use the SAPLOCALHOSTFULL parameter configured in backend ERP.  WDisp does not do any URL replacement for me.
    [Question 1]
    Is there any way to hide WD4A iview in EP (server to server communication only)?
    [Question 2]
    If I can only have "service.mycomp.com" entry in my public DNS, should I change the SAPLOCALHOSTFULL in ERP to "service.mycomp.com"?  I doubt  that it may cause a "loop" situation between WDisp and ERP ?
    [Question 3]
    Is it possible to access WD4A on ERP by two different FQDNs (one for public via WDisp, the other for internal access w/o WDisp) ? I know there is only one SAPLOCALHOSTFULL configuration.
    Anyone have done such integration ? please share your configuraiton. Thanks

    Hay Wei-Shang Ku,
    Many thanks to your prompt reply of this very old post I tried to ask!
    for the /sap/* redirect, think it required to use icm/HTTP/redirect_<xx> parametet in WDISP profile. And i did applied below too to make default WDISP URL go to /irj  (Portal login page).
    icm/HTTP/redirect_0 = PREFIX=/,TO=/irj
    so for "all request to /sap/* will go to ERP":
    icm/HTTP/redirect_0 = PREFIX=/sap/*,TO=/???  (how do you set the TO value here?)
    May i have your WDISP profile setting for reference? Did you make use of parameter wdisp/system_0?
    And here is my overall setting:
    we only have "service.mycomp.com" entry in public DNS.
    1. "service.mycomp.com" is WDISP URL mapped to 1 public IP (we used default http 80 port)
    2. we want user can access JPortal & also backend ERP via WebDynpro iView in JPortal via
       service.mycomp.com  (only port only)
    3. ERP system profile:
        SAPLOCALHOSTFULL = <ERPHOSTNAME>.mycomp.com (not in public DNS)
        icm/server_port_0 = PROT=HTTP,PORT=80$$,TIMEOUT=3600,PROCTIMEOUT=3600
    4. Portal:
        ABAP WebDynpro iView setting -
       System  = XXX (where XXX is alias of system iView)
      System iView setting -
        Logical System Name = ERPCLNTXXX
        ITS host = <ERPHOSTNAME>.mycomp.com:8000
    Thanks again your information, have headache of this issue for long times....
    Gary

  • SAP Web Dynpro iView not working!

    We are trying to run BI reports based on Web Dynpro ABAP in portal.  I created a SAP Web Dynpro iView with following parameters
    System : SAP_LocalSystem
    Namespace : sap
    Applicatioin Name : ZXXXXX_RRE  (This is the template name)
    When I try to preview the report I get portal runtime error with following error dump in log file
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template
    &#39;&lt;System.Access.WAS.protocol&gt;://&lt;System.Access.WAS.hostname&gt;/sap/bc/webdynpro/&lt;WebDynproNamespace&gt;/&lt;WebDynproApplication&gt;/;sap-ext-sid=&lt;ESID[url_ENCODE]&gt;?sap-ep-iviewhandle=007&lt;ESID[HASH]&gt;&amp;sap-wd-configId=&lt;WebDynproConfiguration&gt;&amp;sap-ep-iviewid=&lt;IView.ShortID&gt;&amp;sap-ep-pcdunit=&lt;IView.PCDUnit.ShortID&gt;&amp;sap-client=&lt;System.client&gt;&amp;sap-language=&lt;Request.Language&gt;&amp;sap-accessibility=&lt;User.Accessibility[SAP_BOOL]&gt;&amp;sap-rtl=&lt;LAF.RightToLeft[SAP_BOOL]&gt;&amp;sap-ep-version=&lt;Portal.Version[url_ENCODE]&gt;&amp;sap-wd-tstamp=&lt;$TimeStamp&gt;&amp;&lt;ProducerInfo&gt;&amp;sap-explanation=&lt;User.Explanation[SAP_BOOL]&gt;&amp;&lt;StylesheetIntegration[IF_true PROCESS_RECURSIVE]&gt;&amp;&lt;Authentication&gt;&amp;&lt;DynamicParameter[PARAMETER_MAPPING PROCESS_RECURSIVE]&gt;&amp;&lt;ForwardParameters[QUERYSTRING]&gt;&amp;&lt;ApplicationParameter[PROCESS_RECURSIVE]&gt;&#39;; the problem occured at position 310. Cannot process expression &lt;System.client&gt; because Invalid System Attribute:
    System:    &amp;#39;SAP_LocalSystem&amp;#39;,
    Attribute: &amp;#39;client&amp;#39;.
    I have checked SAP_BW system object and tested the connections all connection test for SAP_BW is successful.  BI Portal system is set up with SAP web dispatcher, ITS and WEB host names in system object are configured something like xxxx.hostname.com:443 since it's SSL.
    Am I missing anything here?
    Thanks
    Praveen

    Hello Pravin,
    Currently i am also facing the same error. I am having set of Webdynpro-ABAP applications, and accessing from Portal.
    I tested respective applications from SE80, all are working fine.But while accessing from Portal its giving Portal runtime error-Unable to parse etc....
    I checked my system object.. both WAS and ITS connections are successful.but i mentioned its related to ITS, where can i test my ITS further level..
    Though these are WDA applications , how these related to ITS..
    I am also getting same error message.. Please suggest how can i go head
    Thanks in Advance
    Ganesh

  • Implement own personalization dialog for Web Dynpro iView

    How can I implement an own personalization dialog for a Web Dynpro iView? It should open a popup window and in it a internet url.

    Check this thread https://forums.sdn.sap.com/click.jspa?searchID=954028&messageID=2300962
    Regards, ANilkumar

  • Portal theme not picked for SAP Web Dynpro Iview

    Hi,
    We have used light framework page for our portal and all the iviews display the content within the iviews in the same set of colors (blue for buttons). However, for a WD java content, I have created an SAP Web Dynpro iView and the contents displayed here appear in the SAP colors without picking those set for the portal.
    The same application parameters display the portal colors when we use the Web Dynpro Proxy iview.
    Any idea how I can make the SAP Web Dynpro iView appear like the other portal iviews?
    Note: The stylesheet property for the iview is already entered (ur), and I have also set the 'Supply Portal stylesheet' property to 'Yes'.
    Please provide your inputs.
    Thanks,
    Vinay

    Hi ,
    In ABAP Webdynpro for similar problem we used WDFORCEEXTERNAL Sheet property of WDA.
    The Web Dynpro framework automatically compares the versions of the portal and Web Dynpro
    for ABAP style sheets. If the Web Dynpro for ABAP has a newer version, the WDA style sheet is used. This avoids unattractive rendering and JavaScript errors.You can deactivate this behavior again using the WDFORCEEXTERNALSTYLESHEET application parameter of WDA.See also SAP Notes 1033496 .
    If you use the stylesheet of the portal to display the application, the rendering may not appear correctly and Javascript errors can occur(If portal style sheet is lower than WD).
    Though Iam not familiar with WD java , the property force portal style sheet in WD java application should be enough to make WD accept portal theme.
    Regards
    Karthiheyan M

  • Access Web Dynpro Java application through direct URL

    Hi Guys,
    we have a requirement that there is a link in web dynpro abap screen, click on it will open a new ie window running web dynpro java application, so what i did is i have given direct url link for that web dynpro java application:
    as this:
    https://servername:50001/webdynpro/dispatcher/sap.com/ess~lea/TeamView
    but after i clicked on this url, it pop up 1 window, after i entered id & passoword, it is showing this wd java appl, but there is 1 grey image on top of the view & "welcome xxxx"; below that is the actual view from wd java.
    the layout is :
    grey image----
                             welcome xxxxxxxx
    Teamview
    actual ivew
    how to remove the grey image & the "welcome xxx"? it looks like masthead but we dun need it.
    thanks

    Hi Feng,
    Actually what you are seeing using the application URL and after giving the credentials on Portal is a portal screen which carries the theme as well. Therefore, you will be able to see the masthead with header and Portal User Name. So, use the URL generated by preview of a web dynpro iView in your component to avoid the masthead.
    Regards,
    Tushar Sinha,
    Infosys,
    Hyderabad

  • Configuring a Web Dynpro iView

    Hello All,
    I need to configure an iView to hold a Web Dynpro application. I chose the option of SAP Web Dynpro iView. I gave the full package name, when it asked for the Application name (for eg: com.spk.mss.PerfRateApp). I also gave the value of 'local\PerfRate) as the value in the field 'name space'. PerfRate is the project name of the Web Dynpro application. How ever when I try to preview the iView, I get the following error.
    webdynpro.services.sal.api.WDDispatcherException: Requested deployable object 'local/PerfRate' and application 'com.spk.mss.PerfRateApp' are not deployed on the server. Please check the used URL.
    What could have been gone wrong here? I am sure the Web Dynpro application is deployed on the server, because I had used the 'Deploy & Run' option in NWDS to check the application.
    TIA,
    SPK.

    Hi,
      When u deploy and run, u get the url in the address bar. Use the appl name and proj name from that. That will make sure u don't make a mistake in configuring the iView. If url is
    http://host:port//webdynpro/dispatcher/local/downprod/ProdDownapp
    Here local/downprod and ProdDownapp can be copied. Make sure of the slash (/) also. Check and confirm if it works.
    Regards,
    Harini S

Maybe you are looking for