How do I exit a procedure without exiting the program?

I just want to exit a procedure so that I do not execute the rest of the code below the point of where I would like to exit the procedure. Is there anyway I can do this?

Here is a clever bit of code that only makes sense if you have ever had multiple blocks and didn't want to exit with multiple return statements.
   boolean isOk = true;
   do  // Only do everything in here once.
      // This is a clever bit of code that allows us
      // to only have one exit point.
      isOk = step1();
      if (!isOk) break;  // This is the clever part
      isOk = step2();
      if (!isOk) break;  // This is the clever part
      isOk = step3();
      if (!isOk) break;  // This is the clever part
      } while (false);  // Yes, false

Similar Messages

  • How to launch a function/procedure without suspending the parent process?

    Hi everybody,
    I would like to know if I can define something as follows in PLSQL:
    procedure master
    begin
    call a procedure_child;
    End master;
    I would like that the procedure master does not suspend the execution and wait that the procedure_child finishes in order to resume the executions with the further code.
    Thanks a lot in advanced
    Tomeu

    In the future, please stick to posting in a single forum.
    Re: How to launch a function/procedure without suspending the parent process?

  • How to configuration of pricing procedure based on the Region

    Hi,
    please help me how to configuration of pricing procedure based on the Region in the roll out project.
    Thanks
    mustafa

    What I proposed to do was,
    a. Create routes like 0 day route, 1 Day route, 2 day route etc.
    b. Route determination is based on the Shipping condition of the customer. Put in the shipping condition for the customer as 00 - immediate delivery. 01 - By Truck, 02 - By Rail, 03 - Ship etc
    c. Now, put in your route determination in such a way that routes change in the sales order with shipping condition (SC). Like, if the shipping condition is set to 00, then 0 day route comes up. Meaning immediate delivery, if SC is 01, then your normal route by truck picks up. etc.
    When the sales order is manually created, you know the time of creation. As route is one of the criteria, the material confirmation happens based on number of days you put in the route to reach the destination. Now that you have the material available for today's delivery, the delivery program can be run to create it, or it can be manually created.
    Now, when you configure the route you have to specify 'Transit duration in calendar days'.
    When you have the sales order created electronically (say thru EDI), then, you may have to ask them to send in shipping condition. Else, you have to modify the function module Idoc_input_orders in such a way that if the sales order creation time is < 12 PM, then put shipping condition as 00, else copy what ever is there in the customer.
    If you do not want to check the time manually when the user creates the sales order, then you may have to use the user exit MV45AFZZ (and I think you can use Save_order_prepare) to check the time and change the shipping condition. By this you will avoid extra coding in Idoc_input_orders and also need not bother if the user changed the route or not.
    Hope my explanation helps.
    Regards,
    Mukund S

  • I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up und one account.

    I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up under one account.

    You can have a different receiving email in the Messages app on each device : Settings > Messages > Receive At . I'm not sure that there is a different way to have the message only go to one device.

  • I want to download an audiobook, but my daughter has a giftcard credit on the account. How can I download my audiobook without using the money from her giftcard?

    I want to download an audiobook, but my daughter has a gift card on the account.  How can I download my audiobook without using the money from her gift card?

    go directly to your ibook app. and you're going to find it. it's only with ibooks app.
    best
    Olivier
    <Edited by Host>

  • How can i print an email without printing the attachment?

    I just got my new macbook pro retina display.  I am using Mac mail and want to know how I can print an email without printing the attachement.  Any suggestions and solutions would be appreciated.

    Thank you for your suggestion.  But when I receive an email that has an attachment (shown by paperclip symbol) The email opens and shows the attachment(jpg picture) at the end of the email so when I go to print - the email pops up with the picture already opened inside the body of the email.  Can not figure out why this happens in mac mail.  when i used outlook in windows only email would show.  in order to see attachment you had to click on paperclip and only then would the attachment (picture apprear).
    Any other suggestions that I may could try would be appreciated. Thank you!  Gabriela

  • I mounted my external hard drive to a pc and now I don't have edit or write permissions on my Mac (read only). How do I get them back without erasing the drive?

    Hello all, I am a photographer and have my portfolio, edited and raw images backed up on a Seagate Free Agent External Hardrive. I mounted my external hard drive to a pc recently and now I don't have edit or write permissions to it on my Mac (read only). How do I get them back without erasing the drive and loosing my valuable work?

    If you re-format it you will lose all the data on it!!!!! So make sure you have backed up the drive or moved all the data on it to another external HD or the internal HD on your iMac.
    Below is an Apple Advice letter that explains how to format an external HD, it's written for Aperture but you can use the instructions to formate any external HD.
    http://support.apple.com/kb/HT3509

  • How do I test a scenario without getting the other party involved

    Hi,
    How do I test a scenario without getting the other party involved?
    I have created a scenario to receive information from an external system (Remedy), processing through a SoapAdapter into SAP to create a service order. How can I send a sample of information in order for me to test my scenario without asking the Remedy people to transmit data all the time?
    Thanks in advance,
    Leanne

    hi Leanne,
    have a look at my weblog:
    /people/michal.krawczyk2/blog/2005/08/25/xi-sending-a-message-without-the-use-of-an-adapter-not-possible
    it shows how to use the test tab from RWB
    to send test messages
    Regards,
    michal

  • HT4113 how to unlock an ipod touch without knowing the password

    how to unlock an ipod touch without knowing the password

    Connect the iPod to your computer and restore via iTunes. Place the iPod in Recovery mode if necessary to allow the restore.

  • How can I add new games without overwriting the old ones?

    I have just purchased two new games in the itunes store and although they are showing in the library (under applications) my previously purchased games are not. In Summary under games it will not let me choose selected games only 'all games' and when I press sync warns that the existing games will be replaced. How can I add these games without deleting the older ones? Also if I did want to remove a game from my ipod how do I do it?

    hardlyquinn wrote:
    Part of the problem is that I can never sync the whole thing as I dont keep all my music in my library (it seems silly to have my enture cd collection on the computer).
    Clearly it ISN'T silly as it avoid issues like you are having right now. If you need more space, get an external hard drive. To me it is much sillier to only have your stuff on the iPod and no where else as the iPod, as a small portable player, is much more likely to be dropped, lost, damaged, stolen, forgotten somewhere, etc.
    While I am not familiar with the use of games on the iPod (I have never bought any) you can switch the iPod to manually manage and then you can add content to your iPod without losing what is already there. Perhaps it works for games as well.
    But long term, I strongly suggest you keep all your stuff in your library so if you need to (you have to perform a restore on the iPod, you lose it and buy a new one, etc.) you can very easily sync it all back to the iPod when needed.
    Good luck,
    Patrick

  • How can i run external application without specifying the full path?

    for example, ms word executable file is winword.exe, but in java i am using the following command:
    Runtime.getRuntime().exec("\"C:\\Program Files\\Microsoft Office\\Office10\\winword.exe\");
    the thing is, i dont know where ms word is installed on every machine, so rather than making an assumption, do you know how i can run ms word without specifying the full path?
    thanks

    1) You could ask the user to tell you where it's at (and remember for next time)
    2) You could do a file search for it (and remember it for next time)

  • Hi. We have two iphones and one Itunes account. How do back up each one without getting the others contacts

    Hi. We have two iphones and one Itunes account. How do back up each one without getting the others contacts and without syncing each phone to each other?

    Welcome to the Apple community.
    Ideally you should each have your own iCloud account, providing you with your own contacts, calendars etc, not doing so will result in exactly what you have experienced. The contacts have likely been lost due to the options you have chosen at the login stage on each device.
    Unless you have the missing contacts in a backup file, they won't be recoverable unfortunately. You can add them manually to the contracts that already exist and continue to share the iCloud account if you wish, but I suggest that you each have your own iCloud account.
    Note, you can each have your own iCloud account, but continue to share an iTunes account for purchases of apps, books, music, TV shows etc etc.

  • Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • How to getFocus in a ComboBox without choosing the inside data?

    How to getFocus in a ComboBox without choosing the inside data? Once I clicked on the ComboBox, I couldnt get the focus unless I choose the data inside. Although I had tried with many different types listeners, but still couldnt get it. Could anyone help me???

    It is easier to work with the JComboBox in 1.4 for what you want to do.
    But try this and see if it works for you. I added a FocusListener to all the other components on the panel, and had them close the combo box popup list. Now, if another component previously had the focus, it would take 2 clicks to have the combo box's list pop up. It's quite round-about, but it seems to work.
    I also printed a message on the console.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class ComboBoxPopupTest
       public static void main( String [] args )
          final JComboBox comboBox = new JComboBox( new Object [] { "one", "two",
                                           "three", "four" } );
          JButton button = new JButton( "huh" );
          JButton button2 = new JButton( "Yo, baby!" );
          final JPanel panel = new JPanel();
          final Runnable hidePopup =
             new Runnable()
                public void run()
                   // This method is deprecated in 1.4.
                   // But you won't need it in 1.4 anyway...
                   Component comp = SwingUtilities.findFocusOwner(panel);
                   if ( comp != null )
                      if ( comp.getClass().toString().indexOf("ComboBox") > -1 )
                         comboBox.setPopupVisible( false );
                         System.out.println( "helloooo comobox" );
             }; // end the Runnable
          FocusListener focusListener = new FocusAdapter() {
             public void focusLost( FocusEvent evt )
               SwingUtilities.invokeLater( hidePopup );
          // In Java 1.4, just add a focus listener to the combo box
          // instead of adding it to all the other components.
          button.addFocusListener( focusListener );
          button2.addFocusListener( focusListener );
          panel.add( comboBox );
          panel.add( button );
          panel.add( button2 );
          JFrame frame = new JFrame( "Hello" );
          frame.getContentPane().add( panel, BorderLayout.CENTER );
          frame.setSize( 400, 300 );
          frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          frame.setVisible( true );
    }Tell me if that works for you.

  • How do I FTP with Tiger without a FTP program?

    How do I FTP with Tiger without a FTP program?
    I saw the tip on the web site a few days ago, but now I can't find it.
    Thanks ahead,
    -Line

    I was very disappointed to find that we were misled. I am not sure if the guy who wrote this simply didn't check before he wrote this or what.
    I wonder why Apple just took this off their site without any explanation to the people that were deceived. I spent quite a bit of time browsing discussions and contacting apple support to figure out that there was no truth to this "tip" of the week. How difficult would it have been to simply post a new tip, saying that we should not waste our time with this?
    http://web.mac.com/justinpe/iWeb/Justin%20Petersen/Blog/Blog_files/FTP.jpg
    Intell Based iMac   Mac OS X (10.4.10)  
    Intell Based iMac   Mac OS X (10.4.10)  

Maybe you are looking for

  • Changing the Owner from Peoplesoft8.8 to Peoplesoft 9.0 causes Data errors

    Hi for a particular task in DAC, i changed a parameter in Parameter sub-tab of Tasks Tab in the Design view. the Default one was Dept_Security which i changed to Division_Tree. the Owner for Dept_security was Peoplesoft 8.8 in the Parameter sub-tab o

  • Cannot log into Digital Library

    Hello, I have been trying to resolve this problem for several hours now, but have been unable to do so. I recently downloaded Test Drive Unlimited 2 Windows Digital Download and received a confirmation email stating that I was now able to enter the D

  • Where is the file sharing section located in iTunes 12?

    I am trying to open up an iMovie Project that I sent to iTunes from my iPhone 4s. After the project exported my phone said "Send to iTunes Complete. Your project will appear in the File Sharing section of iTunes as: Horror short." But, I can't find t

  • Flash builder 4.7 lags on big files

    Hi I starts using new Flash Builder 4.7 three days ago. I have file that contain 5000 strings of code. And when I open this file and starts edit it - flash builder starts terrible lags! I can print only 3-4 chars per minute... There was not such prob

  • Vendor Evaluation in SRM5.0

    Hi Team, Please provide me a Config Document to set up Vendor Evaluation in SRM 5.0. We are using Classic Scenario.Please also provide any useful tip for the same. Thanks Anita