Exit Apllication problem

Hey for everybody, i'm rather new, and it's my first topic over here. I was trying to find a solution for my problem, which is in simple thing:
Using NetBeans, I created a single Desktop Application, and there i need to change the command on the [x] (window closing button).
First, that i decided to use setDefaulCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
public class MedicalTestProgrammView extends FrameView {
     public MedicalTestProgrammView(SingleFrameApplication app) {
        super(app);
        initComponents();
        this.getFrame().setMinimumSize(new Dimension(800,600));
        getFrame().setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        It doesn't work (method setMinimumSize works normaly, but the setDefaultCloseOperation doesn't).
Then, after some time researching a found another solution:
this.getFrame().addWindowListener(new WindowAdapter(){
           public void windowClosing(WindowEvent we)
          exitDialogWondow.setVisible(true);
          return;
       });well this code works too, but after closing the dialog frame main application also closes;
I can't find solution by my own. If you can help me, I will be grateful =)
P.S. Sorry for my bad English, believe, I'm working on it =)
P.P.S. I've already seen this: http://forums.sun.com/thread.jspa?threadID=5291167
Edited by: Antilless on Feb 5, 2010 4:36 AM

I've finally find the way, using the information from the thread i've already mentioned, but not just it. In my case i've decided to show an Object from the JDialog class. But then i realised, that everything i need, is to create a JDialog, import it to the *app and work with it. Thanks, and sorry fo the topic.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Me23n user exit dynpro problem

    Hello Everybody,
    I'm developing a user exit for me23n transaction. I have added a tab in which i have some fields i want to fill, but i'm having the next problem.
    when i enter in the me23n transaction,  i push the edit button and those fields appear on editable state, but when i modify the values and push save the fields the fields continue in editable state.
    I have tried to solve this problem in the catching the MESAVE action in the pai of the me22 and calling leaving to the transaction me23 with the vnew values but it's not working. Any ideas?
    Here is the source code ( dynpro 111)
    process after input.
      field ekpo_ci-zzref_alb.
      field ekpo_ci-ZZFECH_DES.
      field ekpo_ci-zzeqveh.
      field ekpo_ci-zzmatricula.
      field ekpo_ci-zzeqtar.
      field ekpo_ci-zztarjeta.
      field ekpo_ci-ZZCENTRO_SER.
      field ekpo_ci-ZZREF_FACT.
      field ekpo_ci-ZZCLIENTE.
      field ekpo_ci-ZZPAIS.
      field ekpo_ci-zzdoc.
    module user_command_0111.
    module USER_COMMAND_0111 input.
    if sy-tcode = 'ME23N' and sy-ucomm = 'METOGG'.
    leave to transaction 'ME22N'.
    endif.
    if sy-tcode = 'ME22N' and sy-ucomm = 'METOGG'.
      leave to transaction 'ME23N'.
    endif.
    if sy-tcode = 'ME22N' and sy-ucomm = 'MESAVE'.
    sy-ucomm = 'METOGG'.
      leave to transaction 'ME23N'.
    endif.
    Thanx

    Hi,
    Check the code below:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    id = '0001'
    language = sy-langu
    name = sname "sales doc is given here
    object = 'VBBK'
    TABLES
    lines = tlines.
    if not tlines is initial.
    LOOP AT tlines.
    CASE sy-tabix.
    WHEN 1.
    ztable-field1 = tlines-tdline.
    WHEN 2.
    ztable-field2 = tlines-tdline.
    WHEN 3.
    ztable-field3 = tlines-tdline.
    ENDLOOP.
    UPDATE ztable SET field1= ztable-field1
    field2= ztable-field2
    field3 = ztable-field3
    WHERE vbeln = vbak-vbeln.
    ENDIF.
    endif.
    Regards
    Kannaiah

  • User exit EXIT_SAPMM06E_016 problem

    Hi,
    I am doing some modifications to EXIT_SAPMM06E_016, include ZXM06U41 and I am having some trouble. I have a validation for the GL account used. When it fails validation, I want to issue an error message.
    What I do is I go to ME32K then enter an agreement. Once in the agreement, I click a line item (i.e. Item 10) and then click the button Account Assignments. Since the GL account used is incorrect, it fails the validation. Therefore an error message should be triggered.
    The problem is that the error message is displayed as a pop-up and when I press the OK button, it will exit to the SAP Area menu. What I want it to do is to exit to the screen where I selected the line items of the Contract.
    Is there a way of having the error appear in the status bar (bottom) of the screen instead of having it displayed as a pop-up box?
    Note: I did the same validation to EXIT_SAPMMO6E_012, include ZXM06U43 and it seems to work fine there.
    Thanks.

    This exit is a PBO exit ("Export Daten zum Kundensubscreen für Einkaufsbelegposition (PBO)" which export data for customer fields) use the PAI exit EXIT_SAPMM06E_017 ("Export Daten zum Kundensubscreen für Einkaufsbelegposition (PAI)") where error messages are allowed; It can only improve things.
    Look at documentation of Enhancement MM06E005 Customer Fields in External Purchasing Documents and online documentation for MESSAGE statement
    Regards

  • User  exit  needed (Problem related to duplicate batch entry in Migo(GR))

    Dear all,
                  I need a help from you.we facing problem in Goods receipt in MIGO.
    where we want to apply a check on batch which has already been assigned to a raw material in MIGO  .we are using manual
    batch entry .we don't want to make duplicate entry of same batch
    against any material.
    I tried to find out the user exit for that but i have not succeed .
    what is solution to
    avoid duplicate batch entry.

    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • User Exit related problem

    I have created one user exit for transaction CO02 .We acn navigate on different screens . My user exit works when you click on save button .
    But now problem is when you click on save button of on different screen first time it wont work . But if you go to main screen of CO02 and return back to other screen it works what may be the reason .
    thank you in advance .

    hi ragha,
    it is because the exit u used is allocated for a particular transaction..
    check it in SMOD .. give the exit name to see the documentation..
    thats the reason it doesn't work in the other screens..
    <b>reward if useful..</b>
    Message was edited by: Ashok Kumar Prithiviraj

  • Firefox doesn't display bookmarks in the sidebar, only in the menu bookmark. It doesn't display bookmarks in the "organize" bookmarks. It doesn't save tabs on exit. Problem began with 3.6.6

    FF 3.6.6 doesn't display bookmarks in sidebar, but a search in the sidebar shows they are still there. It does display them from the menu bar. It doesn't display bookmarks in the "organize bookmark" display. It doesn't save tabs on exit. Doesn't save browser screen size.

    With so many issues with your current profile it would be better to try a new profile.
    Be careful with what you copy to that new profile and it sounds that at least you have problem with places.sqlite and maybe prefs.js and localstore.rdf as well.
    First test that new profile without copying files and installing extensions.
    Create a new profile as a test to check if your current profile is causing the problems
    See [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • EDI - IDoc - User Exit - Code - Problem - Help - Wanted

    Hi EDI Experts,
    I have extended ORDERS05 IDOC twice.
    ZVKSEG1 is the the segment under extended idoc ZVKORDRS05. This is for one partner.
    Z1DATESH01 is the segment under extended idoc Z1ORDER05. This is for another partner.
    I have completed the configuration thing in WE82 for both the extensions.
    Now the requirement is, whenever a PO is created for the first partner - 100290, the IDoc generated should contain the extra segment ZVKSEG1 and whenever PO is created for the second partner - 10099,the Idoc generated should contain the extrasegment Z1DATESH01.
    Using WE20, i have added the extended IDoc type in both the partner profiles under ORDERS message type.
    Now i've written the user exit for this using EXIT_SAPLEINM_002.
    tables: edidc.
    data: z_edidd like edidd occurs 0 with header line.
    data: y1dath01 like z1datesh01.
    data: yvkseg1 like zvkseg1.
    if edidc-rcvprn = '10099'.
    z_edidd[] = int_edidd[].
    loop at z_edidd.
    if z_edidd-segnam  = 'E1EDK01'.
    read table z_edidd  with key segnam  = 'Z1DATESH01'.
    if sy-subrc <> 0.
    y1dath01-DELDATE = sy-datum.
    clear z_edidd.
    z_Edidd-sdata = y1dath01.
    z_Edidd-segnam = 'Z1DATESH01'.
    append z_edidd.
    endif.
    endif.
    endloop.
    int_edidd[] = z_edidd[].
    elseif edidc-rcvprn = '100290'.
    z_edidd[] = int_edidd[].
    loop at z_edidd.
    if z_edidd-segnam  = 'E1EDK01'.
    read table z_edidd  with key segnam  = 'ZVKSEG1'.
    if sy-subrc <> 0.
    yvkseg1-name1 = 'ZVK Chemicals'.
    clear z_edidd.
    z_Edidd-sdata = yvkseg1.
    z_Edidd-segnam = 'ZVKSEG1'.
    append z_edidd.
    endif.
    endif.
    endloop.
    int_edidd[] = z_edidd[].
    endif.
    Could you please go through the code and tell me where did i go wrong. The extra segments are not being created for both the partners.
    I created PO using ME21n once for each vendor.
    Please help me out guys.
    Thanks,
    Matt

    I myself fixed this problem. I made use of XLFA1-LIFNR to manipulate the partner numbers.
    Thanks

  • The underlying task reported failure on exit - HHD problem

    Hi !
    I am contacting you because I have a little problem with my ibook g4.
    As a matter of a fact, this morning - everything was normal yesterday, maybe a little bit too hot, but well, quite normal - I have noticed something a little bit weird (I am using Tiger, X.4.11), the clock won't appear anymore, as the w-lan logo,. on the upper bar of the desktop.
    Well, I have launched Onyx, which says that it seems to be a problem.
    Well, I run the Disk Utility, clicking on "verify Disk", and some moments later, a new window appears :
    "Disk Utility stopped verifying “iBook” because the following error was encountered:
    The underlying task reported failure on exit"
    And on the summary, it was written :
    "Verifying volume “iBook”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Invalid sibling link_
    The volume iBook needs to be repaired.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    Volume needs repair"
    So, I would like to repair by clicking on the repair button, but which wasn't avaible.
    So I have tried a boot from the Tiger cd, and launched the disk Utility from there : it lauch, and it stopped at the same step, but the "repair" button was avaible. I clicked on, but the same message, ""Disk Utility stopped verifying “iBook” because the following error was encountered:
    The underlying task reported failure on exit" Appears also, so it seems impossible for the disc to repair it self.
    So, I have tried something else, a boot in "safe mode", holding the Shift button during the booting. And well... the results are a little bit weird too : first one, the computer do not even mark it, the second time, the time I think it would have been proceed, the white screen with the searching apple appears, search, search for a while, and then, the computer just.... turn off.
    So I am really disappointed, and in a hurry, beeing on my university exam time... I haven't really the time to fix it, but I haven't the choice, and I'm a little bit afraid that my computer has something really important...
    Thanks a lot for helping,
    Best regards,
    T.
    Message was edited by: Strapontin

    Strapontin:
    Disk Utility reports "Underlying task reported failure" when repairing a volume is a directory error which DU is not able to repair. The article linked above suggests the use of third party utility. If you have access to one of the following it might help:
    Tech Tool Pro
    DriveGenius
    Disk Warrior
    This error is often, though not always, caused by a failing of failed HDD. Do you have the original HDD that came with your computer? If so you might want to consider replacing it, because even if the directory is repaired the drive may not be able to hold the format and the corruption may recur.
    Here are some other suggestions you might try:
    • Download and install Applejack
    • Restart computer holding down Command + S
    • When Command line comes up type in
    applejack AUTO
    Let is run all five functions.
    Another option would be to back up your Home Folder, then completely erase and zero out your HDD, reinstall the OS and restore your data from the backup.
    Also, take a look at Kappy on Error -9972 and the suggestions there.
    Good luck.
    cornelius

  • System.exit(0) problem

    Hi there,
    I open C++ GUI application from Java (using JNI native call). When user clicks "x" and closes GUI application, I'd like to shutdown JVM also. In my code, when user clicks "x", C++ side calls Java method (that contains System.exit(0) call) and this results in the java.exe - Application Error: "The instruction at 0x0 referenced at 0x0. The memory couldn't be read".
    I use Jace to handle JNI calls but this sounds like a pure JNI problem.
    Many thanks in advance.
    Kalle.

    System.exit(0)kills the main thread but you still is in the native function. Return has no a valid address. CallSystem.exit(0) only from JAVA code.

  • Confirm Exit Dialogue Problem... Help!

    Hey,
    I am using this piece of code so that when i press the [X] button in the top right hand of my GUI, just before the app exits, it asks the user if they wish to exit.
    But it does not quite work. If i click "yes" the app exits, and it does the same when i press "no"! :s
    "ImageCreator" in the below code is the name of my application class.
    I have tried replacing "ImageCreator" with "this" in the code below but i just get errors when i compile it.
    Could someone please help me and show me how to get around this problem.
    Thank you for your help! :)
    Claire
    x
        class WindowEventHandler extends WindowAdapter
            public void windowClosing(WindowEvent e)
                int exitQ = JOptionPane.YES_OPTION;
                   exitQ = JOptionPane.showConfirmDialog(ImageCreator,
                                                     "Do you wish to exit?",
                                                     "Exit J.P.E.G.Suite?", JOptionPane.YES_NO_OPTION);
                   if(exitQ == JOptionPane.YES_OPTION)
                           System.exit(0);
                   else
        }

    I would assume you used setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) because I have had this problem before. The thing is, this exits the application no matter what because you tell the app to exit after the window is closed. The trick is to use JFrame.DO_NOTHING_ON_CLOSE and exit the app in the window listener.
    Note: <filename> means the currently open file
    <application name> means the application name
    public class SomeApplication extends JFrame
        public SomeApplication()
             //absolutely essential - we can implement the closure in our window listener
            setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    //insert GUI code here
            addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent evt)
                     int result = JOptionPane.showConfirmDialog(this, "Do you want to save changes to <filename>?",
    "<application name>", JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_CANCEL_OPTION);
                     switch(result)
                         case JOptionPane.YES_OPTION:
                             save(); //your save method  which saves the document
                             System.exit(0);
                         case JOptionPane.NO_OPTION:
                             System.exit(0);
    //insert GUI code here...
    }Stephen

  • Cutomer Exit variable problem

    Hi,
    I have created user exit variable based on the calmonth user exit variable.
    The problem is I am unable to fetch the data for YTD values.
    ZVCS_USPER  ---> other user exit varible  EX: 002.2011
    Input for ZVCS_YTDUSPER Variable
    IF i_step = 2.
    case i_vnam.
        when 'ZVCS_YTDUSPER'.
          LOOP AT i_t_var_range INTO loc_var_range
                                Where vnam = 'ZVCS_USPER'.
           concatenate  Loc_var_range-low+4(3) '001'  into LS_RANGE-low.
          LS_RANGE-High = Loc_var_range-low+0(7)
          LS_RANGE-SIGN = 'I'.
          LS_RANGE-OPT = 'BT'.
          APPEND LS_RANGE TO E_T_RANGE.
    ENDLOOP.
         ENDCASE.
    ENDIF.
    Could you please verify the code and let me know the issue....
    Thanks,
    Gana

    answered.

  • User exit message problem

    hi all
    i am giving an error message in a user exit the error message comes as a pop up and moving ahead takes me out of the transaction i seriously donot want this.
    even worning messages are coming as success ones
    is there a way out for giving error msg
    regards
    navjot

    Post details of the transaction code you are trying to issue the message in, and of the exit you are using.
    Often transactions have multiple user exits, and you may be using the wrong one to issue the message.
    In some cases like Purchase Orders you need to call SAP code / macros to add the message to a list of messages that the standard screen will then display.
    Andrew

  • Back, cancel and exit - disabled problem!!!

    hi,
    please find the code of my program below. it is working fine but i am not able to make the back, exit and cancel button in the standard toolbar(buttons beside the box where we write the trascaction code) enabled. can any one tell me how to make those buttons enabled???
    thanks in advance,
    pushpa
    tables kna1.
    data: begin of itkna1 occurs 0,
             ktokd like kna1-ktokd,
             kunnr like kna1-kunnr,
             name1 like kna1-name1,
             name2 like kna1-name2,
             ktokd_hdl type int4,
          end of itkna1.
    *creating an instance of grid
    data it_custom_control_name type scrfname value 'C_C_ALV'.  "custom control name
    data it_container type ref to cl_gui_custom_container.      "container
    data it_alvgrid type ref to cl_gui_alv_grid.                "grid control
    data it_lyo type lvc_s_layo.                                "layout internal table
    data it_fcat type lvc_t_fcat.                               "fieldcatagory internal table
    data it_hype type lvc_t_hype.                               "hyperlink internal table
    data tmp_hype type lvc_s_hype.                              "temp hyperlink internal table
    data gs_toolbar type stb_button.                            "toolbar instance
    data ok_code like sy-ucomm.
    data gt_hypetab type lvc_t_hype.
    data ls_hype type lvc_s_hype.
    ls_hype-handle = '1'.
    ls_hype-href = 'http://www.sap.com'.
    append ls_hype to gt_hypetab.
    ls_hype-handle = '2'.
    ls_hype-href = 'http://www.yahoo.com'.
    append ls_hype to gt_hypetab.
    ls_hype-handle = '3'.
    ls_hype-href = 'http://www.gmail.com'.
    append ls_hype to gt_hypetab.
    ls_hype-handle = '4'.
    ls_hype-href = 'http://www.orkut.com'.
    append ls_hype to gt_hypetab.
    ls_hype-handle = '5'.
    ls_hype-href = 'http://www.rediffmail.com'.
    append ls_hype to gt_hypetab.
    ls_hype-handle = '6'.
    ls_hype-href = 'http://www.hotmail.com'.
    append ls_hype to gt_hypetab.
    ls_hype-handle = '7'.
    ls_hype-href = 'http://www.deals2buy.com'.
    append ls_hype to gt_hypetab.
    *class lcl_event_receiver definition
    class lcl_event_receiver definition.
      public section.
      methods handle_toolbar_set
        for event toolbar of cl_gui_alv_grid
        importing e_object e_interactive.
      methods handle_double_click
       for event double_click of cl_gui_alv_grid
       importing e_row e_column.
      methods handle_user_command
       for event user_command of cl_gui_alv_grid
       importing e_ucomm sender.
      methods handle_hotspot_click
        for event hotspot_click of cl_gui_alv_grid
        importing e_row_id e_column_id es_row_no.
      private section.
      data i type i.
    endclass.
    data event_receiver type ref to lcl_event_receiver.
    *creating screen to enter selection  criteria
    selection-screen begin of block enter_data with frame title text-001.
      parameters pktokd like kna1-ktokd obligatory.
      select-options skunnr for kna1-kunnr.
    selection-screen end of block enter_data.
    *copying the data from the database table to the internal table
    select ktokd kunnr name1 name2
      from kna1 into corresponding fields of table itkna1
           where ktokd = pktokd and kunnr in skunnr.
    *prepare field catalog
    perform prepare_fieldcat using:
    1 'KTOKD' 'KNA1'  8  '' 'KTOKD_HDL' it_fcat,
    2 'KUNNR' 'KNA1' 10 'X' '' it_fcat,
    3 'NAME1' 'KNA1' 15  '' '' it_fcat,
    4 'NAME2' 'KNA1' 15  '' '' it_fcat.
    *loop at itkna1.
    itkna1-ktokd_hdl = sy-tabix."gt_hypetab-handle.
    *ENDLOOP.
    *modify itkna1.
    *prepare layout
    it_lyo-grid_title = 'Custormer details'.
    call screen 200.
    module status_0200 output.
    set pf-status 'MAIN100'.
    set titlebar 'MAIN100'.
    *creating an instance of container class
    create object it_container
        exporting container_name = it_custom_control_name.
    *creating an instance of the grid
    create object it_alvgrid
        exporting i_parent = it_container.
    create object event_receiver.
    set handler event_receiver->handle_toolbar_set for it_alvgrid.
    set handler event_receiver->handle_double_click for it_alvgrid.
    set handler event_receiver->handle_user_command for it_alvgrid.
    set handler event_receiver->handle_hotspot_click for it_alvgrid.
    *displaying the grid
    call method it_alvgrid->set_table_for_first_display
       exporting
         is_layout = it_lyo
         "it_hyperlink = it_hype
         it_hyperlink = gt_hypetab
       changing
         it_outtab = itkna1[]
         it_fieldcatalog = it_fcat
       exceptions
         invalid_parameter_combination = 1
         others = 2.
    endmodule.
    *class definition for hotspot click
    class lcl_event_receiver implementation.
      method handle_hotspot_click.
        data t_d1 like line of itkna1.
        read table itkna1 into t_d1 index es_row_no-row_id.
        set parameter id 'KUN' field t_d1-kunnr.
        call transaction 'XD03' and skip first screen.
      endmethod.
      method handle_user_command.
        case e_ucomm.
          when 'REFR'.
            perform refresh.
          when 'TOOLBAR'.
            call method sender->set_toolbar_interactive.
         endcase.
      endmethod.
      method handle_double_click.
    message i000(0k) with 'Zeile'(010) e_row 'SpaltenID'(002) e_column.
        message 'double click' type 'S'.
        call method cl_gui_control=>set_focus
          exporting control = it_alvgrid.
      endmethod.
    method handle_toolbar_set.
      clear gs_toolbar.
      move 'DELE' to gs_toolbar-function.
      move icon_delete to gs_toolbar-icon.
      move 'Mein Löschen'(111) to gs_toolbar-quickinfo.
      move ' ' to gs_toolbar-disabled.
      append gs_toolbar to e_object->mt_toolbar.
      clear gs_toolbar.
      move 'REFR' to gs_toolbar-function.
      move icon_refresh to gs_toolbar-icon.
      move 'Mein Refresh'(112) to gs_toolbar-quickinfo.
      move ' ' to gs_toolbar-disabled.
      insert gs_toolbar into e_object->mt_toolbar index 1.
    *del  APPEND GS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
      clear gs_toolbar.
      move 'MBUT' to gs_toolbar-function.
      move icon_checked to gs_toolbar-icon.
      move 'My Menubutton'(101) to gs_toolbar-quickinfo.
      move 2 to gs_toolbar-butn_type.
      move space to gs_toolbar-disabled.
      append gs_toolbar to e_object->mt_toolbar.
      clear gs_toolbar.
      move 'MBUT1' to gs_toolbar-function.
      move icon_cancel to gs_toolbar-icon.
      move 'My Menubutton disabled'(102) to gs_toolbar-quickinfo.
      move 2 to gs_toolbar-butn_type.
      move 'X' to gs_toolbar-disabled.
      append gs_toolbar to e_object->mt_toolbar.
      call method cl_gui_control=>set_focus
        exporting control = it_alvgrid.
    endmethod.
    endclass.
    module user_command_0200.
      case ok_code.
        when 'BACK'.
          perform exit_program.
        when 'EXIT'.
          perform exit_program.
        when 'CANCEL'.
          perform cancel.
        when 'REFRESH'.
          perform refresh_table.
      endcase.
    endmodule.
    *module to perform cancel function to cancel the action
    form cancel.
    endform.
    *module to refresh the screen
    form refresh.
    message 'REFRESH' type 'S'.
    endform.
    *module to make the exit button on the toolbar to exit
    form exit_program.
      call method it_container->free.
      set screen 0.
      leave screen.
    endform.
    *module to refresh the internal table after a modification is made
    form refresh_table.
      message 'refresh table' type 'S'.
    endform.
    *filling the field catalog internal table
    form prepare_fieldcat using pos p_fname p_tabname len p_hspot p_hdl t_fcat type lvc_t_fcat..
    data tmp_fcat like line of it_fcat.
    clear tmp_fcat.
    tmp_fcat-fieldname = tmp_fcat-ref_field = p_fname.
    tmp_fcat-ref_table = p_tabname.
    tmp_fcat-outputlen = len.
    tmp_fcat-col_pos = pos.
    tmp_fcat-hotspot = p_hspot.
    tmp_fcat-web_field = p_hdl.
    append tmp_fcat to it_fcat.
    endform.

    did you use pf-status in ur program,if so click on pf-status ,then use BACK,EXIT,CANC all are should be Upper case

  • User Exit---Include problem

    Hi all
    am creating a user exit ZFF67 and in the the enhancement assignment am giving as F40K0001.But when i go back and after saving and activating am going to the function module and there in the source code am double clicking on   INCLUDE ZXF40U01 but am getting a warning meessage
    Program names ZX... are reserved for includes of exit function group.Am getting the same error even if am trying to create some other user exit.If its a BASIS issue and if you know the solution.Please do help me
    with regards
    Vijay.

    Hi
    Press ENTER..
    That should be only warning: the system are saying to you you're creating an abap object reserved for enhancement, but it's what you have to do.
    The system can't know you want to create an include for an exit, because you're in abap editor while doing the doubleclick.
    So you can go on.
    Regards
    Kiran Sure
    *P.S--Close the Duplicate Postings..

  • Kernel Panics, OS X exits, Sleep problems

    After reading through ALOT of the posts here it seems that many of us are experiencing alot of the same problems. Unfortunately I seem to have had a lot of them together. My MBP is currently back the second time for repairs and is "waiting on parts". Apparently the motherboard is being replaced this time. I am very suspicious that this may all be tied to the airport wireless since thats always up and running and connected to my Linksys AP. This should be interesting when I finally get it back.
    Problems include:
    Several Kernel Panics a day
    MBP not "automatically" going into sleep mode
    When set to "automatically" go into sleep after a period of time, and approximately an hour passes, the MBP cannot be woken up...I don't believe its' really sleeping but the screen is blank, BUT the light is not strobing on the front indicating true sleep mode.
    Shorter than expected battery life even though the battery is not on the recall list. (based on serial #).
    This is my first experience with a Mac and I have to say I am a bit surprised at the type of issues I am having since Apple seems to tout the stability of their Macs.
    Thoughts anyone??
    MBP 15 inch   Mac OS X (10.4.7)   2GB 3rd party RAM

    If you are getting several kernel panics a day, the machine or something about it is broken.
    You can probably just call apple and get them to fix it, but there are a few troubleshooting steps you might want to take.
    First off, disconnect any external FW or USB periphs, and take out any RAM that you may have added after market. See if it still dies.
    You will probably want to try a system software re-install, because Apple will, and if you have tried it first, they will not waste the time. Further, a bad install can cause problems like this. Since that does take a few hours, though, you might want to see if the problems happen using just apple apps, and using just apple apps in a plain user account created from scratch. If they do, then you should try a system software re-install. Do an archive install, and do not move any of your old pref panes and startup software over just yet.
    Assuming it still dies, then you are ready to call Apple and get them to fix it. MBPs should not crash several times a day with a kernel panic. I have run one of my machines for months without a CP. Another one does have this problem, and it is going to go in to AppleCare as soon as I can spare it for a few days.
    Scott

Maybe you are looking for

  • Very slow broadband in Greenwich area

    Hi, My broadband speeds fell off a cliff recently. Been noticing disconnects in recent weeks, now getting speeds of about 350k upload on a line capable of 6.5mb. Help line is useless - tried to diagnose my wifi despite my explaining I was looking at

  • How to have a mandotory field in a standard screen.

    Hi, i need to have the field VERAK_USER-CSKSZ (User Responsible)  as mandatory in transaction KS01/KS02 and KS12. does anyone know how to proceed with this issue? thanking you Regards, Nitin

  • Specify File Path in Email

    Hi, I am trying to specify a file path in an email so that when the receipent open the email, s/he can just click on the file path that I specified in the email and open the file. On Windoze, I can type something like (I might not type the syntax com

  • Changing object name of role is not reflected

    When I change the Current Object Name for a specific role this change is not reflected. The role still retains it original name in the PCD or when I assign the role to a user. This only happens for a specific role in our system. For all other roles t

  • Web Apps published on two separate ports

    Dear All, I have already seen several cases, but looks like I did not get through the resolution of my problem. I have two Sharepoint 2010 applications under internal sharepoint machine called internal.local. On the machine I have 2 separate web Apps