How to come out if loop other using break.

can u plz give an example where i want come out of if loop other than break , return keyword.
example If
{  System.out.println("   ");
break;
or return;
}

Can you please give an example how to terminate a
loop other than using break or return.What is the purpose of the question?
Do you have a bug where it appears a loop is being terminated some other way?
You need to clarify.

Similar Messages

  • How to come out of loop at last record?

    As I told in my previous posts,Iam transferring data from excel to zgkmaster tabel
    table structure:
    eid
    ename
    First I did SHDB(recording) and then made my BDC program.There are 10 records in table with names gopi,hari,rajesh.... with eid 1 to 10.My task is to updated all these names to 'XXX' for all 10 records (just for simple purpose).In my program I called 'Call transaction 'se11' using ptable mode 'A'.I moved from first screen to last screen (where you will update XXX and save for each record').Here:
    Loop at ptable into otable
    perform screens using <program name> <number> 'X'
    perform fields using zgkmaster-ename , otable-ename
    perform fields using 'BDC_OKCODE' , 'SAVE'
    perform screens using <program name> <number> 'X'
    perform fields using 'BDC_OKCODE' , 'NEXT'
    endloop.
    This code works fine in 'A' mode,but at last record a message comes 'Function code cannot be selected' (i think 'next' cannot be executed as it is last record) but all records are updated.
    When the mode is changed to 'N' and 'E',nothing is saved and the same error 'Function code cannot be selected'.Due the this error whatever data we give before that is not saving into table,may be due to this error.
    Now how shoud i make the loop exit when it reaches last record,i tried even with hardcording
    if sy-index = 10.
    leave prograam'
    endif.
    perform.....'NEXT' statement
    But the program is not exiting,I dont know why?Can anyone help me,I think if i made the loop to exit before next statement for last record that error will not occur.advise me if anything wrong.
    Thanks in advance
    The problem is that
    endloop

    Hi..
    1. To Terminate the LOOP in Last record.
        LOOP AT ITAB.
            << PROCESSING LOGIC>>
             AT LAST.
               EXIT.
             ENDAT.
        ENDLOOP.
    2. It is necessary to Declare the Internal table with same structure as the Excel file
    3. It is not necessary to call the Screen Explicitly before filling the BDCDATA record.
        If you want to process the Screen Twice the Fill the SAME SCREEN twice in BDCDATA Table and set the DYNBEGIN = 'X' in both the cases.
    REWARD IF HELPFUL.

  • ****How to come out of the  infinite loop by passing a perticular message

    Hi all,
    Can You Pl expalin me in detail "How to come out of the  infinite loop by passing a perticular message in BPM Scenarios"
    Thanks,
    Srinivasa

    Hi Potharaju,
    For this al you need to do is define an IP with two branches. One of the branch receives message of a particular type only. And the other branch is used for stopping the message processing. This is achieved using the correlation. Correlation makes sure that the message of the first type goes to the first branch only and that the message of second type should go to the second branch only. Now when the message of the second type is received, the control comes out of the infinite loop.
    Hope it makesit clear.
    Regards,
    Sanjeev.

  • How to find out which users are using SharePoint Designer to make changes in SharePoint 2010 site?

    Hi there,
    How to find out which users are using SharePoint Designer to make changes in SharePoint 2010 site?
    Thanks.

    You need to enable auditing on SharePoint server and it will let you know, if someone makes any critical changes for the same.
    Please walk through this informative KB to enable auditing on SharePoint :https://support.office.com/en-za/article/Configure-audit-settings-for-a-site-collection-f5a346d0-ee0f-4412-a5e6-d9b5abaa1012
    Here is one more resource :
    https://support.office.com/en-in/article/View-audit-log-reports-4293e8d5-4e7d-4201-b8ac-c8e63a100131
    Moreover, if you wish to audit such critical changes automatically, you may consider on this comprehensive application (http://www.sharepointauditing.com/) that helps to track every changes on SharePoint into
    real time and provides the captured data at granular level.

  • How to find out internet explorer version ,using a java program?

    How to find out internet explorer version ,using a java program?

    Browser version from java?....you must be referring it from some web application....rite?
    You can read the User-Agent header using request.getUserAgent() or request.getHeader("User-Agent") in your jsp or servlet.
    for more details pls refer:
    http://www.jguru.com/jguru/faq/view.jsp?EID=12253

  • How to find out which keywords were used to create a smart album?

    Hi,
    I actually have 2 questions;
    a) Short of scrolling down my very long list of password on the HUD - is there an elegant way to do it - How to find out which passwords were used to create an existing smart album? It's a recurring challenge for me.\ 'cause I like using smart albums, but once in a while need to check or chane the passwords.
    b) With annoying regularity when I try to get to this forum and choose Aperture, I get the following message - in pink, no less: It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake.
    Any clues?
    Thanks guys,
    Raphael
    <Edited by Host>

    b) With annoying regularity when I try to get to this forum and choose Aperture, I get the following message - in pink, no less: It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake.
    Any clues?
    Raphael,
    that message may occur for four reasons at least:
    Most frequently, when you are using an outdated link to a post that no longer exists, for example from an email notofication. Sometimes our community host will remove posts, that are in violation of the terms of use: see:
    Apple Support Communities Terms of Use
    Or you are using the edit button or a bookmark to an "Edit" window, after the fifteen minutes allowed for editing are up.
    Or you want to view a page in a restricted section of the ASC - soem perta are only open for members of level 6 or higher.
    Or it is one  of the unexplained problems with the forum software right now.
    a) Short of scrolling down my very long list of password on the HUD - is there an elegant way to do it - How to find out which passwords were used to create an existing smart album? It's a recurring challenge for me.\ 'cause I like using smart albums, but once in a while need to check or chane the passwords.
    I really like Kirby's suggestion with the IPTC rule Keyword is. This is very useful for smart albums global to the library.
    Frequently a different approach helps for my smart albums. Many of my smart albums are local to projects or folders.  In this case the smart HUD will only show those keywords that have been used for the images in the selection. So if I only have tagged the images with the keywords "birds" and "slideshow", the smart settings HUD will only show these two keywords and the list is very short.
    My Keywords HUD, is organized hierarchically; this way I can collapse large sections at once, and it is easier to focus on the keywords needed for a specific task.
    I use the search field in HUD a lot, to filter the set of keywords shown.

  • How to find out names of reports using a particular view

    hi guys,
    i am newbie here, i jsut want to know how to find out which reports are using a particular view
    many thanks in advance for your help

    If you go to the Properties for the Folder in Discoverer Administrator, there is a Dependents tab that should list any workbooks using the folder. This only works for workbooks saved to the database, so won't help with any created using Discoverer Desktop. If you are gathering statistics and have the The Discoverer V5 EUL business area and its workbooks installed, it can tell you about Folders Used as well. It contains information about queries run whether the workbook is saved to the database or to the file system, but wouldn't contain inforamation about workbooks that had been created but not run.

  • How to find out if I am using a 32 bits or 64 bits version of JRE?

    How to find out if I am using a 32 bits or 64 bits version of JRE?
    If I have 2 instances of Java installed in 2 seperate directories, one 32 bits and other 64 bits on Linux. How do I identify which directory holds which version?
    Is there any command that can output this info?
    Regards,
    Billamama

    With a Sun JDK or JRE, you can use java -version:
    $ java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)
    ... switch to the 64-bit JDK ...
    $ java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)
    The last line says "64-Bit."

  • In DBI , how to find out the Source Query used for the Report

    Hi All,
    How to find out the Source Query used to display the data in the DBI Reports or Dashboards. We can get it in Apps Front end by Going to Help and Record Histroty. But DBI Runs in Internet Explorer so i dont know how to get the source query ( SELECT Query ) Used.
    In IE we have View --> Source . But that does not help since it gives the HTML Coding and not the SELECT Query used.
    If anyone has ever worked on it...Please help me in finding it.
    Thanks,
    Neeraj Shrivastava

    Hi neeraj,
    You can see the query used to display reports.Follow these steps to get the query.
    1)Login to oracle apps
    2)Select "Daily Business Intelligence Administrator" responsiblity.
    3)Now click on "Enable/Disable Debugging" (Now u enabled debugging)
    4)now open the report which you want to see the query of
    5)In view source it displays query along with the bind varilables.
    Feel free to ping me if you have any doubts
    thanks
    kittu

  • TS3276 When I reply to an e-mail it comes out blank the other end?

    I do not have problems sending e-mails but when I reply to an e-mail it sends but comes out blank the other end?

    '''re: Forwarding'''
    You have the option to forward the received email 'inline' or as an 'attachment'.
    This can be set up here:
    'Tools' > 'Options' > 'Composition' > 'General' tab
    This is because you are not responding to a specific email - you are selecting to forward information from a different person to another person, which may be best sent as an attachment.
    '''re: Reply'''
    In this instance you have the option to either:
    * include the received email in a reply
    * Not include the received email in a reply
    * include selected part (quote) of received email in reply.
    A Reply implies a continued conversation and so the option to include the conversation is available.
    This is set up here:
    'Tools' > 'Account Settings' > 'Composition & Addressing' for the mail account.
    But regardless of whether you choose to 'automatically quote the original message when replying' or not, you can always highlight a section of text and then click on 'Reply' to include only the selected section of text.
    A Reply will also not include any attachments that were received attached to the original email because you do not need to send back the senders own attachments.
    Otherwise you create a new 'Write' message and attach the original email, so it is not technically a Reply - you do not use the 'Reply' button and these emails will not be threaded. It makes it more difficult to see continuity of conversation.

  • My phone got into blind people(voice guidance) mode how to come out of it??

    my phone got into blind people(voice guidance) mode how to come out of it, i switched off my mobile even though it is in the same mode plz help me out as early as possible.

    Hi 9l and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    I have removed your IMEI for your privacy; however can you please advise what assistance you would like?
    What are your thoughts about this forum? Let us know by doing this short survey.

  • If I come out of my house using wifi, but fb is running in the background, will it start to use up my data for 3G?!

    If I come out of my house using wifi, but fb is running in the background, will it start to use up my data for 3G?!

    Unless you are actively accessing the FaceBook app or actively accessing FaceBook via Safari, nothing is being downloaded.
    This applies to iOS 5 as well.
    http://whenwillapple.com/blog/2010/04/19/iphone-os-4-multitasking-explained-agai n/

  • How would 2 people call each other using facetime if both were in a foreign country but staying at different locations within that country?

    How would 2 people call each other using facetime if both were in a foreign country but staying at different locations within that country?

    It's tied to the Apple ID also - I believe it would use that to find the right person/device.
    Perhaps this article would help: http://support.apple.com/kb/HT4319. It looks like you may want to go in through your contacts and make the call.
    If you're concerned about data charges, put your phone in Airplane mode before trying to Facetime. That will prevent it from trying to make a call over your cellular data.
    ~Lyssa

  • Web pages come out tiny, I must use control + to view every page. How can I set a defult size for every page I vivit?

    After upgrading to 3.6 all the web pages come out tiny. The text and the pictures. I must use the Ctrl + in order to make the web page fill my screen. What do I have to do to set a default size for every web site I visit?

    ■ Easiest method, if you allow firefox to tabs you used then on restarting I believe it also retains the zoom settings
    * '''Tools -> Options -> General -> Startup = use current pages'''
    ■ There are also extensions that can be used, some allow individual sites to have individual settings. Look at the [http://support.mozilla.com/en-US/questions/772884 this thread] which also discusses related matters.
    ■ The best method if you need the same effest accross all sites is probably changing one of the preferences within the config files, it is discussed in the above linked thread and also in this MozzillaZine article http://kb.mozillazine.org/Layout.css.dpi

  • Come out of loop in debugger

    Hi.,
    While debugging, if we are inside the loop... How to come outside first line of that loop by excuting that loop?
    Also how to come outside of that loop... without excuting that loop?
    ---Its in new debugger!
    --Naveen Inuganti.

    Hi,
    Hope you all know about first screen of module pool programs, where we can't put break points...!
    There we can have LOOPS....
    If I am inside of loop here.... How can I come out of this loop?
    See the following code..is from onwe standard program of SAP..
    PROCESS BEFORE OUTPUT.
            MODULE STATUS_SETZEN_S.
            MODULE DYNPRO_KOPF_MODIF.
            MODULE AUSGLEICHS_VORSCHLAG.
            MODULE D0710_MODIF.
            module dynpro_sel_modif.                       
          LOOP.
            FIELD RF05A-XPOS1.
            FIELD RF05A-AZEI3.
            MODULE SEL_ANZEIGEN_AUSWAHL.
          ENDLOOP.
    PROCESS AFTER INPUT.
            MODULE EXIT AT EXIT-COMMAND.
            MODULE PAI_ANFANG.
            MODULE GET_CURSOR.
    *------- Konto, Buchungskreis ... --------------------------------------
            FIELD RF05A-AGKOA MODULE MC_OBJEKT_SETZEN1.
            FIELD RF05A-AGBUK MODULE MC_AGBUK_PARM_SETZEN.
    *------- Vertrag ----------------------------------------------"contract
            chain.
              field rf05a-vertn.
              field rf05a-vertt.
              field rf05a-xulsd.
              field rf05a-agums.
              module clr_contract.
            endchain.
          CHAIN.
            FIELD RF05A-AGKON.
            FIELD RF05A-VERTN.
            FIELD RF05A-VERTT.
            FIELD RF05A-AGKOA.
            FIELD RF05A-AGUMS.
            FIELD RF05A-XNOPS.
            FIELD RF05A-AGBUK.
            FIELD RF05A-XMULK.
            FIELD RF05A-AVSID.
            FIELD RF05A-XINVS.                                       
            MODULE AUSGLEICHSDATEN.
          ENDCHAIN.
    *------- ... weitere Konten ? ------------------------------------------
            FIELD RF05A-XMULK MODULE RF05A-XMULK ON INPUT.
          CHAIN.
            FIELD RF05A-XAUTS.
            FIELD RF05A-XFIFO.
            MODULE RF05A-XAUTS-XFIFO ON CHAIN-INPUT.
          ENDCHAIN.
    *------- Weitere Suchkriterien -----------------------------------------
          LOOP.
            FIELD RF05A-XPOS1.
            FIELD RF05A-AZEI3.
            MODULE SEL_BEARBEITEN_AUSW.
          ENDLOOP.
          CHAIN.
            FIELD RF05A-AGKON.
            FIELD RF05A-VERTN.
            FIELD RF05A-VERTT.
            FIELD RF05A-AGKOA.
            FIELD RF05A-AGUMS.
            FIELD RF05A-XNOPS.
            FIELD RF05A-AGBUK.
            FIELD RF05A-XMULK.
            FIELD RF05A-XINVS.                                       
            MODULE SEL_PRUEFEN.
            MODULE FUSSZEILE_BEARBEITEN.
          ENDCHAIN.
    PROCESS ON VALUE-REQUEST.
            FIELD RF05A-AGUMS MODULE F4_AGUMS.
            FIELD RF05A-AGKON MODULE F4_AGKON.
            FIELD RF05A-AVSID MODULE F4_AVSID.
    --Naveen Inuganti.

Maybe you are looking for