Cancel in not working on Screen

Hello All,
I am writing a data entry program.  I am stuck........ once the user enters incorrect data - the cancel and back buttons don't work.  I thought I was following the example SAP provided, but my code doesn't work the way the examples does.
Could someone please take a look and see if you can see where I am going wrong.  Here is a portion of my code.....
                     Ticket Entry                                  *
CALL SCREEN 200.
                        MODULES                                    *
PBO  Proccess before output
MODULE PBO_0200 OUTPUT                                             *
MODULE pbo_0200 OUTPUT.
  SET PF-STATUS 'MAIN'.
  SET TITLEBAR '200'.
  CLEAR zinv_mm_count.
  zinv_mm_count-mandt = 003.
  zinv_mm_count-werks = 1000.
  zinv_mm_count-lgnum = 100.
ENDMODULE.                    "PBO_0200 OUTPUT
PAI  Proccess after input
MODULE CANCEL INPUT                                                *
MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.                    "cancel INPUT
MODULE BACK INPUT                                                  *
MODULE back INPUT.
  LEAVE TO SCREEN 0200.
ENDMODULE.                    "back INPUT
MODULE TICKET INPUT                                                *
MODULE ticket INPUT.
  SELECT SINGLE * FROM ztickets
         WHERE zticket = zinv_mm_count-zticket.
  IF sy-subrc EQ 0.
    CASE ztickets-zstatus.
      WHEN 'V'.              "Ticket has been voided
        MESSAGE e000(ztic).
      WHEN 'E'.              "Ticket has been entered
        MESSAGE e001(ztic).
      WHEN 'C'.              "Ticket has been completed
        MESSAGE e002(ztic).
      WHEN 'OTHERS'.
    ENDCASE.
  ELSE.                      "Ticket number is invalid
    MESSAGE e003(ztic).
  ENDIF.
ENDMODULE.                    "TICKET INPUT
MODULE PLANT INPUT                                                 *
MODULE plant INPUT.
  SELECT SINGLE * FROM t001w
         WHERE werks = zinv_mm_count-werks.
  IF sy-subrc NE 0.
    MESSAGE e004(ztic).
  ENDIF.
ENDMODULE.                    "PLANT INPUT
Flow Logic on the Screen........
PROCESS BEFORE OUTPUT.
  MODULE pbo_0200.
PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  MODULE BACK   AT EXIT-COMMAND.
  FIELD zinv_mm_count-zticket MODULE ticket.
  FIELD zinv_mm_count-werks   MODULE plant.
  FIELD zinv_mm_count-lgnum   MODULE whse.
  FIELD zinv_mm_count-lgort   MODULE sloc.
  FIELD zinv_mm_count-lgtyp   MODULE styp.
  FIELD zinv_mm_count-lgpla   MODULE sbin.
  FIELD zinv_mm_count-charg   MODULE batch.
  FIELD zinv_mm_count-matnr   MODULE part.
  FIELD zinv_mm_count-menge   MODULE qty.
  MODULE pai_0200.
  Thanks!
Helen

Go to the gui status,  drop down the function keys node on this screen,  you will see the buttons for top level navigation(save, back, exit, cancel).  Now double click on the back button,  you will get a dialog.  Now you need to enter "E" for the functional type, do the same for the cancel,  save and activate.
Regards,
RIch Heilman

Similar Messages

  • My phone was left in a car overnight and now is not working correctly, screen looks funny and I cannot make calls? Will they be able to assist in  a store?

    My phone was left in a car overnight and now is not working correctly, screen looks funny and I cannot make calls? Will they be able to assist in  a store?

    Make an appointment at any Apple store, see what the genius bar says/does.
    You don't metion whether the car was hot or cold.

  • Cancel Query not working

    Problem Summary
    Cancel Query not working on 11.5.10
    Problem Description
    While finding orders, window pops up the cancel query but when user tries to click the cancel button, query does not cancel.

    jemar98 wrote:
    Problem Summary
    Cancel Query not working on 11.5.10
    Problem Description
    While finding orders, window pops up the cancel query but when user tries to click the cancel button, query does not cancel.Please post the details of the application release, database version and OS.
    Was this working before? If yes, any changes been done recently?
    Please review (Canceling Long Running Queries in Oracle Applications 11i [ID 138159.1]) and make sure you complete all the steps.
    Thanks,
    Hussein

  • Ipad screen is locked.  SLIDE function will not work but screen does still rotate.

    ipad screen is locked.  slide function will not work but screen does rotate...

    Try this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • My iphone has a problem, it simply does not work, the screen is all black with a few colorful scribbles and images blend, I used it only took 6 days and returned to service when operated only 7 more days and it happened again the same thing, what do I do?

    My iphone has a problem, it simply does not work, the screen is all black with a few colorful scribbles and images blend, I used it only took 6 days and returned to service when operated only 7 more days and it happened again the same thing, what do I do?

    Reset the PRAM
    Reinstall the operating system from the dvd (you will not loose your data)

  • Internal Webcam and Microphone not working after Screen Fix

    I own a HP Envy Spectre XT Ultrabook, and last week I tried to use the webcam and the microphone for the first time in a few months.
    However I was shocked to find that Skype kept saying that the webcam was not detected. The microphone also could not register any sound.
    Device Manager did not show any imaging devices or the webcamera, even after setting it to view non-present devices.
    A check using msinfo32 did not review the webcamera either, and there were no problem devices.
    Control Panel >> Sound showed that the Internal Microphone using IDT High Definition Audio Codec was enabled and working, however it could not detect any sound. All drivers are checked to be up-to-date.
    I suspect this has something to do with the screen repair last month which a HP on-site technician came down to replace my screen, although I cannot be 100% sure. Although the screen is now working, the technician did not do a good job reassembling the screen - the bottom left corner of the screen cover has not be able to attach properly to the screen. 
    I have gone through my BIOS setup to make sure that there is no webcam disabled.
    I have tried rolling-back and reinstalling the drivers for the microphone but it did not work.
    I have tried uninstalling CyberLink YouCam (laptop preinstalled webcam software).
    Please help, these two components are very important to me as I am going overseas soon. The laptop is still under warranty.

    Hey ajun,
    Thank you very much for the information!
    For troubleshooting your Webcam, I would suggest taking a look at the document Webcam Troubleshooting (Windows 7). I would suggest the two options Video does not appear in your webcam software (such as YouCam, Skype, Messenger, ect.), and Webcam is not listed in Device Manager.
    For your internal microphone not working either, please take a look at the document Resolving Microphone and Line-in Problems (Windows 7). From this document, I would suggest following the top two symptoms.
    Please let me know the outcome of these troubleshooting steps.
    Good luck, and have a great day!
    I worked on behalf of HP

  • FileReference Select and Cancel Event Not Working in leopard

    FileReference not working in leopard
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    public function onClick():void{
    var fr:FileReference=new FileReference();
    //fr.addEventListener(
    fr.addEventListener(Event.OPEN,openHandler);
    fr.addEventListener(Event.COMPLETE,completeHandler);
    fr.addEventListener(Event.SELECT,selectHandler);
    fr.addEventListener(Event.CANCEL,cancelHandler);
    fr.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,uploadCompleteDataHandler);
    fr.addEventListener(HTTPStatusEvent.HTTP_STATUS,httpStatusHandler);
    fr.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);
    fr.addEventListener(ProgressEvent.PROGRESS,progressHandler);
    fr.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorHandler);
    fr.browse([new FileFilter("images", "*.png;*.jpg;*.gif")]);
    private function cancelHandler(event:Event):void {
    trace("cancelHandler: " + event);
    private function completeHandler(event:Event):void {
    trace("completeHandler: " + event);
    private function
    uploadCompleteDataHandler(event:DataEvent):void {
    trace("uploadCompleteData: " + event);
    private function
    httpStatusHandler(event:HTTPStatusEvent):void {
    trace("httpStatusHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    private function openHandler(event:Event):void {
    trace("openHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    var file:FileReference = FileReference(event.target);
    trace("progressHandler name=" + file.name + " bytesLoaded="
    + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    private function selectHandler(event:Event):void {
    Alert.show("XD");
    ]]>
    </mx:Script>
    <mx:Button x="205" y="198" label="Button"
    click="onClick()"/>
    </mx:Application>
    Adobe Flex Builder 3 Beta3
    Leopard 10.5.1
    both Safari and firefox doesn't work

    Flash version is 115 debug player

  • My tx is so slow, the web cam is not working, the screen freezes and got color distortions

    - My tx is so slow, and heats up very fast... so i think that the advance is not working properly
    - the web cam is not working, since the 3th time iused... when i try to use it with my msn... got freezed, then y try ending the process and doesnt work, y     have to restart it but it stay just on logging off... and do nothing more... so i have to switch off directly from the power button
    - The screen freezes... some thimes the screen got freezed... and got color distortions too... so i have to to switch off again directly from the power button
    i was thinking that it was a software problem... but i restore my lap and it doesnt work cuz it still being with the same problems... so lately im thinking that its a hardware problem... i call to technical support from mexico... but they can do nothing for me cuz i bought my lap at circuitcity from el paso... and that store close a few months ago... so i need help before de warrantie expires...
    This is the second time that my lap gives me problems, last time I made the change at the store but this time it will be impossible cuz is now closed...
    that is why I seek your help...
    i will be grateful if you answer in Spanish because my English is not very good...
    thankyou so much...

    If your warranty has not yet run out get it serviced, now!  All of the comments seem to indicate that it is the motherboard>

  • Built-in iSight not working-black screen with every application

    I have a MacBook laptop version 10.6.2 and just recently my built-in isight stopped working. i've had this laptop for about 2 years now and there have never been problems with the isight. i downloaded skype because i tried using ichat and my friends computer wouldn't video chat when i used ichat, but when i used skype it worked. so i've been using skype for about a month now... and just recently, i'd say like 2 weeks ago i went to use skype and the screen was completely black. the sound works, my friend said she could hear me she just couldn't see me. so i went into photo booth to see if the camera worked with that, and its a black screen on that app too! and when i take a picture it counts down like it normally would, but it doesn't even produce a picture, just a blank in the line of pictures at the bottom.. i also went into ichat and it has the same thing-black screen. i think the computer detects the camera, because it never said that it didn't... just the screen is always black.
    just some other info.... when i go to use an application that uses isight, the green light on the right side of the camera lights up.. nothing else really happens though.
    any information or diagnostic would be most appreciated!! thank you!

    http://support.apple.com/kb/HT2090
    my isight camera is not working-not recognized with photo booth or ichat

  • Mouse not working in screen

    the title pretty much says it all. when i use programs like mc w/o screen running the mouse is usable, but when i use screen and then use mc, the mouse no longer works. anyone knows whats wrong?

    hbarnwheeler wrote:DO you mean it does not work when you run screen without an X session open?
    Yeah, thats what I meant
    hbarnwheeler wrote:
    Have you tried:
    TERM=xterm screen
    To launch screen?
    I tried that, but it still didn't work. Anymore ideas?
    thanks for helping btw.
    OH, and let me clear up a few things, I am able to see and move the cursor but clicking on the menus or directories in, lets say mc, does nothing.
    Last edited by dribbly (2009-01-08 20:18:23)

  • ISight not working after screen repair

    My iSight is not working after a screen repair (which was damaged during Apple fixing the topboard!). Could it be possible that the camera is damaged in some way during a screen being replaced? I am a bit annoyed that they did not check the machine after all of teh repairs were made as I have a number of adverse issues with it now.
    Has anyone else experience this after a screen replacement? I get the message that there is no camera attached, or that it is in use. I have followed threads regarding checking login items etc, to no avail.
    The iSight is important to me as I am a long way from home. It is annoying that something seems to go wrong with the MacBook, when I most need it.

    When an iSight isn't working, there are a variety of simple things you can try (see further below), but one thing few people think of, is to connect a Firewire or USB drive that contains a bootable system, which has previously been tested on a known-good Mac to make sure the iSight works when booted from that drive, and see if the problem still occurs with the Mac that's under test. That's a quick way of testing whether the problem is hardware or software.
    Other things to try:
    - Reset PRAM, NVRAM, and Open Firmware.
    - Reset your Mac's SMU--see documentation for your Mac for specifics.
    - Repair permissions.
    - Make a new user account, and see if it happens there.
    - Check Login Items in the Accounts prefpane for anything that might be causing the trouble, like printer or scanner items.
    - Try what's suggested at www.eriymati.com.ar/isight/
    - Reset the printing system in Printer Setup Utility, since some printer/scanner drivers can stop the iSight from working--if that helps, see if your printer/scanner can work with OS X's built-in drivers; if it can't, download the latest driver for your printer/scanner from its manufacturer's web site, and see if that allows the printer/scanner to work, without interfering with the iSight, but some manufacturers, including HP, Epson, etc. are still dragging their feet about making such drivers. If the printer/scanner driver still causes trouble, uninstall it, then replace the printer/scanner with one whose manufacturer has enough brains to write a driver that doesn't interfere with the iSight (some specifically state now, in their System Requirements, that they don't work with Macs that contain built-in iSights, so check this before you buy another printer/scanner).
    Sometimes a non-working iSight is caused by something wrong at a "deep" System level (meaning, it might be caused by a single bad or missing file, but it might take days to find it)--if you find that to be the case, the quickest fix if you find the steps above (and others described here and elsewhere), is to reinstall OS X, either by doing an Archive and Install, or by making a bootable backup of the drive, erasing it, then using Migration Assistant to copy the data from the backup.

  • Side buttons not working and screen is not rotating

    All of a sudden the side buttons have stopped working
    The screen is also not rotating

    Check settings
    Settings>General>Use side switch to:  Set as desired and then test slide switch

  • IPhoto not working as screen saver in OS X 10.9.4

    I have upgraded two Macs to OS X 10.9.4 and am now no longer able to use folders from my iPhoto library as screen savers. The reboot solution another user found is not working on either of these computers. Does anyone know how to solve this problem?

    Hello Ursula,
    If I understand your problem correctly you would like to choose one of your folders (not an event) from iPhoto to be your screen saver. I had the same issue and found the solution. I am running OS X 10.9.4 and iPhoto 9.5.1 on a mbp. Go to:
    •"System Preferences";
    •"Desktop & Screen Saver";
    •"Screen Savor";
    •Choose one of the viewing options from the left panel e.g. "floating"/"flip-up"/"ken burns";
    •Once you chose a viewing option a "Source:" drop down menu will appear in the right pane. (note the "source" drop down menu is not visible until you chose a viewing option;
    •From the "Source" choice "photo library";
    •You should now see all the pictures from your iPhoto including the folders you have made;
    •Click the folder and then click the "choose" button.
    I hope this helps!

  • Collective search help not working in screen

    Hi All,
    I need to create ANLA-ANLN1 & ANLA-ANLN2 Fields in a screen for five times.
    One time i can get from dictionary, it automatically takes search help.
    While for other fields as it is not accepting from dictionary i have given different names and Provided collective search help in Properties. But it is not working as it is working for fields got from dictionary.
    Your help is valuable.
    Regards,

    Hi,
    Please follow this link.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/searchHelpExit

  • Captivate 7 preloader not working - with screen captures for clarity

    Hi Community,
    so I'm working in the Captivate 7 trial version, because the preloader for Captivate 6 isn't working for me. We have a ~48MB project with mp3's on almost every slide, flash videos, flash animations, quizzes and plenty of jpegs.
    Before we publish the project we make sure we click everything that's needed, but because it's still not working I took screen shots of all the settings. Maybe I'm missing something, I would appreciate your help.
    Thank you guys so much!!
    Nat

    I'm assuming here that your preloader animation is at least appearing when you are loading the file so that you KNOW it IS working.
    Try setting your preloader progressively higher until you find the percentage at which the load times start INCREASING again.  If you have a lot of videos in your project, setting the preloader at a very low value like 10% doesn't necessarily affect the load times that much because Captivate still has to load a certain amount of the total number of assets before it can start to play anyway.  It could be that you have a whopping great event video right near the start of the project and that's what is causing the lengthy delay.
    If your issue is still with the preloaders NOT appearing at all, then the only settings that would affect this are the ones on the Preferences > Project  > Start and End > Preloader path and percentage.  The path looks to be fine, but if preloader animations are not visible at all, try changing to a different preloader.  Maybe only SOME of them work.  The Default.swf preloader is usually reliable.

Maybe you are looking for