At Exit-command  not working

Hi experts.
I am working on At Exit command and in my screen i have field validation and i have coded AT EXIT COMMAND in my PAI to execute when we exiting BACK/CANCEL/EXIT. I have taken Function type as "E' in GUI. but too i am not able to exit without field validation and when i debug the control is not coming to At exit Module. plz help me on this..
waiting for your suggestions.
Mahesh

Hi Mahesh,
Please try following code.
PROCESS AFTER INPUT.
  MODULE leave_dynpro AT EXIT-COMMAND.
CHAIN.
    FIELD  v_lifnr.
    FIELD wv_ebeln.
    MODULE check_ebeln  ON CHAIN-REQUEST.
  ENDCHAIN.
  FIELD v_lifnr  MODULE check_lifnr  ON REQUEST.
  CHAIN.
    FIELD wv_lfsnr.
    MODULE validate_delivery_no ON CHAIN-REQUEST.
  ENDCHAIN.
  MODULE user_command_0100.
PROCESS ON VALUE-REQUEST.
  FIELD wv_lfsnr MODULE f4_vbeln.
*&      Module  LEAVE_DYNPRO  INPUT
      text
MODULE leave_dynpro INPUT.
  PERFORM leave_dynpro.
ENDMODULE.                 " LEAVE_DYNPRO  INPUT
Regards,
Anil

Similar Messages

  • Cancel and Exit button not working

    Dear Experts,
    <u>Cancel and Exit button not working</u>
    I am calling a screen from inside a report program
    using SET SCREEN 9000.
    2 of the date fields(start date end date)
    on this screen are Mandatory.
    I am not able to Come out of this screen 9000 using
    CANCEL or EXIT button
    without giving a date entry in both of
    Mandatory fields (start date end date).
    Can someone help me with a solution?
    Appreciate your valuable help;
    Points assured
    Thanks,
    Aby Jacob

    Hi..
    To avoid this problem you have to use AT EXIT-COMMAND Module.
    1. In the GUI Status for both EXIT and CANCEL buttons assign the Function type E (Exit Command)
    2. In the PAI of the Screen Call this module.
       MODULE EXIT_SCREEN AT EXIT COMMAND.
    3. Now check the OK_CODE or Sy-ucomm in this module to Leave the Screen
       MODULE EXIT_SCREEN  INPUT.
           CASE OK_CODE.
          WHEN 'EXIT' .
                LEAVE TO SCREEN 0.
          WHEN 'CANCEL'.
          ENDCASE.
       ENDMODULE.
    This will surely work.
    <b>reward if Helpful.</b>

  • Alt ctrl c shortcut command not working in photoshop cc, it is opening Internet explorer (IE)

    In Photoshop CC 2014  Alt + Ctrl + C ( to open for canvas size dialog box ) command not working, it is opening Internet Explorer (IE)

    What version of windows are you using?
    See if the Internet Explorer shortcut has that keyboard shortcut assigned to it.

  • Bash commands not working after upgrade to Lion

    After upgrade, many BASH commands not working. For example, such a fundamental thing as "ls". 
    iMac20:bin a$ ls
    Launch of "ls" failed: the PowerPC architecture is no longer supported.
    What does it have to do with PowerPC? My computer is 2.66 GHz Inter Core Duo

    Linc,
    iMac20:~ a$ which ls
    /sw/bin/ls
    Also, I managed to look (using tcsh's ls-F command) into the contents of /usr/. Here's what I see there:
    [iMac20:/bin] a% ls-F
    [*          csh*        echo*       ksh*        mkdir*      rcp*        stty*       wait4path*
    bash*       date*       ed*         launchctl*  mv*         rm*         sync*       zsh*
    cat*        dd*         expr*       link*       pax*        rmdir*      tcsh*      
    chmod*      df*         hostname*   ln*         ps*         sh*         test*      
    cp*         domainname* kill*       ls*         pwd*        sleep*      unlink*    

  • Why is my BDC_CURSOR command not working to position the cursor?

    Why is my BDC_CURSOR command not working to position the cursor?  Here are the details regarding my issue.
    I am writing a BDC to mass delete routing material assignments using transaction CA02.  I am OK to navigate through the initial screen to go to the Header screen and from here I am OK to navigate to the Material Assignments screen.  But once here, I cannot get the BDC_CURSOR command to take me into the list.  Here are the commands I am using.  Please let me know what I may try differently.
    CA02 Material Assignment - Set position  <-- this resets list of materials to correct position
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'   '=ENT1'.
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
    CA02 Material Assignment - Delete
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'MAPL-MATNR(01)'.    <-- this is not working to set the cursor into the list
      PERFORM bdc_field       USING 'BDC_OKCODE'  '=LOE'.             " trash can
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
    CA02 Material Assignment - Green Check OK
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'   '=BACK'.            " check mark
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.

    Thank you for your reply.
    I had used SM35 to record.  However, I was not aware of the "create program" feature.  I had commented out a section from my previous post which I have now added back (latest code below).  But it still did not resolve the issue.
    When I execute with dismode = 'N', I get back error message "No batch input data for screen SAPLCZDI 1010".
    When I execute with dismode = 'E' (only show dynpros when error), it stops at the material selection screen without placing my cursor in the list.  I can then MANUALLY click to set the cursor position in the list, MANUALLY click the trashcan, it then uses my BDC command to respond to the popup asking "Do you want to delete", still leaving me at the material selection screen.  I can then MANUALLY click the green check (or enter), then it continues with the BDC to go back to the previous screen, and saves.  But it still will not place my cursor in the material selection list (SAPLCZDI screen 1010).
    Here is code used.  It is the second section of code labeled "CA02 Material Assignment - Delete" that is not working.
    CA02 Material Assignment - Set position
    this code functions to position the desired material to first in screen list
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENT1'.
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.
    CA02 Material Assignment - Delete
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR' 
                                    'MAPL-MATNR(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=LOE'.             " trash can
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.
    Acknowledge Pop-Up Screen
      PERFORM bdc_dynpro      USING 'SAPLSPO1' '0100'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=YES'.
    CA02 Material Assignment - Green Check OK
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BACK'.            " check mark
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.

  • Exit button not working can u say how to do that?

    Exit button not working can u say how to do that?

    Which version are you using, please the exact number? Exit depends also on the browser, not only on Captivate.

  • Odi os command not working with agentservice agent.

    dear all,
    odi os command not working with agentservice agent but with local agent it work fine.. and user is administrator.
    kindly solve it
    Regards
    Naseer

    Hi,
    you referred to oscommand, so are you executing a .bat fille? if yes, where exactly does the .bat file reside, local machine or on network share?
    Also, follow these couple of documents, they may be helpful to you.
    859215.1 and 424703.1
    Regards
    Srikanth

  • Field Exits are not working in ECC6

    Hi Friends,
    We upgraded our 4.6C system to ECC6 but after upgradation field exits are not working. What could be the reason.
    We are using GUI version-7.1 and SP-10,Release-6.
    Rewarded,
    Steve

    Hi there,
    Try this link ... it could help you.
    [http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm|http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm]
    If not, give an example.
    I did the same upgrade without problems.
    Best regards.
    Valter Oliveira.

  • Crontab reboot command not working

    Crontab reboot command not working
    Greetings
    I am new at this so excuse any ignorant mistakes I might be making.
    I have a server (MM X.4.9) that I would like to restart every day in order to make sure no programmes are hanging etc. If a program is hanging is should force quit it. Using terminal I have entered the following command:
    sudo nano /etc/crontab
    Entered password
    Than I entered using tab between each sequence:
    15 13 1 1 * root reboot
    This was a test run and it did not reboot.
    Entering
    cat /etc/crontab
    I got:
    # The periodic and atrun jobs have moved to launchd jobs
    # See /System/Library/LaunchDaemons
    # minute hour mday month wday who command
    15 13 1 1 * root reboot
    What have I done wrong?
    Thanks

    Hehe, there you are experimenting with a "reboot" cron command and you are surprised it quit so fast. You are not going to find a "graceful" solution to shutdown dialogs.
    MSWord is a Java app, so it is especially important for the command to work that it doesn't get hung up on outer layers of the system. Especially stupid apps that use Java which is not well integrated. I believe Word has a 5 minute autosave, so you should be able to recover most of your document.
    This reboot command should be running around 2AM, when the average webserver has minimum traffic. If you feel the need to reboot during busier times of the day, I'd suggest you look at what's causing your applications to crash.

  • Illustrator Short Commands Not Working

    Hi Team,
    My illustrator CS6 short commands have stopped working.
    Any time I try to use any CMD + Key, illustrator will not react.
    This has been on going for a few months, I have tried resetting preferences but nothing has changed.
    If someone could please help.
    Thanks,
    Brandon

    Hi Jacob,
    I have tried resetting preferences and few other options.
    Anytime I press the CMD key the option at the bottom just changes from selection to direct selection, if that helps.
    Should I uninstall and reinstall illustrator?
    I no longer have my access key.
    Thanks,
    Brandon
    Date: Wed, 8 Jan 2014 15:39:58 -0800
    From: [email protected]
    To: [email protected]
    Subject: Illustrator Short Commands Not Working
        Re: Illustrator Short Commands Not Working
        created by Jacob Bugge in Illustrator - View the full discussion
    THS,
    You may try the following (you have tried/done some of them already) and see whether it helps (the following is a general list of things you may try when the issue is not in a specific file; 3) and 4) are specifically aimed at possibly corrupt preferences):
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press CtrlAltShift/CmdOptionShift during startup (easy but irreversible);
    4) Move the folder Other options (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
      http://www.adobe.com/support/contact/cscleanertool.html
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5994475#5994475
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5994475#5994475
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5994475#5994475. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Illustrator at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?

    Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?

    Here's where you need to change the settings: System Preferences > Keyboard > Keyboard Shortcuts:

  • Exit button not working in Captivate 7 published output

    Hi. I am using Capivate v7 and am experiecing this problem with published output:
    I am using an Exit button that runs the standard javascript code
         javascript:window.close()
    so that the user can exit the presentation. The button works fine when I test out the presentation using Internet Explorer 8, but when I generate an output and try running the .swf file, the button does not work.
    How do I get an Exit button to work for the .swf output?
    Thanks,
    - Michael Fekete

    Yes, the close X does work 100% of the time. That's because the browser itself is just a window in the operating system. And you are commanding the window to close.
    And you might find yourself asking why that would work while the Exit button fails. And it would be that it's a security issue. Security prevents the window from closing because if a web site was nefarious, it could actually trap you by making changes and quickly closing the window and preventing you from browsing elsewhere.
    It's simple to turn off the Exit button. Just click Project > Skin Editor and clear the Close checkbox.
    Cheers... Rick

  • Suddenly won't boot, start up commands not working... am I out of luck?

    Funny, this is my first mac being a hardcore and longtime PC user as my "test" mac... everything works perfectly... of course until 12 days after my warranty is up...
    This morning on waking up my mac to turn on some music in iTunes, i click on the iTunes window to bring it into focus. It suddenly closes and dissapears, on returning to the shortcut bar (the tray at the bottom for programs, i don't know what mac users call it) and click on iTunes ot relaunch it after its crash/dissapearance, the task tray then decides to suddenly dissapear/crash (don't know which, it's like a crash but best described as a vanishing act as it doesn't lag or churn before dying, just vanishes).
    Possibly related to this issue, not long ago my iChat stopped working, whenever i launched it, it would stay open for a couple seconds and automatically closed. I could sit there all day clicking it, it would open, 2 seconds later, close. I gave up on that. I gave up on that a week ago.
    Shortly after my iTunes dissapeared/crash and then after the program tray also dissapearing. my mac mini reboots. Except it's stuck on the screen with the mac apple in the middle of the screen with the moving (yes it's moving) pinwheel on the bottom center of the screen. I let it sit there for a long while... 15 minutes pass nothing happens.
    I try rebooting... same thing happens.
    I'm go on my PC (Which i'm now typing from) and start searching for solutions. apple support pages suggest I try safe mode with shift.
    SAFE MODE: Won't work. I tried pushing both shift buttons on my keyboard at different times (before the start up tone, immediately after the beggining of the start up tone, and after the start up tone finishes) all that happens is, I get the same pinwheel/apple screen that is "loading" (according to the pinwheel) forever.
    I went to forums, read up on other different commands like holding down "X" or option command P+R.... X does the same as the not-working safe mode... option command P+R continually reboots the computer.
    And in the end I'm still at square one. thouroughly frustrated. wishing my mac mini was a PC (as i've never had a PC problem I can't fix) Ironic experience... PCs, break often, easily fixed, no support needed.... Macs: rarely break, when they do, support needed, but support from apple expires 12 days ago, not easily fixed... and now I think i'm screwed out of the 700$+ i payed for this POS and I've lost my whole iTunes library, all the CDs i've loaded onto it, and all the music and TV shows i've purchased from the apple music store. Good game, apple takes a bunch of money, refuses to support my product which is now dead (had a similar situation with an iPod I had bought for my girlfriend).
    My only hope is... I know mac users have a happy helpful community and always band together to help fellow mac users, something the PC world doesn't as-cohsively have. So...
    Help me Obi-Wan Kenobi... you guys are my last and only hope.
    Thanks in advance.
    -John

    Hi, John. Welcome to the Discussions.
    1. You wrote: "I get the same pinwheel/apple screen that is "loading" (according to the pinwheel) forever"The "pinwheel" is known as a "spinning gear progress indicator."
    This, combined with the other issues you've reported, sounds like problems with the hard drive. I suggest you begin troubleshooting using the Procedure specified in my "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.
    2. You wrote: "...the shortcut bar (the tray at the bottom for programs, i don't know what mac users call it)"It's called the Dock. See "Mac OS X: About the Dock."
    3. You wrote: "...this is my first mac..."My "Learning About Mac OS X" FAQ has a number of resources that you will find helpful including books, online training, and more.
    4. You wrote: "...Macs: rarely break, when they do, support needed, but support from apple expires 12 days ago, not easily fixed..."You should have bought the AppleCare Protection Plan (ACPP) before your warranty expired. The ACPP provides a two-year extension on the warranty and three years of telephone support.
    PS: Word to the Wise: watch the language. I appreciate your frustration, but don't let it into your posts. These forums are "family friendly" and a good way to get banned from them is to rant, use profanity (including profane abbreviations), etc. What passes for "acceptable behavior" on most PC/Windows forums is not tolerated here.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Exit button not working in MS Explorer

    Hi. The exit button in our Captivate courses are not working
    all of a sudden. They work in FireFox but in MS IE. We are using
    Capivate 2.0. IE version is 6.0.

    Hi Apparo,
    In onAction method of the Exit button, a call is made to the TargetExitApplication as follows:
    fpm.navigate(wdThis
    .wdGetFcNavigationInterface()
    .getNavigationTargetExitApplication());
    Also, the Exit button does work in the Address Overview/Edit/Review Page, but not in W-4 Tax and Benefits Enrollment.
    Any help on this problem !!!
    Regards,
    Adren

  • Exit Button not working in ESS

    Hi All,
    We have configured ESS in our landscape. When I go to any Overview/Edit/Review Page (in W-4 Tax, Add/Change dependents etc..), the Exit button which is present is not working. When I click the Exit button, it doesn't exit the current view,  but instead stays at the current location.
    Can anyone tell me the reason for this strange behaviour? Also, where should I make the code level changes for the Exit button work.
    Any kind of help would be greatly appreciated.
    Regards,
    Adren

    Hi Apparo,
    In onAction method of the Exit button, a call is made to the TargetExitApplication as follows:
    fpm.navigate(wdThis
    .wdGetFcNavigationInterface()
    .getNavigationTargetExitApplication());
    Also, the Exit button does work in the Address Overview/Edit/Review Page, but not in W-4 Tax and Benefits Enrollment.
    Any help on this problem !!!
    Regards,
    Adren

Maybe you are looking for