Need to have pop up window in selection screen and capture the user action.

Hello Friends,
                     I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
I create a selection screen and a sub screen as window.
After user execute from the selection screen, I am popping up this window.
Window contains some input values to be entered and push button to identify the user action.
I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
How to overcome this issue.
Here is the definition of the window.
Pop Up Window for getting values
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
PARAMETER : p_vdate LIKE t9aa01-validfrom,
            p_dcggt LIKE t9aa01-hkont,
            p_dcgst1 LIKE t9aa01-hkont,
            p_dcgst2 LIKE t9aa01-hkont,
            p_na LIKE t9aa01-hkont.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 20.
SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 500.
Cheers,
Senthil
Edited by: Senthil on Jan 7, 2008 11:03 AM

Hi,
Try using the below code.
       data : w_var type string.
       CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
         EXPORTING
          DEFAULTOPTION        = 'Y'
           textline1            = 'test '
         TEXTLINE2            = ' '
           titel                = 'check'
         START_COLUMN         = 25
         START_ROW            = 6
         CANCEL_DISPLAY       = 'X'
        IMPORTING
          ANSWER               = w_var.
                 if w_var = 'J'.
                 else.
                 endif.
Comments : J indicates Yes and N indicates No
Regards,
Jeswanth

Similar Messages

  • How to add a field to the selection screen and when the user enters ...

    hi all,
    can any one plesase send the code of how to add a field to seletiion screen and when the user enters in the field , it should be store in the database table , the table is MKPF and the field is BKTXT.  Thanks.

    Hi Kripa,
       If u r using PNP ldb then the screen u will get is the screen for that ldb and if u want to add some more fields then u define using selection-screen..as follows
    SELECTION-SCREEN BEGIN OF BLOCK mysel WITH FRAME TITLE text-111.
    PARAMETERS: n_in_en  RADIOBUTTON GROUP g1,
                q_ev  RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK mysel.
    SELECTION-SCREEN BEGIN OF BLOCK mysel1 WITH FRAME TITLE text-222.
    PARAMETERS: r_date TYPE sy-datum DEFAULT sy-datum.
    SELECTION-SCREEN END OF BLOCK mysel1.
    SELECTION-SCREEN BEGIN OF BLOCK mysel2 WITH FRAME TITLE text-333.
    PARAMETERS:f_ver(3) TYPE c DEFAULT 1,
               c_no(10) TYPE c DEFAULT '9D0161',
               u_id(15) TYPE c,
               password(15) TYPE c,
               r_email(30) TYPE c DEFAULT PARAMETERS: s_not TYPE c AS CHECKBOX.
    PARAMETERS:t_run TYPE c  AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK mysel2.
    SELECTION-SCREEN BEGIN OF BLOCK mysel3 WITH FRAME TITLE text-444.
    SELECTION-SCREEN BEGIN OF BLOCK mysel4 WITH FRAME TITLE text-555.
    PARAMETERS: p_ser  RADIOBUTTON GROUP g2,
    a_ser  RADIOBUTTON GROUP g2.
    SELECTION-SCREEN END OF BLOCK mysel4.
    SELECTION-SCREEN BEGIN OF BLOCK mysel5 WITH FRAME TITLE text-666.
    PARAMETERS:p_path TYPE string.
    SELECTION-SCREEN END OF BLOCK mysel5.
    SELECTION-SCREEN END OF BLOCK mysel3.
    u will get this additional screen after the screen of ldb.
    I hope this will help u..
    Thanks & Regards
    Ashu Singh.

  • Display alv grids in selection screen based on the user event

    Hi All,
    I am workign on displaying ALV in same selection screen.I am able to display the ALV in selection screen.
    But i have 2 buttons in my selection screen 'Create' and 'change'.
    When i click on create i need  with some type of data and when i click on 'change' my alv grid another type of data.Ex: if i click on crate mara data should be dispalyed when i click on change makt table data should be dispalyed and also i have user defined buttons are in my grids.
    So i have used 2 containers to dispaly to different data.I am able to display the perfectly but the problem is first time when i click on create the grid is displaying when i click on change button  the create alv grid is displaying down and change data is dispalying up.
    I need only one alv grid at a time.Can anybody please let me know how can i do this.
    Thanks,
    Taragini

    Hello,
    Also I would suggest if it is relevant data maintain in one interntal table and show/hide based on condition
    through fieldcatalog (NO_OUT) parameter.
    Thanks

  • How to get full row from F4 pop up window into selection-screen fields

    HI ,
    I had a selection screen having 3 fields (vbeln, posnr, ebeln )
    If i press F4 on field 1 i will get a pop up having all values.
    If i click on any one row in that popup, only the first field is getting filled with the value. But i want all the other fields to be filled with the corresponding values in the screen simultaneously.
    Please let me know is there any solution for this...
    Regards,
    Kanth....

    Hi
    U should base your selection-screen on a dictionary structure whith those three fields where you assign your search help exporting all values (VBELN, POSNR and EBELN).
    In this way you'll obtain what you need automatically
    Else you can manage it in POV event by your selef.
    Max

  • How get window between selection screen and alv output

    Hi Friends,
    I am displaying ALV report now i want to display small window with one button and it should show list of fields before displaying alv output.
    means i want a window showing list of fields of internal table coming from program.and when i will click on yes button it should show ALV output.
    how can i achive this .
    Pls. help
    thanks in advance.

    Hi,
    Try to use the following command:
    <b><i>WINDOW STARTING AT <some-value> <some-value> ENDING AT <some-value> <some-value>.
    </i></b>
    notice that there is a space between <> <>.
    This statement should be used inside the AT USER-COMMAND event.
    i.e.,
    AT USER-COMMAND.
       CASE SY-UCOMM.
           WHEN 'XXX'.
                <b> <i> WINDOW STARTING AT <> <> ENDING AT <> <>.</i></b>
                 ..............statements....................
       ENDCASE.
    This should help you some what.
    Bye

  • Displaying Plant as F4 option in the selection screen according to the User Authorization

    Hi all,
    In the selection screen, I need to display the list of plants as F4 search help that the user has authorization.
    How I need to check from the table.
    Please provide me the exact table name where I can get the list of plants that the user has authorization.
    Thanks in Advance.
    Regards,
    karthik

    Hi Madan,
    Thanks for your reply.
    As of now Plant entered in selection screen is validated for authorization like below.
    authority-check object 'M_MATE_WRK'
          id 'ACTVT' field '02'
          id 'WERKS' field p_werks.
       if sy-subrc <> 0.
         message text-010 type c_e.
         exit.
       endif.
    But they are in need of Plants in F4.
    Regards,
    Karthik

  • Difference between At selection-screen  and At selection-screen field

    I need to know the difference between
    Difference between At selection-screen  and At selection-screen field
    Regards
    Shashi

    Hi,
    AT SELECTION-SCREEN is the event triggered in the PAI of the selection screen.
    AT SELECTION-SCREEN on field field_name is the event specific to the field and is triggered when u press enter in that field.
    AT SELECTION-SCREEN selscreen_event.
    Effect
    This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
    Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
    AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens.
    SELECTION-SCREEN FIELD SELECTION
    FOR {NODE|TABLE} node [ID id].
    Effect
    This statement defines a node node in the structure of the logical database for field selection. If a node belongs to type T, you can use the TABLE addition instead of NODE. The statement cannot be used for type C nodes. .
    If a node is defined for field selection, you can use an executable program linked to the logical database in the GET statement to control which fields in the node are to be read by the logical database. If you use the function module LDB_PROCESS, the FIELD_SELECTION parameter must be specified accordingly.
    for more details check this link...
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
    Regards,
    Priyanka.

  • TO display pop_up on selection screen And chosse that field in 'SELECT' sta

    Hello,
    I want a pop up on selection screen when user clicks the push button on selection screen pop up should come on selection screen and display the all field of YTLEA table. when user checks few or all field from pop up then data for that field is selected from the YTLEA table.

    DDIF_TABL_GET

  • Add custom fields on selection screen  and ouput in Transaction QM11

    Hi All,
       i have the requirement to enhance the transaction qm11( Report : RQMELL10) to add the custom fields on the report selection screen and in the report output.
      i tried to add the fields on selection screen by copy the standard program RQMELL10 to custom one. and tried to add the fields above to the coding tab but i am not able to display the text for those fields of select-options. can any one help me is it the right way to copy the standard program to custom program and adding the custom fields and how to get the text element for the custom fields which we are going to add it. i tried to add the text element in program text elements but it is not appering on the report.
    please requeting the help asap if it is possible.

    Have a glance in below thread.
    Enhancing transaction QM10
    Also, there are some more threads available in enhancing the QM10 / QM11. Please search those as well.

  • I have just started to use Muse for our design agency and learning how to build ourselves a new site, I have manged to create a basic lightbox which contains sliding images, what I need to do now is have a pop up window which goes into detail about the pr

    I have just started to use Muse for our design agency and learning how to build ourselves a new site, I have managed to create a basic lightbox which contains sliding images, what I need to do now is have a pop up window which goes into detail about the projects, what I would like is a piece of text  or icon that when you roll over it and then click a separate window pops up with additional information in, once finished reading the info you can then click to close the box, any advice on how to do this?

    The best way to do what you're asking is with the Composition widget. Start with the Tooltip preset, which, by default shows the info on rollover. You can change the option to show on click, which is what you're after. You can also add the close button or have the info disappear on rollout.
    David

  • On a Mac, how do I close tabs or windows where dialogs have popped up trying to download malware and you cannot close them?

    On a Mac, how do I close tabs or windows where dialogs have popped up trying to download malware and you cannot close them? I think it's Ctrl+F4 on a PC. I would like to close just these tabs or windows instead of having to quit the whole firefox program.

    The equivalent of Control+F4 is Command+W, I have not tried it but you may still get the alert boxes when closing a tab using this method.
    The AlertCheck add-on can be used to block the infinite loops such as this - https://addons.mozilla.org/firefox/addon/alertcheck - This functionality is built into Firefox 4.
    An alternative method in Firefox 3.6.* is to temporarily turn off JavaScript. Open the Firefox preferences window, go to the Content panel and de-select the setting "Enable JavaScript" then click OK. You will then be able to close the tab, and can then re-enable JavaScript.

  • Web MDI needs to have an open window.

    Hello,
    I need to develop an app with an MDI interface.
    Since Form 6i always needs to have a document window open inside the MDI, in a c/s env my launch form for the app would have a window which has a hzontal toolbar canvas and its minimize, maximize, restore, close feature set to false.
    This creates a classic MDI look and feel in a client server env.
    Porting the same to the web, does not achieve the classic feel bcos, the default window now on maximize does not merge its title bar with the MDI title bar. Hence i have lost the look and feel of the classic MDI.
    Can u help me get the classic MDI look and feel back or someway i can get close to there?
    Regards
    Sena.

    Sena,
    I have the same problem with web forms and haven't been able to maximize the window like you can in c/s.
    However, you can solve the problem by positioning/sizing your window to replicate the 'classic' look.
    IF GET_APPLICATION_PROPERTY(USER_INTERFACE) = 'WEB' THEN
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WINDOW_SIZE, 600, 400);
    SET_WINDOW_PROPERTY('BASE', POSITION, 0, -16);
    SET_WINDOW_PROPERTY('BASE', WINDOW_STATE, NORMAL);
    SET_WINDOW_PROPERTY('BASE', WIDTH, 595);
    SET_WINDOW_PROPERTY('BASE', HEIGHT, 385);
    ELSE
    SET_WINDOW_PROPERTY('BASE', WINDOW_STATE, MAXIMIZE);
    END IF;
    Regards,
    Pete

  • Need help with pop up window!

    I'm working on an online graphic design portfolio and one of the pages features online animated Flash banners.  The site can be viewed here...
    http://truetilldeathhq.com/Skiz/main8_v7.html
    I created a pop up window that displays a swf of the banner by putting this code on the View Banner link of each example of work...
    on (release) {
    var jscommand:String = "window.open('http://www.truetilldeathhq.com/Skiz/banners/336x280DuvalCX9.html','win','height= 296,width=352,left=112,top=330,toolbar=no,resizable=no,location=no,scrollbars=no ');";getURL("javascript:" + jscommand + " void(0);");
    Two problems though.  First is in Firefox the location bar with the url to the swf is visible, even though I set location=no as a variable in the code (it works ok in Safari).  The window is also resizable in Firefox and Safari even though the variable is set to resizable=no.  How can I fix this?
    Second problem, even though I painstakingly set the left and top variables by trial and error to get the pop up window to open exactly in the center of the "stage" area of the site, when I post it and view it in a browser, the window pops up lower.  When I'm in the fla of the site and I preview it in a browser, it's fine, but for some reason when I post the files online and then open it from http://truetilldeathhq.com/Skiz/main8_v7.html, the pop ups come in lower.  Any fixes or advice on this?
    Thanks for your help!

    Forgive me for my ignorance, but I'm new to Flash and any kind of scripting and I didn't quite follow that page you directed me to.  Right now I'm working up a Flash template and the action on the link for the banner pages looks like this:
    on(rollOver) {
    this.gotoAndPlay("s1");
    on(rollOut, releaseOutside) {
    this.gotoAndPlay("s2");
    on (release) {
    _root.popup_pressed=1;
    _root.scrHEIGHT=240
    _root.scroller.scroller.gotoAndStop(2);
    _root.TM_title = "Work 1 read more";
    _root.READ = 1;
    _root.scroller.gotoAndPlay("s1");
    How can I work up the on (release) so I'll get a simple pop up window, say 728x90, no scrollbars or resizing, that will open somewhere in the middle of the site?  If I wanted a title to the pop up window, how would I do that?
    Again, thanks so much for your time and excuse my newbieness.

  • Please Help! I have been getting quick pop ups on my desktop screen and when I open Consol, here's what it says: 9/11/14 5:59:09.499 PM com.apple.launchd.peruser.501: (com.akamai.single-user-client[7490]) Bug: launchd_core_logic.c:4745 (26200):13

    Please Help! I have been getting quick pop ups on my desktop screen and when I open Consol, here's what it says: 9/11/14 5:59:09.499 PM com.apple.launchd.peruser.501: (com.akamai.single-user-client[7490]) Bug: launchd_core_logic.c:4745 (26200):13

    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Pop up window on Logon Screen

    Hi All,
    I would like to create a pop up window on Logon Screen. But my page is not found. Am I missing something?
    [A class="link_sub_menu" href="#" onClick="javascript:window.open(<b>'forgotmypassword.jsp,</b> '_blank', 'width=350,height=200,location=no,resizable=no');"]Forgot my password
    [/A]
    Tks,
    Alcides Flach
    Message was edited by:
            Alcides Flach

    hi,
    try this.
    data : WF_RES type c.
    CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
                EXPORTING
                 DEFAULTOPTION        = 'N'
              TEXTLINE1            = 'Do you want to delete the record?'
    *           TEXTLINE2            = ' '
                  TITEL                = 'Delete Zone'
    *           START_COLUMN         = 25
    *           START_ROW            = 6
    *           CANCEL_DISPLAY       = 'X'
               IMPORTING
                 ANSWER               = WF_RES.
    if wf_res = 'J'.
    user selected 'YES'.
    else.
    user selected 'NO'.
    endif.
    Rgds
    anver

Maybe you are looking for

  • ECC6.0 WebDynpro(ABAP) - raising terminating event

    Hi, in ECC6.0 I have a custom WDA application with a custom workflow.  The workflow is launched via an event that is raised in the WDA application.  However, at one point workflow sends a link to one of the WDA pages, whereby the user clicks a button

  • Dump during BDLS (Refresh BW)

    Hello, We are currently working on a BW refresh and during the BDLS we get the following dump: Category                       ABAP Programming Error Runtime Errors              OBJECTS_OBJREF_NOT_ASSIGNED ABAP Program              SAPLRSBK_AFTER_IMPO

  • T60 dual screens/mo​nitors

    Hi, I have an end user that wants to use his T60 with Dual monitors. I know that he is NOT going to be able to use the laptop screen and two external monitors. the setup is this: T60 setup on a dock. 2 19 inch external monitors, one is setup with VGA

  • Access to Current CPU Load Amount?

    Hi! I need to setup a quick application for some critical timing I am trying to achieve.  Windows is really quite poor at achieving this.  What I really need is a real-time system, but I have what I have and I need to do what I need to do with it tod

  • Recording audio with Premiere Pro CS6

    I'm a new comer to Premiere, having come from Final Cut.  I am trying to record audio into Premiere via a USB audio interface and mic.  I am able to record, but I want to know how I can monitor while I'm recoding.  I've already tried disabling the "m