Position of dialogbox container relativ to popup screen

I try to position a dialogbox container right under a popup-screen.
The popup is created via
  call screen ... starting at X Y.
So the popup appears with coordinates (X,Y) relativ to the underlying dynpro.
Now I want to display a dialogbox container 'near' that popup. When calling the create object <dailogbox> I can specify some coordinates (parameters left, top).
But these are in pixels and absolute ccordinates on the screen.
So, how can I calculate some coordinates for the dialogbox to get it near the popup?
Thanks for any help.

mention the "ending at a b" coordinates also.
so that u can know where the pop-up ends.
give the dialoge box coordinates as "a+1 y".
regards,
bharat.

Similar Messages

  • Set position of dialogbox depending on screen resolution

    Hi,
    Could you tell me how I can set the position of a dialogbox container (CL_GUI_DIALOGBOX_CONTAINER)depending on the current screen resolution?
    Thank you for your help,
    Fabian

    Hi,
    When u create the Dialogbox object,u have the option of specifying the height,width of the dialog container.
    Dialog container
         go_dialog_container        TYPE REF TO cl_gui_dialogbox_container,
    CREATE OBJECT go_dialog_container
             EXPORTING
          PARENT                      =
               <b>width                       = 400
               height                      = 150</b>           style                       = cl_gui_control=>ws_sysmenu
          REPID                       =
          dynnr                       = '100'
          LIFETIME                    = lifetime_default
               <b>top                         = 100
               left                        = 350</b>           caption                     = 'My dialog box'
          NO_AUTODEF_PROGID_DYNNR     =
          METRIC                      = 0
          NAME                        =
             EXCEPTIONS
               CNTL_ERROR                  = 1
               CNTL_SYSTEM_ERROR           = 2
               CREATE_ERROR                = 3
               LIFETIME_ERROR              = 4
               LIFETIME_DYNPRO_DYNPRO_LINK = 5
               EVENT_ALREADY_REGISTERED    = 6
               ERROR_REGIST_EVENT          = 7
               others                      = 8.
           IF sy-subrc <> 0.
         Do some error handling..............
           ENDIF.
    Hope it helps u.
    Kindly reward point if u find it useful.
    Thanks&Regards,
    Ruthra

  • Is it possible to print current popup screen or area like ABAP container?

    Is it possible to print current popup screen or area like ABAP container?

    Hi Zhiqiang,
    The user can mark the content and select in the browser the option to only print the selected area. Printing, which is controlled from the background, should be done using the server-built-in technologies, such as Adobe integration, SmartForms, etc. That way forms can be printed in i.e. different languages.
    Best regards,
    Thomas

  • Dialogbox Container with grid and additional toolbar at bottom - howto

    Dear colleagues,
    in an application we have a button that opens a dialogbox container and displays a grid with data. The user has to close the box at some point using the window close icon at the top right of the container.
    To make it more convenient for the user, I'd like to have an additional toolbar at the bottom of the container with just one Close button.
    How to get this toolbar on the container.
    Regards,
    Clemens

    Hi friends,
    in part as a result to missing and/or miserable documentation of the GUI controls by SAP, some people may not yet know what a dialog container is.
    I am talking about objects of class cl_gui_dialogbox_container. They behave as popup windows but the big difference is that you can resize them and you can continue your application work while the popup is still open.
    On such a dialogbox you can place any other GUI control as i.e. a text editor (cl_gui_textedit), a picture, a grid or whatever GUI control is available.
    BUT there are NO classic screen controls as PF-STATUS available within a control. The programmer will have to use the events avaliable for the control, i.e. for a dialogbox you should at least define an event handler for the CLOSE event so that you can close the box.
    DATA:
      go_dialogbox                            TYPE REF TO cl_gui_dialogbox_container,
      go_editor                               TYPE REF TO cl_gui_textedit.
    *       CLASS lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          close
            FOR EVENT close
            OF cl_gui_dialogbox_container.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    *       CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD close.
        CALL METHOD go_editor->free.
        FREE go_editor.
        CALL METHOD go_dialogbox->free.
        FREE go_dialogbox.
    * finally flush
        CALL METHOD cl_gui_cfw=>flush
          EXCEPTIONS
            OTHERS                            = 1.
      ENDMETHOD." close
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    *&      Form  showcontent
    *       Anzeige im Control
    FORM showcontent  USING    pt_data        TYPE table.
      IF go_dialogbox IS INITIAL.
        CREATE OBJECT go_dialogbox
           EXPORTING
             width                            = 800
             height                           = 300
             top                                = 50
             left                               = 100
             caption                            = 'Close Window to end Display'.
        SET HANDLER lcl_event_receiver=>close FOR go_dialogbox.
      ENDIF." go_dialogbox is initial.
      IF go_editor IS INITIAL.
        CREATE OBJECT go_editor
          EXPORTING
            parent                            = go_dialogbox
            wordwrap_mode                     = cl_gui_textedit=>wordwrap_off
            wordwrap_to_linebreak_mode        = cl_gui_textedit=>true.
      ENDIF.
      CALL METHOD go_editor->set_toolbar_mode
        EXPORTING
          toolbar_mode                        = go_editor->true.
      CALL METHOD go_editor->set_statusbar_mode
        EXPORTING
          statusbar_mode                      = go_editor->true.
    * Set edit mode
      CALL METHOD go_editor->set_readonly_mode.
    *   send table to control
      CALL METHOD go_editor->set_font_fixed
        EXPORTING
          mode                                = cl_gui_textedit=>true.
      CALL METHOD go_editor->set_text_as_r3table
        EXPORTING
          table                               = pt_data.
    * set focus
      CALL METHOD go_dialogbox->set_focus
        EXPORTING
          control                             = go_editor.
    ENDFORM.                    " showcontent
    This code excerpt shows how you can show any text in a dialogbox as a popup. The SET HANDLER command ties the CLOSE method to the correspondig event. The close event gets triggered when the mouse is clicked on the windows close x icon on top right.
    Because this is sometimes a little hard to hit, a toolbar at the bottom of the dialogbox could help the user. I did not have the time, but I will try to place a splitter container at the bottom and create the toolbar (CL_GUI_TOOLBAR) object there.
    Regards,
    Clemens

  • Set PF status in popup screen

    Hi ,
    I m creating a ALV report ,in that using set PF status i created push button , in alv output list if i click the push button pop up screen will come in that popup screen it displays the previous PF status, how to add my own PF status in that popup screen
    thanks

    Hi,
    You must have created other screen for the pop up say suppose 9002.
    then we need to write the code in 9002 PBO.
    *&      Module  STATUS_9002  OUTPUT
    *       text
    MODULE status_9002 OUTPUT.
      SET PF-STATUS 'ZNOT3'.
      SET TITLEBAR 'ZTNOT3'.
    ENDMODULE.                 " STATUS_9002  OUTPUT
    Here 'ZNOT3' is is the PF STATUS that ius made according to our need.
    It is recommend that you copy standard status'STANDARD' from function group SALV and modify it accordingly. ALV standard function codes always start with '&'.
    Hope this will help you.
    Thanks,
    Dhanashri.

  • Popup screen not working after upgrade to APEX 3.0

    Hi,
    I have upgraded my APEX installation from version 1.6 to version 3. My application has some popup screens that are displayed when a user presses a button. These popups have now stop working and when you press them, the user is presented with the login page.
    I suspect this is because I am not passing the SESSION value in the URL when the page is displayed. The following code is the javascript that is called from one of the buttons :-
    function sa_popup2() {
    var field_value = document.getElementById("f22@0").value;
    if ( document.getElementById("f22@0").value != "" ) {
    var enqNo = document.getElementById("P17_ENQUIRY_NO") ? document.getElementById("P17_ENQUIRY_NO").value : -1;
    var enqLineNo = wwv_flow.f02[0].value;
    var str=document.getElementById("P17_PROCESS_CHRG_INCL").value;
    var outstring = str.replace(/%null%/,"");
    windowAddress = 'f?p=200:228:::::P228_CUS_ID,P228_ENQ_STATUS,P228_PROCESSING_CHRG,P228_ENQUIRY_NO,P228_ENQUIRY_LINE_NO:'+document.getElementById("P17_CUS_ID").value+','+document.getElementById("P17_ENQ_STATUS").value+','+outstring + ',' + enqNo + ',' + enqLineNo ;
    w = open(windowAddress,"winhelp","Scrollbars=1,resizable=1,width=500,height=350");
    You can see from the above that when the windowaddress variable is set it does not include the session value. In APEX 1.6 when the popup is displayed the SESSION is automatically populated in the URL, but in APEX 3 it is not populating.
    Is there a way I can get this to continue working without changing my javascript function. This approach has been used throughout my applications, and I do not want to have to change the code if I don't need to.
    Rgds
    Paul

    Hi Paul,
    Yes, as you suspect, it's the fact that you're not passing the session across. I would definitely recommend recoding to include the session.

  • Add new field in the Create Support Message Popup Screen

    Hi Experts,
    I need to create Project Code Field in the standard popup screen Create Support Message
    Suggest me any Badi or FM or Bapi or Enhancement to create a new field and update the field value to the Support Message created.
    Please let me know if this is possible or not?
    Thank You,
    Sowjanya Sreekrishna

    Dear Abhijit
    Even after doing PGI, there are some fields which are in editable mode in delivery.  For example, in VL02N, if you select "Goto --> Header --> Shipment, you can see fields like Bill of Lading are in editable mode.
    If you specify what your requirement is, then probably, a better option can be given.
    Thanks
    G. Lakshmipathi

  • On my new iPhone, at the Apps store, I tried to make a purchase, the popup screen shows my Apple ID and asks for my password, but no keyboard appears so that I can enter the password.  How do I get the keyboard to appear??

    On my new iPhone, at the Apps store, I tried to make a purchase, the popup screen shows my Apple ID and asks for my password, but no keyboard appears so that I can enter the password.  How do I get the keyboard to appear??

    On your iPad, delete the existing account then sign back in with the new ID and password.

  • Data is not saving in to DB from POPUP screen.

    Hi,
    I am opening a popup screen on button click and On the popup screen, I have added the VO as form with submit button.
    On the popup fetchlistener, I calling a bean method to invoke the createInsert action as follows.
    public String createSubs() {
    System.out.println("Inside Action Event*********************");
    try{
    AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
    BindingContainer bc = getBindings();
    oracle.binding.OperationBinding opb = bc.getOperationBinding("Create");
    opb.execute();
    }catch(Exception e){
    e.printStackTrace();
    return "";
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    When I am clicking on submit button in popup screen, data is appearing on the mainpage table but the same is not saving in the database. One more I have observed that doDML is not calling means SOP's are not comming from doDML method in the entity class.
    Please do the needful, its an urgent issue to reslove.
    Thanks in Advance,
    user5802014

    HI,
    Can you please specify that for your attributes CreatedBy and CreationDate , are you using automatic insert value from your entity or not? Or you are passing default values programatically in doDML() method.
    I guess for every new row your are using User name for CreatedBy field and current date for CreationDate field,
    Why don't you set these field at the time of creation of new row, Override Create() method in your entity bean and then you can set these fields to there default values. and now you should remove Mandatory property to unchecked for these fields in entity also.
    like i'm doing here - I'm setting sequence number as default to field insertedLineNo
        protected void create(AttributeList attributeList) {
            SequenceImpl seq = new SequenceImpl("NUMBER_SEQ", getDBTransaction());
            Number seqNum = seq.getSequenceNumber();
            setInsertedLineNo(seqNum);
            super.create(attributeList);
        }Hope this will help you, and let me know if this helps you.
    Fizzz...

  • I am working with Acrobat XI and when I try to add text to geopdf file I get a popup screen that says this is a secured document and editing is not permitted. How do I fix this?

    I am working with Acrobat XI and when I try to add text to a geopdf file I get a popup screen that says this is a secured document and editing is not permitted. How do I fix this?

    I figured it out...needed to use comment tool set, not the editing tool set.

  • I reinstalled acrobat pro 9.0 on windows 7 Ultimate 64, it installed OK, When I open i get a large white popup screen which i cannot close... what to do?

    I reinstalled acrobat pro 9.0 on windows 7 Ultimate 64, it installed OK, When I open i get a large white popup screen which i cannot close... what to do?

    Hey jeroenb16613921,
    Please specify exactly when you get this white popup screen. While opening a PDF or launching Acrobat by double-clicking on the Acrobat icon.
    If it comes when opening a PDF, then where is this PDF actually stored?
    Let me know more on the same so that I can analyze the issue.
    Regards,
    Anubha

  • Call transaction in the popup screen

    hi friends . ı want to call transaction in the popup screen.
    what do ı do ?
    thanks.

    to call a transaction in the popup screen
    can u give me one scenerio
    because
    try this
    create a program of type report
    in that "call screen '100' starting 10 10 ending at 100 100.
    and u click on this 100  and make the layout what ever u want
    and just go to se93 create transaction for this report program
    thats it
    if it ok
    then ur problem is solved
    or else it is not solved

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • Need help on POPUP screen  in web ui

    Hi Experts,
    I have created popup screen in the eh_onsave method .Now it is triggering, in this popup it is displaying YES, NO and CANEL buttons. But i want to change the standard buttons descriptions. how to do ?
    I have created custom buttons and displaying as  ACCEPT, REJECT AND CHANGE on the popup screen. if I click any button on the popup is returning same event id, i have seen in debugging custo_btn .
    below is my code.
    ls_button-id = 'ACCEPT'.
      ls_button-text = 'Accept'.
      ls_button-on_click = 'ACCEPT'.
      ls_button-on_select = 'ACCP'.
      append ls_button to lt_buttons.
      clear ls_button.
      ls_button-id = 'REJECT'.
      ls_button-text = 'Reject'.
      ls_button-on_click = 'REJECT'.
      append ls_button to lt_buttons.
      clear ls_button.
      ls_button-id = 'CHANGE'.
      ls_button-text = 'Change'.
      ls_button-on_click = 'CHANGE'.
      append ls_button to lt_buttons.
      clear ls_button.
      call method comp_controller->window_manager->create_popup_2_confirm
        exporting
          iv_title          = 'Vary Item Proposal'
          iv_text           = lv_text
          iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_custom
          iv_custombuttons  = lt_buttons
        receiving
          rv_result         = gv_confirm_popup.
      gv_confirm_popup->set_on_close_event(  iv_view = me
                                             iv_event_name = 'CONFIRM_POPUP_CLOSED' ).
      gv_confirm_popup->open( ).
    ethod EH_ONCONFIRM_POPUP_CLOSED.
    Added by wizard: Handler for event 'CONFIRM_POPUP_CLOSED'
    INCLUDE: crm_object_types_con.
    DATA: lv_answer TYPE string.
    lv_answer = GV_confirm_popup->get_fired_outbound_plug( ).
    CASE lv_answer. "Here i am getting the same id for any button.
    WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_yes.
    WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_no.
    WHEN OTHERS.
    ENDCASE.
    Please help me.
    Thanks,
    Venky

    Hi Venky
    Try to Implement the below lines along with other lines while building the button, apart from that check ON_CLIENT_CLICK also (instead of on_click use the on_client_click)
    ls_button-enabled = 'X'.
    More over I checked your code in the CASE statement you are using the stanadrad constants like co_event_yes , but you are setting the event with other names pls check that also.
    now your code will look like this
    ls_button-id = 'ACCEPT'.
    ls_button-text = 'Accept'.
    ls_button-enabled = 'X'.
    ls_button-on_client_click = 'ACCEPT'.
    ls_button-on_select = 'ACCP'.
    append ls_button to lt_buttons.
    clear ls_button.
    hope this helps.
    Thanks & Regards
    Raj
    Edited by: bmsraj on Sep 21, 2011 7:06 PM

  • Modify layout of a popup screen

    Hi Experts,
      I need a modify a dialog screen( screen built using screen painter) in which data is displayed using table control.
    Since all the of columns in the table control is not visible in the popup and the user needs to scroll if he/she wants to see other columns, my client wants to add 'Layout' button to the popup screen and this should work similar to the layout option that come by default in ALV display.
    My question is, is it possible to provide such an option in dialog screen? if Yes, then please let me know how this can be achieved.
    Thanks in advance..
    Regards
    Balu

    I don't know of a way to get the same layout functionality you get with the ALV display but there is a configuration button which is accessible for every table control you create in your dialog program.
    The button (on my SAP GUI) looks like three little vertical bars that look similar to a very small table grid (the top is blue and the first column looks like it is yellow while the other two little bars look like they're white).
    It is located in the upper right-hand corner of every table control when you run your program.
    If you click on this configuration button the user will be able to configure the table columns for their individual needs.  This is functionality that SAP provides by default.  When you click on the configuration button there is an information button (indicated by an "i") which will give you more information about how to use this layout configuration tool.
    I hope this helps.  Perhaps it will suffice for your needs with this request.

Maybe you are looking for

  • Is it possible to retrieve photos/video from a smashed iphone, with only the motherboard intact?

    My iphone 5 was smashed today, basically to smitherines. The hard drive/motherboard is still intact though. Is it possible to take this to apple and have them hook it up somehow and have them put my photos on a CD or something? if apple doesn't offer

  • Error while loading a CVC

    Hello Sapiens, While loading a CVC in the IPB, following error is dispalyed. "INVALID DATA STATUS" & "ERROR READING DATA - PLANNING BOOK CANNOT BE PROCESSED FURTHER" Any clue to unsolve this . Thank you . Regards Rahul Chitte

  • Leopard "Blue screen of death" - total system crash!

    So my new mac crashed. Again. Recently I've experienced that my mac freezes when I start to do some heavy work, like video-editing or Photoshop. A re-install solved the problem for around two weeks, before the same thing happend again yesterday: Duri

  • Oracle won't start

    Hi folks, I am working on a new server (VM) that was cloned from a physical hardware server. Environment is Linux 4.9 and oracle is 10.2. Here is the error I am getting: When I set the ORACLE_SID and try to startup, I get this error. Ora 03113 end of

  • Rotating Ad Banner

    I am trying to figure out how to create a rotating homepage banner with news stories in dreamweaver. I know how to do rotating images but I saw one (see link below) that had text, images, and link. Cannot find anything on how to do this. Example: htt