Back Button works one way for execute and another for enter

I created a custom program that includes a selection screen and a detailed list/table output.  When a user enters their selection criteria and hits enter (instead of execute) they'll go to the next screen, and when they are ready to back out, it goes back to the selection screen, which is correct.  But when a users enters their selection criteria and hits the Execute button, they'll go to the detailed screen and when they press the back button, it backs out of the program completely.  I don't understand why their is a difference between the two and how it would affect the back button.  Also, I don't know how to get the execute button and the enter key to act the same way.  Can any one offer any suggestions?

For the create program the selection screen logic is as follows:
parameters: s_matnr1 like mara-matnr,
             s_kunnr like kna1-kunnr.
start-of-selection.
at selection-screen on s_matnr1.
  if s_matnr1 is initial.
    message i080(zc) with 'Material number is required' .
    flag_error = 'Y'.
  endif.
LOOP at s_matnr1 to flag all invalid materials. Display message.
  select matnr
    from mara up to 1 rows
     into mara-matnr
     where matnr eq s_matnr1.
  endselect.
  if sy-subrc ne 0.
    message e080(zc) with 'Invalid Material'.
  endif.
  clear:   process_kunnr,
           process_matnr,
           zkotg903_excpts_tab,
           no_kunnr.
  refresh: process_kunnr,
           process_matnr,
           zkotg903_excpts_tab.
at selection-screen on s_kunnr.
  if s_kunnr is initial.
    no_kunnr = 'Y'.
  else.
    no_kunnr = 'N'.
    select kunnr from kna1 up to 1 rows
       into kna1-kunnr
       where kunnr eq s_kunnr.
    endselect.
    if sy-subrc ne 0.
      message e080(zc) with 'Invalid Customer'.
    endif.
  endif.
  perform get_material.
  loop at process_matnr.
    move process_matnr-matnr to zkotg903_excpts_tab-matnr.
    if no_kunnr = 'N'.
      select kunnr
        from kna1
        into  table process_kunnr
         where kunnr eq s_kunnr.
    endif.
    if sy-subrc = 0.
      loop at process_kunnr.
        select *
          from zkotg903_excpts
          where matnr = process_matnr-matnr
          and   kunnr = process_kunnr-kunnr.
        endselect.
        if sy-subrc <> 0.   
  move process_kunnr-kunnr to zkotg903_excpts_tab-kunnr.
          zkotg903_excpts_tab-datbi = '99991231'."validity end date
          zkotg903_excpts_tab-datab = sy-datlo.  "validity begin date
          zkotg903_excpts_tab-zzuname = sy-uname.
          append zkotg903_excpts_tab.
        else.
          message i318(zc) with process_kunnr-kunnr
             process_matnr-matnr.
          flag_error = 'Y'.
        endif.
      endloop.        "endloop for kunnr
    else.
      message i190(zc) with s_matnr1+3.
      flag_error = 'Y'.
    endif.
  endloop.           "endloop for matnr
if there isn't a customer, append material to zkotg903_excpts_tab.
  if no_kunnr = 'Y'.
    append zkotg903_excpts_tab.
  endif.
  if flag_error = 'N'.
    call screen '100'.
  else.
    call selection-screen 1000.
  endif.
The maintenance program is a little less involved as I am sure you know.  If you would like to see that code as well, I can post it.

Similar Messages

  • When i hover on stuff with my mouse, i have to double click it for it to actually work, one click to hover and another to click on the link... can someone help me ?

    When i hover on stuff with my mouse, i have to double click it for it to actually work, one click to hover and another to click on the link... can someone help me ?

    What system are you using?

  • I have two iTunes accounts, one for music and another for audiobooks.  I want to merge them and maintain only one iTunes account.  How do I do it?

    I have two iTunes accounts, one for music and another for audiobooks.  I want to merge them and maintain only one iTunes account.  How do I do it?

    You cannot.

  • Can i have a apple id for music and another for icloud?

    can i have a apple id for music and another for icloud?

    You can use one ID for the iTunes store account where you buy music, and another for an iCloud account.

  • Can windows xp use a different sound card for itunes - I want to use a sound card for itunes and another for all other apps

    Can Windows XP use a different sound card for itunes - I want to use a sound card for itunes and another for all ther apps

    To the best of my knowledge, Windows is not capable of setting a specific sound card based on the app being used, it's all or nothing.
    Try a google search or search the Microsoft site.

  • I have an ipad 2 and want to have one account for home and another for work, how do i do this?

    I have an Ipad 2 and use it for work, I want to run a second account for home, how do I do this?

    What kind of accounts? Multiple email accounts are supported.
    Multiple user accounts are not.
    If you are saying you would like to have one set of apps, media, etc
    for work and a different set for home, and switch between the 2
    depending on network login or location, this is not a feature of iOS.
    If this is not what you are asking, please post more details so someone
    may offer a solution.

  • One chapter for video and another for images on same DVD?

    Hello,
    I don't yet have a Mac, but am very close to buying a MacBook. I do have a question about iDvd. Is it possible to create a theme or template or to even do this. I want to on a regular basis have a short 5-7 tops 10 minute video and 100-200 pictures. I'd like it so the user has the option to click one chapter and watch the video. Click the other and view the images with an option to browse the disc and save the images for uploading to their target of choice such as FB. Is this possible with iDvd?
    Thanks,
    BK

    Hello and Welcome to the discussions!
    Congratulations on being an 'almost' Mac purchaser!
    Yes, you can do what you want in iDVD.
    You will have theme templates that come with iDVD to use to make a nice theme for your projects.
    You will have the options to have the videos play individually by placing them on the menu one at a time, or to put them in iDVD the way you place a slideshow and have them play consecutively. Here is a link to a visual from Old Toad showing just that. Remember to look at this again when you get to this point:
    http://homepage.mac.com/toad.hall/.Pictures/Forum/iDVD8movieSS.png
    Another option for videos is to put them all into one iMovie and make chapters for each video. However, the chapters will not appear on the main menu, but in a separate submenu.
    You can then put the photos in iDVD as their own separate slideshow.
    When your DVD is viewed, the options will be to select to play the video slideshow or play the photo slideshow. You can rename these titles whatever you wish.
    If you make an iMovie, the options for it will be 'Play Movie' and 'Scene Selection' ( to link to the submenu with the iMovie chapter choices) and the same photo slideshow.
    In additiion, you can utilize the DVD-ROM option to have the photos and videos available for downloading to computer. This option will not be seen when the DVD disk is viewed on a set-top DVD player. iDVD's Help File says:
    +In iDVD, you can easily make it possible for viewers to download the photos and movies that appear in your slideshows. This is a nice feature for viewers who may, for example, want to print the photos for permanent display.+
    +The photos and movies are added to the DVD-ROM portion of your DVD, and viewers can access them when they insert the DVD into the drive on a computer. (The files are not accessible from a TV.)+
    Get the MacBook! Good luck with your projects. Take the time to do all the tutorials Apple offers for its iLife applications. Spend time here in the discussions for the apps you are using. Utilize the Search function to see if someone else has asked and received answers to a problem similar to yours. You will learn a lot and find answers that even the Apple Genius bar people do not have!
    Message was edited by: Beverly Maneatis

  • Why does my app store use a different account for downloading and another for updating apps?

    My app store used my own account for downloading and my sister's for updating, and it keeps telling me to reset my account. I already did that the other few times it told me to do that!

    Have you restored your device from your sister's backup?

  • I have two script. one for indesign and another for photoshop. how can i merge both scripts?

    hi all,
    i have one script for indd which convert a user selected table as JPG (1276 px width, height varies). Second photoshop script which ask user to select jpg file and then check if pixel height is less than 1018 pixel, then it enlarge canvas size(height) to 1018 px.
    how can i combine both script, any tip or how to start would be helpful? The workflow should be:
    user select the table in indd document
    table export as jpg
    script will ask to select table jpg file or if it can be automated too that would be good.
    enlarge canvas height to 1018 px
    thanks
    virender
    PS: i already read the Java scirpt tool guide pdf but unable to understood

    Hi,
    I see two possible approaches here. The most logical would be to use a BridgeTalk Object that let you execute another app js code inside yoru primary app. In your case, you start your script from within InDesign and at some point the Photoshop specific script is executed thanks to the BridgeTalk Object.
    Other option is to use either AppleScrip or VB to execute the codes while targeting the specific app.
    Eventually, you may have your PS code in some external file and call $.evalFile when of course the file has a target instuction as Peter exposed.
    Once again, I think what you need is BridgeTalk.
    FWIW,
    Loic
    http://www.ozalto.com

  • Crystal report runs one way in designer and another in Infoview

    Post Author: jasonp
    CA Forum: Crystal Reports
    I have a Crystal report with a number formula that runs correctly in the designer, but comes up with incorrect values on the server. The formula is used to determine a range in the select expert, so I end up with completely different data. I'm not using any custom functions, just what Crystal gives you. We recently migrated the Infoview server and I suspect this is what is causing this since it worked before. The formula:
    CDbl (Mid ("1" + Mid (CStr (Year (date(dateadd("d",-(day(currentdate)),currentdate)))),3 ,2) + CStr ((date(dateadd("d",-(day(currentdate)),currentdate)) - CDate (Year (date(dateadd("d",-(day(currentdate)),currentdate))),01 ,01))+1),1 ,6))
    returns 107273 in the designer (correct), but returns 100273 in Infoview (incorrect).
    Any suggestions?

    Post Author: SKodidine
    CA Forum: Crystal Reports
    CSTR is not functioning as you expected because you are not accounting for the decimals and commas.  Here is what is happening. Results are step by step and color coded assuming you run this on 10/01/2007.
    The first half of the formula is the problem.
    Mid ("1" + Mid (cstr (Year (date(dateadd("d",-(day(currentdate)),currentdate)))),3 ,2)
                                                                                    09/30/2007
                                                                                    09/30/2007
                                                                                    2007
                                                                                    2,007.00 This is causing the problem.
                                                                                    00
    The second half of your formula brings in 273, combine that with above gives you 100273.
    You could change the MID values from (3,2) to (4,2) but I suggest using the optional arguments, which will give you the following:
    Mid ("1" + Mid (cstr (Year (date(dateadd("d",-(day(currentdate)),currentdate))),0,"",""),3 ,2)
                                                                                    09/30/2007
                                                                                    09/30/2007
                                                                                    2007
                                                                                    2007
                                                                                    07
    Combined with the second half of your formula it will give you 107273. 
    I suggest, for the second CSTR be used with the optional arguments for decimal places, thousands separator and decimal character, for uniformity.  The CDBL makes it numeric and puts the commas and decimals.
    Your final formula:
    CDbl (Mid ("1" + Mid (cstr(Year (date(dateadd("d",-(day(currentdate)),currentdate))),0, "",""),3 ,2) + cstr ((date(dateadd("d",-(day(currentdate)),currentdate)) - CDate (Year (date(dateadd("d",-(day(currentdate)),currentdate))),01 ,01))+1,0, "",""),1 ,6));

  • HT204053 Now I've got it totally screwed up.  I have one address for iCloud and another for iTunes.  I would rather have only 1 but can't make the forms fill out correctly to do that.  What now?

    I've just bought my iPhone and have had an iTunes account for some time.  While setting up the iPhone - Apple ID - the form would not allow me to use my currect primary email address.  I had to insert another one because of the iTunes email address apparently.  Now I can't seem to get it straightened out.  I need my primary email address to be the only one and use a secondary address for the "rescue" address. How can I manage this without making everything worse?

    Welcome to the Apple Community.
    You need to use the original Apple ID you used for iTunes with iTunes and iCloud on your new device. What problems did you encounter when you tried to do this.

  • Using one counter with FiniteSamps and another with ContSamps

    I am trying to use 2 counters on the USB-6229 (or USB-6259), where one counter is set up for FiniteSamps and another for ContSamps. I have the following MeasurementStudio code:
    ErrChk DAQmxCreateCOPulseChanTicks(hCnt0, "Dev1/ctr0", "", "20MHzTimebase", DAQmx_Val_Low, 0, 400, 400);
    ErrChk DAQmxCfgImplicitTiming(hCnt0, DAQmx_Val_FiniteSamps, 100);
    ErrChk DAQmxStartTask(hCnt0);
    ErrChk DAQmxCreateCOPulseChanTicks(hCnt1, "Dev1/ctr1", "", "20MHzTimebase", DAQmx_Val_Low, 0, 400, 400);
    ErrChk DAQmxCfgImplicitTiming(hCnt1, DAQmx_Val_ContSamps, 2);
    ErrChk DAQmxStartTask(hCnt1);
    When I run it, I get a run-error 50103 "The specified resource is reserved". If I change the FiniteSamps to ContSamps on the first counter, everything works fine.
    If I use only one counter with FiniteSamps, everything also works fine.
    Is this a bug in DAQmx or the dual counter use on M-series devices is limited to ContSamps?
    Vic
    Solved!
    Go to Solution.

    Hi Vic,
    This is actually expected on an M Series device.  Here's a timing diagram from the M Series User Manual that might make this a bit more clear:
    The device actually uses one counter to gate the other so the result is a finite pulse generation.  If you can provide the gate from another source, you may configure a continuous pulse generation on both counters and gate them (DAQmx calls this a "Pause Trigger") from this external signal. 
    You might also want to look into using Correlated Digital I/O to generate multiple finite pulses (up to 32 lines on your 6229 and 6259).  You could use one of the counters to generate a timebase for the digital lines, and build the waveform accordingly.
    One thing to note is that our new X Series boards can generate a finite pulse generation on a "single" counter (there is actually a paired internal counter that allows for this).  There are four user-accessible counters on X Series devices, meaning you could generate four finite pulse trains.
    Best Regards,
    John
    John Passiak

  • I added a contact to my iphone 4s and when I did a sync manually it is not showing up on my MAC in address book - please help....I checked off sync all contacts in iTunes  - does it only work one way from computer to phone?

    I added a contact to my iphone 4s and when I did a sync manually it is not showing up on my MAC in address book - please help....I checked off sync all contacts in iTunes  - does it only work one way from computer to phone?

    Is it because the new itunes looks different.
    View > Show Sidebar
    Then it should work just the same as on your old computer.

  • MAC OS Yosemite - CS6 - A while back, i did something to where when i open a file in photoshop, it no longer is one window, now it's two separete ones. one for the program itself, and another for the actual file how do it get it back to where it's all one

    - A while back, i did something to where when i open a file in photoshop, it no longer is one window, now it's two separete ones. one for the program itself, and another for the actual file how do it get it back to where it's all one window without having to be in full screen mode? I've managed to go some time like this, but right now it's just really annoying me. HELP!!!

    Just drag the small window to the top right below the toolbar, you'll see the area highlighted and when you drop it the file should dock.

  • Google Account BlackBerry Sync only works one way

    Hey I just got my BB yesterday... I set up my Google Account on my BB and it downloaded all the data to my device. Then I set up an new Test-Contact and a Test-Appointment (calender) on my BB and it was synced to my google account... everything was fine... After that I set up another Test-Contact and Test-Appointment in my google account to check whether it would be synced to my BB... But that did not work at all... NOTHING WAS SYNCED... I waited for houres but it just would not sync the data to my BB... Same situation if I read or delete an Email in my google account the Email still appears as unread on my BB... But when I read one on my BB it appears as read on my google account... seems like sync is just working one way!
    Any ideas?

    I'm still new with BB, using it as a loaner phone when my Android got waterlogged.  I have the same problem, sort of - in my case, I noticed with Emails that it takes a good amount of time for one read on the BB to show as read in my Gmail.  And it's the same the other way except maybe a tad faster.
    But I'm not able to sync my google calendar any longer.  I read that google was dropping support for BB sync options sometime around 6/1/12, and somewhere in these support forums there's a thread on the topic, stating you can use your BIS account to get them to sync, and in looking for that thread I ran across your post.  If I find it, I'll come back and link to that thread.

Maybe you are looking for

  • Releasing object once and for all

    Hello, I am wondering if it's possible to release an object in one call from all possible references that might be tied to it. For example, I have the following code: //declarations Object x = new Object (); Vector i = new Vector(); Vector j = new Ve

  • How to setup and use Passbook on iPhone 4?

    How to setup and use Passbook on iPhone 4?

  • Disconnected from DB when attempting to create trigger.

    I receive an ORA-03113: end-of-file on communication channel when creating this trigger. Could it be that the user that I'm logged in as does not have privileges to create triggers or something else? CREATE OR REPLACE TRIGGER SLEA_TRANSACTION_TR   BE

  • Where do I download the crredist*.msi files for Visual Studio 2005 and CR

    I've created a VS 2005 application that uses the CR viewer control.  When I run the application, the app generates an error message.  It states that I need to install the appropriate CR redistributable (crredist*.msi).  Shouldn't this file be on the

  • FSG Row set Definition

    Hi , In FSG Report Row set Definition, we have assigned the one parent account and choose expand for the Natural account . But the requirement is to fetch from multiple set of books , so we copied the same account assignment and assigned different se