Opening External Window in Web Dynpro ABAP with URL disabled or Hidden

Hi Experts, I have a requirement where-in we want to open the Web Dynpro ABAP application using tcode WDYID (by passing the application name  and startmode), but the URL of the newly opened explorer should be disabled or hidden. To achieve the same, I have created a component (lets name it PARENT) and inside that in DOMODIFY/DOINIT method have written code to invoke the required WDA (lets name it CHILD) in external window (by using lo_window_manager->CREATE_EXTERNAL_WINDOW) and is successfully able to open the application with URL disable using different parameter of method CREATE_EXTERNAL_WINDOW. But in this case there are 2 window which opens, one is for PARENT view and other is for CHILD. Now I only want to keep the second view (CHILD) to be opened and want to close the PARENT view. When I used EXIT_PLUG to close the PARENT window, it closes both the window. Need your inputs on my approach or if you have any. Regards, Harish

Hi,
If you open the popup, it opens as Modal Window, originating from Parent window. Without external window( where you can pass has_location = abap_false ), you cannot hide the URL/Address bar.
If you want to partially hide the URL( if you dont want to show the full URL with application path), you can create an Alias for the service in SICF.
Go to SICF, and create an alias for your WDA application; say original URL: domain:port/sap/bc/webdynpro/sap/<ZAPPLICATION_NAME>
This URL you can convert( partially hide) as, domain:port/sap/<ANY_NAME>
Refer creating Alias in this help: http://help.sap.com/saphelp_sem320bw/helpdata/en/55/361a3c9c004866e10000000a11402f/content.htm
Hope this helps u,
Regards,
Kiran

Similar Messages

  • How to open print dialog from web dynpro abap application

    Hi experts,
            I have a web dynpro application with several views and onone of the view there is a button that should open print dialog with printers list and all other options (standard print dialog we see in windows). I did reserach on SDN and came to now that this is a limitation of web dynpro abap. I did find some code also but unfortunately our current version of ABAP(7.0) do not support the code I found. I am not able to find any proper solution for this. Could someone please let me know how I can open a print dialog by clicking on a button in web dynpro abap? Any sample code or any information would be greatky appreciated.
    Thanks.
    Mithun

    Hi Mithun,
    Have you check this?
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/f8/872806981d4411b5ce51a00207ed31/content.htm
    and also go through..
    How to print in a web dynpro application
    Print button
    Cheers,
    Kris.

  • Closing window of web dynpro application with exit-plug don't run in the EP

    Hi everybody,
    I want to close a window that contains a Web Dynpro with a close button, because it's used and create as a popup from an other iView (that's not created with web dynpros) in the EP. I read the different threads how to close a window in web dynpro, like JavaScript in WD
    I create a HTML file with the javascript code to close the window and it works fine, when I start the application separately.
    If I used it in the portal and click the close button I get the following error message:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!
    I tried also: ...wdFirePlugExit("javascript:self.parent.close();") or some other javascript code, but got the same error message.
    Then I tried:
    WDPortalNavigation.navigateAbsolute(url,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null,(String) null);
    instead of fireing the outbound plug in the action of the close button
    (...InterfaceViewController().wdFirePlugExit(url);)
    but than a new window with the EP open and the old is still there!
    We use the NWDS2004s an the EP 7.00.
    It must be possible to close a (this) window!
    Thanks for any hint
    christian

    Hi,
       This is what you can do:
    1. You have already created the HTML file with the necessary javascript in the foloowing folder structure :
    src->Mimes->Components-><your component name>-><fileName.html>.
    2. Create a new iView of type URL in your portal.
    3. Get the absolute URL of this HTML file inside your project. This will be in the following format:
    http://<server>:<port>/webdynpro/resources/sap.com/<development ComponentName>/Components/<namespace>/<fileName>.html
    You can find it thus:
    try {
    String u = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"filename.html");
    wdComponentAPI.getMessageManager().reportSuccess(u);
    } catch (WDURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    4. Now enter this URL string as the URL for the iview.
    5. Do a normal portal navigation to this iview on-click of the button.
    Regards,
    Satyajit.

  • Web dynpro Abap generated URLs - Namespace vs Alias

    Hi,
    We have developped web dynpro abap applications on two systems that both have to be exposed to our external users in production. We would like to provide a unique host for the two systems by using an appliance in front dispatching the request to the correct system based on differences in URL.
    As all generated URLS are in the following format:
    /sap/bc/webdynpro/sap/z_test
    /sap/public/bc/ur/nw7/js/domainrelax.js
    /sap/public/bc/ur/nw7/js/autorelax.js
    We would like to be able to modify the first tag (/sap) for something else either by renaming it or by adding some other layer in front of it in order to get:
    /nwa/sap/bc/webdynpro/sap/z_test
    /nwa/sap/public/bc/ur/nw7/js/domainrelax.js
    /nwa/sap/public/bc/ur/nw7/js/autorelax.js
    We thought we could use an external alias on one of our systems in order to change the generated url of that system but it does not work as we expected. When we call our web dynpro application using the external alias, it correctly renames the application bath but all other urls stay the same:
    /nwa/sap/bc/webdynpro/sap/z_test
    /sap/public/bc/ur/nw7/js/domainrelax.js
    /sap/public/bc/ur/nw7/js/autorelax.js
    What could we do in order to have all URLs generated by an ABAP system either renamed or prefixed by something else?
    Thank you very much for your help!
    Regards,
    Renaud

    hi Xiaoming Yang  ,
    i am facing the same error . can you please tell me how you have solved this ??
    regards
    Sujay Kulkarni

  • Create external window in Web Dynpro Java

    Hello experts,
    I am new in web dypro java as well as enterprise portal. I have a problem concerning external window.
    I have created a button in my ivew in web dynpro java. By a click on this button, I would like to open an external window with a specified URL(ex: www.google.com).
    Could you help me how to do it please?
    Thanks in advance,
    Sengly

    Hi experts,
    I have found the solution. Thanks to this link and thanks to all:
    [Problem with linkToURL in a table column|Problem with LinkToURL in a table column;
    best,
    Sengly

  • How to open new window in web dynpro

    I want to open a new window with specific URL in web dynpro on a button's click event. waiting for your suggestions to do this.
    thank you,

    Create an action and put following lines in it and bind it to button's onAction event.
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow( "http://www.jawed.info", "My Personal Website");
    window.show();

  • Close External Window in Web Dynpro Application

    Hi Folks,
    I am working on a development in Web Dynpro and I am pretty new to this topic, so I seek your help.
    The scene is:
    I have created a Web Dynpro application in which I open an URL using CREATE_EXTERNAL_WINDOW method of the Window Controller. I am able to open the window but not able to close it.
    I tried using methods,
    CLOSE()
      and
      SET_CLOSE_IN_ANY_CASE()
      but no success.
    Please guide me if anything more needs to be done for closing the opened window.
    Thank you.
    Sud.

    Thank you Thomas,
    You correctly pointed out, I was trying to close the external window from my source window.
    More precisely, I have a WD application which has a button (Search) on one of its views. On click of 'Search' button, I open a new window using 'CREATE_EXTERNAL_WINDOW' passing the URL 'www.google.com'.
    Till this point its fine, but now I want to close this newly opened window. As you said now these are 2 different sessions and cannot communicate anymore, so any guidance how to close this new window?.
    OR
    Is this the only way to call an URL i.e using CREATE_EXTERNAL_WINDOW? Is there any other way to call an URL without closing my current running WD application?
    Request your  help......
    Thanks.
    Regards,
    Sud....

  • Close window in web dynpro abap

    Hi,
    I have a web dynpro application for a workflow. When a user clicks on the workitem in UWL, a window opens with task description and two button on it. When the user clicks on one of the button, my requirement is: I want to close that window. How could I achieve that? any snippets of code will be highly appreciated.
    Thanks.
    Bijay

    Hi
    I am facing problem with 2 buttons one is SAVE and One is Close.
    For Close Button i have added below code its giving the popup with yes and no buttons, Its closing when i press Yes but its giving error like " Application terminated you can close the window " , Please help how can i sove this one.
    Sorry to disturb you.. Thanks in advance.
      data : l_view_cntr type ref to if_wd_view_controller,
    l_win_cntr type ref to if_wd_window_controller,
    l_window type ref to if_wd_window,
    l_parameter_list type wdr_event_parameter_list,
    l_parameter type wdr_event_parameter,
    l_val type ref to data.
    field-symbols <fs> type any.
    l_view_cntr = wd_this->wd_get_api( ).
    l_win_cntr = l_view_cntr->get_embedding_window_ctlr( ).
    l_parameter-name = 'CLOSE_WINDOW'.
    create data l_val type c.
    assign l_val->* to <fs>.
    <fs> = 'X'.
    l_parameter-value = l_val.
    insert l_parameter into table l_parameter_list.
    l_win_cntr->if_wd_view_controller~fire_plug(
    exporting plug_name = 'EXIT'
    parameters = l_parameter_list ).
    For Save button...
    I wrote below code in component controller method , but its not populating any window or any pop-up please help in this also.
      DATA:
            lo_cmp_api        TYPE REF TO if_wd_component,
            lo_window_manager TYPE REF TO if_wd_window_manager,
            popup_title       TYPE string.
           wdw_variant       TYPE string VALUE 'WDW_TEMPLATE_POPUP'.
      CALL METHOD cl_wd_utilities=>get_otr_text_by_alias
        EXPORTING
          alias      = 'PAOC_HAP_PA_CASC_GOALS_UI/TEMPLATE'
        RECEIVING
          alias_text = popup_title.
    Calling the POPUP
      lo_cmp_api = wd_this->wd_get_api( ).
      lo_window_manager = lo_cmp_api->get_window_manager( ).
      CALL METHOD lo_window_manager->create_window
        EXPORTING
          window_name       = 'ZH_GOALS'
          title             = popup_title
          close_button      = abap_true
          close_in_any_case = abap_false
          button_kind       = if_wd_window=>co_buttons_okcancel
          default_button    = if_wd_window=>co_button_ok
        RECEIVING
          window            = wd_this->lo_window.
      wd_this->lo_window->open( ).

  • Web Dynpro Abap - Calling URL in same window

    I've created a new ESS type application but in WD ABAP and in the application I'd like to have an Exit button on each view to the ESS overview page and also put in a link on my confirmation page to go back to the ESS overview page.
    I've found the link I need and tried a couple of methods to call it, either with an exit plug or using the method
    lo_window_manager -> Create_external_window.
    but whatever I do, although it opens up a new page to the correct URL,  it leaves the page I was working on open.  I'd like it to basically go back to the ESS overview page (using my URL), but close the window that is currently running, so that only one window is open at a time.  Does anyone know if this is possible.
    Thanks,
    Pam Laverty

    Yes, I had also found some documents on that and set it up to use an exit plug, and while now although it does not open up a new session in the portal,  when the new page comes up it still has the masthead from the original screen as well as the new one.
    Meaning you still see the portal header and all tabs on the screen from the original screen and then again on the screen just below we again have the portal header and all tabs showing the new page (from URL)  just below.
    Something is still not closing right.  We have portal 7.0.  I see there are come close_window options, but those are only good with 7.1 as far as I read.
    Are there anything special that needs to go in the exit plug method so that it simply closes the old screen and brings up the new URL?
    Thanks for your help.
    Pam

  • SAP E-recruiting EHP4 external candidate registration web dynpro ABAP

    Hi all,
    I am trying to activate the url of the web dynpro external candidate registration. we have setup the hrrcf_a_ext_cand(may be i misspelt the name) and it is fine.
    Now when a user tries to register using the "REGISTER" button the application asks for another login(this is not a popup window), although anonymous user is setup for the REGISTRATION web dynpro application.
    Any ideas..
    Regards,
    Bharat

    .

  • Web Dynpro ABAP with workflow in EP

    Hi friends..
    I wants my web dynpro application in EP workflow (its a form which needs to be field by multiple users).. can u suggest how to do this , i am new to EP as well webdynpro ABAP.. please suggest how to proceed..
    regards
    siddharth

    Hi Siddarth,
    I can help you through some links are available here...
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    https://www.sdn.sap.com/irj/sdn/ep?rid=/webcontent/uuid/fe7a864d-0a01-0010-5c9f-992510042c41 [original link is broken]
    /thread/113025 [original link is broken]
    Thanks and Regards,
    Prabhakar Dharmala

  • Portal SSO Web Dynpro ABAP

    Hello,
    We have implemented a long time ago, Portal 7.0 SSO and AD and it works perfect.
    Now, we implemented the first web dynpro abap, with most users, wda application works fine, but for some users to access the same window will appear loguin.
    In SAP, we set the parameters:
    login/create_sso2_ticket = 2
    login / password_change_for_SSO = 0
    If the user with the problem, uses another PC, it can access the application normally. We imagine it's some configuration of PC or Internet Explorer.
    Anyone ever happened something similar?
    We can help us solve this problem.
    Regards,

    We solve the problem by adding an exception proxy.
    Portal is accessed by a dns (http://name), the solution we found is to add the exception of proxy (http://name.com) and it works perfect.
    Thank you very much,
    Regards,

  • Smartform in web dynpro Abap

    Hi,
    I'm trying to implement a web dynpro abap with a smartform.
    I used the "How to Display a Smartform as PDF document in Web Dynpro for ABAP" document that e can find on sdn.
    My problem is that when the form is called, there is  a dump
    "Please maintain an output device in your user master data. ".
    I copied  the code in a report and the form is displayed.
    Did I miss something?
    Kr
    Karim

    This workaround solution for smartForms sends the output to the Spool and then converts the spool to PDF.  For it to work it has to have a printer id for the formatting to the spool. You must maintain a default printer in your user ID or pass in a printer into the output settings of the smartForms function module. Because all of this is occuring in the background, the smartForms function modules can't just popup a dialog asking for a printer.

  • How web dynpro abap is used for snc

    Hi folks,
               I am new to web dynpro abap.Some one told we can upgrade snc from lower version to higher version but i dont have any knowledge on snc.For upgrading snc what we must have 2 know. How web dynpro abap is used for upgrading snc.Pls provide any links related to web dynpro abap with snc.
    Thanks in advance

    Hello Ravidanda,
    I have found a link that provides some information on how Web Dynpro ABAP is used in SAP SNC in the SAP Help. Here you go:
    http://help.sap.com/saphelp_snc70/helpdata/EN/46/7256ce7fde01dde10000000a1553f7/frameset.htm
    I hope this will help you.

  • Dynpro ABAP with Floorplan Manager in Portal!

    Dear Member,
    I havenu2019t worked on Portal yet. I worked on Web Dynpro ABAP and know how to do the Component and Application configuration from SE80 in SAP GUI.
    Can we able to configure the Web Dynpro ABAP with Floorplan Manager in Portal? If yes, how to Personalize, Configure and Customize the Dynpro ABAP with Floorplan Manager in Portal?
    If we have to do it from SE80, then we have to call the application URL with parameter u2018sap-wd-configIDu2019. Where should I update this URL parameter in the portal?
    Basically I want to know how to perform Personalization, Configuration and Customization of Web Dynpro ABAP with Floorplan Manager and want to see the effect when customized application called from Portal.
    Please let me know, if I need to more clear on my question.
    u2026Naddy

    Hi Naddy,
    If you have configured the component and application configurations in SAP GUI then in order to display it in the portal, you need to create a webdynpro based iView. In the same Iview just fill one of the parameters 'APPLICATION' as name of the webdynpro applicaiton and the parameter 'CONFIGURATION NAME' as name of the application configuration that you create for the Webdynpro application.
    Do not forget to implement the required interface of the Floor plan that you are using(OIF, GAF) in your webdynpro component.
    Thanks,
    Rajkumar.S

Maybe you are looking for

  • Itunes Still Crashes After upgrading to 9.4.1

    Iphoto crashes after installing the new update. Here is the error log. Any help to resolve this is welcome. Cheers. Process:         iPhoto [10437] Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto Identifier:      com.apple.iPhoto Vers

  • How many number of pages can be included in a single spool request

    Hi , How many maximum number of pages can be included in a single spool request. can we increase or decrease these max no of pages per spool in SAP.Please advise. Thanks & Regards, Sam.

  • Vga cable for iPod 5

    With my iPad2 or my iPod Touch I could connect a cable from 30 pin Apple to VGA and run a presentation to an overhead projector. How do I do this with an iPad4 or iPod Touch 5? Robert

  • Is it possible to remove 'Self-View' softkey from 8945

    Hi All, CUCM 10.5.1.11900-13, 8945 load SCCP8941_8945.9-4-1-9. Does anyone know if it's possible to remove the 'Self-View' softkey from the 8945 when it's on hook?  Would like to free up a softkey so we can have other functions on the screen. Thanks,

  • Alternative database

    Is there anyonewho can help me to install the wli on a different database then those who are certified. For instance an informix or mysql database. We already imported the schema from an oracle to an mysql. The server boots but i get an sql exception