Tabstrip does not save when first clicked

After I set all the input field to be required for my 3 tabs in my tabstrip, I am only able to save the data in text field after I click the save button the second time and not the first time.
Clicking Save button first time:
http://img407.imageshack.us/img407/6461/screenjk0.png
Clicking Save button second time:
http://img407.imageshack.us/img407/3266/screen2ng4.png
Here are my codes:
REPORT  ZTREE_STRUCTURE2.
DATA : IO_NAME(40) TYPE C,
      IO_AGE(40) TYPE C,
      IO_GENDER(40) TYPE C.
DATA: P_HERA TYPE DNTAB-TABNAME VALUE 'ZHERA',
       ITAB_HERA TYPE TABLE OF ZHERA,
       FIELD_COUNT TYPE I,
       WA_HERA LIKE LINE OF ITAB_HERA,
       P_HERA2 TYPE DNTAB-TABNAME VALUE 'ZHERA2',
       ITAB_HERA2 TYPE TABLE OF ZHERA2,
       WA_HERA2 LIKE LINE OF ITAB_HERA2.
SELECT * INTO TABLE ITAB_HERA FROM ZHERA.
SELECT * INTO TABLE ITAB_HERA2 FROM ZHERA2.
*&SPWIZARD: FUNCTION CODES FOR TABSTRIP 'TABNAME2'
CONSTANTS: BEGIN OF C_TABNAME2,
             TAB1 LIKE SY-UCOMM VALUE 'TABNAME2_FC1',
             TAB2 LIKE SY-UCOMM VALUE 'TABNAME2_FC2',
             TAB3 LIKE SY-UCOMM VALUE 'TABNAME2_FC3',
           END OF C_TABNAME2.
*&SPWIZARD: DATA FOR TABSTRIP 'TABNAME2'
CONTROLS:  TABNAME2 TYPE TABSTRIP.
DATA:      BEGIN OF G_TABNAME2,
             SUBSCREEN   LIKE SY-DYNNR,
             PROG        LIKE SY-REPID VALUE 'ZTREE_STRUCTURE2',
             PRESSED_TAB LIKE SY-UCOMM VALUE C_TABNAME2-TAB1,
           END OF G_TABNAME2.
CONSTANTS: BEGIN OF C_TRANSFORM,
             TAB1 LIKE SY-UCOMM VALUE 'TRANSFORM_FC1',
             TAB2 LIKE SY-UCOMM VALUE 'TRANSFORM_FC2',
           END OF C_TRANSFORM.
*&SPWIZARD: DATA FOR TABSTRIP 'TRANSFORM'
CONTROLS:  TRANSFORM TYPE TABSTRIP.
DATA:      BEGIN OF G_TRANSFORM,
             SUBSCREEN   LIKE SY-DYNNR,
             PROG LIKE SY-REPID VALUE 'ZSCSDM_MODIFY_TRANSFORM_HERA',
             PRESSED_TAB LIKE SY-UCOMM VALUE C_TRANSFORM-TAB1,
           END OF G_TRANSFORM.
DATA:      OK_CODE LIKE SY-UCOMM.
START-OF-SELECTION.
CALL SCREEN 9000.
MODULE STATUS_9000 OUTPUT.
   SET PF-STATUS 'SCREEN_9000'.
   SET TITLEBAR 'RWB_TRANSFORM'.
ENDMODULE.                    "STATUS_8000 OUTPUT
MODULE TABNAME2_ACTIVE_TAB_SET OUTPUT.
  TABNAME2-ACTIVETAB = G_TABNAME2-PRESSED_TAB.
  CASE G_TABNAME2-PRESSED_TAB.
    WHEN C_TABNAME2-TAB1.
      G_TABNAME2-SUBSCREEN = '9001'.
    WHEN C_TABNAME2-TAB2.
      G_TABNAME2-SUBSCREEN = '9002'.
    WHEN C_TABNAME2-TAB3.
      G_TABNAME2-SUBSCREEN = '9003'.
    WHEN OTHERS.
*&SPWIZARD:      DO NOTHING
  ENDCASE.
ENDMODULE.                    "TABNAME2_ACTIVE_TAB_SET OUTPUT
*&SPWIZARD: INPUT MODULE FOR TS 'TABNAME2'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: GETS ACTIVE TAB
MODULE TABNAME2_ACTIVE_TAB_GET INPUT.
  OK_CODE = SY-UCOMM.
  CASE OK_CODE.
    WHEN C_TABNAME2-TAB1.
      G_TABNAME2-PRESSED_TAB = C_TABNAME2-TAB1.
    WHEN C_TABNAME2-TAB2.
      G_TABNAME2-PRESSED_TAB = C_TABNAME2-TAB2.
    WHEN C_TABNAME2-TAB3.
      G_TABNAME2-PRESSED_TAB = C_TABNAME2-TAB3.
    WHEN OTHERS.
*&SPWIZARD:      DO NOTHING
  ENDCASE.
ENDMODULE.                    "TABNAME2_ACTIVE_TAB_GET INPUT
MODULE USER_COMMAND_9000 INPUT.
IF SY-UCOMM = 'BACK'.
  LEAVE PROGRAM.
ELSEIF SY-UCOMM = 'EXIT'.
  LEAVE PROGRAM.
ELSEIF SY-UCOMM = 'CANCEL'.
  LEAVE PROGRAM.
ELSEIF SY-UCOMM = 'SAVE'.
ENDIF.
ENDMODULE. "USER_COMMAND_9000 INPUT
FORM INSERT_TABLE.
  WA_HERA-NAME = IO_NAME.
  WA_HERA-AGE = IO_AGE.
  WA_HERA2-GENDER =  IO_GENDER.
  INSERT INTO ZHERA VALUES WA_HERA.
  INSERT INTO ZHERA2 VALUES WA_HERA2.
  MESSAGE S001(ZMSG02).
ENDFORM.                    "UPDATE_TABLE
Can anyone tell me what is wrong with my codes?

Hi,
In your module here
IF SY-UCOMM = 'BACK'.
  LEAVE PROGRAM.
ELSEIF SY-UCOMM = 'EXIT'.
  LEAVE PROGRAM.
ELSEIF SY-UCOMM = 'CANCEL'.
  LEAVE PROGRAM.
ELSEIF SY-UCOMM = 'SAVE'.
ENDIF.
... replace all occurrences of SY-UCOMM with OK_CODE.
This will resolve the problem.
Regards,
Aditya
Edited by: Aditya Laud on Feb 5, 2008 12:16 AM

Similar Messages

  • Tabstrip does not save when clicked

    After I set all the input field to be required for my 3 tabs in my tabstrip, I am only able to save the data in text field after I click the save button the second time and not the first time.
    Clicking Save button first time:
    http://img407.imageshack.us/img407/6461/screenjk0.png
    Clicking Save button second time:
    http://img407.imageshack.us/img407/3266/screen2ng4.png
    Here are my codes:
    REPORT  ZTREE_STRUCTURE2.
    DATA : IO_NAME(40) TYPE C,
          IO_AGE(40) TYPE C,
          IO_GENDER(40) TYPE C.
    DATA: P_HERA TYPE DNTAB-TABNAME VALUE 'ZHERA',
           ITAB_HERA TYPE TABLE OF ZHERA,
           FIELD_COUNT TYPE I,
           WA_HERA LIKE LINE OF ITAB_HERA,
           P_HERA2 TYPE DNTAB-TABNAME VALUE 'ZHERA2',
           ITAB_HERA2 TYPE TABLE OF ZHERA2,
           WA_HERA2 LIKE LINE OF ITAB_HERA2.
    SELECT * INTO TABLE ITAB_HERA FROM ZHERA.
    SELECT * INTO TABLE ITAB_HERA2 FROM ZHERA2.
    *&SPWIZARD: FUNCTION CODES FOR TABSTRIP 'TABNAME2'
    CONSTANTS: BEGIN OF C_TABNAME2,
                 TAB1 LIKE SY-UCOMM VALUE 'TABNAME2_FC1',
                 TAB2 LIKE SY-UCOMM VALUE 'TABNAME2_FC2',
                 TAB3 LIKE SY-UCOMM VALUE 'TABNAME2_FC3',
               END OF C_TABNAME2.
    *&SPWIZARD: DATA FOR TABSTRIP 'TABNAME2'
    CONTROLS:  TABNAME2 TYPE TABSTRIP.
    DATA:      BEGIN OF G_TABNAME2,
                 SUBSCREEN   LIKE SY-DYNNR,
                 PROG        LIKE SY-REPID VALUE 'ZTREE_STRUCTURE2',
                 PRESSED_TAB LIKE SY-UCOMM VALUE C_TABNAME2-TAB1,
               END OF G_TABNAME2.
    CONSTANTS: BEGIN OF C_TRANSFORM,
                 TAB1 LIKE SY-UCOMM VALUE 'TRANSFORM_FC1',
                 TAB2 LIKE SY-UCOMM VALUE 'TRANSFORM_FC2',
               END OF C_TRANSFORM.
    *&SPWIZARD: DATA FOR TABSTRIP 'TRANSFORM'
    CONTROLS:  TRANSFORM TYPE TABSTRIP.
    DATA:      BEGIN OF G_TRANSFORM,
                 SUBSCREEN   LIKE SY-DYNNR,
                 PROG LIKE SY-REPID VALUE 'ZSCSDM_MODIFY_TRANSFORM_HERA',
                 PRESSED_TAB LIKE SY-UCOMM VALUE C_TRANSFORM-TAB1,
               END OF G_TRANSFORM.
    DATA:      OK_CODE LIKE SY-UCOMM.
    START-OF-SELECTION.
    CALL SCREEN 9000.
    MODULE STATUS_9000 OUTPUT.
       SET PF-STATUS 'SCREEN_9000'.
       SET TITLEBAR 'RWB_TRANSFORM'.
    ENDMODULE.                    "STATUS_8000 OUTPUT
    MODULE TABNAME2_ACTIVE_TAB_SET OUTPUT.
      TABNAME2-ACTIVETAB = G_TABNAME2-PRESSED_TAB.
      CASE G_TABNAME2-PRESSED_TAB.
        WHEN C_TABNAME2-TAB1.
          G_TABNAME2-SUBSCREEN = '9001'.
        WHEN C_TABNAME2-TAB2.
          G_TABNAME2-SUBSCREEN = '9002'.
        WHEN C_TABNAME2-TAB3.
          G_TABNAME2-SUBSCREEN = '9003'.
        WHEN OTHERS.
    *&SPWIZARD:      DO NOTHING
      ENDCASE.
    ENDMODULE.                    "TABNAME2_ACTIVE_TAB_SET OUTPUT
    *&SPWIZARD: INPUT MODULE FOR TS 'TABNAME2'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: GETS ACTIVE TAB
    MODULE TABNAME2_ACTIVE_TAB_GET INPUT.
      OK_CODE = SY-UCOMM.
      CASE OK_CODE.
        WHEN C_TABNAME2-TAB1.
          G_TABNAME2-PRESSED_TAB = C_TABNAME2-TAB1.
        WHEN C_TABNAME2-TAB2.
          G_TABNAME2-PRESSED_TAB = C_TABNAME2-TAB2.
        WHEN C_TABNAME2-TAB3.
          G_TABNAME2-PRESSED_TAB = C_TABNAME2-TAB3.
        WHEN OTHERS.
    *&SPWIZARD:      DO NOTHING
      ENDCASE.
    ENDMODULE.                    "TABNAME2_ACTIVE_TAB_GET INPUT
    MODULE USER_COMMAND_9000 INPUT.
    IF SY-UCOMM = 'BACK'.
      LEAVE PROGRAM.
    ELSEIF SY-UCOMM = 'EXIT'.
      LEAVE PROGRAM.
    ELSEIF SY-UCOMM = 'CANCEL'.
      LEAVE PROGRAM.
    ELSEIF SY-UCOMM = 'SAVE'.
    ENDIF.
    ENDMODULE. "USER_COMMAND_9000 INPUT
    FORM INSERT_TABLE.
      WA_HERA-NAME = IO_NAME.
      WA_HERA-AGE = IO_AGE.
      WA_HERA2-GENDER =  IO_GENDER.
      INSERT INTO ZHERA VALUES WA_HERA.
      INSERT INTO ZHERA2 VALUES WA_HERA2.
      MESSAGE S001(ZMSG02).
    ENDFORM.                    "UPDATE_TABLE
    Can anyone tell me what is wrong with my codes?

    Screen 9000 Screen with tabstrip
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABSTRIP 'TABNAME2'
      MODULE TABNAME2_ACTIVE_TAB_SET.
      CALL SUBSCREEN:
           9001_SCA INCLUDING G_TABNAME2-PROG '9001',
           9002_SCA INCLUDING G_TABNAME2-PROG '9002',
           9003_SCA INCLUDING G_TABNAME2-PROG '9003'.
    MODULE STATUS_9000.
    *  MODULE SCREEN_SET.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABSTRIP 'TABNAME2'
      MODULE TABNAME2_ACTIVE_TAB_GET.
    MODULE USER_COMMAND_9000.
        CALL SUBSCREEN:
           9001_SCA,
           9002_SCA,
           9003_SCA.
    *    module exit_prog at exit-command.
    Screen 9001 Screen with first tab
    PROCESS BEFORE OUTPUT.
      MODULE PBO_9001.
    PROCESS AFTER INPUT.
    CHAIN.
    FIELD:IO_NAME.
    ENDCHAIN.
    MODULE USER_COMMAND_9001.
    Screen 9002 Screen with second tab
    PROCESS BEFORE OUTPUT.
      MODULE PBO_9002.
    PROCESS AFTER INPUT.
    CHAIN.
    FIELD:IO_AGE.
    ENDCHAIN.
    MODULE USER_COMMAND_9002.
    Screen 9003 Screen with third tab
    PROCESS BEFORE OUTPUT.
      MODULE PBO_9003.
    PROCESS AFTER INPUT.
    CHAIN.
    FIELD:IO_GENDER.
    ENDCHAIN.
    MODULE USER_COMMAND_9003.

  • Need to send my back up email a reset security questions email but the option does not show when I click on password and security

    Need to send my back up email a reset security questions email but the option does not show when I click on password and security

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (97456)

  • SmartView does not open when I click on File – Open in Smart View

    SmartView does not open when I click on File – Open in Smart View.Can one please help me to resolve this issue.

    Are you using IE or Firefox? Which version of Planning do you have?
    HTH-
    Jasmine.

  • I am not able to access my Ipad as it says that icloud has not been backed up and it does not accept when i click ok

    i am not able access my ipad as it says that the icloud has not been backed up. it also does not accept when i click ok.

    Try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    When it's rebooted you can force a backup via Settings > iCloud

  • A new window does not open when I click on the new tab "plus" sign. How do I fix this?

    A new window does not open when I click on the new tab "plus" sign. How do I fix this?

    Try uninstalling the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.

  • How do I check internet usage history? When i use the "History" tab on the tool bar all I see is today's activity & the calendar does not change when I click on it. Thanks

    How do I check internet usage history? When i use the "History" tab on the tool bar all I see is today's activity & the calendar does not change when I click on it. Thanks

    zedzed,
    Here's another thought.
    Navigate to HD > Users > Library > Safari: Make a duplicate of History.plist.
    To duplicate the file, click once to highlight it. Press the Command + D keys.
    Drag the History,plist copy file to the Desktop.
    Highlight it. Press the Command + I keys, to get info.
    Change Open With to TextEdit.
    When you open the file in TextEdit, it will be difficult to read, but you will be able to pick out some sites.
    ali b

  • Home wifi password does not save when switching iPod off and on again

    Hi, when using my home wifi on my ipod touch the password does not save and I have to enter it every time I switch my ipod on. Is there a way around this. It was okay when I first got it. I have tried reseting the network settings, but this has not helped.

    If you do a search of the forums, there appear to be a number of postings regarding iOS6, wi-fi security and random disconnection of wi-fi. It appears, as the posts have discussed, it is connected to the use of WPA2 security. Most of the posting, however, have been related to iPhone 5, not the 4S. As far was what was posted, they say Apple has been made aware of the issue and they are looking for a fix. Not sure if that would help the iPhone 4S, because it does not support both bands as the iPhone 5 does. Just remember that WEP is less secure than WPA2. You might also try restarting your router after changing back to WPA2 on the phone, depending on what the router is set for.

  • How do I know if private browsing is working? The purple mask does not appear when I click the mask icon. In my privacy settings "Never Remember" is selected.

    I'm trying to confirm private browsing is working. Right now I have no way of knowing if it is on or not. The purple mask ,referred to in help, does not appear when selected. I should say in my privacy settings, I have selected "Never Remember" for history.

    Do you mean you have checked the box: "Always use private browsing mode"? If so, it's intentional that the private browsing icon isn't displayed as we didn't want Firefox to be showing everyone within view that you're using private browsing mode IIRC.
    There are some easy things you can do to confirm that you are in private browsing mode such as visiting a new website and then confirming it doesn't appear in the history window.

  • My address book does not open when I click on the "To" bar in an email.

    I recently upgraded to Thunderbird 4.1.0. Since that time my address book does not open when I try to address an email from the "To" or other lines. I have to manually open the address book and cut and paste the address. How can I reconnect the address book to the email program?

    Thank you. You solved my problem. I appreciate it.

  • Webhelp TOC does not expand when I click on links

    I have developed a Webhelp system, and it has this weird
    problem which I don't know how to fix. Imagine the following
    scenario:
    I have a topic called "page1.htm", and in that topic is a link
    to "page2.htm". [/li]
    I also have a topic called "page3.htm" and in that topic is a
    link to "page4.htm"[/li]
    If I click the link to "page2.htm", it will load "page2.htm"
    properly, and expands the TOC and highlights the "page2.htm" item
    in the TOC.[/li]
    If I click the link to "page4.htm", it will load "page4.htm"
    properly, but the TOC does not change at all and "page4.htm" is not
    highlighted in the TOC.[/li]
    It doesn't seem to matter if the TOC entry for "page2.htm" is a
    book or a topic[/li]
    It doesn't seem to matter if there are two TOC entries for
    "page2.htm" - Robohelp will just expand to the first one.[/li]
    Can anyone please help me? Thanks!
    Gary

    Hi Anne and Leon! Thanks for taking the time to help me sort
    this out.
    quote:
    Originally posted by:
    AuthorAnne
    What browser are you using, and what version of it? Internet
    Explorer Version 6
    Does the same problem occur in other browsers? Unfortunately
    I can't try it in other browsers because the computing environment
    here is very rigid :-(
    Do you have any books linked to specific topics? Nearly
    every book in the TOC is linked to a topic. Some of them are
    synchronised, and others aren't, but I can't figure out what the
    difference between the topics is.
    In the second page of your WebHelp properties, under Single
    Source Layouts, do you have Synchronize TOC set to
    "Automatically"? Yes.
    quote:
    Originally posted by:
    MergeThis
    Gary, I suspect that you might have multiple calls in the TOC
    to the same topic, as alluded to when you say:
    "It doesn't seem to matter if there are two TOC entries for
    "page2.htm" - Robohelp will just expand to the first one.[/li]").
    That's the default behavior for Webhelp.
    Thanks for your advice on handling multiple
    calls in the TOC to the same topic - I have some deliberately
    duplicated topic links so this will be useful. However, I don't
    think this is the cause of problem. I built the TOC myself and
    there are only 5 duplicated TOC entries, but the problem I am
    having is occurring with non-duplicated TOC entries.
    Thanks again for your time and help!
    Gary
    PS, I live in Australia, which explains the time difference
    :-)

  • :system.cursor_block value does not change when mouse click

    Form created with Forms version 6.0.8.8.0. Consists of a control block that has the toolbar buttons, a filter control block that contains item, and a data block. The filter control block and data block are on a tabbed canvas. There are 3 tabs with corresponding filter control block and data block on each.After the data block is queried, code sets the navigation to the control block with the go_item built-in. The user would use a mouse click on the filter control block on one of the tabs to activate an LOV, code is in a generic when-mouse-click trigger that will determine the item focus with the value in the system variable :system.cursor_block. Works for the first tab. Does not work for 2nd or 3rd tab. On-error trigger does not capture any error. Values for :system.cursor_block for tab 1 show that value before mouse click is 'control.detail' and after mouse click is 'filter.a'. For tabs 2 and 3 the value before mouse lick is 'control.detail' and after mouse click is 'control.detail' instead of 'fiter.b' or 'filter.c'. Verified that the 3 filter blocks are identical. Can anyone shed some light on this anomoly? I have been looking for this solution (many different iterations and changes to trap it) for too long.

    :System.Cursor_Block reports the name of a block, NOT a BlockName.ItemName.
    Use :System.Trigger_Item with your mouse click, or :System.Cursor_Item.

  • Ecore diagram editor does not load when I click the (aird) file

    When I click on an aird file , which I created for the first time to graphically edit an ecore diagram, the diagram editor does not load, but instead, Eclipse opens the aird file as xml in a text editor! Why this is happening? and how can I solve this? any thoughts?
    I am using Eclipse 4.4.2. in mac.
    I updated the content, with the hope to get a reply.

    Hi, sorry for the lag.
    This might happen depending on the perspective you are using, please try with the "Modeling" perspective.
    You should be able to load the .aird using right-click=>open and then see the corresponding diagrams as childs of the .aird file.

  • Firefox does not open when i click on the icon or menu path

    when i click on the desktop icon or go through the menu path to open firefox, the computer will run it but nothing appears. apparently, firefox is still running in the background but i cant get to it. so whenever i try to edit another program that involves firefox, i have to go to the task manager to manually shut it down.
    i tried running it in safemode but it does the same thing. furthermore, i deleted the whole program and reinstalled it hoping that that might fix the problem. however that did not work, i have searched all the offered support and have come up dry.
    i am running the current firefox version and i am using a windows 7 professional operating system

    Hi,
    It could be that a security software installed in the system is blocking the new updated Firefox executable. You may have to go into the settings of the security software to re-trust Firefox.
    Please also check if you are able to start Firefox by browsing to the Firefox installation folder ('''Program Files (x86)\Mozilla Firefox\''' or '''Program Files\Mozilla Firefox\''' ) and clicking '''firefox'''.
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • The OE New Message box does not open when I click on an email address in Firefox. This is not a problem when I use MS Explorer. How can I fix it?

    OE is set as my default email in both Firefox and Windows XP. When I click on an email address on a website within Firefox the OE page comes up but the OE New Message window does not open. When I go to the same webpage using MS Explorer and click on the same email the OE New message does open. Is there a bud in Firefox that prevents the OE New Message from opening? Is there a way I can fix it?

    See this:
    [http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox]

Maybe you are looking for