Exit button for ActionScript 3.0 class

Hi
I want to exit my swf or exe file using the exit button, I try this code but its not working
package  {
                    import flash.display.SimpleButton;
                    import flash.display.MovieClip;
                    import flash.events.MouseEvent;
                    import flash.system.fscommand;
                    public class b_exit extends SimpleButton {
                    public function b_exit() {
                              this.addEventListener(MouseEvent.CLICK,clickF);
                    private function clickF(e:MouseEvent):void{
                              fscommand("quit");

This one work when you hit the back or home button:
import flash.system.Capabilities;
import flash.desktop.SystemIdleMode;
if (Capabilities.cpuArchitecture == "ARM")
NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, handleActivate, false, 0, true);
NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, handleDeactivate, false, 0, true);
NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN, handleKeys, false, 0, true);
//==================================================================
public function handleActivate(event:Event):void
NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
//==================================================================
public function handleDeactivate(event:Event):void
NativeApplication.nativeApplication.exit();
//==================================================================
public function handleKeys(event:KeyboardEvent):void
if (event.keyCode == Keyboard.BACK)
NativeApplication.nativeApplication.exit();

Similar Messages

  • Exit Button for Adobe Reader

    Hello,
    I really need to create an exit button for use within Adobe Reader. I am using Adobe Acrobat and will use any javascript that works.
    My understanding is that Adobe does not allow this functionality. Could someone link me an official reason/response as to why this is?
    Also, if anyone has any ideas to get around this, please let me know. These PDFs will open in a program in full screen. A simple exit button, or even a minimize button, would allow them to go straight back to the program. Now it only closes the document, leaving Adobe Reader still open. It just looks unprofessional and adds an annoying step to getting back to the program. Please help.
    Thank you for your time.

    Here where it's documented: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.143.html
    It makes sense because one document should not be able to automatically close Acrobat/Reader, which may have multiple documents opened.

  • How to make Exit button for Out-of-browser application

    Greetings all,
    This sounds so simple, yet I can't find anything about it.  I want to make an Exit button in a Silverlight 4 Out-of-browser application.  When the user clicks the button, the application is to quit or close or exit.  (The same effect as if the user clicks
    the red X icon in the upper right-hand corner of a window.)
    Any ideas will be appreciated.

    Jonathan --
    Yes, the word Page has taken on many meanings in the last 15 years.  I'll clarify.  When I make a simple Silverlight OOB (out-of-browser) application using Visual Studio 2010, I ask Visual Studio to Add New Item, then choose Silverlight Page.  Let's
    say I name it Page2.xaml.
    By default VS2010 already made another page for me, MainPage.xaml.
    Now, here is my need:  On the page called MainPage.xaml, I want to place a large button that says Exit Application.  When the user clicks that button, I want the application to end and the entire window to close.  This is the standard behavior in most traditional Windows
    applications, for example in Microsoft Word or Microsoft Excel or Microsoft Access.  In any of those traditional applications, the user can, from the menu, choose File/Exit.  If he does, then not only does the application quit, but also the window
    closes itself.  The user doesn't have to click the small red X icon in the upper right corner. 
    That simple behavior of almost all traditional Windows applications, large and small, is what I'm looking for in my simple Silverlight
    OOB applications:  An Exit command that quits the application and closes the window itself.
     Sorry for the confusion.  I really appreciate your help.  Any ideas?

  • Exit button for .swf or projector?

    Hi All,
    I am admittedly a complete novice, so please bear with...just completed Lynda tutorial on Flash Pro cs5.
    Just trying to do a simple animation with an exit button to close out the player (projector, Flash Player). I have seen several discussions on the same, and have tried all example code to no avail. I am testing through publishing, not preview and it does not function as an exit button.
    Have tried:
    on(release){
    fscommand("quit");
    ...and...
    import flash.events.MouseEvent;
    exitButton_mc.addEventListener(MouseEvent.CLICK, function()
            fscommand("quit");
    I created the button symbol, selected it and then selected the first keyframe on that layer...entered AS3 window and tried the above code. No luck : /
    Any help would be greatly appreciated! I searched through the forum and was unable to locate the answer to this question. Apologies if I missed it somehow.
    Thanks in advance!!!

    I created an example which works just fine. You can download it here: http://dev.flashlabs.eu/examples/fscommand/source.zip
    The source looks like this:
    import flash.display.StageScaleMode;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    btn_exit.addEventListener(MouseEvent.CLICK, exitBtn_clickHandler);
    function exitBtn_clickHandler(event:MouseEvent):void {
        fscommand("quit");

  • Exit Button for a Quiz

    Hi Guys,
    Anybody know how to add an exit button to a quiz? I want my quiz to play full screen so the user won't be able to close the window, but I do require an exit button to get off the quiz.
    I don't seem to be able to add a button. Any solutions/workarounds?
    Thanks
    Ali

    You cannot add any interactive object to a question slide, nor to the score slide.
    The only 'hybrid' button you can add is the static button widget, but it has a limited choice of actions, and Exit is not one of them.
    But you could define the action on End of the project (Preferences, Project, Start, End) that is normally set to Stop Project, to Close the project.
    If you really want a button, you'll have to add an extra normal slide on which you'll be able to insert a button.
    Lilybiri

  • Build Exit Button For Web Course

    I hope this is not too generic a question for this forum,
    however, I need to build an exit feature for a web course and I
    have no clue how. I'm using Dreamweaver 8 and I even have .js code
    for exit but have no idea how to link it with the exit icon in the
    course. Can someone walk me through it?

    What is it you are exiting from?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "semaj06" <[email protected]> wrote in
    message
    news:fgv695$8em$[email protected]..
    >I hope this is not too generic a question for this forum,
    however, I need
    >to
    > build an exit feature for a web course and I have no
    clue how. I'm using
    > Dreamweaver 8 and I even have .js code for exit but have
    no idea how to
    > link it
    > with the exit icon in the course. Can someone walk me
    through it?
    >

  • Exit Button script won't work in Adobe Reader 8

    Hello,
    I have this code on Exit button for pdf form:
    app.execMenuItem("Close");
    Or
    to give warning before Exit: Have a second RealExit Button hidden to execute the code
    var answer = xfa.host.messageBox("Are you sure you want to Exit?","Warning Message",2,1);
    if(answer==1){
    RealExit.execEvent('click');
    I tried both the code one at a time but no luck in Adobe Acrobat Version 8, works like a charm in Adobe Acrobat 9
    I would like the user to click the Exit button if they choose to exit. However it doesn't work in Adobe Acrobat 8 but works in 9 version. Is there a work around? Any suggestions???
    Thanks

    This answer may not be a big help but sure will give you some level of understanding....
    Check the URL>>>http://kb2.adobe.com/cps/402/kb402673.html
    Check the section "PDF Forms-related issues:" starting mid page.....
    Not all releases/versions are good. Some releases tend to have some bugs...the version you tested could be one of them. Adobe always recommends to be on the latest version. If client still on older version that is client's problem especially there should not be any restrictions on upgrading to Latest version when the software is free!

  • ESS - Time Accounts- Exit button not working

    We have implemented ESS Business Package, the Time Accounts application's Exit button is not working.
    When we click on Exit, it is not doing anything. In Development env it is working fine, but when it comes to quality it is not working.
    suggest me if we can solve this problem.

    Hi Kiran,
    We had a same problem with "Exit" button for "Benefits Enrollment" in both dev and quality systems. As a workaround we redirected to the specific iView using WDPortalNavigation.navigateAbsolute on clicking "Exit  button".
    Hope this helps.
    Regards,
    Adren

  • Exit button - Germany Personal data service does not work

    Hi all,
    We just upgraded our portal to EP7 Sp22 with 1.3 ESS Business Package and 603 XSS components in the back-end.
    In testing Germany and all countries that use the Germany personal data service, the Exit button on all screens (Overview, Edit, Review and Save, Confirmation) does not work. The Exit button, when selected, keeps the user on the same screen. 
    I am not sure where the button is configured, but it should always take us back to the page from where the service was launched.  So if I accessed through the Overview page or Personal Information page, and then click on the exit button, I should be taken back to one of those pages.
    Where can we configure the exit button for the German Personal data service, so that it works and takes the user back to the page where they started.....?
    Cheers!, Neeta

    Hi,
    The Germany personal data service is the only one where the exit button is not working. All other countries are testing fine.
    Is it a customization issue on the back-end? The resource in spro for germany is configured with the pcd link of the german personal data i-view.
    The other countries are also customized in the back-end with the pcd link of the appropriate i-view.
    Regards, Neeta

  • Import and/or export for actionscript without extention?

    I have a project in which I need to import several hundered png images.
    When I import them into the library, then select all the images, then view the properties, I Check the export for action script and the export in frame 1.
    Now, all my images have class names that I can access though my code, however, it included the file extensions in the class names, thus making invalid class names.
    Is there any way I can import and/or set class names so they do not include the file extensions without having to do it manually for EVERY file?

    My actual project has something like 9200 images in it.
    if  my main project, let's call it "main.fla", was to contain every one of  those images, every time I tried to run or debug it, it would take  FOREVER to compile... as a work around that I discovered in a previous  project was to put all my graphics and media into an swc file. (Let's  call it MyLibrary.swc)
    While I was trying to get the  swc working, I discovered that while my media in the swc was indeed  setup to be exported for actionscript with unquie classes and  everything, when I compiled and built my project, I could not get any of  those media elements using the getDefinitionByName function.
    After alot of reading and trail and error I found that the only way to get it to work was to have someplace in my code, an actual reference to the objects that I was trying to get with getDefinitionByName. It turned out, that without instantiating the object in the code, the compiler was omitting it.
    Now, but instantiate, I mean doing this:
    var bm:BitmapData = new MyImage();
    Where MyImage.png is in my swc and has a class defined as "MyImage"
    Once I do that, then I can do this
    var classRef:Class = Class(  getDefinitionByName("MyImage")  );
    But without that line above SOMEWHERE in my code (even if it's not actually executed), the getDefinitionByName returns an error saying it can't find the class.
    Now, here's the problem.
    When I import all my images into my swc library they get named with the file extention... "MyImage.png" and when I select all the images that Imported and batch set the export for actionscript, they get automatically assigned a class name equal to their library name, so the class name is "MyImage.png"
    so if I wanted to use getDefinitionByName to access the class, I would need to instantiate it in my code by doing this:
    var bm:BitmapData = new MyImage.png();
    BUT, that is erronous as the period causes an error and the adobe docs says right in it that class names can't use periods or any other non-alphanumeric character.
    So while the getDefinitionByName function DOES actually work with classes with periods in them, because my media is external of the main.fla, I can't load it unless it's instantiated first, which leaves me right back where I was.... having to to manually rename over 9000 classes manually one at a time.
    I did some searching and found the "Flash Library Renamer" extension, but it requires me changing all my class names to be sequenial, which the vast majority is not.
    Is there a way that I can import the files into the library and have it omit the file extension?
    if not, is there a way that I can set the class names in a batch and not have it use the file extentions?
    if not, is there an Flash Extention or plug in that will allow batch renaming using regular expression or wildcards?

  • "Exit" Button to destroy Xlet-why does it not work???

    Hey there!
    I am very confused with KeyEvents in MHP and kind of stuck..
    I just want an EXIT Button for my Xlet-that's all!! I tried to different ways:
    The first one is compiling without any errors but it just does not work, either in XletView 3.6 nor in the IRT Implementation..Is there something i missed?
    Here is (a piece of) my first code:
    public void keyPressed (java.awt.event.KeyEvent KeyEvent) {
    int key = KeyEvent.getKeyCode();
    if (KeyEvent.getSource() == butt1 && key == HRcEvent.VK_ENTER)
    try {
    destroyXlet(true);
    catch (XletStateChangeException ex){
    butt1 is the "Exit" Button.
    I also tried this Code using the dvb UserEvent and UserEventRepository which worked pretty well with XletView, but failed when testing it with the IRT..
    public void userEventReceived(org.dvb.event.UserEvent userEvent) {
    int key = userEvent.getCode();
    if (userEvent.getSource() == butt1)
    if ( key == HRcEvent.VK_ENTER){
    try{
    destroyXlet(true);
    catch (XletStateChangeException ex){
    Why does this one not work with the IRT-Implementation?? Nothing happens at all when pressing ENTER on the RC..
    Has somebody an idea or fixed out which kind of mistake i made?
    As i said i am really stuck and i had a look at many examples, but nothing worked at all!!

    Hello Steve!
    Unfortunately your suggestion did not work too..
    I added context.notifyDestroyed() to destroyXlet(), the problem is that my application does not react on pressing VK_ENTER..
    Do you have any other ideas?
    The second code with dvb events just works without adding notifyDestroyed,
    but just with XletView, not with the IRT RI..

  • Button for grid display

    Hi friends.
    I have a requirement where in I need to give a button to each line in the alv. I have been able to achieve this feature. Now, I need to add an image on this button and a click on this button would perform a different operation.
    Can we achieve this using ALV with OOPS and using Reporting.
    Thanks
    chandra..

    Hello Chandra
    The sample report ZUS_SDN_ALV_EVT_BUTTON_CLICK shows how to fulfill you requirements.
    For the sake of simplicity I overwrote the company code in column BUKRS with the icon. Obviously it makes more sense to add a BUTTON column to the fieldcatalog.
    *& Report  ZUS_SDN_ALV_EVT_BUTTON_CLICK
    *& Thread: Button for grid display
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="788773"></a>
    *  Flow logic of screen '0100' (contains no dynpro elements):
    *  PROCESS BEFORE OUTPUT.
    *    MODULE STATUS_0100.
    *  PROCESS AFTER INPUT.
    *    MODULE USER_COMMAND_0100.
    REPORT  zus_sdn_alv_evt_button_click.
    TYPE-POOLS: abap, icon.
    DATA:
      gd_okcode        TYPE ui_func,
      gs_layout        TYPE lvc_s_layo,
      gt_fcat          TYPE lvc_t_fcat,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid.
    DATA:
      gt_knb1          TYPE STANDARD TABLE OF knb1.
    PARAMETERS:
      p_bukrs      TYPE bukrs  DEFAULT '2000'  OBLIGATORY.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_button_click FOR EVENT button_click OF cl_gui_alv_grid
            IMPORTING
              es_col_id
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_button_click.
    *   define local data
        DATA:
          ls_knb1     TYPE knb1,
          ls_col_id   TYPE lvc_s_col.
        READ TABLE gt_knb1 INTO ls_knb1 INDEX es_row_no-row_id.
        CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
        SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.
        SET PARAMETER ID 'BUK' FIELD p_bukrs.
        CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
    **   OR: show your popup
    *    call screen '0200' starting at 5   5
    *                       ending   at 10  20.
      ENDMETHOD.                    "handle_button_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      PERFORM select_and_modify_data.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent = cl_gui_container=>screen0
          ratio  = 90
        EXCEPTIONS
          OTHERS = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create ALV grid
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent = go_docking
        EXCEPTIONS
          OTHERS   = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set event handler
      SET HANDLER:
        lcl_eventhandler=>handle_button_click FOR go_grid1.
    * Build fieldcatalog and set button for field KUNNR
      PERFORM build_fieldcatalog_knb1.
    * Display data
      gs_layout-detailinit = 'X'.
      gs_layout-zebra      = 'X'.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          is_layout       = gs_layout
        CHANGING
          it_outtab       = gt_knb1
          it_fieldcatalog = gt_fcat
        EXCEPTIONS
          OTHERS          = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * ok-code field = GD_OKCODE
      CALL SCREEN '0100'.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  BUILD_FIELDCATALOG_KNB1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_fieldcatalog_knb1 .
    * define local data
      DATA:
        ls_fcat        TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
    *     I_BUFFER_ACTIVE              =
          i_structure_name             = 'KNB1'
    *     I_CLIENT_NEVER_DISPLAY       = 'X'
    *     I_BYPASSING_BUFFER           =
    *     I_INTERNAL_TABNAME           =
        CHANGING
          ct_fieldcat                  = gt_fcat
        EXCEPTIONS
          inconsistent_interface       = 1
          program_error                = 2
          OTHERS                       = 3.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT gt_fcat INTO ls_fcat
              WHERE ( fieldname = 'BUKRS' ).
        ls_fcat-style = cl_gui_alv_grid=>mc_style_button.
        ls_fcat-icon  = abap_true.
        MODIFY gt_fcat FROM ls_fcat.
      ENDLOOP.
    ENDFORM.                    " BUILD_FIELDCATALOG_KNB1
    *&      Form  SELECT_AND_MODIFY_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM select_and_modify_data .
    * define local data
      DATA: ls_knb1   TYPE knb1.
      SELECT        * FROM  knb1 INTO TABLE gt_knb1
             WHERE  bukrs  = p_bukrs.
      ls_knb1-bukrs = icon_customer.
      MODIFY gt_knb1 FROM ls_knb1
        TRANSPORTING bukrs
        WHERE ( bukrs NE ls_knb1-bukrs ).
    ENDFORM.                    " SELECT_AND_MODIFY_DATA
    Regards
      Uwe

  • FB70: User exit when the save button (for posting) has been click

    Hi ABAP Gurus,
    With regard to FB70, can anyone provide me the name of the user exit that will be triggered when the save button (for posting) has been clicked?
    Thanks!
    <b>
    Best Regards.
    Brando</b>

    Hello Brando,
    With FB70 I recommend you implement the user-exit via the Business Add-In (BADI) way and avoid SMOD exits if possible.
    The list below are the BADIs that are called by the <b>ECC6.0</b> system after you click the <b>Save</b> button to post a document. <u>They are listed in the order which they are called before the actual post</u>. You'll have to find the right one as per your requirement - you can view their definition via transaction SE18 then after you find the right one you need to use that definition to create an implementation via SE19. Here again, you'll have to choose the right method that suits your requirement. You'll find the method and class documentation in some cases with examples on how to implement, you need to write the code between the Method..EndMethod statement using the parameters provided by the Method.
    1. PPA_CUST_BADI
    2. FI_RES_ITEM_CURRENCY
    3. AC_QUANTITY_GET
    4. BADI_PRKNG_NO_UPDATE
    5. FM_POP_CORE
    6. FMRI
    7. FMRE_BUS_PROCESS
    8. FAGL_SET_SEGMENT
    9. EXIT_XFMPR1_001
    10. BUAVC_CHECK_RESTRICT
    11. UKM_R3_ACTIVATE
    12. CO_DOCUMENT_INFO
    I spent a bit of time debugging FB70 to find this info for you, please appreciate by rewarding points (or else
    Good luck.
    Cheers,
    Sougata.

  • How to terminate or exit a for loop when the user clicks on stop button

    Actually my problem is to stop a loop when i click on stop button.
    example:i have two buttons 'start' and 'stop'
    in start buttom i wrote a for loop as
    dim i as integer
    For i=1 To 100000
    print i
    Next
    when i click on start buuton it prints 'i' value up tp 100000.
    my question is when i click on 'Stop' button the for loop has to terminate or Exit from the  loop and should stops the execution.
    Is it possible to termianate or Exit the 'for loop'
    PS.Shakeer Hussain
    Hyderabad

    I am unable to stop the loop and application not at all allowing to Press the Stop button.
    It seems like Hung, any advise ?
    Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
            btnStop.Enabled = True
            btnSelectFile.Enabled = False
            btnStart.Enabled = False
            btnStop.Focus()
            Dim strFileName As String = txtFileName.Text.ToString
            Dim strLineText As String
            If System.IO.File.Exists(strFileName) = True Then
                Dim objReader As New System.IO.StreamReader(strFileName)
                While objReader.Peek() <> -1 And stopclick = False
                    strLineText = objReader.ReadLine()
                    MsgBox(strLineText, MsgBoxStyle.Information)
                    Application.DoEvents()
                    Thread.Sleep(My.Settings("strDelay") * 1000)
                    'System.Diagnostics.Process.Start(My.Settings("strFireFoxLocation"), strLineText)
                End While
            End If
        End Sub
        Private Sub btnStop_Click(sender As Object, e As EventArgs) Handles btnStop.Click
            stopclick = True
            btnSelectFile.Enabled = True
            btnStart.Enabled = True
            btnStop.Enabled = False
        End Sub
    Raman Katwal
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Custom Exit Button not working..looks for required input field on screen?

    I defined this EXIT button as type E in Menu Painter.
    I am using "MODULE At EXIT-COMMAND" in my PAI.
    SAP message still asks for the required input field when I select the function EXIT button?
    The logic still will not break into the At EXIT-COMMAND of my PAI?
       Thank-You.

    Hi
    Have you assigned variable OK_CODE in the list of screen element?
    IF NOT zin_railid is initial.
        LEAVE TO SCREEN 0100.
    ENDIF.
    Which is the sense to create a button for exit-command and doesn't allow the exit if the input field is empty?
    In SE41 I entered "Back" over the back button, "EXIT" over the exit button, and "CANCEL" over the cancel button.
    I selected each one, and got a popup to enter "E" for each type. As I said they appear, but do nothing?
    Did I need to set a status for these?
    No you don't, it's only important to define a functional having the attribute for EXIT-COMMAND
    Max
    Max
    Edited by: max bianchi on Nov 5, 2010 6:31 PM

Maybe you are looking for

  • What makes the Magsafe charging light remain dim (VERY PALE GREEN)?

    It is mentioned in threads going back to 2006 so the Magsafe charge indicator clearly has a *PALE GREEN* state -- in addition to amber, (bright) green, and off. Does anybody know what that *PALE GREEN* is supposed to indicate? I can't get to an Apple

  • Problem with Activating Adobe Forms

    Hi Everybody , I am developping an Adobe forms using Transaction SFP. I have developped Interface as well as form . While Activating Form :- Its not showing any Syntax Error. Still its not gettng Activated. What could be the reason ? Thanks in Advanc

  • Mapping Styles from Word 2010 to RoboHelp HTML 10

    Hello all, I have created customized styles for myself and my team to use for authoring content, which I then import to RoboHelp, as I am the only individual who understands RoboHelp and HTML/CSS. I created a corresponding CSS style sheet in RoboHelp

  • Generate file dunning (FPVA-PFVB)

    Hello, I need to generate a file after use in transaction FPVB with the parameters LAUFD and LAUFI. Can any person tell me if there is a EVENT, user-exit, badi or another way to generate the file? Thanks.

  • Xfce4 styles and themes

    where do you get your styles and themes for xfce4 from? or do you know about communitys for customize it?