How Do You "Unload" Using a "While" statement?

How do you "Unload" or "Exit" using a "While" statement?
Sample: The console displays "Press Enter to continue".
Description: It a User press the Enter key, then the application would start over. On the other hand, if a User presses the "0" key, the application ends, exits. What code would be used?
THANKS ... signed ... VERY NEW at JAVA ...

  input=readInput();
  while (input!=yourExitKey)
    // do stuff here
    input=readInput();
  // End of code

Similar Messages

  • How do you surf the web while you are on the iphone?

    How do you search the web while you are having a phone conversation? do you have to put the phone on speaker?

    You dont have to, but it is hard to listen and look at the screen at the same time.  You can also use a bluetooth headset or ear phone that came with the phone.  Remember you can not do both at the ame time on Verizon.

  • How do you preview using a spool request number

    How do you preview using a spool request number?
    I have an application in which I have accumulated the results from several smartforms into one spool request. I have the spool request number, and am printing it using function RSPO_RPRINT_SPOOLREQ.
    I need to be able to preview the contents of the spool request before printing. I can not preview when generating the smartforms, as that involves several previews, and I need to preview once only per spool request.
    I have been trying to use RSPO_RDISPLAY_OUTREQ but it dumps immediately (line 47) with field symbol <FTSP01> not assigned.
    Suggestions?

    *With no faction module "COM_SE_SPOOL_DISPLAY", try this simple code, you can display the form *type spool (you also can put the code in a function module):
    REPORT  ypl_test_display_spool MESSAGE-ID zm_print.
    PARAMETERS: rqident LIKE tsp01-rqident,
                            rqdocty LIKE tsp01-rqdoctype.
    *--- there may be more types need to separate..., so use case...
    CASE rqdocty.
      WHEN 'OTF' OR 'SMART'.
        PERFORM display_form.
      WHEN OTHERS.
        PERFORM display_others.
    ENDCASE.
    *&      Form  DISPLAY_FORM
          display form type spool...
    FORM display_form.
      DATA: wstr_otf_control TYPE itcpp.
      DATA: wtbl_buffer TYPE TABLE OF soli WITH HEADER LINE.
      DATA: wtbl_otf TYPE TABLE OF itcoo WITH HEADER LINE.
      DATA: wstr_retcode LIKE itcpp.
    *--- return spool raw data
      CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
        EXPORTING
          rqident              = rqident
        TABLES
          buffer               = wtbl_buffer
        EXCEPTIONS
          no_such_job          = 1
          job_contains_no_data = 2
          selection_empty      = 3
          no_permission        = 4
          can_not_access       = 5
          read_error           = 6
          type_no_match        = 7
          OTHERS               = 8.
      IF sy-subrc <> 0.
        MESSAGE s013 WITH text-001.
        EXIT.
      ENDIF.
      LOOP AT wtbl_buffer .
        wtbl_otf-tdprintcom = wtbl_buffer(2).
        wtbl_otf-tdprintpar = wtbl_buffer+2.
        APPEND wtbl_otf.
      ENDLOOP.
    *--- some data to pass to this parameter, may not need...from SP01...
      wstr_otf_control-tdcopies = 1.
      wstr_otf_control-tdappl = 'TX'.
      wstr_otf_control-tddest = 'LOCL'.
      wstr_otf_control-tdpages = 0.
      wstr_otf_control-tdnoprint = 'X'.
      CALL FUNCTION 'DISPLAY_OTF'
        EXPORTING
          control = wstr_otf_control
        IMPORTING
          RESULT  = wstr_retcode
        TABLES
          otf     = wtbl_otf.
      IF wstr_retcode IS INITIAL.
    *--- message...
      ENDIF.
    ENDFORM.                    "DISPLAY_FORM
    *&      Form  display_others
          display other types, may more types needed to separate...
          you can refer current version of SAP report RSPOLST2
    FORM display_others.
      CALL FUNCTION 'RSPO_DISPLAY_SPOOLJOB'
        EXPORTING
          rqident              = rqident
        EXCEPTIONS
          no_such_job          = 1
          job_contains_no_data = 2
          selection_empty      = 3
          no_permission        = 4
          can_not_access       = 5
          read_error           = 6
          OTHERS               = 7.
      IF sy-subrc <> 0.
        MESSAGE s013 WITH text-001.
      ENDIF.
    ENDFORM.                    "display_others

  • How do you start using calendar?

    How do you start using calendar? Adding dates,etc?

    One concept that is not described well is that your Calendar display is the Union of all the available Calendars selected. You can have lots of calendars open, and the events from each and every one will be shown in the summary Calendar display -- sort of like they were on transparencies overlaid on each other.
    Where you put your Master Calendar depends if you want to share your Master Calendar across multiple devices or other Users.
    The default calendar you "just create" is strictly private -- not available on any other device or any other User.
    To create a shareable Master Calendar, you need to set up an account on a calendar sharing site that is visible on the Internet -- not likely to be your home Mac. You can use Google calendar, Yahoo Calendar, iCloud calendar, any Server that uses CalDav, Microsoft Exchange, and others. Once established that Master Calendar can be accessed from anywhere on the Internet through another computer, an iPhone, or other "smart" devices.

  • How do you start using passbook?

    How do you start using passbook?

    Thx NJ,
    I have been using Apple products since 1983, and I too am embarassed.
    This is not an APP I need at all right now and I think I will wait until it is fixed so that I and others do not have to do all those silly work-a-rounds.
    I am baffled that Apple let this "Failbook" out.
    Thx Again to all

  • How do you effectively use if,for, type loops in TestStand. Do you have to use the goto command or is there a way of writing actual c type code (perhaps using the statement step in teststand) with the variables allready declared.

    Thank you
    Arik

    I assume your loop is more than just one step. You should use the 'Loop Options' for a single step.
    For looping on a group of steps, you can place them all in a sub sequence and then set the 'Loop Options' for the 'SequenceCall' step to set up your looping conditions. Pass values to and from the sub-sequence by Parameters.
    You can keep the loop inline with the rest of your sequence by using 'Goto' or using 'Goto destination' in the Post Actions tab of the condition step.
    Using a sub sequence will keep it easier to read and maintain.

  • How do you add/use typekit fonts that are not edge web fonts?

    I am just trying out the new Muse CC 2014.1 (August) release and was keen to try the new font facilities.  As far as I can see that while I can now add other fonts for which I have downloaded web font files via the Self Hosted Web Fonts function, Typekit fonts that are not "Adobe Edge Web Fonts" are effectively unavailable?  Have I missed something.
    As an example I want to use the Proxima Nova web font family.  I have selected it on the type kit site, set them up to Sync via my Creative Cloud account.  So for example if I select a font in Photoshop CC or Illustrator, the Proxima Nova fonts appear. Even ok in Word for Mac.  They do not appear in Muse.
    To add them as self hosted web fonts, I would need to physically download the relevant fonts files and install them on my desktop using the OS-X font tool.  However as they are being sync'd via Creative Cloud this shouldn't be necessary should it?  Also I don't see an option for doing so on the typekit site.
    Any help or guidance would be very welcome.
    PS:  I seem to have a separate issue with the Creative Cloud app, which is not listing fonts under the Assets tab.  But I don't think that is related as they are working fine for Photoshop, etc.

    Hi David,
    I'm sorry that you ran into trouble with this. To add fonts from Typekit to your Muse website, you will want to use the web fonts path instead of desktop fonts.  (You can use a desktop font synced from Typekit in your Muse design, but it will exported as an image the same as any other system font.)
    There are a couple options for using Typekit web fonts in Muse:
    o) The Muse Insider wrote a post on how to insert the Typekit embed code from the Muse interface:
    http://museinsider.com/how-to-add-typekit-fonts-to-your-muse-site.html
    o) Or you can add the embed code to the Page Properties dialog within Muse, which will include it in the <head> of the page when you export your website. The steps are the same as this tutorial, but you will add the Typekit embed code to Muse instead of into your page directly:
    TYPEKIT | Adding fonts to your site
    Note that in either case the Typekit fonts will not be displayed in the Muse preview window. You'll need to publish your site to a server in order for the Typekit fonts to be loaded into the page.
    If those look like more coding that you are comfortable with, you might try one of the fonts which you can select from the font menu instead. Here are some that are similar to :
    https://edgewebfonts.adobe.com/fonts#/?xHeight=high&contrast=low&class=sans-serif&width=re gular
    We are also working on a more complete integration of Typekit with Muse in the future, but I can't say yet when that will be available.
    >> PS:  I seem to have a separate issue with the Creative Cloud app, which is not listing fonts under the Assets tab.  But I don't think that is related as they are working fine for Photoshop, etc.
    Do you see a "loading" icon in the tab (e.g. a blue spinner wheel)?  It sounds similar to this thread; you might try these suggestions:
    Re: Adobe Creative Cloud / Desktop App / Home Screen: Constant Spinning Wheel
    I hope that this helps; let me know if you have any other questions.  Best,
    -- liz

  • How to pass radiobuttons using a submit statements.

    Hi All,
    Can anyone tell me how to pass radiobuttons using Submit statement.
    My problem is that I am able to pass one select option and one parameter using the statement:
    submit (v_repid) to sap-spool without spool dynpro
                       spool parameters s_print_parms
                       using selection-screen '1000' WITH SELECTION-TABLE t_rspar_tab
                       and return.
    This selection screens got to check selections based on 2 radio buttons available in the selection screen which also i need to pass through SUBMIT.Please let me know how do i pass this to the Submit statement.
    Thankx in advance...
    Helpful answers will be rewarded fully...

    Hi Susanth,
                   Create Variant for the calling program, Give that variant( here in the below program variant for calling program that I created is VAR1) in the calling program in SUBMIT Statement.
    <b>
    CALLING PROGRAM:
    </b>
    data:
      w_variant(5) TYPE c VALUE 'VAR1'.
    SUBMIT YH625_CALLED_PROGRAM USING SELECTION-SET w_variant.
    <b>CALLING PROGRAM:</b>
    TABLES spfli.
    parameters:
          w_radio1 RADIOBUTTON GROUP g1,
          w_radio2 RADIOBUTTON GROUP g1.
    SELECT-OPTIONS s_table FOR spfli-carrid.
    WRITE '*************** This is Called program output **********************'.
    Hope this solves your problem.
    If you any query you are welcome.
    Regards,
    V.Raghavender.

  • How can you display interim messages while procedure running

    How can you show messages after every step via SQLPLUS(ex: a procedure) while it's running rather waiting it to complete??? (Not using temp tables)
    EX: a procedure has 5 steps. I want to see message as soos as step-1 completed, then Step-2 and so rather waiting untill at th end of procedure.

    Check out [DBMS_APPLICATION_INFO|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_appinf.htm]

  • Project Manager? How do you all use it?

    Hi. Im new to the project manager. It seems as if it could be of benefit to me using it to organise my sessions. What is it for and how do you use it. I have read the manual but want some personal feedback. Thanks, Ben

    in theory, the PM keeps tabs on all the files used/made in your sessions.
    sorta like a dedicated version of spotlight.
    the initial scan takes a while, but then all your audio, midi and patches are in one place after that.
    i do a PM scan before and after each important session.
    PM can miss stuff, so if you've just added a new sample lib, or tracked some vox for eg., it's a good idea to scan just the audio file section of the tree on the left.
    similar with new esx instruments, songs, etc.
    the find function allows you to see all clips that meet with the critera set and i use that to check for copies, duplicates, redundant files, etc.
    you can also edit any files PM finds. in this way, it's like a bigger, better version of the audio window.
    it's too bigger subject to go into too much more detail here, but sufficed to say, i have a lot less trouble with logic finding things if PM is kept up to date.

  • How do you effectively use WSUS/Windows Updates in a mobile/laptop environment?

    Hey everyone, I have a question about properly using WSUS and/or Windows Update to properly patch laptops. We provide our users with laptops and a large number of them work from home throughout the week. We want to make sure they're being properly updated,
    but also make sure we can control what updates are installed on the machines. It's my understanding that it is against the EULA to make a WSUS server available to the outside world. To me, this leaves a weird gap within the Windows Update world where you either
    get all updates from Microsoft's servers or you get updates only when you're onsite at your business. 
    I found a neat utility graciously created by the developer(s) of ABC-Deploy, called ABC-Update. This provides a utility to install, uninstall, update, or filter out any updates you wish. You can even have it run against your WSUS server. You could create a
    script that runs as a scheduled task to run against WSUS when you're onsite (assuming you have a static public IP) or against Microsoft Update (and filtering out the updates using the /K option). Not perfect, but it seems to do an OK job. My worry is the list
    of updates you'd have to filter out using the /K option could become rather large.
    I was wondering what everyone else does to properly patch their mobile/laptop environments?
    If there's no good solution, I'd love to get in contact with someone at Microsoft to work on this.

    Do check with MS on that EULA thing. It sounds strange that it is against EULA assuming you require client authentication when accessing published WSUS server. I have also seen several blog posts from MS describing publishing procedure (for example
    this one from WSUS support blog)
    Otherwise, I'm affraid, there is no "lightweight" way to do this without using third party soft or doing some programming of your own. One option is using System Center Configuration Manager to manage windows updates. It does support management
    of clients over internet, but requires deployment of a number of new servers and services in your network. Another option is deploying direct access in your environment to provide client computers with seemless connection to corporate network. In this case
    you can use WSUS to manage updates and collect statistic, while clients can be configured to downloads update content from the internet.
    Gleb.

  • How do you mute using the nokia headset for N97

    When using the nokia provided headset with the N97, how can you mute the call. I see there is a slider button on the side of the control unit, but I have tried using this to no avail. to mute i have continued ot use the phone controls, which almost negates the point of using a headset in the first place.
    thanks
    Solved!
    Go to Solution.

    I do not know how to mute it using the headset, but AFAIK the slider button on the headset was to keypad lock the headset control piece.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • How do you create a folder while saving a bookmark?

    While saving a bookmark I realize I need to create a new folder. How do you that? I don't see an option at all to create a folder on the fly.
    Thanks!!!
    Cathy
    MacBook Air 13" mid-2012
    IMac 27"
    iPad 2nd Gen

    Here is one way to do it.
    Select "Add Bookmark" after clicking "Share" button.
    "Add this page to:" box appears.
    Click "Bookmarks" menu in the Safari menubar.
    Select "Add Bookmarks Folder". A new window will open with "Untitled" folder created.
    Name it and close the window.
    Now the new folder will be available in "Add this page to:" dialog box.
    Safari does not have an easier way to do this like some other browser can.
    Best.

  • How do you keep iPhone charged while connected to carplay

    How do you keep iPhone charged in the car while it is connected to the cable for CARPLAY?

    The next time you connect your iPad to your laptop, click on your iPad under Devices and then click on the Apps tab on top. Once it opens and lists all your apps in iTunes on the left (both iPad and iPhone ), simply uncheck the boxes next to the iPhone apps you wish to leave off from future syncs. They will still be in iTunes and available for your iPhone, but won't be synced to your iPad. Click on Apply.

  • How do you guys use your Moshi Clearguard? (or any other KB cover)

    For those of you use the Moshi Clearguard, or any other keyboard cover,  do you guys use the cover all the time or only when you feel that your hands are a little dirty? Also, do you keep it on when the lid is closed? Thanks!

    i just leave mine on there and forget about it. I got a clear one and cant even tell that its on there. hope this helps

Maybe you are looking for