Exit on close - Overwriting the X

Hello people,
I've just started to incorporate Properties files into my program to save settings / profiles .. etc.. However, when a user clicks the X in the top corner, my program obviously exits.
I would like to overwrite this action in order to save the settings, or bring up a warning to save .. or take some other actions. Thus my question is, where and what are the functions that I must write / overwrite to achieve this?
I have a JPanel nested in a JFrame ... (love swing) would it be on one of those?

Heres somthing interesting with DO_NOTHING_ON_CLOSE
I've chosen an implementation similar to that of what Mattsabigman posted, and in actuality its working fine... (side note: I am using netBeans 4.1 IDE)
However, I've noticed that ever since changing my default close operation, my mouse wont change its appearence in netBeans. In other words, before when I was using EXIT_ON_CLOSE. I would X out my program, mouse over my code in the IDE and the mouse cursor would change into a thin "T" like cursor...
however now that I am using DO_NOTHING_ON_CLOSE (which eventually calls System.exit(0)) , my cursor will remain showing the arrow icon at all times when in the IDE .... regardless of what I mouse over...
Is this suggestive of somthing not being handled correctly or the Virtual Machine not being totally shutdown .... or whatever... ?
Like I've said before .. its not actually a problem but if anyone has any ideas about whats goin on ... i'd love to hear them.
thanks
ps. I do have a custom mouse listener and "right-click" popup windows for some swing elements in my GUI

Similar Messages

  • Can I make the quiz "EXIT" or close after posting results?

    I have been able to make the QUIZ post to my internal server, but after the "Name / Email" dialog box appears and posting is "successfully" done, the results screen remains visible (possibly allowing a second posting).
    Is there any way to make the QUIZ close once the posting has occured?
    Also, I noticed that if I choose not to display the score, the post results button does not appear. In order to hide the score, I change the fonts to match the background color. Perhaps there is a way around this too, as I am new to Captivate and don't know all the little tricks yet.

    Thanks for your suggestions. Since I am considering having students take the exam I will be working with the school to see how to integrate with the LMS server. I suspect the variables will be passed directly and all will work out well.
    When you said “the answers are sent at the point you submit each answer” I assume this is not the case with an internal server, which is why the results have to be posted by the user.
    To that end, I am testing the exam with my internal server, which does capture the test results properly. But, this requires the appearance of the results slide, which opens a small dialog requesting name and email (although the email can be anything). Once the results are “posted successfully” the original results slide returns. I cannot even add a button, nor edit the action of existing buttons to continue to another slide --- it’s as if the program is hard-wired to only behave with the default buttons on the results slide.
    I just wish there were a clean way of exiting the exam. The results slide only has an ENTER action, but no exit action choice in the properties. I am just unable to move to another slide beyond the results slide and I suspect that I am doing something wrong.
    I appreciate your advice, so thank you for taking the time to discuss this with me.

  • Exit button that close me the window in personalize

    Hi forum:
       I have one dynpro application in the personalize window of the EP6.40, when i give click in this link an windows is open, So, in my application in to this window i need to put an EXIT BUTTON, that close me the actual window, what can i do to do it?.... The password change application in that windows has it.. and do it..
    please help
    Joshua

    Hi Joshua,
    Are you familiar with close main application window in WD for Java ?
    Best regards, Maksim Rashchynski.

  • User exit to overwrite the exchange field value in me31k

    Hi All,
    I am trying to find a user exit to overwrite the field EKKO-WKURS on me31k screen. I have tried a couple of exits in enhancement MM06E005 but non are getting called.Only exit  'EXIT_SAPMM06E_006' is called but it is not changing the value of wkurs.
    I had added the following code in exit 'EXIT_SAPMM06E_006'
    I_EKKO-WKURS = '0.8888'.
    but the screen value is not changed.Please let me know if any other enhancement exists to do this ? or whether my code itself is wrong.
    I have a 'ME_PROCESS_PO_CUST' which is activated for overwriting PO header exchange rate for me21n transaction only.Is that causing a problem ?
    Please help.
    Kind Regards,
    Shital

    Hi Shital!
    Have you been trying ME_PROCESS_OUT_CUST badi? It is for contract processing.
    I can't advice you a method, because i don't know at what moment u need to change currency value.
    May be INITIALIZE or OPEN methods will help you.

  • Billing user exit to overwrite the service rendered date with billing date

    Hello,
    My client would like to determin the rebate conditions based on billing date. However, the system only uses the service rendered date for rebate determination.
    Therefore, I am trying to overwrite the service rendered date with billing date at the time of billing creation.
    Could you please let me know what user exit I can use?
    I can't user the user exit RV60AFZC because the billing date is not determined when this user exit is running.
    Your help would be appreicated! I will give you good points! Thanks

    Hi Londa,
    Try using one of the following includes for your requirement.
    (a.) rv60afzz
    (b.) rv60afza
    (c.) rv60afzb
    (d.) rv60afzd
    (e.) BAdi SD_CIN_LV60AU02
    or if you are working with ECC 6.0 use the Enancement Spot ES_SAPLV60A available from SE80 by giving package VF and then selecting Enhancements and then expanding Enhancement Spots
    Hope these are helpful to you. Reward accordingly.
    Thanks and Regards,
    Maddineni Bharath.

  • How to overwrite the system event "Close"?

    Hi,
    How to overwrite the event for "Close" button in a screen?
    "Close" is the system event. I need to write my own code for "Save" in the event and then close the screen.
    Pls help me in doing this. Provide me the sample code.
    Regards,
    SAP Lover

    Hi,
    Check out this related thread ... Hope it helps
    Re: how to close  screen?
    Regards,
    Santosh

  • Overriding exit on close?

    how can i overwrite the default exit on close operation of a JFrame to run a method of my choice?
    what i am actually trying to do is, create a booking program, only i want it to load itself from file,
    check the users username & password, then initalise the gui, up to this point i have it working.
    but i cant work out how to have the system save itself whenever a user clicks on a close button.
    i found this but i dont know if its any help as its a bit confusing to me
    http://www.javaalmanac.com/egs/java.lang/ExitHook.html
    the problem i was having when trying to do it like that example is that from inside run(),
    i couldnt access any of my objects(out of scope) to write them,
    and at any rate, i didnt even manage to get the run() method to execute when the exit button was clicked.
    my write method works and requires the following arguments
    public static boolean write(Rooms rooms,Facilitys facilitys,Facilitys discounts,String username,String password) {
         //do things
    }if i add my write method to the main method, it will run and write the relevant objects to file,
    but how do i get this to only do it when the close button is clicked?
    here is my main method at the moment
         public static void main (String [] args) {
              //initialise all components
              System.out.println("reading from file" + filename);
              Vector fromFile = read();
              if (fromFile==null) {
                   System.exit(1);
              try {
                   Rooms rooms = (Rooms)fromFile.get(0);
                   Facilitys facilitys = (Facilitys)fromFile.get(1);
                   Facilitys discounts = (Facilitys)fromFile.get(2);
                   username = (String)fromFile.get(3);
                   password = (String)fromFile.get(4);
                   System.out.println("username "+username);
                   System.out.println("password "+password);
              catch (IndexOutOfBoundsException e) {
                   System.out.println("there are not that many elements in the vector"+"\n"+"\n"+e);
                   System.exit(1);
              //components initialised
              //log in
              System.out.println("Validating user");
              String inUser = JOptionPane.showInputDialog( null, "Enter the username" );
              String inPass = JOptionPane.showInputDialog( null, "Enter the password" );
              if (isRightUser(inPass,inUser ) ==false) {
              JOptionPane.showMessageDialog(null,"Sorry that username & password combination was not correct",
                        "System closing",JOptionPane.ERROR_MESSAGE);
                   System.exit(1);
              //logged on
              //schedule a job for the event dispatching thread
              //creating and showing the GUI
              javax.swing.SwingUtilities.invokeLater (new Runnable() {
                   public void run() {
                        createAndShowGUI();
         }

    Thankyou 74philip, your suggestion was spot on. however when i had written the main part of the GUI it was several months ago as one of the first GUI's i ever did and frankly, it was messy copy+paste work. and still, there are gaps in my knowledge which without the keen eye of Torgil, i dont think i would have worked out that indeed i had to have a Jframe in there somewhere. i found the frame, added the listener, it all works great now thank you both for your help :D

  • How do I move my Firefox bookmarks to another copy of Firefox on another computer, and how do I keep from overwriting the previous bookmarks on the "new" computer's Firefox?

    My husband upgraded his iMac this year, and I'm getting his "old" one. I just want to know, first, how to transfer my bookmarks, and second, how to transfer them to his Firefox without overwriting his current bookmarks. And how do I open "my" Firefox, when the Firefox icon is connected to his information? Thanks!

    Hi Guys, you make this sound easy. I have a 2005 Toshiba with about 6GB of music I loaded from CDs on it. It is an old PC and I want to retrieve the music before it crashes then deauthorize it.
    I have a iMac desktop and want to import the 6GB to it.
    I read the above and tried to copy the file but at 6GB it is bigger than a memory stick or CD and I can't get sharing to work.
    My Imac can see the Toshiba in the IMPORT window....but won't allow me to import it.
    Would it work if I got a cable with USB on each end and joined the 2 computers?
    I also have iTunes Sharing and can see and play the Toshiba files on the Mac WHILE they are connected.......BUT I want to cut the connection and have the Toshiba songs independant on the Mac, then close down the PC.
    Does anyone have a simple way. It is APPLE! I must be missing a simple solution here somewhere.
    Thank you for your time.

  • How can i add bookmarks from my old hard drive to new hard drive on the same computer without overwriting the new bookmarks on my new hardrive? Cheers

    The old hard drive was operating on Xp and new hard drive is Windows 7, if this makes any difference.

    Unfortunately there is no simple method and, the workaround is far from perfect. The .json files Firefox uses overwite the existing bookmarks but the .html option appends and does not overwrite.
    First of all backup all bookmarks on each hard drive. The best method of doing that is to backup the Firefox profiles, that captures the bookmarks databases (''places.sqlite'') and the autobackups that Firefox holds.
    * [[Back up and restore information in Firefox profiles]]
    * [[Restore bookmarks from backup or move them to another computer]]
    #First ensure you have the largest databsae on the current install of Firefox. If necessary
    ##Locate the Firefox Profile on the old drive
    ##* [[Profiles - Where Firefox stores your bookmarks, passwords and other user data]]
    ##Open Firefox and find the profile that is currently in use.
    ##*Quick method <br/>Use FirefoxButton -> Help -> Troubleshooting Information [Open Folder] <br />(No certain of exact wordings, OR navigate to ''about:support'' )
    ##* [[Back up and restore information in Firefox profiles]]
    #Now use HTML backups to transfer from the smaller database the basic bookmarks.
    ## Close Firefox & if the old database is the largest one use the Operating System copy option to overwrite the existing places.sqlite so that Firefox now uses the old database
    ## Reopen Firefox but this time open using the old profile. The easiest method of that may be to disable the new drive from the Bios or alternatively use Firefox profile manager and register the old profile location and open firefox with that profile
    ##* [[Use the Profile Manager to create and remove Firefox profiles]]
    ## Export the bookmarks from the old profile using the Firefox Library and the HTML option.
    ##* see [[Export Firefox bookmarks to an HTML file to back up or transfer bookmarks]]
    ## Close Firefox, reopen new version/newprofile and import the HTML.
    You now have the largest database of complete bookmarks with tags etc. , plus additional bookmarks from the smaller database added on. Obviously you may have some duplication

  • How to store data while Labview can overwrite the unwanted data

    Hi,
               My name is
    Panakalu. Currently I am doing a project using Labview. I need a help
    from anyone of you. I am in desperate need of help. Here is my problem.
    I want to acquire data from a arbitrary generator. Actually I have to
    store transients from a device. This process is going to run for
    atleast 8 hours. So I cannot store all the data acquired. This made me
    to I keep a threshold level for the acquired transients. So please any
    body tell me how I can overwrite the data which is below the threshold
    level and continue writing the data to hard disk when the data is above
    the threshold level. Also I have to store this data in different files.
    That is for every 5 seconds I have to store the data into another file.
    If the first 5 seconds data is stored in a file named data1.xls, then
    the next 5 seconds data should be stored into a file named data2.xls.
    Like this I have get 100 different files. I am using third party
    drivers for labview. My data acquisition card is from EXACQ
    TECHNOLOGIES.
    Please help me in this matter. Your help in this matter is really
    appreciated.
    Thanking You All
    Panakalu           

    Take one step at a time. 
    To write data to a file every 5 minutes, it might be best to accumulate the data into an array.  Use a while loop.  Collect the data inside the loop and check if it is above threshold.  If so, append it to the array.  Inside the loop you can check the time.  If 5 minutes have elapsed, exit the loop.  After exiting loop, write to a file.  A big loop must surround all this code to repeat it over and over.  The big loop can create the file name.  Use the i terminal, convert the number to a character, and conatenate the character to the basic file name, like "data" + "2" + ".xls".  Try this on you own, post your code, and we can continue to help you with problems.
    Here is a template to help you get started:
    Message Edited by tbob on 11-10-2005 12:06 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    template.PNG ‏15 KB

  • Need to close only the new popup window

    Could anyone please help me with this.
    From Main.java, the main user interface pops up, on clicking vf2vpExebut button, vf2vpExe.java's user interface pops up. After I process the vf2vpExe.java user interface and close it even my Main.java user interface closes.
    But on clicking the exitbut in vf2vpExe.java, I need to close only the vf2vpExe.java user interface and not Main.java user interface also.
    My code is:
    Main.java
    private void vf2vpExebutActionPerformed(java.awt.event.ActionEvent evt)
         try
              vf2vpExe vf=new vf2vpExe();
              vf.mainclass();
         catch(Exception e)
    } vf2vpExe.java
    private void exitbutActionPerformed(java.awt.event.ActionEvent evt)
         System.exit(0);
    }

    Please ignore this topic. I need to post this in New to Java

  • Java.io.NotSerializableException when overwrite the JTable data into .txt file

    hi everyone
    this is my first time to get help from sun forums
    i had java.io.NotSerializableException: java.lang.reflect.Constructor error when overwrite the JTable data into .txt file.
    At the beginning, the code will be generate successfully and the jtable will be showing out with the data that been save in the studio1.txt previously,
    but after i edit the data at the JTable, and when i trying to click the save button, the error had been showing out and i cannot succeed to save the JTable with the latest data.
    After this error, the code can't be run again and i had to copy the studio1.txt again to let the code run 1 more time.
    I hope i can get any solution at here and this will be very useful for me.
    the following is my code...some of it i create it with the GUI netbean
    but i dunno how to attach my .txt file with this forum
    did anyone need the .txt file?
    this is the code that suspect maybe some error here
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    String filename = "studio1.txt";
              try {
                  FileOutputStream fos = new FileOutputStream(new File(filename));
                  ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(jTable2);
                   oos.close();
              catch(IOException e) {
                   System.out.println("Problem creating table file: " + e);
                   return;
              System.out.println("JTable correctly saved to file " + filename);
    }the full code will be at the next msg

    this is the part 1 of the code
    this is the full code...i had /*....*/ some of it to make it easier for reading
    package gui;
    import javax.swing.*;
    import java.io.*;
    public class timetables extends javax.swing.JFrame {
        public timetables() {
            initComponents();
        @SuppressWarnings("unchecked")
        private void initComponents() {
            jDialog1 = new javax.swing.JDialog();
            buttonGroup1 = new javax.swing.ButtonGroup();
            buttonGroup2 = new javax.swing.ButtonGroup();
            buttonGroup3 = new javax.swing.ButtonGroup();
            buttonGroup4 = new javax.swing.ButtonGroup();
            jTextField1 = new javax.swing.JTextField();
            jLayeredPane1 = new javax.swing.JLayeredPane();
            jLabel6 = new javax.swing.JLabel();
            jTabbedPane1 = new javax.swing.JTabbedPane();
            jScrollPane3 = new javax.swing.JScrollPane();
            jTable2 = new javax.swing.JTable();
            jScrollPane4 = new javax.swing.JScrollPane();
            jTable3 = new javax.swing.JTable();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
    /*       org.jdesktop.layout.GroupLayout jDialog1Layout = new org.jdesktop.layout.GroupLayout(jDialog1.getContentPane());
            jDialog1.getContentPane().setLayout(jDialog1Layout);
            jDialog1Layout.setHorizontalGroup(
                jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(0, 400, Short.MAX_VALUE)
            jDialog1Layout.setVerticalGroup(
                jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(0, 300, Short.MAX_VALUE)
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jLayeredPane1.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);
            String filename1 = "studio1.txt";
            try {
                   ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename1));
                   jTable2 = (JTable) ois.readObject();
                   System.out.println("reading for " + filename1);
              catch(Exception e) {
                   System.out.println("Problem reading back table from file: " + filename1);
                   return;
            try {
                   ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename1));
                   jTable3 = (JTable) ois.readObject();
                   System.out.println("reading for " + filename1);
              catch(Exception e) {
                   System.out.println("Problem reading back table from file: " + filename1);
                   return;
            jTable2.setRowHeight(20);
            jTable3.setRowHeight(20);
            jScrollPane3.setViewportView(jTable2);
            jScrollPane4.setViewportView(jTable3);
            jTable2.getColumnModel().getColumn(4).setResizable(false);
            jTable3.getColumnModel().getColumn(4).setResizable(false);
            jTabbedPane1.addTab("STUDIO 1", jScrollPane3);
            jTabbedPane1.addTab("STUDIO 2", jScrollPane4);
            jTextField1.setText("again n again");
            jLabel6.setText("jLabel5");
            jLabel6.setBounds(0, 0, -1, -1);
            jButton2.setText("jButton2");
            jButton1.setText("jButton1");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
          

  • Java.io.NotSerializableException when overwrite the JTable data into .txt

    hi everyone
    i had java.io.NotSerializableException: java.lang.reflect.Constructor error when overwrite the JTable data into .txt file.
    At the beginning, the code will be generate successfully and the jtable
    will be showing out with the data that been save in the studio1.txt
    previously,
    but after i edit the data at the JTable, and when i trying to click the
    save button, the error had been showing out and i cannot succeed to
    save the JTable with the latest data.
    After this error, the code can't be run again and i had to copy the studio1.txt again to let the code run 1 more time.
    I hope i can get any solution at here and this will be very useful for me.
    but i dunno how to attach my .txt file with this forum
    did anyone need the .txt file?
    the following is my suspect code
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    String filename1 = "studio1.txt";
              try {
                  FileOutputStream fos = new FileOutputStream(new File(filename1));
                  ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(jTable2.getModel());
                   oos.flush();
                   oos.close();
                   fos.close();
              catch(IOException e) {
                   System.out.println("Problem creating table file: " + e);
                            e.printStackTrace();
                   return;
              System.out.println("JTable correctly saved to file " + filename1);
    }this is the reading code
    String filename1="studio1.txt";
            try {
                   ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename1));
                   TableModel model = (TableModel)ois.readObject();
                    jTable3.setModel(model);
                   System.out.println("reading for " + filename1);
              catch(Exception e) {
                   System.out.println("Problem reading back table from file: " + filename1);
                   return;
              }Edited by: Taufulou on Jan 8, 2009 11:43 PM
    Edited by: Taufulou on Jan 8, 2009 11:44 PM
    Edited by: Taufulou on Jan 8, 2009 11:45 PM

    is this the code u mean?
    i had put this code inside it but the problem still remain the same
    if (jTable2.isEditing()) {
                jTable2.getCellEditor().stopCellEditing();
            }i had found a new thing that when i just double click the cell without change any data inside the table
    and click the button "Save". the same exception which is
    java.io.NotSerializableException: java.lang.reflect.Constructor
    will come out again.

  • If I close Firefox, the application does not close.

    If I close the firefox window (Windows 7), the program stays running as a process in Task Manager. It will not allow me to re open the program.

    Sounds like it is hanging when you exit and later try to restart Firefox.
    * How to stop the running Firefox process
    ** In Task Manager, does firefox.exe show in the '''<u>Processes</u>''' tab?
    ** See: http://kb.mozillazine.org/Kill_application
    * What may cause Firefox to hang at exit
    ** http://support.mozilla.com/en-US/kb/Firefox+hangs
    ** http://kb.mozillazine.org/Firefox_hangs
    ** https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding
    * You may need to try Firefox Safe Mode
    ** You may need to use '''Safe Mode''' to locate the problem: http://kb.mozillazine.org/Safe_Mode
    **Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes '''<u>before</u>''' starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    ** If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling '''<u>one at a time</u>''' until the problem reappears. '''<u>You MUST close and restart Firefox after EACH change</u>''' via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.
    ** See the following for more information
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    *** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting
    '''Other issues that need your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    **Several versions out of date
    **'''''Security update released 2011-02-08'''''
    *Shockwave Flash 10.1 r102
    **'''''Security update released 2011-02-08'''''
    *Next Generation Java Plug-in 1.6.0_23 for Mozilla browsers
    **'''''Security update released 2011-02-10'''''
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Second PO acknowledgement is overwriting the first PO aknowledgement i

    When multiple PO Acknowledgements are submitted  via ORDERS05 IDOC .
    The First  Acknowledgement is getting overwritten by Second Acknowledgement.
    For Example
    IDOC1----PO Ack 1: Delivery date -05/26/2011, Quantity- 10
    IDOC2----PO Ack 2: Dlivery date u2013 05/27/2011, Quantity- 11
    Second IDOC overwritting the PO Ackownledgment done by the Fisrt IDOC.
    We are updating the PO Acknowledgement customer exit EXIT_SAPLEINM_008 ( ZXM06U20)
    using the BAPi " BAPI_PO_CHANGE"
    Does SAP shows only One Ackownledgment  for one Item?
    CALL FUNCTION 'BAPI_PO_CHANGE'      "Function for changing the PO Acknowledgement
              EXPORTING
                purchaseorder          = w_tsndata-ebeln
              TABLES
                return                 = treturn
                poitem                 = tpoitem
                poitemx                = tpoitemx
                poaccountprofitsegment = tpoit
                potextitem               = tpoitxt.
    How we are passing the data
    tpoitem
    PO_ITEM    DELETE_IND   SHORT_TEXT 
    00010            |S         |                                        |  
    tpoitemx
    PO_ITEM  PO_ITEMX   DELETE_IND SHORT_TEXT MATERIAL MATERIAL_EXTERNAL
    00010         |X                   |X              |                         |               |                          |    
    tpoit
    1     PO_ITEM     N     5      00010
    2     SERIAL_NO     N     2      00
    3     FIELDNAME     C     30                                                                               
    4     VALUE     C     50                                                                               
    tpoitxt.
    1  PO_NUMBER  PO_ITEM TEXT_ID TEXT_FORM TEXT_LINE
        1     4700013625|00010  |F06    |         |# 0000000027950719 D:20110531 Q:30.00<
        2     4700013625|00010  |F06    |         |# 0000000027950720 D:20110531 Q:40.00<
        3     4700013625|00010  |F06    |         |# 0000000027950721 D:20110531 Q:40.00<
        4     4700013625|00010  |F06    |         |# 0000000027950722 D:20110531 Q:50.00<

    Hello SKJ,
    Thank you for your reply. However, the functional consultant insists that all the pricing are well maintained.
    I came across a post in this forum with the same problem, they said that they refreshed the buffer/memory for every call on the bapi_po_create1.
    I did put this line of code:
    PERFORM mepo_refresh(saplmepo).
    CALL FUNCTION'BAPI_PO_CREATE1'.
    But it didn't work either.
    Edited by: totoy_ on Nov 30, 2011 2:41 AM

Maybe you are looking for

  • HT1338 cinema Display 30" no longer recognized by my mac pro? What can I do? It worked fine until now.

    Cinema display 30" no longer recognized by my mac pro. Until now it worked without problems, then after a crash it fails to recognize the display. Now it runs in a far lower resolution. What can I do? I tried to get da driver for it, but could not fi

  • How do i use udisksvm and traydvm

    Using newest version of Arch with newest Openbox and Tint2. Ive installed udisksvm, which in turn installs traydvm. This package is supposed to keep watch on attached usb devices and give me a trayicon that says something was plugged in. My problem i

  • Multi-level nested tables for repeatable XML Elements

    Hi there, Suppose we have a XML Schema „ASchema“ like this (XMLDB schema annotations are left out for simplicity): <xs:schema xmlns:xs=" .... " /> <xs:element name=“A“>      <xs:complexType>           <xs:sequence>                <xs:element name=“B“

  • Problème de contrat de licence pour utilisateur final

    Lorsque je veux voir un document pdf sur internet, cet avertissement apparait: "Avant de poursuivre, vous devez lancer Adobe Acrobat et accepter le contrat de licence pour l'utilisateur final" alors que je n'ai jamais eu ce problème avant. Le contrat

  • Help with Allowing Multiple values Function

    I am wondering if someone can help me with what I am doing wrong? Basically I am trying to set up 4 parameters. The first two say, if a 1 is selected then I want to pull back the full data set, if a 0 is selected then it should pull the department th