Opening up a new frame

Hi everyone, im new here.
I'm creating a friendly GUI project with buttons and detecting key press events. Currently, I'm having problems detecting keypress for a new frame(sub frame) that i've opened.
I've 2 AWTEventListener, 1 for main frame and 1 for sub frame.
Is there any ways that i can clear this problem?
Thanks in advance

Hi camickr and MikeP.
I tried using key binders for the main frame. I'm starting with button key press down. However, the focus doesn't seem to shift over to the next button, and the program will stay there.
But when i use System.out.println("Button focused on " +current); without the request focus line.
It managed to show which button is suppose to have the focus.
Below is the edited program with key binders
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.KeyStroke;
import javax.swing.SwingUtilities;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.GridBagLayout;
import javax.swing.JButton;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.event.ActionEvent;
public class MainFrame extends JFrame{
     private static final long serialVersionUID = 1L;
     private JPanel jContentPane = null;
     public JButton[] MenuButton = new JButton[8];
          for (int i = 0; i<8 ; i++)
               MenuButton[i] = null;
     private int current = 0;
     private JPanel jContentPane() {
          if (jContentPane == null) {
               GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
               gridBagConstraints7.gridx = 1;
               gridBagConstraints7.insets = new Insets(8, 8, 8, 8);
               gridBagConstraints7.fill = GridBagConstraints.BOTH;
               gridBagConstraints7.gridy = 3;
               GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
               gridBagConstraints6.gridx = 1;
               gridBagConstraints6.insets = new Insets(8, 8, 8, 8);
               gridBagConstraints6.fill = GridBagConstraints.BOTH;
               gridBagConstraints6.gridy = 2;
               GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
               gridBagConstraints5.gridx = 1;
               gridBagConstraints5.insets = new Insets(8, 8, 8, 8);
               gridBagConstraints5.fill = GridBagConstraints.BOTH;
               gridBagConstraints5.gridy = 1;
               GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
               gridBagConstraints4.gridx = 1;
               gridBagConstraints4.insets = new Insets(8, 8, 8, 8);
               gridBagConstraints4.fill = GridBagConstraints.BOTH;
               gridBagConstraints4.gridy = 0;
               GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
               gridBagConstraints3.gridx = 0;
               gridBagConstraints3.insets = new Insets(8, 8, 8, 8);
               gridBagConstraints3.fill = GridBagConstraints.BOTH;
               gridBagConstraints3.gridy = 3;
               GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
               gridBagConstraints2.gridx = 0;
               gridBagConstraints2.insets = new Insets(8, 8, 8, 8);
               gridBagConstraints2.fill = GridBagConstraints.BOTH;
               gridBagConstraints2.gridy = 2;
               GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
               gridBagConstraints1.gridx = 0;
               gridBagConstraints1.insets = new Insets(8, 8, 8, 8);
               gridBagConstraints1.fill = GridBagConstraints.BOTH;
               gridBagConstraints1.gridy = 1;
               GridBagConstraints gridBagConstraints = new GridBagConstraints();
               gridBagConstraints.gridx = 0;
               gridBagConstraints.fill = GridBagConstraints.BOTH;
               gridBagConstraints.insets = new Insets(8, 8, 8, 8);
               gridBagConstraints.gridy = 0;
               jContentPane = new JPanel();
               jContentPane.setLayout(new GridBagLayout());
               jContentPane.add(getJButton(), gridBagConstraints);
               jContentPane.add(getJButton1(), gridBagConstraints1);
               jContentPane.add(getJButton2(), gridBagConstraints2);
               jContentPane.add(getJButton3(), gridBagConstraints3);
               jContentPane.add(getJButton4(), gridBagConstraints4);
               jContentPane.add(getJButton5(), gridBagConstraints5);
               jContentPane.add(getJButton6(), gridBagConstraints6);
               jContentPane.add(getJButton7(), gridBagConstraints7);
               jContentPane.getInputMap().put(KeyStroke.getKeyStroke("DOWN"), "MoveDown");
               Action ActionDown = new AbstractAction() {
                   public void actionPerformed(ActionEvent e) {
                        current = current < 7 ? current = current + 1 : (current + 1 > 7 ? 0:1);
                      //System.out.println("press down, Button"+current+" on focus");
                      MenuButton[current].requestFocus();  //next button obtains focus
               jContentPane.getActionMap().put("MoveDown", ActionDown);
          return jContentPane;
     private JButton getJButton() {
          if (MenuButton[0] == null) {
               MenuButton[0] = new JButton();
               MenuButton[0].setText("Singapore");
          return MenuButton[0];
     private JButton getJButton1() {
          if (MenuButton[1] == null) {
               MenuButton[1] = new JButton();
               MenuButton[1].setText("World");
          return MenuButton[1];
     private JButton getJButton2() {
          if (MenuButton[2] == null) {
               MenuButton[2] = new JButton();
               MenuButton[2].setText("Business/Finance");
          return MenuButton[2];
     private JButton getJButton3() {
          if (MenuButton[3] == null) {
               MenuButton[3] = new JButton();
               MenuButton[3].setText("Sports");
          return MenuButton[3];
     private JButton getJButton4() {
          if (MenuButton[4] == null) {
               MenuButton[4] = new JButton();
               MenuButton[4].setText("Technology");
          return MenuButton[4];
     private JButton getJButton5() {
          if (MenuButton[5] == null) {
               MenuButton[5] = new JButton();
               MenuButton[5].setText("Entertainment");
          return MenuButton[5];
     private JButton getJButton6() {
          if (MenuButton[6] == null) {
               MenuButton[6] = new JButton();
               MenuButton[6].setText("Special Reports");
          return MenuButton[6];
     private JButton getJButton7() {
          if (MenuButton[7] == null) {
               MenuButton[7] = new JButton();
               MenuButton[7].setText("Travel");
          return MenuButton[7];
     public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
               public void run() {
                    MainFrame thisClass = new MainFrame();
                    thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    thisClass.setVisible(true);
     public MainFrame() {
          super();
          initialize();
     private void initialize() {
          this.setSize(1024, 768);
          this.setContentPane(jContentPane());
          this.setTitle("Daily News");          
}Thanks for your time and help

Similar Messages

  • How can I force any new selection from bookmark to open in a new frame ?

    How can I force any new selection from bookmarks to open in a new frame ?

    Sorry I would like it happen as a preference,
    automate the option like
    "Always open in new tab when click Bookmark "
    (not over the actual tab)
    thanks

  • Is there a way to make a hyperlink in Frame 12's CHM output open in a new brower window?

    I am authoring in Frame 12 and using the Publish command to make HTML Help (CHM files).
    To create hyperlinks, I format some text in FrameMaker with a character style, them add a Marker of type "Hypertext" to the text, using the marker text:
    message URL http://www.address.com/" target="_blank
    (sic! note the odd space after the first quote mark..... this syntax isn't documented by Adobe AFAIK, someone on these forums told me it in the past.)
    This creates a hyperlink in the CHM that opens in a new Help viewer pane .... but really, what I want to do is open the link in a new browser pane (whatever the user's default web browser is).
    Is there a syntax to do that?

    It worked for me. See the source of my example at (PDF link to open in new window). (Sorry, that is the default title of the test page.)

  • A button that will open a new frame

    Greetings Folks:
    I am intending to create a button, which after being pressed, will open a new frame. This new frame will contain some functinality which i will define later. Have you got any suggestions? Should I create a diffrent class for this new frame or should everything relating to this frame be defined in the listener method of the button?

    I'd say create a new class...
    But im not sure what you are talking about. Do you want a full new window with new buttons, textfields etc. Or just some kind of dialog window?
    If your previous screen wouldn't have any use after the button was clicked, you could just use a repaint and set a new frame size and interface.
    I'vn't got that much experience, so correct me if I'm wrong... :)
    maybe an explanation what the program does would be useful?
    Regards,
    Guido

  • PDF to b opened in a new window or in a download frame

    when using hyperlink in iweb pdf file is opening in the same window. how can i make so the file is opening either in a new window or in a "save as" frame?

    If you upload the pdf file to the server manually and then link to it via the Inspector/Hyperlink pane with the Link to option An External Page (with the checkbox to open in a new window selected) you can have the pdf file open in a new window where it can be viewed or downloaded.
    Click to view full size
    This demo page has an example of that: LinkTestPage . Look for the text box with the following text: This text box is linked to view/download a pdf file". Click on it to view. In the view window there is a download button (second from left).
    OT

  • Why won't Safari open links in a frame in a new window?

    I am having trouble with Safari not opening links on a certain page. I am using OS 10.8.2 and Safari 6.0.2.  The links on this site work in Firefox and Chrome, but not Safari. I have tried the same page on older computers with older versions of Safari, and they work like they always have.
    The only thing I can think of that might be causing an issue is that the links reside on a frame within a webpage.  If I hold down command and click the link it will open in a new tab, but I don't want to have to hold down the command key every time.
    Thanks in advance for any help.
    -Kristen

    Okay, I think I know a little more about why Safari is having issues with these links.  The link has some Javascript in it (onclick="logAction('Lesson Planet - Quick Link');return true;")  that records that it was clicked for statistics logging:
    <a href="http://www.sbceoportal.org/jsp/lesson_planet.jsp" title="Thousands of searchable lesson plans vetted by teachers." target="_blank" onclick="logAction('Lesson Planet - Quick Link');return true;">
    <img src="quick_links_files/lesson_planet.jpg" width="230"></a>
    When I take the Javascript out, Safari will open the link.  I'd really like to leave the Javascript in, because we are recording statistics this way.  Is there any workaround?
    Thanks,
    Kristen

  • Frames open in a new window

    Hello there!
    I am trying to do a homepage in dreamweaver. It is working
    well just in Safari. Frames open in a new window on other browsers
    and it is not what I want. I haven't linked anything to _blank. Can
    anybody help me?
    Dental V6

    What? Each page is complete in itself. That's the thing you
    are missing.
    In that case, you do not need both page1 and page2 open at
    the same time.
    I assume you are imagining page1 as something like masthead
    and navigation,
    and page2 as content. But that's not the best way to do it.
    Page1 and
    page2 would both contain masthead and navigation and content.
    They would be
    independent pages that are both complete.
    The way to do this would be to use -
    1. DW templates to provide easy-to-maintain 'boilerplate'
    elements on all
    pages, or
    2. Server-side includes to allow the use of separate
    'component' page
    fragments which are automatically included into each page by
    the server.
    You just do not want to use frames.
    The decision to use or not use frames should be based on a)
    your site's
    needs, and b) your willingness to accept the potential
    problems that frames
    can create for you as developer and maintainer of the site
    and for your
    visitors as casual users of the site.
    I am down on frames because I believe that they create many
    more problems
    than they solve.
    Judging from the posts here, and the kinds of problems that
    are described,
    the kind of person most likely to elect to use frames is also
    the kind of
    person most likely ill-prepared fo solve the ensuing problems
    when they
    arise. If you feel a) that you understand the problems and b)
    that you are
    prepared to handle them when they occur, and c) that you have
    a need to use
    frames, then by all means use them.
    As far as I know, the most comprehensive discussions of
    frames and their
    potential problems can be found on these two links -
    http://apptools.com/rants/framesevil.php
    http://www.tjkdesign.com/articles/frames/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Dentalv6" <[email protected]> wrote in
    message
    news:[email protected]...
    > But I want page2 opens beside page1. In this case I need
    frames, right?
    >

  • Firefox 4 - Opening in a new window puts a second windows frame around the firefox browser window

    Using Firefox 4 in Windows 7
    I have customised the position of tabs (Tabs on top) and which toolbar items I would like to see.
    The first window I open of firefox 4 always has the configuration as I set it.
    Whenever I open a new window of firefox either:
    # - Right-click a link to open in a new window
    # - Click a link anywhere (such as an email) to open a new window
    # - When a website opens a page in a new window
    Bad Results:
    # - The new window does not have the configuration as set in the main window (Tabs on top)
    # - The new window has a windows type window frame around the firefox window (see two sets of window controls eg. "minimise", "restore" and "close")
    # - The open page does not show the url - navigating to a new page within this window will not update the url :: strangely enough clicking the url page icon will update the url as it should be
    # - Sometimes when restarting firefox, it will open the first main window with the remembered tabs and then open approx 8 or so blank new windows as described above

    I have troubleshooted this issue and have found what I think is a resolution.
    The cause of this issue seems to be Profiles.
    Previously when running firefox 3 I had multiple profiles setup. when deciding to update to firefox 4 I removed these old profiles.
    When installing firefox 4 for some reason it used a "default" named profile, and this caused the problems I described above.
    RESOLUTION:
    Ran firefox.exe -ProfileManager
    created a new profile, it named itself "Default User" I then selected the new default and tested. The window behavior is now acting as it should wothout the above problems.
    I deleted the old profile and now it works, using the new profile.

  • Opening new frame in new thread

    I am having huge problems with an app. The main frame has a button on it. when the button is selected a second frame opens. I would like this frame to open in a new thread and the main thread to wait until it is closed again, but nothing I do seems to work! Does anyone have any ideas?
    I have the following code, but the problem is that it prints HAVE FINISHED before the Settings frame is closed:
    isRunning = true ;
    Thread settingsThread = new Thread()
         public void run()
              Settings sett = new Settings() ;
              isRunning = false ;
              System.out.println("stopped") ;
    settingsThread.start() ;
    while(isRunning)
    try
              System.out.println("sleeping") ;
              Thread.sleep(0) ;
         catch (InterruptedException ie)
              System.out.println("PROBLEM") ;
         } // end while
    System.out.println("HAVE FINISHED") ;

    Hi,
    it sounds like you are looking for a model dialog. If "Setting" inherits from JDialog you can use the constructor "JDialog(this, true)" in your frame of the main app. The problem in your code is, that event handling always has its own thread. You can't permit "running" the window in the background, but you can permit getting the focus with modal dialogs.
    bye
    Steffen

  • Hello. My iphone 4, iOS 6.1.3 gone wild....everything is going in slow motion, every app i open is running in frames...i tried reseting the handset, with back-up, without backup(as a new iPhone) and the result is the same. Help ! Apple? Anybody ?

    Hello. My iphone 4, iOS 6.1.3 gone wild....everything is going in slow motion, every app i open is running in frames...i tried reseting the handset, with back-up, without backup(as a new iPhone) and the result is the same. My battery percentage is going down down down only by looking at my phone, imess is making me crazy, after i write the name for the recipient the keyboard appears after 2 min...and the list is looooong...everything is gone wild ! Why? What can i do ?

    I'm having similar issues just lately. The phone itself is very slow to respond to the touch, just scrolling between home screens is a chore at times. There have been about 2 incidents of random vibration from it. Closing home screen folders takes a couple of attempts. I find that I'm also having delayed keyboard responses when typing messages to my contacts.
    Also, sometimes when I press the sleep/wake button it takes about 30 seconds to register it and actually lock or wake up.
    Have you experienced the backlight failing to light up? Like if I get a message it flashes up then goes black straight after and when you press the sleep/wake or home button it lights up again but very very dimly and you have to press the sleep/wake button as if locking it and then press it again to bring the screen up properly?
    Mine is also on 6.1.3(10B329), model MD245B/A, obviously not Jailbroken, carrier unlocked from Vodafone (but that was months and months ago). Roughly 17gb of storage space left.
    This has only started happening in the last 2 weeks. Haven't tried the reset or anything yet though.

  • Open iView in new WINDOW for CATW

    HI All,
    We are on Netweaver2004s and the browser used is either Internet Explorer 7 (Microsoft Vista) or Mozilla Firefox.
    Now what I need help on is that I have a link on my page that says "Report Your Time", this link calls the Internet Service CATW via the  ITS from my R/3 and opens the TIMESHEET (which is an iView) to be filled in by the user <b>in a new window</b>.
    On this TIMESHEET I have a link called as "EXIT" , now after the timesheet is filled and saved, the user should use this "EXIT" link to leave the window. The code behind "EXIT" is so written by SAP that it kills the user's session. But not always and all user's use this "EXIT" link, they generally close the window by browser's (X) close button. This causes the user to get locked in the backend.
    So far I have been able to trap the browser's (X) close button and kill the session by using "setOKCode('/nex')". This works fine in I.E 6 (which has no tabs) and if the user <b>closes</b> Mozilla Firefox from the top (X) close button of the browser.
    BUT, in I.E 7 and mozilla firefox, when the user clicks on "<u>Report Your Time</u>" link on my page, a new tab opens and the TIMESHEET is displayed on this tab within the same browser window, so after filling and saving the timesheet when the user closes the (TIMESHEET) <b>tab</b>, the session does not get killed and the user gets locked in the backend. Here, <b>if</b> the user had closed the entire browser window by using the  the top (X) close button of the browser, instead of just closing the <b>tab</b> containing the TIMESHEET, then his session would have been killed by my code.
    This is the code that identifies if the user has clicked on  top (X) close button of the browser. <b>But this code does not identify if a browser's tab is closed.</b>
    <BODY onbeforeunload="HandleOnClose()">
    <script language="javascript">
    <!--
    function HandleOnClose() {
       if (event.clientY < 0) {
          event.returnValue = 'Are you sure you want to leave the page?';
    In the above I check clientY property of the event object, which is used to set or retrieve the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
    Is there a way to capture the closing of a browser's tab. A way by which I can trap the event raised when the browser window's tab is closed.
    This has to be done via "Java Script" since the code will be placed in the HTML template in SE80.
    Kindly help with your expert suggestions
    Regards
    Saurabh

    Hi Aviad,
    You could set "fullscreen=yes" (without quotes) for the property called "Window Features" (technical name: "com.sapportals.portal.navigation.WinFeatures") on the navigation element in question (iView or, if existent, surrounding page). Take care, this opens the window without frame and toolbar (closable by ALT-F4).
    To get a 100% screen (with toolbar, frame etc), you have to calculate the clients resolution before, using JS for example. So you would need to build a workaround, for example an iView with no output but opening a new window with a certain NavURL as target.
    Hope it helps
    Detlev

  • How to open page in new window while handling event on link.

    Hi all
    I have a requirement where page should be opened in new window when I click on link.My item style is 'link'.Despite of mentioning target frame _blank, I m not able to open it in new window.I m handling event by setting Action Type as fireAction.I hope this might be the reason because of that this happened. Can somebody suggest some solution so that I can open it in new window.
    Thanks,
    Bhupendra

    Hi ,
    though i am not able to answer, i can get some answer for my question.
    How the link item is handled thru the ActionType and event in the Client Action..?
    The reason for this question is that we are trying to extend the customer search page in AR - EBSR12. there the search result page has the Account Name as a link and the Action event says viewAccountName and the action type says firePartialAction. I am trying to understand this so that i can add more parameters to the link so that i can use them in the target page of the link..
    Any help is appreciated..
    Thanks
    Chidam

  • Opening and closing a frame from an applet security problem

    can I open a frame or a window from an applet and close the frame by using
    System.exit(0) for the frame or will it throw a security problem.

    I am using system.exit(0) to exit the JVM.
    dispose()
    Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children. That is, the resources for these Components will be destroyed, any memory they consume will be returned to the OS, and they will be marked as undisplayable.
    If this frame have to be close and open again don't use dispose.
    there is no check whether a frame is active? what you can do is set the the new frame to null (frame = null) and also when you dispose it, this will let you know if the frame is active or not.
    Noah

  • Open iView in new window in fullscreen

    Hi,
    I would like to open an (URL) iView in new window and maximize it size to expand on all the screen. Something like: width=100% height=100%.
    Unfortunatly, the window feature properties does not allow this, it only allows passing width and height in pixels.
    Does anyone has a solution for this issue? How to open iView in a new window in full-screen.
    Thanks in advance,
    Aviad

    Hi Aviad,
    You could set "fullscreen=yes" (without quotes) for the property called "Window Features" (technical name: "com.sapportals.portal.navigation.WinFeatures") on the navigation element in question (iView or, if existent, surrounding page). Take care, this opens the window without frame and toolbar (closable by ALT-F4).
    To get a 100% screen (with toolbar, frame etc), you have to calculate the clients resolution before, using JS for example. So you would need to build a workaround, for example an iView with no output but opening a new window with a certain NavURL as target.
    Hope it helps
    Detlev

  • How do I create a new frame using Flash CS5 on a Mac so I can add more pictures to my website?

    I have what I hope is a fairly straight forward question that I hope you can answer if you write code with a Mac or are at least familiar with the process on a Mac?  The person I have been working with to create my photography website uses a PC.  Here is the problem.  I am trying to use my Mac in order to create frames so that I can add 5 more images to a portfolio that presently has 15 images.  The code is in an index.fla file.  If I want to create a new frame in the index.fla, let's say LOAD CODE 381 and want to use the same text that is already present in LOAD CODE 380 but with a few edits, I have no trouble going to the Action-Movie Clip and finding LOAD CODE 380 in the left hand column.  The problem is, on a Mac, how do I create frame LOAD CODE 381 and then how do I copy and paste the text from LOAD CODE 380 into LOAD CODE 381?  It looks like on a PC one can open LOAD CODE 380 in the Action-Movie Clip, highlight the text then right click on the red rectangular box in the timeline.  By doing so (on a PC) one sees a drop down menu that gives the option to "copy key frame".  What is the equivalent of the "copy key frame" on a Mac?  I can see where on the Mac you can go to Edit >copy.  Is this the equivalent of "copy key frame" on a PC?  If so, once I "copy" the text how do I create the new LOAD CODE 381 so that I can paste the text into the new frame?
    I WOULD BE EXTREMELY GRATEFUL TO ANYONE WITH THE ANSWER TO THIS QUESTION!  THANK YOU!!!!!

    Sorry not to be more clear.  It is a name assigned to one of the 
    frames by the person who originally designed the website and is shown 
    in the list of about 150 action frames that were created in this 
    particular fla document.  This "list" comes up in the left hand column 
    of the Action-Frame box. When I click on Load Code 380 which is half 
    way down the column of frames, the following text comes up on the 
    large screen to the right of the column of 130 frames.
    IMAGE.gotoAndPlay("start");
    loadVariables("data/series01/15title.txt", "_root.IMAGE.TITLE");
    loadVariables("data/series01/15price.txt", "_root.IMAGE.PRICE");
    loadMovie("data/series01/about.swf", "_root.IMAGE.ABOUT");
    IMAGE.mc_pic.attachMovie("pic","pic",1,)
    IMAGE.mc_picTHUMB.attachMovie("pic","pic",1,)
    This text is what I am trying to transfer to copy then paste into a 
    new frame after which time I want to slightly edit the text.  I am not 
    a programer so I apologize if I am not using all of the correct 
    terminology.
    Thank you again,  Jon

Maybe you are looking for

  • How to change & manage different ports in a mixed web environment (BSP/WAD)

    Hi everybody, our scenario is the following: We constructed a mixed environment web application, consisting out of a BSP application and WAD web templates. Unfortunately the url of web templates and the bsp-application differs - meaning the server is

  • After iOS 8 upgrade, contacts and calendar strangely syncing

    After upgrading my iPhone 5 to iOS 8 (and just recently 8.0.2, which I hoped would fix it, but didn't), I'm seeing strange sync behaviour with Google contacts and calendar. Here is what is happening: Calendar Creating an event on the phone shows up o

  • Post upgrade step for EP

    HI Friends, I have upgraded my EP from 6.0 to 7.0 successful with all component. ALos i am getting login screen. SO what are post upgrade step for EP. Thanks, Regards, Sachin

  • ITunes 7.1.3 Quicktime Error

    Whenever i load itunes, it says i have the wrong Quicktime, but when i install it, it says i have the right one. I need help....... This version *****.

  • No records selected - SELECT clause with IN

    Hello ABAP Experts 1st CASE: When I execute program below and leave selection screen for S_VBELN and S_ERDAT blank and leave P_AUART to 'PR00", it returns SY-SUBRC = 4.  I get no lines returned. 2nd CASE: If I comment out the last 2 lines in my "WHER