Popup window in Wendynpro for ABAP

Hai,
How to create popup window with some texts and close button.
Once user click a table cell (link to action), the popup window shoud give information about the cell information.
Please this is urgent.
Thanks in advance,
Tamil

Hi,
This can be achieved in the following manner,
Firstly, As you want to have a pop up , you need to create a new window in the application. now as you wrote that you need some texts and a button. create a view having both the things, i.e create texts and a button on the view.
Now as this view cant be displayed alone on screen, this view has to be embeded in the window you created for the popup.
now the pop up creation is done and code the below on the link to action.
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 lo_view_controller type ref to if_wd_view_controller.
  data :  lt_text TYPE string_table,
          ls_text TYPE string.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name =  write window name here please note all should be in caps
title =  title here
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
lo_window->open( ).
Let me know in case of any issues!!
Thanks and Regards,
Shitanshu Sahai
Kavita Rathore  Please provide the required code, I guess you implemented it in your program

Similar Messages

  • Popup Window (Web Dynpro for ABAP)

    Hi.^^
    Is it possible to locate a popup window where it show?
    This window is not dialog type.
    I have tried to do this sometimes using window->set_window_position( xxx) and window->set_window_position_control( xxx ).
    I think that these method call is available to dialog box type window.
    Is it right?
    Plz. help that.

    Hi Etnaya,
    It is currently not possible to specify the size nor the position of a popup in Web Dynpro ABAP. There has been a revamp regarding popups last year December to make them more user friendly and to offer advanced features, like having popups in the portal that are not trapped inside of an iView on the portal. We are in the process of reimplementing the size/position features - but I am not able to provide an eta on them. Nonetheless, there is some relief: The size of popups is now calculated automatically.
    Best regards,
    Thomas

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • Create External Window in Webdynpro for Abap

    I am creating an external window using method CREATE_EXTERNAL_WINDOW.  The componentcontroller context and the assistance class attributes are not available in the Handledefault method of the external window.    Is there a way to pass data to the external window without using URL parameters?
    Thanks
    Cindy

    >@Thomas: with all your wonderful eLearnings on WDA is there one which covers this in any depth? As it would be nice to point people to it.
    No I can't say that I have ever created something specifically on this.  The ACFUpDownload example is closest simply because I use the cache table is a similiar way, althought I hesitate to recommend that eLearning in this situation becuase that aspect isn't central to the eLearning and it might just confuse things further.
    >don't forget about the possibility of database persistence of the data either -
    That was actually what I was talking about in server cookies as well. Server cookies are something that was originally created for BSP, but work fine in WDA as well.  They are just a cluster table where you can store any data you want and access in another session via a key. The nice thing about server cookies is that there is already a help class for read/write and batch job that can be scheduled to clear out expired entries.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/frameset.htm

  • ADF Gantt Project: Modification of 'properties' popup window

    Dear all,
    Is there a possibility to access and modifiy the properties popup windows as used for instance in the Oracle ADF faces demo "Tag Guide > projectGantt Demo > 'click on task' > 'left mouse click' > 'Properties'".
    Thank you in advance!
    Best regards,
    Tom

    Thank you for the fast answer, John.
    For my Project Gantt Application, we need more variables as avaible in the present 'oracle model'. The minimum requirement is the comparability of to a MS Project.
    We would like to modify the additional variables in the mentioned properties popup. Do you see a possibility to achieve this goal?
    Best regards,
    Tom

  • SSO UIDPW not working for external Popup Window but works with SAPLOGONTICK

    Dear Experts,
    I have an issue with SSO user mapping (UIDPW), but the same scenario is working with SAPLOGONTICKET.
    Some list gets displayed in the Web Dynpro ABAP iView which has the hyperlinks where on click on the hyper link it opens a external popup window (another Web Dynpro Application) and display the summary some data.
    This scenario works when I set the logon method to SAPLOGONTICKET, but when I set it as UIDPW it won't work when a new window opens on click on the hyperlink from Web Dynpro iView as stated above. It asks to login to R/3 system.
    Can anyone please let me know what could be the reason it fails in External Popup window scenario when logon method as UIDPW.
    Thanks
    Murthy

    Hi Murthy,
    You can use application integrator iView to integrate your ABAP application into the portal and you'll be able to pass the variables <MappedUser>, <MappedPassword>, etc. assuming you know about the security risks in passing mapped info.
    http://help.sap.com/erp2005_ehp_05/helpdata/en/36/5e3842134bad04e10000000a1550b0/frameset.htm
    Still, your ABAPers might need to handle the passed in variables in the first ABAP application and pass them onto the second one.  Again, without knowing how you navigate between the 2 apps and other details about your system landscape, versions, etc. this remains as a guess.  If you search SDN, you'll find many different solutions then you can choose one which is most suitable for your situation.
    Regards,
    Dao

  • Webdynpro for ABAP - Popup apearing for userid and pwd

    Hi Experts,
    We have implemented ESS and gone live. Now we have created one custom application in webdynpro for ABAP and attached with portal.
    Initially there was a problem, the application was not getting executed because of system configuration, then I have configured the host name, port number correctly. Then the iView is getting loaded in the portal.
    The problem is, when I am trying to access the iView, the popup apearing for the user id and password. This is happening only the webdynpro abap application, this is not happening for all sap standard iViews.
    Could anyone help me with this issue?
    Thanks
    Jay

    Hi Jayanthi,
    as you had mentioned this is not happening for sap standard iViews(do you mean simple transaction iViews for which you have used a system alias, which was the same you had used for ABAP web dynpro iview)?
    Of courese ESS iViews works with their own JCOs which is no way helpful or connected with wd ABAP.
    So I believe if your SAP id and Portal id are different(or if they are same but SAP Logon ticket is not configured properly) then only it woudl ask for the authentication again- for Wd ABAP to work fine, only the connector property  and WAS to tbe configured in the system object(aka system alias) used for ABAP iview. Now once you enter the login credentials, it is working fine right, then could you please test the user mapping under the user you are logged in, select the alias that you had used while creating the abap wd iView and provide userid/password here, then run the wd ABAP application, it definitely would work.
    N.B: if you had provided the credentials once, then it woud be stored in the browser cache, so if you perform the user mapping in user admin, log off from portal, close all your browser windows, then clear cache,(cookies etc). then login to portal, run the wdABAP application, I am sure this would work(it worked for me!!!).
    Thanks,
    Jakes.

  • ABAP Web Dynpro Window Inactive After Closing Popup Window

    Hello ABAP'ers
    I have a custom ABAP Web dynpro applications that uses multiple tiers of popup windows.  This application was functioning properly in our ECC6.0, Basis release 7.00 Service level 15 environment.  However, we are currently installing EHP4 and moving or basis release to 7.01 service level 5. In this new environment, when multiple popup window tiers are closed simultaneously, the underlining window is not re-activated.
    Here's a more specific description:
    The application starts with a control panel window presenting a series of buttons.  Selecting one of these buttons activates a modal (I know... all web dynpro popups are modal) popup window for the purpose of maintaining some object.  If the user attempts to exit this window without saving the changes, another popup window appears asking if they want to save their changes.  If they say no, both the popup window asking the question and the popup maintenance window are closed, thus returning the user to the switchboard.
    The problem is that none of the functionality on the switchboard is active. the user must manually refresh the URL to "reactivate" the switchboard. 
    When only a single popup window is closed, the underlying window is properly reactivated.  The problem only occurs when multiple popups are closed together.
    Has anybody else seen this occur? Any ideas / notes around to correct it?
    Any info is greatly appreciated.
    R/
    Jim M

    Hello Jim, hello everyone,
    I am encountering the same issue.
    Is a solution known already?
    Thanks
    Johannes

  • How to close a popup window for system events?

    Hi,
    I have a screen 110 which shows several input field in popup mode.
    The Cancel button can close the screen.
    But my question is how to close the popup window for the following system events?
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
    The PAI subroutine of the screen has not been triggered for the above system events.
    Thanks for the coming help.
    Best Regards,
    David

    Hi Siddharth,
    I did check with another very experienced ABAP developer.
    The solution was the same as what Arunima Rudra provided.
    And I got a sample program which did work properly.
    The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
    Anyway, I suggest you to try the solution as provided by Arunima Rudra.
    It should work for 2 system events:
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close"
    For "Stop Session", it should not be handled by popup.
    You can observe the same behavior in ALV sorting configuration popup.
    Good luck!
    Regards,
    David

  • Web Dynpro for ABAP iview window question ...

    Hi,  I have a web dynpro for abap iview that calls a web dypro for abap program in ECC that generates a PDF document. 
    It works perfectly, except when the iview is launched it opens a blank iview page and then opens a separate window in which the PDF is displayed.  Does anyone know how to suppress the blank iview window? 
    Can I suppress it in the ABAP for Web Dynpro program in ECC or is there something on the portal in the web dynrpo for abap iview that I can do? 
    Thanks
    Angie.

    Hi,
    Please check the same issue at the WD4A side-
    Generating PDF in Web-Dynpro   - empty window popup
    Or
    In the IF_WD_WINDOW_MANAGER try to use the method -create_internal_window method.
    Regards
    Lekha

  • Popup window for downloading a file

    Hi,
    my dear users want me to do the impossible possible. My code generates an XML file which in time I displayed it in an Iframe in the application. When the standard popup window shows up, they can either Open, Save or Cancel it. This was allright.
    Now they want the file in a new window displayed (when they press Open), because opening the file in the same window means they leave the application and after reading the file, they have to start the application again. I do it like this:
    The code works perfect only with the Alert instructions. Once I delete it, the window is opened and inmediately closed. The popup window for the file does not show up.
    Thanks for your ideas.

    here is the code sample.
    1. user clicks a button in the main page , which will generate xml and show the same in a new window.
    page attributes
    display_url     TYPE     STRING                                                                
    file_mime_type     TYPE     STRING                                                                
    flights     TYPE     FLIGHTTAB     Table for SFLIGHT
    wf_xml     TYPE     XSTRING
    layout:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form>
          <htmlb:textView text   = "Hello World!"
                          design = "EMPHASIZED" />
          <htmlb:button text    = "Press Me"
                        onClick = "myClickHandler" />
          <%
      IF  display_url IS NOT INITIAL.
          %>
          <script language="Javascript">
            window.open("<%= display_url%>").focus();
          </script>
          <%
      ENDIF.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    oninputprocessing code.
    data: cached_response type ref to if_http_response.
    data: guid type guid_32.
    CALL TRANSFORMATION (`ID`)
                SOURCE flights   = flights[]
                RESULT XML wf_xml.
    file_mime_type = 'text/xml' .
    create object cached_response type cl_http_response exporting add_c_msg = 1.
      cached_response->set_data( wf_xml ).
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = file_mime_type ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 180 ).
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate runtime->application_url '/' guid into display_url.
      cl_http_server=>server_cache_upload( url      = display_url
                                           response = cached_response ).
      return.
    2.user clicks a button in the main page , which will generate xml and present the user with a option to save locally or cancel. (in this case no additional browser window will be opened - only a popup and also the main page is not affected)
    layout code:
    same as option 1.
    oninputprocesing code.
    everything is same except change
    file_mime_type = 'text/xml' .
    to
    file_mime_type = 'application/oct-stream' .
    Note: wf_xml is of type xstring which holds the xml stream.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • I'm getting popup notices that Firefox has a problem, and Windows is looking for a solution; then it closes Firefox and says Windows will let me know if it finds a solution. No crash report window comes up.

    Firefox is my default browser on my new laptop, with OS Windows 7. I've now had several instances where a Windows popup comes up saying Firefox has developed a problem and may have to close. It also indicates Windows "is looking for a solution to the problem." No solution is found, however, and Firefox is forced to close, with the happy notice that Windows will let me know if it finds a solution to the problem. If there is any tech data on the crash, I'm not sure where to find it, and no Firefox crash report window comes up. I thought it was an anomaly the first time, but this has now occurred at least 4 times in the past several days.

    See:
    * https://support.mozilla.com/en-US/kb/Firefox%20crashes%20when%20you%20open%20it

  • In MVC, do i need a View or Page with flow logic for POPUP window

    Hi All,
    I have the below scenario using the MVC pattern.
    I have a main view with 3 trays, each tray has two buttons, for example first tray has Create Order button. When I click on this button, I need a popup window to come with a tableview and a button(Create), where I select some rows and click on the button Create  to create order.
    But as per the MVC pattern I canu2019t call the view (popup) from another view(main view).  So should I create a VIEW or PAGE WITH FLOW LOGIC for the popup? .
    I need 6 popup to be called from the main view and once the function is done close the popup.
    Please suggest me the flow for this scenario.
    Cheers,
    Srini.

    Srini,
    1. You can call the view in pop-up because you will be calling the controller using open.window.
    Here is the sample code:
    method DO_REQUEST .
      data:
            li_vw           type ref to   if_bsp_page,
            lv_form_field   type          string,
            li_md           type ref to   zcl_model01.
      dispatch_input( ).
      li_md ?= get_model( 'm01' ).
      lv_form_field = request->get_form_field( 'invoice_create' ).
      if lv_form_field is initial.
    *------ Request to display main page
        li_vw = create_view( view_name = 'main.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      elseif lv_form_field eq 'true'.
    *------ Request to display Invoice page in pop-up
        li_vw = create_view( view_name = 'invoice.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      endif.
    endmethod.
    Layout:
          function do_Invoice()
          { var s=0; r=1; w=300; h=300; x=screen.width/2;
            x=x-w/2;
            var y=screen.height/4;
            y=y-h/2;
            popUp=window.open('main.do?invoice_create=true','win','width='+ w
            +',height='+ h +', left=' + x +',top='+ y +');
    Option2:
    Ofcourse you can't bind the model in page becos those are 2 different things. But all you need to do is access the model to get some value. To know how to access the model from Page w/flow logic look at [this link|Passing model reference to a page in a Popup].
    Raja
    Edited by: Raja Thangamani on Apr 14, 2009 11:22 AM

  • How to stop popup window using phone layout for display - Responsive HTML5, RH11

    Hello,
    I'm using the new Responsive HTML5 output in RH11. For some of my hyperlinks, I want to use a pop-up to display the linked topic. In the output, the pop-ups work, but they are automatically displayed using the phone layout, with the associated navigation buttons at the bottom, the help title, and so on. I don't want this - I just want a plain popup window. So, I tried to add a Screen Profile, set to 400 x 500 pixels exactly (thinking that this is bigger than a phone, but smaller than a tablet). I also added a corresponding Screen Layout. In the popup properties, I set the popup size to be 400 x 500 pixels. I guess there is something else I need to do to get this to work... but I don't know what that is. (I tried creating a new Window on the Project Set-up tab, and I tried creating a different master page. These things didn't work.)
    Can anyone tell me if what I'm trying to do with these popups is just a bad idea and it won't work well with certain browsers?
    Thanks!
    Alexandra

    I am confused as the responsive layouts are one size fits all, that is the point of them. You have one layout that morphs according to window size.
    Screen Profiles are only used within Multiscreen HTML5 layouts where you can map screen profiles to different adaptive screen layouts, such as desktop, tablet and phone. That mapping does not apply to responsive layouts.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Disable Collaboration Features coming up in the popup window for somegroups

    Hi,
    How can I disable the Collaboration Features
    (Send Email,Create Appointment,Send InstantMessage,CreateTask etc )
    that come up in the popup window whn we click on the link provided just after user name. I know how it is to be done for all users. But I want it deactivate for certain groups only.
    Regards
    MK

    You need to configure command groups.
    Use following link:
    http://help.sap.com/saphelp_nw70/helpdata/en/98/dd48a9b4a197489a54187c99372bce/frameset.htm
    Regards
    Prabhakar Lal

Maybe you are looking for