Funny behaviour of JSpinner

please help me solving this peculiar problem with jspinner . I got a jspinner , a text box and a button of my frame.i have written code to valdiate the value entered in text field. If an invalid value is entered an error dialog is show. and focus is returned to the textbox.. Now if I enter an invalid value in the text field and click the small buttons in jspinner, the error dialog is displayed and focus is returned back to the textbox but the problem is that the spinner button remains in a pressed condition as a result the number keeps of increasing / decreasing in jspinner (if you click both the buttons , it will increase and decrease at the same time). I am including the code also.
I have searched through the forums and find that its a problemm with the look and feel. Can any one suggest a simple method to rectify it ??
thanks in advance
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class focus extends JFrame implements FocusListener {
JPanel pan1=new JPanel();
JButton btn1=new JButton("OK");
JButton btn2=new JButton("Cancel");
JTextField txt1=new JTextField(10);
SpinnerCircularNumberModel model=new SpinnerCircularNumberModel(50);
JSpinner spin=new JSpinner(model);
focus() {
getContentPane().setLayout(new FlowLayout());
getContentPane().add(txt1);
getContentPane().add(btn1);
getContentPane().add(btn2);
getContentPane().add(spin);
txt1.addFocusListener(this);
setSize(200,200);
setVisible(true);
pack();
public void focusGained(FocusEvent fe) {
public void focusLost(FocusEvent fe) {
     try {
          Integer.parseInt(txt1.getText());
     } catch ( NumberFormatException nfe) {
          JOptionPane.showMessageDialog(this, "Invalid value","ERROR", JOptionPane.ERROR_MESSAGE);               
txt1.requestFocus();
public static void main(String arg[]) {
focus f=new focus();
class SpinnerCircularNumberModel extends SpinnerNumberModel {
public SpinnerCircularNumberModel(int init) {
super(init,0,99,1);
public Object getNextValue() {
int val = Integer.parseInt(getValue().toString());
if(val==99)
return (new Integer(0));
else
return (new Integer(++val));
public Object getPreviousValue() {
int val = Integer.parseInt(getValue().toString());
if(val==0)
return (new Integer(99));
else
return (new Integer(--val));

I used it in the following way:
class OptEmSpinner extends EmSpinner{
public OptEmSpinner() {
public interface RevertListener extends EventListener
     * The value has been Reverted to a the old valid value.
     * @param source is this bean.
     public void valueReverted(Component source);
public static class OptNumberEditor extends NumberEditor {
     public OptNumberEditor(JSpinner spinner) {
     super(spinner);
     public void propertyChange(PropertyChangeEvent e)
          OptEmSpinner spinner = (OptEmSpinner)getSpinner();
          if (spinner == null) return; // Indicates we aren't installed anywhere.
          Object source = e.getSource();
          String name = e.getPropertyName();
          if ((source instanceof JFormattedTextField) && "value".equals(name))
               Object lastValue = spinner.getValue();
               // Try to set the new value
               try
                    spinner.setValue(getTextField().getValue());
               catch (IllegalArgumentException iae)
                    // Spinner didn't like new value, reset
                    try
                         ((JFormattedTextField)source).setValue(lastValue);
                    catch (IllegalArgumentException iae2)
                         spinner.fireValueReverted(e);
                         // Still bogus, nothing else we can do, the
                         // SpinnerModel and JFormattedTextField are now out
                         // of sync.
          else
               spinner.fireValueReverted(e);
protected JComponent createEditor(SpinnerModel model) {
     if (model instanceof SpinnerNumberModel) return new OptNumberEditor((JSpinner)this);
     return super.createEditor(model);
private void fireValueReverted(PropertyChangeEvent e)
     Object source = e.getSource();
     String name = e.getPropertyName();
// JFormattedTextField jft = ((DefaultEditor) getEditor()).getTextField();
     JComponent jft = ((DefaultEditor)getEditor()).getTextField();
     if ((source instanceof JFormattedTextField) && "editValid".equals(name))
          if (!jft.hasFocus()) // ensure lost focus
               Object[] listeners = listenerList.getListenerList();
               for (int i = listeners.length - 2; i >= 0; i -= 2)
                    if (listeners[i] == RevertListener.class)
                         ((RevertListener)listeners[i + 1]).valueReverted(jft);
public void addRevertListener(RevertListener revListener)
     listenerList.add(OptEmSpinner.RevertListener.class, revListener);
public void removeRevertListener(RevertListener revListener)
     listenerList.remove(OptEmSpinner.RevertListener.class, revListener);
USED in class:
public class MyPanel extends JPanel implements OptEmSpinner.RevertListener
LISTENER IMPLEMENTATION:
public void valueReverted(Component source)
          Runnable runnable =
                    new Runnable()
                         public void run()
                              EmOptionPane.showSemiModalMessageDialog(
                                   parent,
                                   sRes.getString("Invalid Value: Old value will be retained."),
                                   sRes.getString("Invalid Input"),
                                   JOptionPane.WARNING_MESSAGE
//                              dialogShown = false;
               SwingUtilities.invokeLater(runnable);
You can modify or pick from this......
Regards
Mohit

Similar Messages

  • KeyTyped Event: funny behaviour

    This should be a very simple question... but I am stuck with it.
    I want to implement the usual feature of enabling a button only if a text field is not empty. I suppose you all have seen this before.
    I am catching the KeyTyped event and in the event handler I am checking for the length of the text. This is the code inside the handler:
    String txt=myTextField.getText();
    myButton.setEnabled(txt.length()>0);
    So yes, it works, but with a funny behaviour: the button is enabled only after the second keystroke, that is, when the length of the text is >=2 and not >0. A quick explanation is that my event handler is being called before the event handler of the textfield itself so at that moment the text is still empty. But when pressing the "backspace" key... it works fine, so the theory is wrong!!
    My workaround is to catch the KeyReleased event... but visual effect is not so satisfactory, and anyway, why is this happening?
    And what is the "official" way of implementing this trick?
    Thanks in advance,
    Luis.
    (P.S.: I am using a JTextField and a JButton, and have tested this with JDK 1.2 and 1.4 with the same results.)

    You'd want to do something like this:
    JTextField watchedField = new JTextField();
    // construct the action
    FieldWatcherAction watcher = new FieldWatcherAction( watchedField );
    // make a button with the action
    JButton b = new JButton( watcher );
    // add a button to a toolbar with the action
    jtoolBar.add( watcher );
    // etc...
    class FieldWatcherAction extends AbstractAction implements DocumentListener
      JTextField  field;
      public FieldWatcherAction( JTextField f )
        super( "", someIcon );
        setEnabled( false );
        field = f;
        field.getDocument().addDocumentListener( this );
      protected void updateState()
        setEnabled( field.getDocument().getLength() > 0 );
      public void insertUpdate( DocumentEvent evt )
        updateState();
      public void removeUpdate( DocumentEvent evt )
        updateState().;
      public void changedUpdate( DocumentEvent evt )
        updateState();
    }The action would need to be fleshed out more, obviously. You'd probably want to add text for a label ( empty string in super call in constructor ), define the icon ( second arg in super call ). You can also set tooltip text and other things. All of this can be changed by editing various properties of the action. Relevant constants would be:
    javax.swing.Action.ACCELERATOR_KEY  // key accelerator for JMenuItems
    javax.swing.Action.MNEMONIC_KEY // mnemonic key for JMenuItems
    javax.swing.Action.NAME // JButton text or JMenuItem text
    javax.swing.Action.SHORT_DESCRIPTION // Tooltip text
    javax.swing.Action.SMALL_ICON // image icon for JButton, JMenuItem and JToolBar buttons.

  • Pie Chart - Funny Behaviour

    I have a funny problem since this evening. I have this pie chart which I haven't touched since months. Suddenly it shows the following behaviour:
    1. IE7 and FF 1.07 and lower do not show the graph but only the legend
    2. FF 1.5 brings the following error message:
    XML-Verarbeitungsfehler: Nicht übereinstimmendes Tag. Erwartet: </svg>.
    Adresse: http://pd2.synventive.de:7777/pls/htmldb/f?p=100:1:3744672020718222378:FLOW_SVG_CHART_R257606147512709117_de
    Zeile Nr. 27, Spalte 4745:.legenditem rect{stroke:#000000;stroke-width:0.5px;}</style><script xlink:href="/i/javascript/svg_js_includes/svg_common/oracle.svgInit.js"/><script ......
    and a lot of code following.
    Any ideas what could be the reason?
    Denes Kubicek

    This is quite strange. I just increased the width of the chart and everything works now as it did before.
    Denes Kubicek

  • REAL STRANGE & FUNNY BEHAVIOUR OF CREATOR

    HI JSC team,
    REAL STRANGE BEHAVIOUR I have ever seen is, creator lets me to 'undo' the changes EVEN AFTER SAVING ALL THE CHANGES.
    Actually after saving all the changes, the 'undo icon' must be inactive but its not in my creator. I tried restating creator/pc but no use.
    Could you please look in to issue. What might possibly causing this strange behaviour?
    Cheers
    kush

    Hi Kush,
    Creator does allow us to undo things after saving. So does a host of other editors / programs.
    In Creator the undo will happen for only those tasks performed since the project was opened. For example, let us say, three textFields and a button are added to the jsp page. On undo, the components are removed, the last added component being the first one to be removed. If the project is saved, closed and reopened, the undo will not work.
    I hope this helps you in understanding the behaviour.
    Cheers
    Giri :-)
    Creator Team

  • Transparent taskbar and other funny behaviour

    Since I made a fresh install of SL my taskbar has been acting all funny. Sometimes my logged in user name is only "half" displayed. That is the name is cut right in the middle. These last days my taskbar takes forever to load upon boot and when it does it is transparent.
    Any cache files or something I can delete?
    Regards

    I have a similar issue - using the included Vista Business-version that came with my T61.
    Sometimes, it seems that the welcome/login-window is showing before the finger-print reader is ready to accept the finger, and hence logging in. Sometimes it doesn't work at all, and I have to log in by typing my password.
    This is not consistent either - sometimes it just works right off, sometimes I have to try 4-5-6 times, and sometimes it just plainly refuses to accept the scan (and not as in it's not recognizing it - just doesn't do anything when scanning).
    So, you're not alone
    IT-technician, running my own company in Bergen, Norway
    Thinkpad T61, 8895CTO C2D 2Ghz/4GB/120GB SSD/1400x1050

  • Tomcat and Mozilla funny behaviour

    Hi,
    I have a funny situation going on involving tomcat, mozilla, and internet explorer.
    I am using tomcat 3.3 to serve my pages.
    When viewed through Internet Explorer, everything is fine, and the pages format quite nicely.
    When I view the same pages through Mozilla, it doesn't seem to find the linked stylesheets, and doesn't attempt any formatting at all?!?!
    When I view the same pages through apache, both IE and Mozilla format correctly.
    So, any ideas why Mozilla wouldn't like Tomcat?

    I hate these kind of issues. It happened to me when changing .css contents and then trying to refresh. Mostly due to the unability to refresh contents on pages redirecting to other pages... no time to press the refresh button.
    I know it's a bad solution, but might be a good test and will finally discard a caching issue:
    Copy res.css to rescopy.css and change the link for that page in question.
    I hope it helps!

  • Funny Behaviour (scrollpane and jbutton tricking me)

    Hi,
    I'm close to freaking out. I'm building a GUI that acts as kind of data base editor. There is a combobox to select a table, a scrollpane for viewing and thre buttons to add/remov/edit rows. My test data comes from a Properties object and is transferred into a TableModel in order to create and display the table.
    I pick a table from the comobox and the the table is displayed and the buttons are enabled. As soon as the mouse leaves the scrollpane and enters it or one of the buttons again the buttons become disabled and the table disappears. Picking the table again shows everything again, apart from leaving the add-Button disabled from time to time.
    There is a method that is called when the user selects no table but the initial "Select a table" item in the combo box. This method is NOT called (there is debug output to indicate this). There is no MouseListener or MouseMotionListener added to any component.
    What is this??? Why are sometimes only 2 buttons enabled instead of all three?
    This is the event handling code
    private void displayCategory(String category){
            // get category data
            Properties data = getTestProps();
            // create table
            ProfileTableModel ptm = new ProfileTableModel(data);
            ptm.addTableModelListener(this);
            // show table
            JTable table = new JTable(ptm);
            table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            ListSelectionModel rowSM = table.getSelectionModel();
            rowSM.addListSelectionListener(new ListSelectionListener() {
                public void valueChanged(ListSelectionEvent e) {
                    //Ignore extra messages.
                    if (e.getValueIsAdjusting()) return;
                    ListSelectionModel lsm =
                            (ListSelectionModel)e.getSource();
                    if (lsm.isSelectionEmpty()) {
                        System.err.println("GUI no row selected");
                    } else {
                        int selectedRow = lsm.getMinSelectionIndex();
                        System.err.println("GUI row #" + selectedRow + " selected");
            profilePanel.displayTable(table, true);
        private void clearDisplay(){
            System.err.println("GUI DISPLAY NOTHING");
            profilePanel.displayNothing();
        public void itemStateChanged(ItemEvent e) {
            System.err.println("GUI ITEM STATE CHANGED " + e);
            if (e.getStateChange() == ItemEvent.SELECTED){
                if (e.getItem() instanceof BoxItem){
                    final String cmd = ((BoxItem)e.getItem()).getCommand();
                    (new Thread(new Runnable(){public void run(){displayCategory(cmd);}})).start();
                } else {
                    clearDisplay();
        }This is the GUI code
        protected void displayTable(JTable table, boolean editable){
            addButton.setEnabled(editable);
            removeButton.setEnabled(editable);
            editButton.setEnabled(editable);
            table.setPreferredScrollableViewportSize(new Dimension(400, 330));
            scroll.setViewportView(table);
        protected void displayNothing(){
            System.err.println("GUI display nothing . . . . . . . . . . .");
            scroll.setViewportView(blank);
            addButton.setEnabled(false);
            removeButton.setEnabled(false);
            editButton.setEnabled(false);
        }Cheers,
    Joachim

    There is a method that is called when the user
    selects no table but the initial "Select a table"
    item in the combo box. This method is NOT called
    But this method displayNothing() is the only place where buttons are
    disabled (at least acording to the posted code fragments).
    How can buttons be disabled when this method is not called?
    You see, it's difficult to test your code because it is not a self-contained
    compilable example.
    A short self-contained compilable example often helps you and
    others to discover an otherwise mysterious bug.

  • JTextFeild.setEditable funny behaviour

    Hey Guys I hope someone can help me as I'm completely stuck to whether this is a bug or whether I'm just missing something. Given the following code:
    private void setComponentState( int state )
    switch(state)
    case 1:
    btnSearch.setEnabled( true ); //JButton
    btnReplace.setEnabled( false ); //JButton
    txtBarcodeReplc.setEditable( false ); //JTextFeild
    break;
    case 2:
    btnSearch.setEnabled( false ); //JButton
    btnReplace.setEnabled( true ); //JButton
    txtBarcodeReplc.setEditable( true ); //JTextFeild
    break;
    The problem I'm having is that everything works fine until the 3rd or sometimes the 4th time I call this method with a state=2 param. At this point the txtBarcodeReplc control refuses to enable itself. It changes color as it should and when the properties of the control are queried, the control thinks it's enabled, it's just that you cannot type anything or select inside the control. Interestingly enough, if I remove the calls to the other 2 jbutton controls so that the only thing this method does is reset my JTextFeild control, then it works perfectly fine. I'm curerntly using 1.3.1_09.
    Hope someone has some idea's to how to solve this as I'm completely stumped

    Apologies - the problem I was getting at is that it is unsafe to make calls on Swing components from any thread other than the Swing thread. This is unlikely when you are new to Java.
    As for your problem - you can search the bug database. Does http://developer.java.sun.com/developer/bugParade/bugs/4680302.html look like your problem? If so then the latest version looks to be your only option, or try putting the text field in front (in tab order) of the buttons.

  • Funny behaviour on Yahoo website

    Hope this is the right forum to post my question.
    I use Yahoo to look at my stock portfolio. To view it I have to click on Portfolios, which leads to a drop-down list. I then have to scroll down and click on My Portfolios.
    In Windows XP, the drop-down list stays in place while I scroll down to click on My Portfolios.
    In Mac OS X, the drop-down list tries to disappear on me when I begin to scroll down, so I have to scroll down really fast and click on My Portfolios before the list disappears! This has been really good for my hand-mouse coordination, but is really exasperating all the same.
    Is this a problem I can fix in Safari, or is it something that Yahoo should deal with?
    Thanks for your help!

    Hi Tom,
    Thanks for your suggestion.
    I've tried the Yahoo page in Internet Explorer, and it seems to work as it should.
    I have never used Firefox, so I downloaded it. The Yahoo page works just fine (even better than IE). I suppose this suggests that I must do something in Safari to fix the problem.
    Any further ideas?
    Cam MacDonald

  • Funny behaviour

    Hi,
    I was browsing through facebook tonight and noticed a black box start to appear around everything I clicked after I had tagged someone in a photo. So I quit safari and reloaded nope, still there. So I restarted my mac and noticed that every option in the menu was duplicated as in this photo. Can anyone help me identify what this is please?
    [IMG]http://i631.photobucket.com/albums/uu33/mesler585/Picture1.png[/IMG]
    regards,
    michael

    VoiceOver is on ("Seeing" tab of "Universal Access" system preference. Command-F5 will turn it on or off. (Maybe fn-Command-F5)

  • Migration Assistant Funny Behaviour

    Hi:
    I have a brand new quad core 2.66 GHz with 4 GB factory RAM, running OS 10.6.2. I am trying to migrate the files from my 10 yo G4 867MHz PPC onto it. I have a FW 800 to 400 cable connecting the two machines. The HD from the PPC shows up on my new desktop (after I start in target mode), yet only one of the 5 user accounts on the old machine shows up when I directly examine the disk icon. I ran migration assistant, and it only brought over one user account, and even for that one it left most of the files behind.
    What am I doing wrong? Any guidance would be greatly appreciated. Thank you!

    Problem solved. I have two internal HDs on my PPC. The one Firewire Target Mode was talking to must be the master PATA drive, even tho I have the other larger and newer drive as my boot drive. I found this text on an Apple support site: "Note: FireWire Target Disk Mode works on internal PATA or SATA drives only. Target Disk Mode only connects to the master PATA drive on the Ultra ATA bus. It will not connect to Slave ATA, ATAPI, or SCSI drives." I had an old copy of one user account on the Master drive, so that explains why it copied one account but not the others, and why the account it copied was not up to date. It's all so obvious in retrospect!
    Given all this, I got Migration Assistant to run by using SuperDuper to make a bootable copy of my PPC onto an external HD using FireWire, then connected this drive to my Intel Quad core, and then all went well.

  • Funny behaviour of converted indicator

    The attached vi was converted from LV 7.1 to LV 2011.
    Click on the header text "Descrizione" and see what happens.
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011
    Attachments:
    Gestione Sorgenti-test.vi ‏7 KB

    Ciao Valerio, grazie della risposta. Quello che succede a me è che la casella di testo, quando viene cliccata, "migra" verso sinistra fino a raggiungere il bordo estremo della colonna; a volte lo supera anche di un poco. La stessa cosa avviene per ogni testo della tabella nella colonna "Descrizione".
    Nulla di grave, però un po' fastidioso; comunque davvero curioso.
    Ho provato a cambiare le proprietà del font sia sul testo singolo che sull'intero controllo, ma non cambia nulla.
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Strange behaviour in parallel processing (aRFC)

    Hi,
    I have programmed a data extraction program in SAP IS-U. Due to the sheer size of the tables (900 million+) if had to use parallel processing to keep the runtime acceptable.
    When running in the QA-environment I see a funny behaviour. There are about 49 dialog processes available, but the program never uses more than around 15. In transaction SARFC the settings are, that the appserver may get a load of 100% processes.
    Furthermore I see that in the first few minutes a lot of jobs are being created. Then for a few minutes almost nothing happens (maybe 2 or 3 are running) and then a few minutes later it's back to normal. This cycle repeats on and on and takes around 20 minutes. The Basis-people say the system load is not very high, neither is the DB-load.
    My questions are:
    1) Why does the job counter never exceed the 15 jobs, even though there are plenty available (65 in total, 49 on my app server)?
    2) Why is the performance so wobbly? I would expect that the slots in SM51 should always be filled with fresh jobs.
    With kind regards,
    Crispian Stones
    P.S.
    The mechanism I use is similar to the following:
    loop at tb_todo into wa_todo.
      call function 'SPBT_GET_CURR_RESOURCE_INFO'
       importing FREE_PBT_WPS = available.
      check available gt 1.
      call function 'Z_MY_EXTRACTOR'
        starting new task my_taskname
        in destination my_destination
        performing my_callback on end of task
        exporting
          i_data = wa_todo.
      if sy-subrc eq 0.
        add 1 to created.
      endif.
    endloop.
    wait until returned ge created.
    form my_callback.
      add 1 to returned.
      receive results from function 'Z_MY_EXTRACTOR'.
    endform.

    Hello,
    I am facing a similar issue in one of my || processing program as well. The program, when executed with a data-set of 10,000 records takes 65 minutes to complete. One would expect it to take 650 minutes (or even lesser) to process a data-set of app. 100,000 records.
    However, when I run the program for a file with app. 100,000 records the program runs OK initially (i.e; I could see multiple dialog processes getting invoked in SM50) but, after a while it starts running on ONLY ONE dialog process. I am not quite sure where, when and why this PARALLEL to SEQUENTIAL switch is happening. Due to this, the program drags on and on and on. I would highly appreciate your suggestions/tips to put this bug to sleep.
    Here is a summary of the logic used...
      w_group = 'BATCH_PARALLEL'.
      w_task  = w_task + 1.
      CALL FUNCTION 'SPBT_INITIALIZE'
       EXPORTING
         group_name                           = w_group
       IMPORTING
         max_pbt_wps                          = w_pr_total   "Total processes
         free_pbt_wps                         = w_pr_avl     "Avail processes
       EXCEPTIONS
         invalid_group_name                   = 1
         internal_error                       = 2
         pbt_env_already_initialized          = 3
         currently_no_resources_avail         = 4
         no_pbt_resources_found               = 5
         cant_init_different_pbt_groups       = 6
         OTHERS                               = 7.
      IF sy-subrc <> 0.
      Raise error mesage and quit
        w_wait = c_x.
    If everything went well, continue processing
      ELSE.
        CLEAR: w_wait.
    The subroutine that receives results from the parallel FMs will reduce
    this counter and set the flag W_WAIT once the value is equal to ZERO
        w_count = LINES( data ).
    Refresh the temporary table that will be populated for every partner
        REFRESH: t_data.
        LOOP AT data.
    Keep appending data to the temporary table
          APPEND data TO t_data.
          AT END OF partner.
            CLEAR: w_subrc.
            CALL FUNCTION 'Z_PARALLEL_FUNCTION'
              STARTING NEW TASK w_task
              DESTINATION IN GROUP w_group
              PERFORMING process_return ON END OF TASK
              TABLES
                data                  = t_data
              EXCEPTIONS
                communication_failure = 1      "Mandatory for || processing
                system_failure        = 2      "Mandatory for || processing
                RESOURCE_FAILURE      = 3      "Mandatory for || processing
                OTHERS                = 4.
            w_subrc = sy-subrc.
    Check if everything went well...
            CLEAR: w_rfcdest.
            CASE w_subrc.
              WHEN 0.
    This variable keeps track of the number of threads initiated. In case
    all the processes are busy, we should compare this with the variable
    w_recd (set later in the subroutine 'PROCESS_RETURN'), and wait till
    w_sent >= w_recd.
                w_sent = w_sent + 1.
    Track all the tasks initiated.
                CLEAR: wa_tasklist.
                wa_tasklist-taskname = w_task.
                APPEND wa_tasklist TO t_tasklist.
              WHEN 1 OR 2.
    Populate the error log table and continue to process the rest.
              WHEN OTHERS.
    There might be a lack of resources. Wait till some processes
    are freed again. Populate the records back to the main table
                CLEAR: wa_data.
                LOOP AT t_data INTO wa_data.
                  APPEND wa_data TO data.
                ENDLOOP.
                WAIT UNTIL w_recd >= w_sent. "IS THIS THE CULPRIT?
            ENDCASE.
    Increment the task number
            w_task = w_task + 1.
    Refresh the temporary table
            REFRESH t_data.
          ENDAT.
        ENDLOOP.
      ENDIF.
    Wait till all the records are returned.
      WAIT UNTIL w_wait = c_x UP TO '120' SECONDS.
    FORM process_return USING p_taskname.                       "#EC CALLED
      REFRESH: t_data_tmp.
      CLEAR  : w_subrc.
    Check the task for which this subroutine is processed!!!
      CLEAR: wa_tasklist.
      READ TABLE t_tasklist INTO wa_tasklist WITH KEY taskname = p_taskname.
    If the task wasn't already processed...
      IF sy-subrc eq 0.
    Delete the task from the table T_TASKLIST
        DELETE TABLE t_tasklist FROM wa_tasklist.
    Receive the results back from the function module
        RECEIVE RESULTS FROM FUNCTION 'Z_PARALLEL_FUNCTION'
          TABLES
            address_data          = t_data_tmp
          EXCEPTIONS
            communication_failure = 1      "Mandatory for || processing
            system_failure        = 2      "Mandatory for || processing
            RESOURCE_FAILURE      = 3      "Mandatory for || processing
            OTHERS                = 4.
    Store sy-subrc in a temporary variable.
        w_subrc = sy-subrc.
    Update the counter (Number of tasks/jobs/threads received)
        w_recd = w_recd + 1.
    Check the returned values
        IF w_subrc EQ 0.
    Do necessary processing!!!
        ENDIF.
    Subtract the number of records that were returned back from the
    total number of records to be processed
        w_count = w_count - LINES( t_data_tmp ).
    If the counter is ZERO, set W_WAIT.
        IF w_count = 0.
          w_wait = c_x.
        ENDIF.
      ENDIF.
    ENDFORM.                    " process_return
    Thanks,
    Muthu

  • K8N Neo2 Platinum Memory Issues

    I have two Super Talent 512 DDR PC3200/400MHZ Memory Modules and attempting to use them as dual channel. I am getting some funny behaviour however. In windows mode, whenever I try to do something memory intensive the machine crashes and reboots. Normally I would say that this is an issue with a bad chip, run memtest86 and determine which chip is bad. Well the results are a bit strange. When ever I run memtest with both modules in either banks 0 and 1 or 2 and 3 (dual channel configuration) I get memory errors. I then test each module separately in bank 1 and get no errors. Do I have a setting wrong somewhere? Could this possibly be incompatible ram?
    Can someone please enlighten me as to why this might be happening? If its a settings issue it would be helpful to know where and how I should set this. If it is a compatibility issue it would be very helpful to know what brands of memory people have used successfully for dual channel so that I don't get stuck with this problem again.
    Thank you very much for any assistance anyone can offer.
    Channon

    Did you purchase the RAM from a 'chain' retailer? - like Best Buy or Circuit City, etc.?  If so it is most likely dual-channel RAM.  Now if you got them from your local 'junk peddler dealer' (that's what I call them) and the RAM chips were not sealed in a manufacturer's package, with their name on it, then you may have gotten screwed.
    You can try installing one stick in slot 1 and the other in slot 3.  That should set the system to single-channel mode.  See if it runs okay and then run Memtest again.  If the test passes then you've got yourself a set of 'fake' dual DDR. :(
    If you got them at Best Buy (or whatever) that is a large store with a good replacement policy, you should have no trouble exchanging the RAM for a new set... and MAKE SURE THE PACKAGE SAYS DUAL-CHANNEL.
    Now on the other hand... if they came from a local computer shop, take them back to where you got them, shove them in the guy's face... tell him he's a liar and will replace your RAM with the correct sticks.  If he refuses you can always shove each chip into his eye sockets to get your revenge.

  • I like and use Top Sites but it has become unsuable with this constant blacking out and reloading the thumbnails.  My MBP has not seen a problem at all.   I have been searching every other day for over a month trying to find a fix in Windows Safari with n

    I like and use Top Sites but it has become unsuable with this constant blacking out and reloading the thumbnails.  My MBP has not seen a problem at all.
    I have been searching every other day for over a month trying to find a fix in Windows Safari with no joy.  I want to resolve, not switch browsers. Please offer up a solution that only refreshes the Top Site thumbnails once a day or as some controlable interval.  Started about two versions ago, now on ver 5.1.5. Windows 7 64bit.
    Safari 5.1.5 for Win64 bit, Windows 7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    I think I solved the wifi connection problem, just by switching off completely the router! sounds trivial, but in this case it worked!!!
    the funny behaviour of the trackpad/cursor still persists. any suggestion???
    thanks again

Maybe you are looking for

  • Purchase Order with Goods Receipts Query

    Hi Guys, Am still getting to grips with JOINS, I am trying to get a query completed that will show all Purchase Orders that have outstanding items on them, but I would like to also show any corresponding Goods Reciept Notes for that Purchase Order, s

  • Deleting the latest request from info cube.

    Hi All, In our project, we have data from May 2012 to till date. Data is freezed and there is no change of data till May 2014. And there is change in data for current month only ie) June 2014. So i have pulled the full load from May 2012 to May 2014

  • Iphone responses not showing up in email conversations in Lion Mail

    Not sure if this is built in or if I have the right settings for this with my gmail account but when I respond to an email from my iPhone, it doesn't show up as part of a conversation in Lion's Mail.  Shouldn't it?

  • Windows 2008 R2 group policy not applied on some of the computers

    Dear All, I have windows 2008 r2 as domain controller and configured group policy. when I am changing existing group policy most of the computers not affecting with update policy. is there any server or any other method required to configure? every t

  • Xperia Z1 display

    Hi all, I've recently had a line of dead/stuck pixels (I realise they're two different issues, but I cannot decipher for sure which one my Z1 is suffering from).   The line of pixels runs down the very middle of the display and is most visible agains