Window Navigation In Web Dynpro ABAP

In one of our requirements we would have to make use of the suspend plug in Web Dynpro Abap. Would anyone happen to have any other information on this topic. Is there a sample program available which demonstrates the same?
The requirement is that, I have to call an external window (output screen) from my present screen (input screen). While this external window is active, the calling window (input screen) should be disabled. When the external window (output screen) is closed the input screen should be enabled again. I have read that suspend/resume plugs can be used for this. However, I have not been able to figure out how to use them.
As a starting point, it would help if I can find out how navigation between two windows (not views) can be achieved.

You can enable and disable a view at least programmatically by binding the enabled property of all elements to one context variable and setting this to false when you navigate and back to true when you come back.
With these special plugs I haven't worked at time.
Frank

Similar Messages

  • POP UP window resize in web dynpro ABAP

    Hi All,
    I have created a pop up window by using method create_window of interface  if_wd_window . The pop up window is Resizable by default . If user Resizes the pop up window , Screen is uncooperative . As a solution we decided not to allow Resizable option for pop up window but by default the pop up window is resizable . Please let me know how to disable this default  Resizable option .
    Our SAP system is of version 700 ( SAP_BASIS 700 ) . I checked other system where SAP_BASIS version is 701 , here the pop up window is not resizable by default . Is there any way ( OSS note ) to disable the default Resize option in SAP_BASIS 700 ?
    I tried to adjust the pop up window size by using SET_WINDOW_SIZE but it is not  working in SAP_BASIS 700 .
    Please let me know if there is any solution for this .
    Thanks in advance ,
    Kiran.

    Hi,
    I am not sure if you would be able to solve this with some note (i doubt if it exists of 7.00 ). Try to see once again if_wd_window has any method or attribute which would help you otherwise (I think you have done that already ).
    Why not upgrade to 7.01 ?

  • Event handling for closing a browser window on portal in web dynpro abap

    Hi,
    I am new to portal as well as web dynpro. Is it possible to handle portal events in web dynpro abap? My requirement is whenever a browser window is closed on portal, if any new system messge has been added I want to display them in a pop-up. I checked examples from the package 'SWDP_TEST' but they trigger events in web dynpro and pass them to portal. I want to subscribe to the close event of portal and handle it in my web dynpro abap application. How can I achieve this? Please suggest.
    Thanks and regards,
    Amrutha

    Amrutha S wrote:
    Is it possible to handle portal events in web dynpro abap? My requirement is whenever a browser window is closed on portal, if any new system messge has been added I want to display them in a pop-up. I checked examples from the package 'SWDP_TEST' but they trigger events in web dynpro and pass them to portal. I want to subscribe to the close event of portal and handle it in my web dynpro abap application. How can I achieve this? Please suggest.
    Hi,
    I dont think that you can code to close IE browser window as you cannot access MS IE APIs in WD ABAP. I looked into closing IE browser and got http://p2p.wrox.com/general-net/16588-handling-ie-close-event.html . reading this, it seems the coding can be done in C#(asp) etc.
    also refer Closing of IE window
    I hope this is useful for you.
    Thanks,
    Chandra

  • 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

  • How to create  calendar in web dynpro abap

    Hi ,
    how to create  calendra in web dynpro abap.
    Thanks in advance.
    Regards, Chetan

    hi,
    For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
    One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
    Regards,
    Jithin

  • Problem in calling abap editor with the program name in Web Dynpro ABAP

    Hi,
    I have to caal ABAP Editor screen with the display of program after clicking a button from web dynpro abap application.
    I am able to call the ABAP Editor initial screen, but i want the editor display screen with a program.
    How to do that?
    Please find my code below:
      DATA : FINAL_URL TYPE STRING,
             URL TYPE STRING.
      DATA: LV_HOST TYPE STRING,
            LV_PORT TYPE STRING.
    DATA V_TCODE TYPE TCODE.
      DATA:  LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
      DATA:  LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA:  LO_WINDOW         TYPE REF TO IF_WD_WINDOW.
      DATA:  LD_URL TYPE STRING.
    V_TCODE = 'SE38'.
    *Call below method to get host and port
      CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
         IMPORTING
           HOST = LV_HOST
           PORT = LV_PORT ).
      CONCATENATE 'http'
      '://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?sap-client=&transaction=' V_TCODE '&OKCODE=SHOW'
      INTO URL.
      LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
      LD_URL = URL.
      CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
        EXPORTING
          URL    = LD_URL
        RECEIVING
          WINDOW = LO_WINDOW.
      LO_WINDOW->OPEN( ).
    Now, how to pass my Zprogram name into the URL.
    I need to get the editor screen with the display of the program.
    Thanks,
    Radhika

    Hi Kiran,
    Please find my code below:
    DATA :   URL TYPE STRING.
      DATA: LV_HOST TYPE STRING,
            LV_PORT TYPE STRING.
      DATA:  LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
      DATA:  LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA:  LO_WINDOW         TYPE REF TO IF_WD_WINDOW.
      DATA:  LD_URL TYPE STRING.
    *Call below method to get host and port
      CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
         IMPORTING
           HOST = LV_HOST
           PORT = LV_PORT ).
      CONCATENATE 'http'
    '://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?&transaction=se38&RS38M-PROGRAMM=Y2PSOLTREE&~okcode=shop'
      INTO URL.
      LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
      LD_URL = URL.
      CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
        EXPORTING
          URL    = LD_URL
        RECEIVING
          WINDOW = LO_WINDOW.
      LO_WINDOW->OPEN( ).
    Here,, Y2PSOLTREE is the program, that should show in SE38 screen.
    I used the above code, but still it is showing the SE38 initial screen.
    Thanks,
    Radhika

  • Sequencing Problem in Web Dynpro ABAP

    Hi Web Dynpro (ABAP) Guru's,
    Can anyone tell me how to read a parameter from the WDA url in my view? The situation is like this: My WDA is being rendered in the Portal EP 6.0 as an iView. When my WDA is called the portal also appends in the URL the plant number. I want to grab that plant number and use it in my view to show some default data.
    As per other weblogs/forum posts I defined a parameter "PLANT_NO" in the "Default" startup plug of my Main window. I'm using the Get_Data method to read this parameter in the plug. I'm able to read the URL parameter here and so far it is good. Read below for the problem..
    If I understand the order of operations correctly, doesn't the views get created, then the default plug code is run, then the views are placed on the window and then shown to the user. Since my views are created before my default plug is run I DO NOT get the URL parameter value in the WDDOINIT of my view. When I debug the application, the WDDOINIT of the embedded view gets called before the Default startup plug. Am I missing something here?
    If someone can tell how to read the URL parameter in the WDDOINIT (instead of Default Startup) of the view I could default in the data I want to display. OR any other suggestions to get past this problem would be appreciated.
    Does this make any sense and does anybody have an idea of where I could find some info about how to do this?
    Thanks much for your help. Points will be awarded.

    Thanks Klaus for the response.
    I don't want to read the parameter from the default plug, but need to access the URL parameter and display default data in my view. Let me explain the scenario:
    My Web dynpro application is called from the Portal. The Plant number is passed in the URL as:
    http://...../sap/bc/../../<Web Dynpro Application name>?PLANT_NO=0012
    I want to show Material Stock values in the view for Plant "0012". To access this value I've defined a parameter with same name (PLANT_NO) in the default startup plug of my main window. I get access to the URL parameter through this plug parameter.
    I have only ONE view embedded in this window where the Stock values are selected from table MARD for the specified plant. I want to get the plant value from URL in my WDDOINIT method to make this selection from database. I'm then binding the results to the view table UI element. My problem is that the URL parameter is read in the Default plug, but the data selection and view binding happens before in the WDDOINIT method where I don't know the plant.
    Again, I don't want to read the plug parameter, but I want to get the URL parameter (PLANT_NO) and then render the view based on the data selected for this parameter. Please let me know how this can be achieved by reading the URL parameter in WDDOINIT method (Constructor) so that it can be used subsequently in the application.
    Thanks for your help and looking for a resolution.....

  • Ajax/Javascript in Web dynpro ABAP

    Hi,
    I need your help in figuring out what artefacts of web dynpro ABAP could help me resolve a problem.
    In a Web dynpro abap application, we have a button that redirects a user to an external site. Some of our users can go to this site from their computer and some others can't because they are not allowed. I would like to be able to show the button only to the users that have the right to execute this navigation.
    In order to do that, I need to embed some script in my web dynpro application that will test if the URL of this application sends back an HTTP/200.
    With the latest versions of Web Dynpro ABAP, is it possible to embed javascript of ajax? How can it be done?
    If not, what could I use to base the visibility of my button on a validation that has to run on the users's browser?
    Thank you very much for your help!
    Renaud

    Another way it could be done creating a custom ztransaction (abap report) performing a PING to the ip server , reading log txt,  saving if the user is authorized or not , and redirecting to the Abap Web Dynpro.
    Then On wddoinit select zztable for authorization.
    But i don't know if this solution will work for you (ping specific port 80? or other requirements)
    DATA: workdir TYPE string,
          path_log TYPE string,
          parameter TYPE string.
    TYPES: BEGIN OF tylog,
         line(1000),
      END OF tylog.
    DATA: t_log TYPE TABLE OF tylog,
          v_log LIKE LINE OF t_log.
      DATA:  appl_name TYPE string,
                abs_url TYPE string.
    START-OF-SELECTION.
      CALL METHOD cl_gui_frontend_services=>get_sapgui_workdir
        CHANGING
          sapworkdir = workdir.
      CONCATENATE '/C ping google.it >' workdir
      INTO parameter SEPARATED BY space. "example google
      CONCATENATE parameter '\pinglog.txt' INTO parameter.
      CALL METHOD cl_gui_frontend_services=>execute
         EXPORTING
    *    document               =
           application            = 'CMD'
           parameter              = parameter
           synchronous            = 'X'.
      CONCATENATE workdir  '\pinglog.txt' INTO path_log.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = path_log
          filetype                      = 'ASC'
        TABLES
          data_tab                      = t_log.
      LOOP AT t_log INTO v_log WHERE LINE CS 'Lost = 0'.
        EXIT.
      ENDLOOP.
    if sy-subrc = 0. "ping ok
    zzping-uname = sy-uname.
       zzping-authorized = 'X'.
    else.
      zzping-uname = sy-uname.
      zzping-authorized = ' '.
      endif.
       INSERT ZZPING.
    **construct web dynpro url and call browser
      cl_wd_utilities=>construct_wd_url( EXPORTING application_name = appl_name
                                                                 IMPORTING out_absolute_url = abs_url ).
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        URL                          = abs_url.
    Edited by: alessandro spadoni on Mar 24, 2011 10:09 PM
    Edited by: alessandro spadoni on Mar 24, 2011 10:31 PM

  • ALV object in Web dynpro ABAP

    Hi All,
    I want to include ALV object in web dynpro ABAP, instead of a table in a window. I have SAP Version 4.6 as backend.
    Pl help.

    Hi Nirmal,
    the information on ALV and WDA is here: http://help.sap.com/saphelp_nw2004s/helpdata/en/74/fd4142646ab46be10000000a155106/frameset.htm
    As you know, Web Dynpro ABAP is availiable with NW2004s, not before.
    Regards, Heidi

  • Set Context From Event Handler in Web Dynpro ABAP

    Hi,
    I am passing some parameters when navigating from one view to another. Now I would like to set the context of the second view. How can I achieve that in Web Dynpro ABAP?
    Thanks.
    / Elvez

    I figured out ...
    element->set_attribute(
           exporting name = `NAME`      
                     value = value ).

  • Web Dynpro ABAP application  - Fully Qualified Domain Names (FQDN) error

    I have created a Web Dynpro ABAP application. On executing it, I get Fully Qualified Domain Names (FQDN) error. I have host name of my server.
    I do not know domain name of my server. How can I detect it?
    I want to know in  Windows XP and Windows 7.
    Please help me asap.

    Hi,
    On your server run command ipconfig /all
    FQDN = Hostname + Primary DNS Suffix
    The make sure the profile parameters SAPLOCALHOSTFULL and icm/host_name_full reflect the same.
    Regards,
    Srikishan

  • BSP vs Web Dynpro ABAP

    Hello,
    we are looking for a listing that states the functional and technical differences between Web Dynpro ABAP an BSP.
    Is there anybody who has come along such a list ?
    Tx a lot in advance!
    Best regards,
    Ana

    Annette,
    check this
    The SAP Web Application Server (WAS) provides a page-based programming model with server-side scripting as well as server page technology for developing, designing and implementing Web applications:
    Business Server Pages (BSP). Server-side scripting enables direct access to all elements in the application server (such as function modules, database tables, ABAP Objects, and so on.).
    We can create HTML pages or Business Server Pages (BSPs) with server-side scripting in ABAP or JavaScript.
    The HTMLB and XHTMLB HTML Business libraries are available as BSP Extensions for a uniform layout and its associated usability advantages.
    And In the Web Application Server, the presentation layer is separate from the business logic. This makes it possible to implement front-end technology.
    Why BSP NOT WebDynpro
                              BSP
                  ABAP WEBDYNPRO
    Currently PMUSA/JMC customers are using Fire fox (Mozilla), Internet Explorer and Netscape navigator web browsers to access WEBUYPM application.
    BSP supports these web browsers.
    Restricted (Some of the features will not be supported by WebDynpro)
    Existing WEBUYPM application is written in HTML, Business HTML and JavaScript language.
    BSP supports these languages. And it allows even to mix ABAP, HTML and JavaScript thus has more flexibility to convert WEBUYPM application into BSP.
    Web Dynpro does not support HTML/JavaScript.
    Existing WEBUYPM displays the trade communications (Information tab) based on JavaScript and custom configuration file
    BSP supports JavaScript, we can display the trade communications in BSP too.
    Web Dynpro does not support Java Script.
    Existing WEBUYPM application has different colors schemes, Logos and graphical elements for PMUSA/JMC companies.
    BSP support s multiple color schemes/logo. These color schemes can be set dynamically based on company code selection at runtime.
    Separate Themes has to be developed for each User Interface elements.
    Development effort needs to be involved to even display a logo.
    BSP supports client side (user) validations. As most of these validations can be done at client side, the no. of hits on the server can be reduced and thus giving better response for the user inputs.
    In this way, performance can be increased.
    Web dynpro does not support any client side validations, every time the request must be sent to server to validate the useru2019s input. This increases the traffic and reduces the performance
    WEBUYPM application has logos, images.
    BSP supports Client side caching, and thus loads these element from client side very quickly.
    Web dynpro supports very little use of caching on the client side, and hence quite a significant delay in starting on some customeru2019s browsers.
    BSP has no restriction on user interface possibilities, Ex. Grid, drop down boxes, Font colors, size etc.
    Significantly more restrictive in user interface possibilities.
    Ex. Only those fonts, which are provided by SAP, can be used.
    Appearance can be changed dynamically using same web pages, to support different colors for different companies.
    We can have same (or better) look and feel if we convert the application into BSP.
    As there is no HTML coding involved in web dynpro the same look and feel as we have it today can't be achieved by using web dynpro.
    BSP is built for developing any type of web application (including mobile applications. It can be accessed from desktop, laptop, and any kind of smart devices like PDA.
    Web dynpro applications can not be accessed from PDA s (Not possible)
    Why WebDynpro NOT BSP
                 ABAP WEBDYNPRO
                               BSP
    Personalization can be given to the end user if they do not want see any of the user-interface elements.
    We can not hide any of the user-interface elements (Ex buttons ex) during the runtime.
    Note - Current WEBUYPM application does not support any of these options.
    Currently we are setting/retrieving the runtime context values in a session.
    Web dynpro supports State full applications.
    No additional development would be required. 
    BSP also supports to set runtime values and to retrieve the runtime context values, but minor development would be required to achieve this functionality. 
    Currently users can see view source for WEBUYPM HTML pages.
    Using Web dynpro this can be restricted thus providing more security to the application.
    HTML view source can be available to the users, Users can see the HTML client side code (not server side coding) as it does today.
    By using Adobe Flash Island, powerful web pages (RIA) can be created.
    But, Flash Island comes with Net weaver.
    BSP does not support Flash Island. But, BSP supports Java Script.
    JavaScript is essential for the new trend of rich internet applications (RIA), it is used by all the new applications, Ajax, Widgets, Flash, and even Microsoft is supporting JavaScript for the new generation of RIA
    Web dynpro has wizard tools to generate the code to create/configure the User Interface elements.
    Development effort would be required to create UI elements.
    We dynpro has uniformity as we use standard colors provided by SAP
    Uniformity can be achieved by using style sheets (minor development would be required).
    Thanks
    Bala Duvvuri

  • Web Dynpro ABAP : Parameter ,start plug and WDDOINIT

    Hi,
    I'm currently developing a web dynpro abap application which receieves parameters(Work item id).
    I can read the content of paramaters in the method start plug of the window and I can store them in the context.
    What I want to do is, in the method WDDOINIT of my main view, I want to read the parameter Work item id
    The problem is that the WDDOINIT  is called after the start plug, So the context is still empty.
    I have tried to read the context in the WDDOMODIFY view. There the context is correctly filled but apparently, we can not navigate to another view from the WDDOMODIFY .
    Is this normal?
    Thanks for your answer

    I did find a solution and I wanted to share and validate it.
    - I created a event in the COMPONENTCONTROLLER "event_chk_url_params".
    - In the view where I use these url parameters, I created a method (event handler) for the above event that checks for the url parameters and fires plugs based on the value of the url parameters.
    - From the window's handle default method, where I get all the url parameters, I raise the event in the component controller ... which inturn calls the event handler in the view, which in turn redirects.
    Is this the right solution or is there something better then this?

  • Web Dynpro ABAP: Inbound/Outbound plugs

    Hi,
    Has anyone used the suspend/resume functionality in a Web Dynpro ABAP Window? I need to navigate from my component to another component and be able to navigate back and resume the session. Apparently it can be done using these types of plugs but there is no doco/examples available to look at.
    Thanks!!
    Nick

    Hi Nick,
    here's documentation about the suspend/resume plugs: http://help.sap.com/saphelp_nw04s/helpdata/en/43/6b972329d23d33e10000000a11466f/frameset.htm
    Regards, Heidi

  • Integration a Web Dynpro ABAP application within one of my EP overview page

    Hi Experts,
    I've got an issue when integrating a Web Dynpro ABAP application within one of my EP overview pages.
    We've implemented PLM using the Web Dynpro ABAP scenario for employees. Now Iu2019m trying to integrate this into the Employee Self-Service overview page. I've got no issue to make the icon and area title appears, but when I click on it I get a blank page with Error 404. However when clicking on the link in the navigation bar (Level 2) then I get the page fine. So it looks like EP is not able to integrate correctly the Web Dynpro ABAP into the overview page in EP. Is there any specific Resource configuration?
    One more thing is that if I've implemented the same iView using Resources -> Services -> Sub Areas -> Areas everything works fine, but I receive two navigation Levels (Area Group contains the Area Link and when I click it brings me to Sub Area with the single Service Link) I want to avoid this double clicking, calling the application directly from Area Group -> Area link.
    Anyone has ever come across that kind of issue? Has anyone ever integrated a WDA application directly into an overview page?

    Hi,
    We faced a similar problem with BSPs and had to change the definition of the area link type entry.
    I am assuming you have set the area link type to WebDynpro for ABAP and the resource is calling an Iview/page that has the WD ABAP application configured.
    To get around the error, change the Area Link type to Calls a Portal page and make sure the resource calls an Iview/Page that has the WD ABAP application configured.

Maybe you are looking for

  • Win 8.1 App crashes - MyBookLive 3TB

    I have downloaded the WD App from the Windows App store.  When I launch the app, sometimes I see "No supported WD devices found".  If I close the app and restart it, I can see the live tiles under the categories "Photos" "Videos" Music", etc, and a s

  • Excel 2010 workbook crashing Excel 2013

    We have someone who created a workbook in Excel 2010 and when we open it in Excel 2013 it will crash. You can open the doc and look at it, but once you start trying to do anything in it, after a random time period, it will crash. Also if you try to r

  • I have a jail broken iPhone4 with iOS 5.0.1. What happens if I automatically update to ios6? I'm afraid of my phone becoming a brick.

    I'm really scared of my iPhone becoming useless and my software being completely messed up. A friend said he was upgrading my phone, but he was jail breaking it. I don't want this. I don't use jail broken apps or anything. I just want my phone in top

  • Premiere CS4 4.01 & no sound anymore

    Since I updated Premiere CS4 4.00 to 4.01 I have no sound! What do I wrong?

  • SA520 and Lan ports problem

    I would like to ask for your help. I have a Cisco SA520 with the latest firmware and I am experiencing a problem with the lan ports. After a minute all 4 lan ports are dead and are not working. although when you open it they are working after a minut