Window not closing

In one of my views i have a button...when i press that a window opens up with a drop down list.......when i select a value from the drop down n press ok it throws an exception....
   com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Tried to close window ID MPCELLJBfa title Select a Reason, but was not on top of the queue. Top window ID MPCEf7 title Docket Details!
    at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.popModalWindow(ApplicationWindow.java:161)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doClose(WebDynproWindow.java:398)
    at com.sap.tc.webdynpro.clientserver.window.Window.doClose(Window.java:153)
    at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handle(ApplicationWindow.java:270)
    at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handleWindowEvents(ApplicationWindow.java:237
what cud b the way out...
null

Hi Kanwalpreet
For basic idea please refer to the following link
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">Dialog Boxes in WebDynpro</a>
Go Through <b>page 16</b> of the PDF Document
Regards
Chaitanya.A

Similar Messages

  • 2nd Document window not closing

    I have 2 Document windows,
    - win1 is parent window.
    - win2 is a small window with 3 display fields
    and 2 buttons OK & Cancel.
    - other setting for 'win2' is
    Modal = 'YES'
    Close Allowed = 'YES'
    i have problem with Cancel button code, i am giving
    if :SYSTEM.EVENT_WINDOW = 'WIN2' then
    GO_ITEM('CTRL.FLD5');
    HIDE_Window('WIN2');
    end if;
    The WIN2 is not closing,
    i am calling this 'WIN2' from a WVI trigger of a field on parent window 'win1'
    by issuing SHow_WINDOW('win2') command.
    but it flashes error FRM-40737: illegal restricted Procedure SET_WINDOW_PROPERTY in WVI trigger.
    Any one please suggest. TY.

    hi Sarah,
    i dont to know to which item's WVI should i atttach this code.
    Since the window Closed_Allowed property is set "yes".
    the same code given at Form-level When-Widow-Closed, works well, closes the window in 1 click.
    but i dont know the same code given for Cancel button, does not close 'win2',
    One more point, first time when win2 is shown, that time, out of the [x] button on the status bar &
    Cancel button on win2, if i use [x] button first, then 'win2' closes and cursor is back in CTRL.FLD5 on 'win1', fair enough.
    then afterwards from CTRL.FLD5 when 'win2' is called again then the Cancel button code works fine just like the [x] button.
    but the question is why not first time, if i choose Cancel button first. why it is required [x] button to be used first.
    So the problems are;
    - FRM-40737 is thrown whenever win2 in invoked from CTRL.FLD5
    - 'WIN2' does not close by pressing Cancel button, when displayed first time.

  • Groups Window not closing like before update 4.3

    After the update to Android 4.3, group windows often don't close after you hit the home button to exit/switch apps.  This behavior is a little annoying.  Is this a bug or working as designed?
    After I switch apps using the home button, I expect the group window I used to launch an app to be closed...I don't expect to press the home button twice.

    If I'm understanding you correctly, I'm experiencing the same thing. It isn't a matter of specific apps, but of the way Android 4.3 now handles folders on Home screens. For instance, I have some folders on my Home screen with quick-dial links. I open the folder, tap a link, and it dials the contact. When I'm done and go back to my Home screen, there the folder is still open. The same thing happens with folders that have apps.
    This is a change made in Android 4.3 in comparison to earlier versions of Android. Many people have commented on this online, most of them as unhappy about it as you and I, kil. (E.g., this post and the ones following it in an Android Central thread.) Unfortunately, there's nothing that can be done about it. Maybe they'll change it back in the next version of Android, maybe not.

  • 'Run' terminal window not closing

    I have an Java application which I have created an installation package for using InstallAnywhere.
    On Solaris when launching the application using the alias from a terminal window it works fine. But, when I launch the application from the File Manager, by double-clicking, it creates an 'extra' terminal window called 'Run', this terminal window doesn't terminate when I exit my application.
    How can I prevent this, can I prevent the 'Run' window from starting using some sort of setting, or can I somehow make sure it is closed togheter with the application?
    On Linux (SuSE10) the OS asks how I would like to run my application so I don't have the same problem there.

    Hi Kanwalpreet
    For basic idea please refer to the following link
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">Dialog Boxes in WebDynpro</a>
    Go Through <b>page 16</b> of the PDF Document
    Regards
    Chaitanya.A

  • Windows not closing in safari

    whenever I use safari and try to close a window, the red x button does not work. What can I do? Please HELP ME!!!!!
    ibook g4   Mac OS X (10.4.5)  

    Hi hulkman,
    Have a search of the forums (search box in the top right hand corner of the window) - this issue has been mentioned a few times already so hopefully those posts will tell you how to fix things.

  • About window not closing

    When I go into the about window for Adobe Reader X it shows the relevant paces and I have version 10.1.11. I am then unable to close the window by selecting the red cross and the window just stays. The only way I can close the window is going into to taskmanager and closing the program

    YOUR RIGHT. Worked first time. Thanks
    On Wed, Sep 24, 2014 at 2:43 PM, Pat Willener <[email protected]>

  • Jframe window not closing

    Hi can anyone plz tell me how i will close my jframe window..
    I have a button called EXIT,clicking which i want to close my Frame...
    I am writiing setvisible(false) but thats not working..

    use
    System.exit(0);
    All the best

  • Dialog/Frame window not closing

    I have an instruction dialog that pops up in an application, but if the close (X) is pressed it doesn't close the dialog/Frame.
    Dimension dem = getSize();
                   Frame r = new Frame();                    
                   Dialog d = new Dialog(r);
                   TextArea t = new TextArea("",100,100,TextArea.SCROLLBARS_NONE);
                   t.setBackground(new Color(0,0,102));
                   t.setForeground(Color.white);
                   t.setFont(new Font("Helvetica",6,14));
                   t.append(
                        "Grammar Checking Instructions: "+"\n\n"+
                        " -Use the Lexicon provided to creates a sentence for grammatical"+"\n"+
                        " checking."+"\n"+
                        " -The sentence can be typed in the text field provided or the user can"+"\n"+
                        " load a sentence from a file. (*.txt format)"+"\n"+
                        " -Press the 'Check Sentence' button for the sentence to be analyzed"+"\n\n"+
                        "Grammar Rules: "+"\n\n"+
                        " S -> NP Pred"+"\n"+
                        " Pred -> v NP PP | v PP NP | v NP | v PP | v"+"\n"+
                        " PP -> p NP"+"\n"+
                        " NP -> det. NP* | NP*"+"\n"+
                        " NP* -> adj NP* | n");
                   d.add(t);
                   d.setTitle("Grammar Checking");
                   d.setSize(475,300);
                   d.setLocation(dem.height/2 -140,dem.width/2 -40);
                   d.setResizable(false);
                   d.show();
                   r.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}});     
    thanks for the help,
    steve

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends JFrame {
      JDialog myDialog;
      public Test() {
        myDialog = new JDialog(this,"Sample Dialog");
        myDialog.setSize(50,50);
        myDialog.getContentPane().add(new JLabel("Hello"));
        JPanel content = (JPanel)getContentPane();
        JButton myButton = new JButton("Dialog");
        content.add(myButton);
        myButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
         myDialog.show();
        addWindowListener(new WindowAdapter() {
          public void windowClosed(WindowEvent e) { System.exit(0); }
      public static void main(String[] args) {
        Test test = new Test();
        test.setSize(100,100);
        test.show();
    }

  • Firefox.exe*32 not closing down when i sutdown all open windows so I have to close it through taskmanager

    firefox.exe*32 not closing down when i sutdown all open windows so I have to close it through taskmanager so I can then start a new session.

    See:
    *"Hang at exit": http://kb.mozillazine.org/Firefox_hangs
    *"Firefox hangs when you quit it": https://support.mozilla.org/kb/Firefox+hangs

  • How do I selectivly close the only not responding window (without closing the other 3 responding windows)

    Presently, I have 4 windows opened, each with a bunch of tabs.
    Since I restarted firefox this morning, one out these 4 windows, keeps on not displaying.
    How do I selectivly close this only window (without closing the 3 others windows)

    Here is what the manpage shows:
    [ps(1)|http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/p s.1.html]
    state The state is given by a sequence of letters, for example, ``RWNA''. The first letter indicates the run
    state of the process:
    I Marks a process that is idle (sleeping for longer than about 20 seconds).
    R Marks a runnable process.
    S Marks a process that is sleeping for less than about 20 seconds.
    T Marks a stopped process.
    U Marks a process in uninterruptible wait.
    Z Marks a dead process (a ``zombie'').
    Additional characters after these, if any, indicate additional state information:
    + The process is in the foreground process group of its control terminal.
    < The process has raised CPU scheduling priority.
    <div class="jive-quote"> The process has specified a soft limit on memory requirements and is currently exceeding that
    limit; such a process is (necessarily) not swapped.
    A the process has asked for random page replacement (VA_ANOM, from vadvise(2), for example,
    lisp(1) in a garbage collect).
    E The process is trying to exit.
    L The process has pages locked in core (for example, for raw I/O).
    N The process has reduced CPU scheduling priority (see setpriority(2)).
    S The process has asked for FIFO page replacement (VA_SEQL, from vadvise(2), for example, a large
    image processing program using virtual memory to sequentially address voluminous data).
    s The process is a session leader.
    V The process is suspended during a vfork.
    W The process is swapped out.
    X The process is being traced or debugged.

  • How to fix alt f4 not closing window

    how to fix alt f4 not closing window if watching video unless you off click out of the video, does not happen in IE ?

    Add:
    $objForm.add_FormClosing({$_.Cancel=$true})
    [void] $objForm.ShowDialog()
    Add:
    $OKButton.Add_Click({$x=$objTextBox.Text;$objForm.Add_FormClosing({$_.Cancel=$false});$objForm.Close()})

  • R12: AP Tax Code window not getting closed

    Hi,
    When ever I open tax code window in AP(Payables>Setup>Tax>Tax Code) I cant able to close the tax code window, window gets hang, I didnt find any other way to close the window except closing the entire application.
    We have recently migrated to 12.0.6 from 11.5.10.2
    Please suggest to resolve this issue
    Regards
    Naga

    Have you applied the latest CPCs ? See MOS Doc 557869.1 (EBS: R12 Oracle Financials Critical Patches) - these patches are mandatory. If you have, pl open an SR so Support can troubleshoot. Did this ever work correctly - if so what changes have been made recently ?
    HTH
    Srini

  • Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started. How do I set FF back to open tabs in 1 window

    Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started 2 days ago. How do I set FF back to open tabs in 1 window?
    There is no plus sign and going into optins and changing settings has not worked. I have uninstall FF and reinstall-keeping my personalization-and that was no help.
    Right clicking on FF Icon to open a new tab, or going up to FF drop down tab and clicking on new tab both do not work.
    Help everything opens a new window not a new tab. there seems to be no way to reset this or to chose a different optin. I just downloaded new tabs at end addon and it didn't do a thing.

    as a first troubleshooting step - does it work like normally when you open & run firefox in [[Safe Mode|safemode]] by pressing the shift key while you open firefox (all other instances have to be closed before)...

  • Open URL in a new window by closing the parent window

    Hi Friends,
    Is there any option to open URL in a new window by closing the parent window on a button click?
    Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window '  and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me  ..............
    Regards,
    Radhika

    hi,
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add URL of type String as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
    DATA lo_zexit TYPE REF TO ig_zexit .   <zexit is name of my Component>
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    I hope it helps.
    Thanx.

  • Cursors are not closed when using Ref Cursor Query in a report  ORA-01000

    Dear Experts
    Oracel database 11g,
    developer suite 10.1.2.0.2,
    application server 10.1.2.0.2,
    Windows xp platform
    For a long time, I'm hitting ORA-01000
    I have a 2 group report (master and detail) using Ref Cusor query, when this report is run, I found that it opens several cursors (should be only one cursor) for the detail query although it should not, I found that the number of these cursors is equal to the number of master records.
    Moreover, after the report is finished, these cursors are not closed, and they are increasing cumulatively each time I run the report, and finally the maximum number of open cursors is exceeded, and thus I get ORA-01000.
    I increased the open cursors parameter for the database to an unbeleivable value 30000, but of course it will be exceeded during the session because the cursors are increasing cumulatively.
    I Found that this problem is solved when using only one master Ref Cursor Query and create a breake group, the problem is solved also if we use SQL Query instead of Ref Query for the master and detail queries, but for some considerations, I should not use neither breake group nor SQL Query, I have to use REF Cursor queries.
    Is this an oracle bug , and how can I overcome ?
    Thanks
    Edited by: Mostafa Abolaynain on May 6, 2012 9:58 AM

    Thank you Inol for your answer, However
    Ref Cursor give me felxibility to control the query, for example see the following query :
    function QR_1RefCurDS return DEF_CURSORS.JOURHEAD_REFCUR is
    temp_JOURHEAD DEF_CURSORS.JOURHEAD_refcur;
              v_from_date DATE;
              v_to_date DATE;
              V_SERIAL_TYPE number;
    begin
    SELECT SERIAL_TYPE INTO V_SERIAL_TYPE
    FROM ACC_VOUCHER_TYPES
    where voucher_type='J'
    and IDENT_NO=:IDENT
    AND COMP_NO=TO_NUMBER(:COMPANY_NO);
         IF :no_date=1 then
                   IF V_SERIAL_TYPE =1 THEN     
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT
              AND ((TO_NUMBER(VOCH_NO)=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (TO_NUMBER(VOCH_NO) BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (TO_NUMBER(VOCH_NO)<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))
                   ORDER BY TO_NUMBER(VOCH_NO);
                   ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT               
              AND ((VOCH_NO=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (VOCH_NO BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (VOCH_NO<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))     
                   ORDER BY VOCH_NO;          
                   END IF;
         ELSE
                   v_from_date:=to_DATE(:from_date);
                   v_to_date:=to_DATE(:to_date);                         
              IF V_SERIAL_TYPE =1 THEN
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
              AND IDENT=:IDENT                         
                   AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,TO_NUMBER(VOCH_NO);     
              ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT                         
              AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,VOCH_NO;          
              END IF;
         END IF;               
         return temp_JOURHEAD;
    end;

Maybe you are looking for

  • What's wrong with my hard drive?

    The Problem: Lately I've been noticing that my iMac has been slower to warm up, as it were. Logging in as normal I notice that the hard drive is taking a lot of time to settle down, up to 2 minutes of constant activity after the destop has appeared.

  • Internal table aggregation

    HI SDN, I am bringing  the data into internal table like this TYPES: BEGIN OF ty_EKAB,           i_CONTRACT LIKE /BIC/AZPUR_OAP00-CONTRACT,           i_CONT_ITEM LIKE /BIC/AZPUR_OAP00-CONT_ITEM,           i_ZNET_VAL LIKE /BIC/AZPUR_OAP00-/BIC/ZNET_VA

  • My fairly old iPod refuses to exist on my laptop.

    It shows charging, but doesn't show up on my computer anywhere. I have a fairly new Windows 8 HP laptop. I'm not sure what gen it is, but it's 4GB and in settings says the model is MA489LL. I have searched Google, but no one seems to have this specif

  • XI Proof of Concept

    Hi Xi Sappers, I am new to the XI world. I was looking for some documentation on how to conduct a POC (Proof of Concept) for XI. Basically it should encompass a sample landscape, most common business scenarios, ways to test thruput, error messaging,

  • SharePoint Workspaces 2010

    I repaired my Windows 8 Pro installation preserving all my data. I realized too late that all my applications, including SharePoint Workspaces 2010 were deleted. I reinstalled the applications. I had one year old account file for SP Workspaces but my