Exit the program ,when the condiiton fails

Hi Experts,
I want to leave leave the program it self ,
if the condition fails indise the nested if statement.
I have tried using exit statement in nested if condition, but it is exiting the current loop.
Thanks in Advance
Regards,
Irfan

Hi,
My problem is like this
if cntry eq 'us'
if condition 1.
sy-subrc eq 0.
proceed.else terminate the program.
if condition 2.
sy-subrc eq 0
success
else
leave the program.
elseif cntry eq 'de'
same as  above.
else.
if cntry ne 'de'.
same as above.
endif.
Please help me out.
Thanks in Advance
Irfan Hussain

Similar Messages

  • After sorting photos into albums, the albums disappeared on me. I dragged and dropped the photos and went back to check that they were in place before exiting the program. When I went back, the folder was there but no albums. Help!

    Working on an IMac - with IPhoto v.9.6 
    This is my first experience with IPhoto... trying to move files from a PC over to a Mac.
    I don't have a ton of photos but I created about 6 albums - standard albums - and dragged and dropped individual photos into each of the albums. I named each of the albums as well so I would know what was in each. After i was finished, I created a folder called 2014 and moved each of the albums into that folder. Before moving ANY of the albums, I opened each of them up to make sure that all the photos I wanted in each were indeed there - and since there were some errors on my part, I deleted any duplicates first. SO, I KNOW the photos were actually in each of the albums BEFORE i moved them into the 2014 folder.
    My intention was to then delete the photo files in my document file but once I got there I thought I would go back and double check the IPhoto file just to make sure... and the pictures were NOT in the albums where I had placed them... is there a need to save this before you move on and if so, to where and how? I was under the impression that once files were moved to albums, they remain there.
    The photos are still in the photo library but unsorted now again... I cannot even open the 2014 folder at this point.
    Thanks for any help!!

    Was back on IPhoto this morning. The folder did not open at all so I deleted it. Beside Albums, nothing showed at all. It was like I had done no work at all except to import my photo folder. Nothing was in my trash bin either.
    I started again and created one album at a time. I dragged and dropped photos into the album and exited out of IPhoto, opened up other programs and then returned to IPhoto to see if the album was still there and it was this time. I created a second album and did the same thing. This time, for some reason, the albums seem to be staying in place. I am not doing anything differently than last time. After creating three albums, I created a folder called 2014 and dragged and dropped the three albums into the folder and exited IPhoto. They were still there when I returned - YEAH! It seems to be working - for now! I am keeping my fingers crossed that my photos are not going to disappear but I am not going to delete my photo folder from my files just in case!
    Thanks for the suggestions but this may just have been a funny glitch... not sure what happened. I didn't change anything or do anything differently this time except that I am doing it one album at a time and exiting the program between creating each of them and coming back to check... very strange.

  • Hi when i use treeMap class and if i exit the program

    hi
    hi when i use treeMap class and if i exit the program,
    what will happen? the information that i put in the treeMap will be disappear??
    if it is like that,,how am i able to retrieve my data...when i restart my program..
    once i put ID as key and put my customer information,
    in it, after exit my program,, and i can't find
    my customers by their ID,,,,,,,,,how can,,i solve it......

    what will happen? the information that i put in the
    treeMap will be disappear??Yes. Of course. If you want data to hang around you have to tell the computer. If you want anything to happen you have to tell the computer.
    if it is like that,,how am i able to retrieve my
    data...when i restart my program..Tada! Tell the computer. Your simplest option is to use Serialization.
    Before exiting your program, serialize your TreeMap to disk. After starting your program serialize your TreeMap from disk.
    First stop should be your text book to learn what Serialization is and how it works, then try to write some code, then ask us to help with any problems.
    Dave.

  • ITunes 9 Dumps music library when exiting the program

    I would sure appreciate any help that you all might be able to throw my way. Upgraded to iTunes 9 a couple of months ago. Basically from the time it was installed I have had the problem that I must Manually click FILE and Add Folder to Library. Upon exiting the program it will then basically dump the whole library and the next time I open iTunes I have to Add Folders to Library Again. After the upgrade to 9 I didn't even try syn'in my Nano because I was afraid I might loose music so I just left it alone and kept fiddling trying to figure out why the library would dissapear upon exiting the program.
    Just after Christmas I got a 16GB Touch so figured I really need to get the figured out..... and I'm still trying. Before connecting the Touch for the first time I COMPLETELY uninstalled iTunes, Quicktime, Apple Software UPdater, Apple Mobile Device Support, Bonjour,etc. After this, I found i still had an itunes folder in my Music folder so I deleted that (I pulled purchased music files into a seperate folder on my desktop just in case). I reinstalled itunes 9, went to File and then Add Folder to Library and imported everything. I wanted to get up and running with the Touch so I made a couple small playlists and called it a day. Exited the program, then re-opened it just to check if it was still there and it was! I was excited..... but not for long. Next day opened iTunes 9 and there was no music, the library was empty.
    I could go on and on... but won't. I've read posts about checking the XML file in wordpad, which I've done and seems like it's correct. even when I go to Preferences/Advanced, and look at where it's storing it seems correct.
    Can some one point me where to look?????
    Thx! Jeromy

    Thank you so much for your reply Katrina. Interesting stuff. Somehow in the mega searches I was doing for answers I didn't think to search using the Vaio angle. I will definitely go through those Vaio Files. This is my 4th Vaio and I NEVER seem to use any of the preloaded software, but to this point have not had problems until I installed iTunes 9.
    Last night I read another post that reminded me that the music files that show up in the iTunes/music folder are just "pointers" or say "shortcuts" (I can't remember the actual term used) to where the ACTUAL music files are located. When I used the Add Folders from the file menu I've always assumed that these "shortcuts" have been placed in the iTunes/Music folder properly. But just in case, I clicked on the Copy Files to iTunes Media folder in Advanced tab to be safe and then I did the Drag/Drop from my windows MY MUSIC folder (rather than using the Add Folders to Library in iTunes). I started by dragging and dropping like 5 albums. Then I'd close, open, close, open etc. to see if they would stay in my iTunes music library.... and they DID! So I left it overnight and then this morning I dragged a bunch more albums into my iTunes music library. Did another close, open, close, open on iTunes and so far everything is staying in place. My next test is going to be to completely shut down my Vaio and start it back up and see if it's all still there.
    Do you think any of this makes sense, or relates back to the Vaio software issues from the post you provided? I don't quite understand why it would work to drag/drop but not simply click Add Folders to Library???
    Thanks Again,
    Jeromy

  • HT1349 I have registered my serial number but cannot continue the download because it says that the number already exists. This happened when I previously entered the number bt had to exit the program. How do I resolve this?

    I have registered my serial number but cannot continue the download because it says that the number already exists. This happened when I previously entered the number bt had to exit the program. How do I resolve this?

    Leigh...
    but cannot do this because I cannot access Mac App Store
    If you can't access the App Store from the Apple menu, Dock, or Applications folder installing the Mac OS X 10.6.8 Update Combo will reinstall the App Store for you.
    It's ok to do this even you are already running v10.6.8.
    Plants vs. Zombies, and that is all for additional software on here
    FYI:  Some third party software can cause issues with the App Store >   Mac App Store: Sign in sheet does not appear, or does not accept typed text
    Apple is not responsible for incompatibility isssues with third party software.

  • Help: Exit the FORM when user makes failed attempt to logon

    Hi,
    In this application, I added a on-logon trigger with a line:
    logon(' ','@DB-CONN');
    DB-CONN is the default database connection string.
    What I really want to add is every failed logon attempt will be given and the 3rd failed attempt will kick the user out.
    Right now, I have the problem that even user clicks CANCEL button, the form will be started without DB connection. Any suggestions will be greatly appreciated.
    Thanks.
    Jimmy

    hi
    Login button code.
    when-button-pressed trigger.
    if :LOGIN_BLOCK.USERNAME is null then
    message('User must be entered !');
    go_item('LOGIN_BLOCK.USERNAME');
    return;
    end if;
    if :LOGIN_BLOCK.PASS_WORD is null then
    MESSAGE('Password must be entered !');
    go_item('LOGIN_BLOCK.PASS_WORD');
    return;
    end if;
    set_application_property(CURSOR_STYLE,'normal');
    :global.bad  := 0;
    if :LOGIN_BLOCK.CONNECT_STRING is null then
    logon(:LOGIN_BLOCK.USERNAME,:LOGIN_BLOCK.PASS_WORD, FALSE);
    else
    logon(:LOGIN_BLOCK.USERNAME,:LOGIN_BLOCK.PASS_WORD||'@'||:LOGIN_BLOCK.CONNECT_STRING, FALSE);
    end if;
    if :global.bad = 0 and form_success then
    set_application_property(CURSOR_STYLE,'normal');
    open_form('TREE',no_hide,no_replace);
    exit_form;
    ELSE
    :global.v_attempt  := :global.v_attempt  + 3;
    set_application_property(CURSOR_STYLE,'normal');
    if :global.v_attempt  < 2 then
       MESSAGE('Username/Password was invalid. Please re-enter !');
       go_item('LOGIN_BLOCK.USERNAME');
    else
       MESSAGE('Invalid Login Attempts.Please contact Admin');
       exit_form(no_validate);
    end if;
    end if;On-Logon trigger.(Form Level)
    logon(get_application_property(USERNAME),
         get_application_property(PASSWORD)||'@'||get_application_property(CONNECT_STRING), FALSE);
    if not form_success then
    :global.bad := 1;
    raise form_trigger_failure;
    end if;create a Procedure.
    PROCEDURE Log_on IS
    BEGIN
    :global.quit := 'TRUE';
    exit_form(no_validate);
    END;the following code for Pre-Form trigger(Form Level).
    BEGIN
    :global.quit := 'FALSE';
    :global.v_attempt := 0;
    END;I hope it will help u.
    Sarah

  • HT1926 I have just updated itunes on my pc (widows XP) to the latest version. When I try to open it i get an error message saying the application failed to start because MSVCR80.dll could not be found. Not sure how to resolve this. Have tried to reinstall

    I have just updated itunes on my pc (windows XP) to the latest version. When I try to open it I get an error message saying the application failed to start because MSVCR80.dll was not found< Have tried reinstalling with no luck. Any ideas?

    try removing all itunes and all other apple program
    follow this link for more info. http://support.apple.com/kb/HT1923
    reboot ur window after uninstalling
    after that download the latest itunes setup and install.

  • The ABAP call stack was: SYSTEM-EXIT of program BBPGLOBAL

    Hi
    We are using SRM 5.0. We are facing a strange problem. We are able to see the initial screen of SRM EBP in the browser. But once the user name and password are provided the system goes for a dump with the following error:
    The following error text was processed in the system SS0 : System error
    The error occurred on the application server <Server Name> and in the work process 0 .
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was: SYSTEM-EXIT of program BBPGLOBAL
    <b>SM21 Log:</b>
    Short Text
         Transaction Canceled &9&9&5 ( &a &b &c &d &e &f &g &h &i )
         The transaction has been terminated.  This may be caused by a
         termination message from the application (MESSAGE Axxx) or by an error
         detected by the SAP System due to which it makes no sense to proceed
         with the transaction.  The actual reason for the termination is
         indicated by the T100 message and the parameters.
    Transaction Canceled ITS_P 001 ( )
    Message Id: ITS_P
    Message No: 001
    I just checked these threads but did not help much,
    RABAX_STATE  error after loggin into BBPSTART service in SRM 4.
    ITS_TEMPLATE_NOT_FOUND error
    Besides I tried this note: 790727 as well, still I get the same error.
    Any help would be highly appreciated.
    Thanks in advance
    Kathirvel Balakrishnan

    Hi
    <u>Please do the following steps.</u>
    <b>When you are using the Internal ITS,you need not run the report W3_PUBLISH_SERVICES.(only SIAC_PUBLISH_ALL_INT )
    ALso pls check the foll:
    -->activate the services through SICF tcode.
    > Go to SICF transaction and activate the whole tree under the node Default host>sap>bc>gui>sap>its.
    >Also maintain the settings in SE80>utilities>settings>internet transaction server-->test service/Publish. (BBPSTART , BBPGLOBAL etc)
    Table TWPURLSVR should have entries for the / SRM server line as well as gui and web server.
    Could you please review again the following steps ?
    Did you check that ICM was working correctly (Transaction -  SMICM) ?
    1-Activate the necessary ICF services
    With transaction SICF and locate the
    services by path
    /sap/public/bc/its/mimes
    /sap/bc/gui/sap/its/webgui
    2- Publish the IAC Services
    With Transaction SE80 locate from
    the menu Utilities -> Settings ->
    Internet Transaction Server (Tab) ->
    Publish (Tab) and set “On Selected
    Site” = INTERNAL.
    3- Locate the Internet Services SYSTEM and WEBGUI.
    Publish these services with the Context
    Menu -> Publish -> Complete Service
    4- Browse to http://<server>:<icmport>/sap/bc/gui/
    sap/its/webgui/! and login to the
    webgui.</b>
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Save into a file before exiting the program

    Hi All,
    I am developing a java project. It is a console application.
    Initially the program loads content of a file(customer.txt) into an ArrayList.
    Then it gives 3 options:-
    1. Add a Customer
    2. Delete a Customer
    3. Save and Exit
    The changes add or delete are made in the ArrayList.
    The ArrayList is saved back to the customer.txt only when we select the option 3.
    It works fine.
    But instead of exiting the application using option 3, if we close the eclipse window or restart the computer, the changes are not saved to the file.
    So could you please suggest me how we can save the changes in such situations.?

    - Create a class that extends Thread
    - in the run() method place the code that saves your data
    - in your initialization create an instance of your Thread class but do not start it - instead register the object as a shutdown hook (use Runtime.getRuntime().addShutdownHook()).
    When your application terminates the VM will kick off your thread, which should save your data. You may have to experiment a little to get it working right. Remember that only a normal termination signal will allow the VM to continue running so that it can execute your shutdown thread - a kill signal will stop the VM, as will calling Runtime.halt().
    (Edit: note also that this may not work in Eclipse - I've seen problems running shutdown hooks when testing an application under Eclipse.)
    Edited by: PeteFord on Nov 17, 2008 1:39 PM

  • Want my JFrame to be the *only* one that can end the program when closed

    Hi all,
    I have an application that is essentially a launcher for other applications -- it's a holder to allow us to demo our work and other Java examples (not necessarily our work). The launcher will either run methods to launch an application or will find a class's main method and invoke that.
    In all cases, the other applications open up their own JFrames, separate from my launcher (this is a good thing). The problem is that, in general, the other JFrames are set to EXIT_ON_CLOSE. This means that if the user closes the second window, everything will close.
    Is there anyway to prevent this from happening? I'd like either a way to say that my JFrame is the only one that can exit the program when closed, or to say globally that JFrames can't exit on close, and then re-work my initial frame so that it is still able to exit.
    Note that changing all the other applications so that they do not include the EXIT_ON_CLOSE line is not an option (several of the applications we have the right to use, but not the right to modify, for instance).
    Any thoughts?
    Thanks,
    Sam

    Darryl.Burke wrote:
    I have a similar launcher application and this is how I tackled the issue....
    Window[] windows = Window.getWindows();
    This seems like a great work-around. The only problem is that Window.getWindows() is only 6.0, and unfortunately I can only assume 5.0. I can't see another method in the Window class that will return unowned windows -- is there another method that you know of?
    Edit: I found I can use Frame.getFrames() instead, but unfortunately I've discovered this doesn't solve my problem. One of the applications is listening to window closing and is calling System.exit(0) itself, and is not using EXIT_ON_CLOSE as I previously thought. So I think that launching a new JVM may be the only option.... Any advice on how to do this? I'm a little stuck with the ProcessBuilder stuff above.
    >
    edit In future (not this time), Swing related questions should be posted in the [Swing forum|http://forums.sun.com/forum.jspa?forumID=57]
    I guess I was thinking this as a process-oriented question (I had already been thinking of the "different JVM" tactic), but the other option was to think of it as a pure-swing problem, like your solution above. Guess I should have just cross-posted -- everyone loves that! ;-)
    Edited by: Asbestos on Dec 18, 2008 12:32 PM

  • My safari screen suddenly fills my entire screen, and there is no right hand corner button to push to manually shrink it. What to do? I can never even exit the program without quitting it.

    My screen when I am using Safari suddenly fills my entire screen, and there is no right hand corner button to push to manually shrink it. What to do? I can never even exit the program without quitting it.This has happened only within the last two days.

    Try changing the screen resolution.
    Go to Apple Menu / System Preferences / Displays.
    Change the resolution. Whatever numbers are shown, e.g. 1280 x 960, select a larger one. The larger the number, in the resolution the smaller the display on the screen. You can keep changing this till you find the resolution that suits you.

  • How to abend the java program -if the condition fails

    Hi
    My program counts the number of headers in the input file and if the condition fails to satisfy the number we expected , it should comeout of the java program . Is their a specific statement to abend the program in java .
    if(columnCount == 5)
    // do all the steps
    else
    //abend the program }
    how to do that .... is it System.exit(1) or anything else
    thanks..
    Edited by: 1sai on Apr 23, 2009 6:52 PM

    BigDaddyLoveHandles wrote:
    It must have been that the [card sorters|http://en.wikipedia.org/wiki/Card_sorter] were making such a ruckus that I didn't hear it. The model 84 -- 2,000 cards a minute? -- d&auml;mn, that's sweet.
    I remember the first time I saw a card sorter in action, thinking it was kind of cool.
    I also think the teacher used it to describe some sorting algorithm, maybe radix sort??
    You've got me thinking, that might be part of the problem with computing today, not enough moving parts. No big tape drives spinning and oscillating. And few if any line printers anymore. Now there's an interesting piece of equipment.

  • CC 2014, the installation fails by the fatal error exit number: 7

    Hey guys. Since 24 days Im trying to update my Cloud to the CC 2014 but when starting with PS, the installation fails by the fatal error exit number: 7. Whats to do?

    Well John, first of all, thank you very much for helping me.
    Yesterday I tried something, by deinstalling the Cloud App and PS, but still the same error remained.
    What I also don't understand is the term: Reinstalling the product. Is it meant, to deinstall every app, just the Cloud app or only the app where the error occupies?
    By Reinstalling I also understand: Uninstall the app and the install it again. Is this correct?
    I am surprised anyway. Once everything is fine and then within one day, nothing runs anymore. I read about, using a disc clean app as Clean My Mac 2 can destroy the structure of adobe products some how... but hmmm... this sounds very strange.

  • Please help: Utility used to install the update failed with exit code {0}.

    Hi,
    I admit to being a relative newbie at Solaris 10 administration, so please exercise forbearance on my behalf.
    I have just installed Solaris 10 11/06 on my laptop x86. Everything went fairly smoothly. I used the Installation Check Tool 1.2 to decide if my machine was adequate to run the OS and with the exception of a NIC driver, it was. I downloaded the sfe driver and configured networking and it seems to work exceptionally well. However, when I run Update Manager in JDS (the only way I know how to run it), it fails to update some of the packages. Sometimes, if I retry the same packages, sometimes it will eventually work. But it keeps failing with the following error on a consistent basis over the last several days:
    Utility used to install the update failed with exit code {0}.
    I hunted around on the web and the results were not promising. Is there a log somewhere that will give me the actual error or do y'all know of a quick fix.
    Thanks,
    Will

    That is strange indeed, could you try downloading and
    applying the unsigned zip to see if that works?The problem persits:
    # patchadd -M /root/119116/
    Validating patches...
    Loading patches installed on the system...
    Done!
    Loading patches requested to install.
    Done!
    Checking patches that you specified for installation.
    Done!
    Approved patches will be installed in this order:
    119116-22
    Preparing checklist for non-global zone check...
    Checking non-global zones...
    Cannot open pkginfo file //var/sadm/pkg/.save.SUNWhea/pkginfo
    Non-global zone check failed. No change made to the System.
    Patchadd exiting.

  • Utility used to install the update failed  with exit code 1

    Hello!
    When I try to install an update on my system, the following happens:
    # smpatch update -i 119116-22
    Update 119116-22 will not be downloaded since it already exists in the download directory.
    Installing patches from /var/sadm/spool...
    Failed to install patch 119116-22.
    Utility used to install the update failed with exit code 1.
    Validating patches...
    Loading patches installed on the system...Done!
    Loading patches requested to install.Done!
    Checking patches that you specified for installation.Done!
    Approved patches will be installed in this order:119116-22
    Preparing checklist for non-global zone check...Checking non-global zones...
    Cannot open pkginfo file //var/sadm/pkg/.save.SUNWhea/pkginfo
    Non-global zone check failed. No change made to the System.
    Patchadd exiting.
    Failed to install patch 119116-22.
    ALERT: Failed to install patch 119116-22.
    Does anyone know how to fix this?
    TIA
    Stephan

    That is strange indeed, could you try downloading and
    applying the unsigned zip to see if that works?The problem persits:
    # patchadd -M /root/119116/
    Validating patches...
    Loading patches installed on the system...
    Done!
    Loading patches requested to install.
    Done!
    Checking patches that you specified for installation.
    Done!
    Approved patches will be installed in this order:
    119116-22
    Preparing checklist for non-global zone check...
    Checking non-global zones...
    Cannot open pkginfo file //var/sadm/pkg/.save.SUNWhea/pkginfo
    Non-global zone check failed. No change made to the System.
    Patchadd exiting.

Maybe you are looking for

  • How can I send many invoice documents to one customer in SAP B1?

    Hi Now I can send e-mail through sap b1 to customer by using outlook_integration add-on. But I want send many invoices to a customer in one email. Can I do it in sap b1? Thank u Theerawat

  • Upgraded to iPhoto6 -keywords go missing

    Hi all, Recently I upgraded iPhoto2 to iPhoto6 on a PowerMac G4 running Tiger (10.4.11) and after the upgrade all the keywords(~40 or so) were gone! I read a number of posts here on the topic and ran across the app iPhoto Library Manager. I downloade

  • Migrating Designer Repository 6i to Repository 10g

    My client has an Oracle Designer repository 6i Version 6.5.92.1.9 Release 4.7.(Repository 9i). He has created an Oracle Designer repository 10g (latest version) onto another server. He wants to migrate his Repository 6i into his new repository 10g. I

  • Remounting an Ultrabay HD through software?

    Hey guys, So right now I have a W530 with an SSD internally and a regular HD in my ultrabay. I mainly use my HD for storing music/movies/photos.  However I don't always access it all the time and eject it from Windows so that it does not drain any ba

  • How do you update your email address on iCloud?

    How do you update to a new email address on the cloud on iPhone and iPad?