Problem with Mnemonic Alt F4 with JWindow in solaris OS urgent!......

hi all
I have a problem with JWindow i created a menu where in i have all menuitems as i needed with a close MenuItem with Mnemonic ALT F4 i could not able to close the JWindow in solaris as iam not able to catch th e ALT F4 event please help guys and gals.

HI JRG
look my code once when i run this code iam not able to catch ALT F4 press as when iam printing the key pressed iam not able to catch ALT F4 any suggestions please
import javax.swing.*;
import java.awt.event.*;
public class MyWindow extends JWindow implements KeyListener, WindowListener
public MyWindow(){
super();
addKeyListener( this);// for closing
addWindowListener( this);// for focus
show();
// implement the window listener
public void windowClosing( WindowEvent e ) {
//System.exit(0);
public void windowClosed( WindowEvent e ) {}
public void windowActivated( WindowEvent e ) {}
public void windowDeactivated( WindowEvent e ) {}
public void windowDeiconified( WindowEvent e ) {}
public void windowIconified( WindowEvent e ) {}
public void windowOpened( WindowEvent e ){
requestFocus();
// implement the key listener
public void keyReleased( KeyEvent e){}
public void keyTyped( KeyEvent e){}
public void keyPressed( KeyEvent e){
if( (e.getKeyCode() == KeyEvent.VK_F4) && (e.getModifiers() == InputEvent.ALT_MASK)){
e.consume();
dispose();
System.exit( 0);
public static void main(String s[])
MyWindow mywin=new MyWindow();
mywin.setSize(400,400);

Similar Messages

  • Problem with IPSec on  solaris 9

    Hi all
    I'm facing a problem with IPSec on solaris 9 that I didn't have with Solaris 8 (With the Security package installed).
    I've an application that creates SA's by using the pf-key interface.
    What it does is first doing a GETSPI to a specific SPI and a specific Destination IP Address.
    This will create an SA and put it in a LARVAL state. After about a minute my application will do an UPDATE to this SPI and that command should change the state of the SA from LARVAL to MATURE but instead I get an error saying that this SPI & IP address already exist (errno = 17).
    Well of course it's already exist that's the all point it should just change the state of an existing SA.
    This exact scenarion was is working fine on Solaris 8.
    Am I doing somthing wrong (maybe there is a package on the solaris 9 that I need to install ?)
    or is this a bug in solaris 9.
    If anyone has any idea on how to do that (without using a one step ADD for a new SA) I will be very thankfull.

    Sorry for using reply for querying.
    I got a problem in creating a Security Association using the PF_KEY Socket (first used SADB_GETSPI and got SPI,with SPI tried to update SADB_UPDATE).
    Getting this problem on Sun Solaris 8.
    It returns errno 122 . operation not supported.
    Here is my mailId [email protected]
    I got few more queries regarding PF_KEY socket.
    Not much directions are available also for pf_key socket in internet.
    Monitor produces the following error.
    # ipseckey monitor
    "Base message (version 2) type UPDATE, SA type AH.
    Error Operation not supported on transport endpoint from PF_KEY.
    Message length 16 bytes, seq=4294967294, pid=450."
    Here is my mailId [email protected]
    Thanks in Advance.
    ssundar.

  • Jpopupmenu visibility problem with JWindows

    Hello,
    BACKGROUND:
    I am attempting to implement a feature similar to one found in the netbeans IDE for a programming editor I am helping to write. The feature is an autocomplete/function suggestion based on the current word being typed, and an api popup for the selected function.
    Currently a JPopupMenu is used to provide a list of suggested functions based on the current word being typed. EG, when a user types 'array_s' a JPopupMenu pops up with array_search, array_shift, array_slice, etc.
    When the user selects one of these options (using the up/down arrow keys) a JWindow (with a jscrollpane embedded in it) is made visible which displays the api page for that particular function.
    PROBLEM:
    The problem is that when a user scrolls down the JWindow the JPopupmenu disappears so he user cannot select another function.
    I have added a ComponentListener to the JPopupMenu so that when componentHidden is called I can do checks to see if it should be visible and make visible if necessary. However, componentHidden is never called.
    I have added a focuslistener to the JPopupMenu so that when it loses focus I can do the same checks/make visible if necessary. This function is never called.
    I have added a popupMenuListener but this tells me when it is going to make something invisible, not actually when it's done it, so I can't call popup.setVisible(true) from popupMenuWillBecomeInvisible because at that point the menu is still visible.
    Does anyone have any suggestions about how I can scroll through a scrollpane in a JWindow whilst still keeping the focus on a separate JPopupMenu in a separate frame?
    Cheers

    The usual way to do popup windows (such as autocomplete as you're doing) is not to create a JPopupMenu, but rather an undecorated (J)Window. Stick a JList in the popup window for the user to select their choice from. The problem with using a JPopupMenu is just what you're experiencing - they're designed to disappear when they lose focus. Using an undecorated JWindow, you can control when it appears/disappears.
    See this thread for information on how to do this:
    http://forum.java.sun.com/thread.jspa?threadID=5261850&messageID=10090206#10090206
    It refers you to another thread describing how to create the "popup's" JWindow so that it doesn't steal input focus from the underlying text component. Then, further down, it describes how you can forward keyboard actions from the underlying text component to the JWindow's contents. This is needed, for example, so the user can keep typing when the autocomplete window is displayed, or press the up/down arrow keys to select different items in the autocomplete window.
    It sounds complicated, but it really isn't. :)

  • Problems with JWindow

    Hello! I was trying to make a splash screen with JWindow class. But nothing but a blank JWindow is shown after the program is run. I've already searched the forum for solution to this kind of problem and I found that few had similar problems. According to one solution, I called the pack() method before calling the setVisible() method with true. But it did not work for me. I use JDK 1.5.0_03. Please help me in this regard. Thanks.
    Here's my code:
    public class Test extends JFrame
         Test()
              JWindow splashScreen=new JWindow(this);
              splashScreen.setBounds(400, 400, 300, 253);
              Container splashCont=splashScreen.getContentPane();
              splashCont.setLayout(new GridLayout(1, 1));
              splashCont.add(new JLabel("This is a test!"));
              //splashScreen.pack();
              splashScreen.setVisible(true);
              try
                   Thread.sleep(5000);
              catch(InterruptedException e)
                   JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
              splashScreen.setVisible(false);
              setVisible(true);     //showing the JFrame
         public static void main(String args[])
              new Test();
    }

    >>
    http://forum.java.sun.com/thread.jspa?forumID=256&thre
    adID=476900@bsampieri - the thread mentions a focus problem...
    have you tried using a modal JDialog and using
    setUndecorated(true) on it instead of a JWindow?
    This would also prevent you from having to setup the
    e glasspane.Yeah... maybe. But when I wrote that, I think it was before that was an option.

  • Problem with telnet on solaris 9

    Hi all,
    I have a problem with telnet on my sun fire v440 server with solaris 9 system, whenever I telnet to this server as a normal user ,after entering the username and password ,the user environment will switch to root. but i have checked the 'id' as i telnet the system ,it was not root. Pls refer the below message as i login the server:
    SunOS 5.9
    login: prad
    Password:
    Last login: Thu Apr 14 11:14:54 from 10.60.64.59
    Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
    You have mail.
    root@T-Server02 # id
    uid=1017(prad) gid=10(staff)
    root@T-Server02 # cat /etc/passwd | grep prad
    prad:x:1017:10::/export/home/prad:/bin/sh
    root@T-Server02 # ls -lrt profile*
    -rwxrwxrwx   1 prad     other        174 Feb  7  2008 local.profile
    -rw-r--r--   1 prad     other        144 Feb  7  2008 backupprofile
    root@T-Server02 # pwd
    */export/home/prad*
    root@T-Server02 #
    Does any one have idea on how to solve this problem?

    Thanks . I'm pretty new in SUN OS, and not quite get your point . Here is the local.profile showed as below:
    This is a newly happened issue, I think we haven't change any profile setting in server:
    SunOS 5.9
    login: prad
    Password:
    Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
    You have mail.
    root@T-Server02 # more local.profile
    *# Copyright (c) 2001 by Sun Microsystems, Inc.*
    *# All rights reserved.*
    *# ident "@(#)local.profile 1.10 01/06/23 SMI"*
    stty istrip
    PATH=/usr/bin:/usr/ucb:/etc:.
    export PATH
    root@T-Server02 #

  • Problem with JInitiator!!! - Urgent

    I have Windows 2000 Advanced Server with 4GB RAM and Oracle9iASR2. I'm running Forms&Reports9i services quite well. Now, I have a demand for using OLE integration and for WebUtil purpose I have to install Jinitiator 1.3.1.13, for instance. But when I start a Jinitiator installation, I just see an error message 111 which is telling me that I don't have enough memory, that I must release memory by killing some running application (no matters which one) and then repeat the installation procedure. At that moment I have about 3.8 GB free memory, at least!It's the same problem with some differrent version of Jinitiator. What's the problem? How can I bypass this? Please, help me, this is very urgent!
    Dejan

    Did you try a reboot of the client?
    Also, can you post a full error message , it sounds like this is coming from Windows...
    Regards
    Grant Ronald
    Forms Product Management

  • Common problem with inventory...but urgent...!!!

    I have very basic problem with inventory data. Getting negative data...
    The steps i followed are below:
    1)After doing the initialization of BX using MCNB transaction I loaded the data in BW(till PSA level).
    2)Initialization of BF(historical data) and loaded in BW(till psa level)
    3) Upload the data with BX using DTP and Compress it with "Marker update" in the cube.
    4) Upload the data with BF(historical data)using DTP and Compress it with "No Marker update"
    5) Upload the data with UM(historical data)using DTP and Compress it with "No Marker update"
    Now in the report I am getting wierd negative values in total stock (non cumulative key figure)
    Can anyone suggest if I am missing some step or doing something wrong.

    Hi,
    I recall reading some OSS notes on this issue. Search on OSS as there is a setting in the IMG you need to make sure you have done.

  • Problems with OSX ja Active Directory (urgent!)

    Hello, I'm newbie Mac user and I have a problem with integrating OSX to our company MS Active Directory. This MacBook Pro is a only Apple here, so this is quite difficult...
    So far I have made following things:
    - I made "Bind" succesfull (it pings from others computers and I can see it from AD tools)
    - to AD account I changed my profile to include home folder (\\Adserver\user.account$). When I log on to AD via PC, home folders etc. are done with Logon script (Logon.bat) and I can see those shared folder fine.
    - then I rebooted my Mac and on logon screen there is option Other --> there I input my AD username and password. After that OSX log in normally.
    - But on Dock there is no Home folder, there is only a big question mark (?) and it says "User X X network home folder" (or something like that). And there is nothing behind this ?-mark
    - I have checked from Gerberos that I have a valid ticket to AD-server
    I have also tried to map network folder (apple + K), but there will error message that "Server couldn't reach, because user name or password is wrong"
    I have spend a couple of days to solve this problem, but nothing seems to solve it. Could someone please help me? I really need those shared folders (yes, there are at leat two I need from AD), because on those folder are documents that I need daily at my work.
    thanks,
    -zooropa
    MacBook Pro   Mac OS X (10.4.5)  

    My admin username of Mac is "firstnamesurname" and AD account is "firtsname.surname". So the "dot" is only difference. Is that enough?
    I made binding with Mac admin account and after that I used "other" on login screen of OSX. As I wrote, I can login fine with AD username and password, but the problem is that I can't map home folders from Windows Server 2003.

  • Architectural Problem with file upload feature. URGENT!!!

    Hi,
              We have an architecture in a production site which has iPlanet in the front & WebLogic at the back. The web-tier and the middle-tier both reside on the WebLogic server & only the static assets (images, PDFs etc.) are serviced by iPlanet. Recently we had to incorporate a new feature to our existing site to allow the user to upload images onto the server. The problem with this is that since our web-tier is in WebLogic, the uploaded file would reside in the WebLogic server's document root and will not be accessible to the iPlanet server. Is there any way that I can store the images directly in iPlanet even though the servlets reside on WebLogic. I know this query sounds a bit weird & I'm asking for too much but I also have this feeling the architecture of our site is not very different from a lot of other sites & other sites also have upload functionalities, so how do they go about dealing with this problem. Porting the web-tier to iPlanet is not a solutions since there are a lot parties involved & we cannot at this point take that decision.
              Would really appreciate any help from you guys.
              Thanks in advance,
              VD.
              

    u can have AppServers serve the image if u want to.
              u just need to set the path correctly and save them in the right directory.
              we are already doing it with Iplanet and we wrote a sample for Weblogic6.1 too.
              if i remember correctly u need to put the image directiry say "imageDirectory" in "wlserver6.1"
              then u need to access via http://apache_webserver_box:80/weblogic_identifier/imageDirectory/myimage.jpg
              Hope it helps!!!
              -aseem
              vikram wrote:
              > Hi,
              > We have an architecture in a production site which has iPlanet in the front & WebLogic at the back. The web-tier and the middle-tier both reside on the WebLogic server & only the static assets (images, PDFs etc.) are serviced by iPlanet. Recently we had to incorporate a new feature to our existing site to allow the user to upload images onto the server. The problem with this is that since our web-tier is in WebLogic, the uploaded file would reside in the WebLogic server's document root and will not be accessible to the iPlanet server. Is there any way that I can store the images directly in iPlanet even though the servlets reside on WebLogic. I know this query sounds a bit weird & I'm asking for too much but I also have this feeling the architecture of our site is not very different from a lot of other sites & other sites also have upload functionalities, so how do they go about dealing with this problem. Porting the web-tier to iPlanet is not a solutions since there are a lot parties involved & we cannot at this point take that decision.
              >
              > Would really appreciate any help from you guys.
              >
              > Thanks in advance,
              > VD.
              

  • Problem with append mode in WS_DOWNLOAD - URGENT

    Can anybody help me with this, it is werry urgent .
    Thank you werry much .

    Hi Neno,
    WS_DOWNLOAD is no longer used in latest version of SAP. Though this function module exists. You can use GUI_DOWNLOAD instead of it.
    Now coming back to your question.
    IN WS_DOWNLOAD
    parameter MODE = 'A' . "for append
    I hope this will solve your issue.
    Reward points for all useful answers.
    Regards,
    SaiRam

  • Two very STRANGE problems with JWindow and JTextField

    I am having some trouble in the program that I am making. It is a Swing based GUI.
    I have a JWindow with a JPanel in it that holds JTextFields and JLabels.
    problem1----I can't see a caret in any of the textfields but I can still enter text.
    problem2----If I control + tab to another window, and control + tab to get back to the JWindow then I can see a caret, but the caret will not change if I click on another textfield and also I can't move to another textfield to enter text. If i do another control tab, then the textfield that i tried to switch to will have focus, but there is now two carets...the first one is where I was but that field does not have focus. I can do this control-tab for as many textfields as I need to fill, but it obviously is not practical.
    I am using a call to super(Frame frame) when calling my JWindow but that didn't seem to fix it.
    Any help would be great!!!!! thanks john

    try checking out this thread :
    http://forum.java.sun.com/thread.jsp?forum=57&thread=153344
    sounds like your problem, kinda. it looks more like a repaint issue, since u get two carets at the same time - as if the screen isn't refreshing enough (u could give it some Spearmint POLO :)

  • Problem with JWindow

    Hi all,
    I have a very important question....
    I created a small application and when i launch it, i'd like to have a JWindow displayed on my screen only during 5 seconds.... So i run my application, my JWindow is displayed during 5 seconds and then the application "really" begins.
    But how do i have to proceed to have my JWindow displayed only during 5 seconds and then close automatically???
    Thanx very much for helping....

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.Timer;
    public class SplashWindow
        public static void main(String[] args)
            JFrame f = new JFrame();
            showSplash(f);
            JPanel panel = new JPanel();
            panel.setBackground(Color.red);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(panel);
            f.setSize(400,300);
            f.setLocationRelativeTo(null);
        private static void showSplash(final Component c)
            JLabel label = new JLabel("hang on, it's coming...", JLabel.CENTER);
            final JWindow w = new JWindow();
            w.getContentPane().add(label);
            w.setSize(200,200);
            w.setLocationRelativeTo(null);
            w.setVisible(true);
            final Timer timer = new Timer(5000, new ActionListener()
                public void actionPerformed(ActionEvent e)
                    w.dispose();
                    c.setVisible(true);
            timer.setRepeats(false);
            timer.start();
    }

  • Problem with application !!!Urgent need Help please!!!

    Hello i am trying to make a 2d sprite engine. I have a serious problem. When i start the application sometimes the screen is just gray. and no matter how long i leave it it just stays gray however every now and again if i run it works fine. this is realy troubling me i cant understand it.
    I am try to use a double buffering strategry and also am storing images on accelerated memory if someone could please help me this would be a great help

    ...you will have to post some sample code, i really can't make heads and tails of it with the given information...

  • Problem with asset sub no (ANLN2)  urgent

    hi all experts,
    Wishing u All very Happy New Year 2007.
    in the asset aquisition report i am getting right output but only one problem is there when asset sub no is changed then i am not getting only aqusition value & Depreciation.
    what may be the problem.plz modify the logic where this is required to get the right output.
                                   REPORT Z_FA_ACQ  NO STANDARD PAGE HEADING
                     LINE-SIZE 400
                     LINE-COUNT 65(3).
    TYPE-POOLS : SLIS.
    TABLES : ANLA,                         "ASSET MASTER RECORD-SEGMENT
             ANLZ,                         "time dependent asset allocations
             ANLC,
             ANEP,
             ANEK.
    DATA : BEGIN OF T_ANLA OCCURS 0,
           BUKRS LIKE ANLA-BUKRS,
           ANLN1 LIKE ANLA-ANLN1,
           ANLN2 LIKE ANLA-ANLN2,
           AKTIV LIKE ANLA-AKTIV,
           TXT50 LIKE ANLA-TXT50,
           ZUGDT LIKE ANLA-ZUGDT,
           MENGE LIKE ANLA-MENGE,
           MEINS LIKE ANLA-MEINS,
           ANLKL LIKE ANLA-ANLKL,
           END OF T_ANLA.
    DATA : BEGIN OF T_ANLZ OCCURS 0,
           BUKRS LIKE ANLZ-BUKRS,
           ANLN1 LIKE ANLZ-ANLN1,
           ANLN2 LIKE ANLZ-ANLN2,
           GSBER LIKE ANLZ-GSBER,
           KOSTL LIKE ANLZ-KOSTL,
           STORT LIKE ANLZ-STORT,
           RAUMN LIKE ANLZ-RAUMN,
           KFZKZ LIKE ANLZ-KFZKZ,
           WERKS LIKE ANLZ-WERKS,
           END OF T_ANLZ.
    DATA : BEGIN OF T_ANEK OCCURS 0,
           BUKRS LIKE ANEK-BUKRS,
           ANLN1 LIKE ANEK-ANLN1,
           ANLN2 LIKE ANEK-ANLN2,
           BELNR LIKE ANEK-BELNR,
           BUDAT LIKE ANEK-BUDAT,
           BZDAT LIKE ANEK-BZDAT,
           BLDAT LIKE ANEK-BLDAT,
           BUZEI LIKE ANEK-BUZEI,
           XBLNR LIKE ANEK-XBLNR,
           SGTXT LIKE ANEK-SGTXT,
           GJAHR LIKE ANEK-GJAHR,
           LNRAN LIKE ANEK-LNRAN,
           END OF T_ANEK.
    DATA : BEGIN OF T_ANLC OCCURS 0,
           BUKRS LIKE ANLC-BUKRS,
           ANLN1 LIKE ANLC-ANLN1,
           ANLN2 LIKE ANLC-ANLN2,
           ANSWL LIKE ANLC-ANSWL,
           NAFAP LIKE ANLC-NAFAP,
           AAFAP LIKE ANLC-AAFAP,
           AFABE LIKE ANLC-AFABE,
           GJAHR LIKE ANLC-GJAHR,
           END OF T_ANLC.
    DATA : BEGIN OF T_ANEP OCCURS 0,
           BUKRS LIKE ANEP-BUKRS,
           ANLN1 LIKE ANEP-ANLN1,
           ANLN2 LIKE ANEP-ANLN2,
           ANBTR LIKE ANEP-ANBTR,
           NAFAB LIKE ANEP-NAFAB,
           GJAHR LIKE ANEP-GJAHR,
           AFABE LIKE ANEP-AFABE,
           BELNR LIKE ANEP-BELNR,
            BUZEI LIKE ANEP-BUZEI,
            LNRAN LIKE ANEP-LNRAN,
           END OF T_ANEP.
    DATA : BEGIN OF IT_FINAL OCCURS 0,
            ANLN1 LIKE ANLA-ANLN1,
            ANLN2 LIKE ANLA-ANLN2,
            AKTIV LIKE ANLA-AKTIV,
            TXT50 LIKE ANLA-TXT50,
            ZUGDT LIKE ANLA-ZUGDT,
            MENGE LIKE ANLA-MENGE,
            MEINS LIKE ANLA-MEINS,
            GSBER LIKE ANLZ-GSBER,
            KOSTL LIKE ANLZ-KOSTL,
            STORT LIKE ANLZ-STORT,
            RAUMN LIKE ANLZ-RAUMN,
            KFZKZ LIKE ANLZ-KFZKZ,
            BELNR LIKE ANEK-BELNR,
            BUDAT LIKE ANEK-BUDAT,
            BZDAT LIKE ANEK-BZDAT,
            BLDAT LIKE ANEK-BLDAT,
            XBLNR LIKE ANEK-XBLNR,
            SGTXT LIKE ANEK-SGTXT,
            ANBTR LIKE ANEP-ANBTR,
            NAFAB LIKE ANEP-NAFAB,
            AAFAP LIKE ANLC-AAFAP,
            ANLKL LIKE ANLA-ANLKL,
            GJAHR LIKE ANEK-GJAHR,
            END OF IT_FINAL.
    *added for date logic by sanjeev
    DATA:V_LOW LIKE SY-DATUM,
        V_HIGH LIKE SY-DATUM,
        V_MON(02) TYPE N,
        V_YEAR(04) TYPE N.
    *end of date logic
    DATA : LINE_COLOR(4) TYPE C.
    DATA : FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
           GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA: EVENT  TYPE SLIS_ALV_EVENT OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK B_FA WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_BUKRS FOR ANLA-BUKRS DEFAULT 'ML',
                     S_ANLN1 FOR ANLA-ANLN1,
                     S_ANLN2 FOR ANLA-ANLN2,
                     S_ANLKL FOR ANLA-ANLKL,
                     S_AKTIV FOR ANLA-AKTIV,
                     S_GSBER FOR ANLZ-GSBER,
                     S_KOSTL FOR ANLZ-KOSTL,
                     S_WERKS FOR ANLZ-WERKS,
                     S_STORT FOR ANLZ-STORT,
                     S_BUDAT FOR ANEK-BUDAT.
    SELECTION-SCREEN : END OF BLOCK B_FA.
    SET PF-STATUS '100'.
    added for date logic by Sanjeev
    IF S_BUDAT-HIGH IS INITIAL.
    V_YEAR = S_BUDAT-LOW+0(4).
    V_MON = S_BUDAT-LOW+4(2).
    IF V_MON LT '04'.
    V_YEAR = V_YEAR - 1.
    CONCATENATE V_YEAR '0401' INTO V_LOW.
    V_HIGH = SY-DATUM.
    ELSE.
    CONCATENATE V_YEAR '0401' INTO V_LOW.
    V_HIGH = S_BUDAT-LOW.
    ENDIF.
    ELSE.
    V_LOW = S_BUDAT-LOW.
    V_HIGH = S_BUDAT-HIGH.
    ENDIF.
    end of logic
    SELECT BUKRS ANLN1 ANLN2 AKTIV TXT50 ZUGDT MENGE MEINS ANLKL
           FROM ANLA
           INTO CORRESPONDING FIELDS OF TABLE T_ANLA
           WHERE ANLN1 IN S_ANLN1
           AND   ANLN2 IN S_ANLN2
           AND   BUKRS IN S_BUKRS
           AND   ANLKL IN S_ANLKL
           AND   AKTIV IN S_AKTIV
           AND   ZUGDT >= V_LOW  " added to get the date logic work
           AND   ZUGDT <= V_HIGH. " added to get the date logic work
    CHECK : NOT T_ANLA[] IS INITIAL.
    SELECT BUKRS ANLN1 ANLN2 GSBER KOSTL STORT RAUMN KFZKZ
           FROM ANLZ
           INTO CORRESPONDING FIELDS OF TABLE T_ANLZ
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   GSBER IN S_GSBER
           AND   KOSTL IN S_KOSTL
           AND   WERKS IN S_WERKS.
    SELECT BUKRS ANLN1 ANLN2 BELNR BUDAT XBLNR SGTXT GJAHR BZDAT BLDAT BUZEI
            LNRAN FROM ANEK
           INTO CORRESPONDING FIELDS OF TABLE T_ANEK
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   BUDAT >= V_LOW    " added to get the date logic work
          AND   BUDAT <= V_HIGH  " added to get the date logic work
    AND BZDAT >= V_LOW AND BZDAT <= V_HIGH
    AND BLDAT >= V_LOW AND BLDAT <= V_HIGH.
    SELECT BUKRS ANLN1 ANLN2 ANSWL NAFAP AAFAP AFABE GJAHR
           FROM ANLC
           INTO CORRESPONDING FIELDS OF TABLE T_ANLC
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   AFABE = '01'.
    SELECT BUKRS ANLN1 ANLN2 ANBTR NAFAB GJAHR AFABE BELNR BUZEI LNRAN
           FROM ANEP
           INTO CORRESPONDING FIELDS OF TABLE T_ANEP
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   AFABE = '01'
    AND BZDAT >= V_LOW AND BZDAT <= V_HIGH.
    SORT T_ANLC BY BUKRS ANLN1 ANLN2.
    SORT T_ANLZ BY BUKRS ANLN1 ANLN2.
    SORT T_ANEP BY BUKRS ANLN1 ANLN2 BELNR BUZEI LNRAN.
    LOOP AT T_ANLA.
      MOVE : T_ANLA-ANLN1 TO IT_FINAL-ANLN1,
             T_ANLA-ANLN2 TO IT_FINAL-ANLN2,
             T_ANLA-AKTIV TO IT_FINAL-AKTIV,
             T_ANLA-TXT50 TO IT_FINAL-TXT50,
            t_anla-zugdt TO it_final-zugdt,
             T_ANLA-MENGE TO IT_FINAL-MENGE,
             T_ANLA-MEINS TO IT_FINAL-MEINS.
      READ TABLE T_ANLZ WITH KEY BUKRS = T_ANLA-BUKRS
                                 ANLN1 = T_ANLA-ANLN1
                                 ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        MOVE : T_ANLZ-GSBER TO IT_FINAL-GSBER,
               T_ANLZ-KOSTL TO IT_FINAL-KOSTL,
               T_ANLZ-STORT TO IT_FINAL-STORT,
               T_ANLZ-RAUMN TO IT_FINAL-RAUMN,
               T_ANLZ-KFZKZ TO IT_FINAL-KFZKZ.
      ENDIF.
      READ TABLE T_ANLC WITH KEY BUKRS = T_ANLA-BUKRS
                                 ANLN1 = T_ANLA-ANLN1
                                 ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        MOVE : T_ANLC-AAFAP TO IT_FINAL-AAFAP.
      ENDIF.
    added to get the date logic work
    LOOP AT T_ANEK WHERE BUKRS = T_ANLA-BUKRS AND ANLN1 = T_ANLA-ANLN1 AND
        ANLN2 = T_ANLA-ANLN2 AND BZDAT >= V_LOW AND BZDAT <= V_HIGH
    AND BLDAT >= V_LOW AND BLDAT <= V_HIGH.
        MOVE : T_ANEK-BELNR TO IT_FINAL-BELNR,
               T_ANEK-BUDAT TO IT_FINAL-BUDAT,
               T_ANEK-BZDAT TO IT_FINAL-BZDAT,
               T_ANEK-GJAHR TO IT_FINAL-GJAHR,
               T_ANEK-XBLNR TO IT_FINAL-XBLNR,
               T_ANEK-SGTXT TO IT_FINAL-SGTXT.
    READ TABLE T_ANEP WITH KEY BUKRS = T_ANEK-BUKRS
                               ANLN1 = T_ANLA-ANLN1
                               BELNR = T_ANEK-BELNR
                               BUZEI = T_ANEK-BUZEI
                               LNRAN = T_ANEK-LNRAN
                               ANLN2 = T_ANLA-ANLN2.
    MOVE : T_ANEP-ANBTR TO IT_FINAL-ANBTR,
            T_ANEP-NAFAB TO IT_FINAL-NAFAB.
        APPEND IT_FINAL.
      ENDLOOP.
    ENDLOOP.
    PERFORM BUILD_FIELDCATALOG.
    PERFORM DISPLAY_ALV_REPORT.
    PERFORM BUILD_LAYOUT.
          FORM BUILD_FIELDCATALOG                                       *
    FORM BUILD_FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANLN1'.
      FIELDCATALOG-SELTEXT_M = 'ASSET MAIN NO'.
      FIELDCATALOG-COL_POS   = 0.
      FIELDCATALOG-OUTPUTLEN = 14.
      FIELDCATALOG-EMPHASIZE = 'X'.
      FIELDCATALOG-KEY       = 'X'.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANLN2'.
      FIELDCATALOG-SELTEXT_M = 'SUB NO'.
      FIELDCATALOG-COL_POS   = 1.
      FIELDCATALOG-OUTPUTLEN = 7.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'AKTIV'.
      FIELDCATALOG-SELTEXT_M = 'CAP.DATE'.
      FIELDCATALOG-COL_POS   = 2.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'TXT50'.
      FIELDCATALOG-SELTEXT_M = 'NAME'.
      FIELDCATALOG-COL_POS   = 3.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BUDAT'.
      FIELDCATALOG-SELTEXT_M = 'POSTING DATE'.
      FIELDCATALOG-COL_POS   = 4.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'MENGE'.
      FIELDCATALOG-SELTEXT_M = 'QTY'.
      FIELDCATALOG-COL_POS   = 5.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'MEINS'.
      FIELDCATALOG-SELTEXT_M = 'UNITS'.
      FIELDCATALOG-COL_POS   = 6.
      FIELDCATALOG-OUTPUTLEN = 3.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'GSBER'.
      FIELDCATALOG-SELTEXT_M = 'BA'.
      FIELDCATALOG-COL_POS   = 7.
      FIELDCATALOG-OUTPUTLEN = 4.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'KOSTL'.
      FIELDCATALOG-SELTEXT_M = 'COST CENTER'.
      FIELDCATALOG-COL_POS   = 8.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'STORT'.
      FIELDCATALOG-SELTEXT_M = 'LOCATION'.
      FIELDCATALOG-COL_POS   = 9.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'RAUMN'.
      FIELDCATALOG-SELTEXT_M = 'ROOM'.
      FIELDCATALOG-COL_POS   = 10.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'KFZKZ'.
      FIELDCATALOG-SELTEXT_M = 'LICENSE PLATE NO'.
      FIELDCATALOG-COL_POS   = 11.
      FIELDCATALOG-OUTPUTLEN = 20.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BELNR'.
      FIELDCATALOG-SELTEXT_M = 'DOC NO'.
      FIELDCATALOG-COL_POS   = 12.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BZDAT'.
      FIELDCATALOG-SELTEXT_M = 'ASSET VAL DATE'.
      FIELDCATALOG-COL_POS   = 13.
      FIELDCATALOG-OUTPUTLEN = 15.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'XBLNR'.
      FIELDCATALOG-SELTEXT_M = 'REF NO'.
      FIELDCATALOG-COL_POS   = 14.
      FIELDCATALOG-OUTPUTLEN = 25.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'SGTXT'.
      FIELDCATALOG-SELTEXT_M = 'TEXT'.
      FIELDCATALOG-COL_POS   = 15.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANBTR'.
      FIELDCATALOG-SELTEXT_M = 'ACQ VAL'.
      FIELDCATALOG-DATATYPE     = 'CURR'.
      FIELDCATALOG-DO_SUM = 'X'.
      FIELDCATALOG-COL_POS   = 16.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'NAFAB'.
      FIELDCATALOG-SELTEXT_M = 'ORD.DEP'.
      FIELDCATALOG-DO_SUM = 'X'.
    FIELDCATALOG-DATATYPE     = 'CURR'.
      FIELDCATALOG-COL_POS   = 17.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'AAFAP'.
      FIELDCATALOG-SELTEXT_M = 'UNPLAN DEP'.
      FIELDCATALOG-COL_POS   = 18.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
    ENDFORM.
          FORM BUILD_LAYOUT                                             *
    FORM BUILD_LAYOUT.
      GD_LAYOUT-ZEBRA = 'X'.
      GD_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
    ENDFORM.
          FORM DISPLAY_ALV_REPORT                                       *
    FORM DISPLAY_ALV_REPORT.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            I_INTERFACE_CHECK        = ' '
             I_CALLBACK_PROGRAM       = SY-REPID
            i_callback_pf_status_set = '100'
            i_callback_user_command  = sy-ucomm
            I_STRUCTURE_NAME         =
             IS_LAYOUT                = GD_LAYOUT
               IT_FIELDCAT              = FIELDCATALOG[]
            IT_EXCLUDING             =
            IT_SPECIAL_GROUPS        =
            IT_SORT                  =
            IT_FILTER                =
            IS_SEL_HIDE              =
            I_DEFAULT                = 'X'
            I_SAVE                   = ' '
            IS_VARIANT               = ' '
            IT_EVENTS                =
            IT_EVENT_EXIT            = EVENT[]
            IS_PRINT                 =
            I_SCREEN_START_COLUMN    = 0
            I_SCREEN_START_LINE      = 0
            I_SCREEN_END_COLUMN      = 0
            I_SCREEN_END_LINE        = 0
       IMPORTING
            E_EXIT_CAUSED_BY_CALLER  =
            ES_EXIT_CAUSED_BY_USER   =
           TABLES
                T_OUTTAB                 = IT_FINAL
           EXCEPTIONS
                PROGRAM_ERROR            = 1
                OTHERS                   = 2.
    ENDFORM.
    AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'EXCEL'.
          PERFORM DOWNEXCEL.
      ENDCASE.
          form downexcel                                                *
    FORM DOWNEXCEL.
       DATA : B_FILE1 LIKE RLGRAP-FILENAME.
    CALL FUNCTION 'WS_FILENAME_GET'
         EXPORTING
              DEF_FILENAME     = ' '
              DEF_PATH         = 'C:\'
              MASK             = ',.,..'
              MODE             = 'S'
              TITLE            = 'SAVE THIS AS'
         IMPORTING
              FILENAME         = B_FILE1
           rc               =
          EXCEPTIONS
               INV_WINSYS       = 1
               NO_BATCH         = 2
               SELECTION_CANCEL = 3
               SELECTION_ERROR  = 4
               OTHERS           = 5.
      CALL FUNCTION 'WS_DOWNLOAD'
          EXPORTING
            BIN_FILESIZE            = ' '
               CODEPAGE                = 'IBM'
               FILENAME                = B_FILE1
               FILETYPE                = 'DAT'
               MODE                    = 'A'
            WK1_N_FORMAT            = ' '
            WK1_N_SIZE              = ' '
            WK1_T_FORMAT            = ' '
            WK1_T_SIZE              = ' '
            COL_SELECT              = ' '
            COL_SELECTMASK          = ' '
            NO_AUTH_CHECK           = ' '
       IMPORTING
            FILELENGTH              =
           TABLES
                 DATA_TAB                = IT_FINAL
            fieldnames              =
            EXCEPTIONS
                 FILE_OPEN_ERROR         = 1
                 FILE_WRITE_ERROR        = 2
                 INVALID_FILESIZE        = 3
                 INVALID_TABLE_WIDTH     = 4
                 INVALID_TYPE            = 5
                 NO_BATCH                = 6
                 UNKNOWN_ERROR           = 7
                 GUI_REFUSE_FILETRANSFER = 8
                 OTHERS                  = 9.
    ENDFORM.
    Message was edited by: sanjeev
            sanjeev singh

    Hi Prabhu,
    THanks for the update but I couldn't find Capitalized Date in BAPI.
    I am again getting a new problem please check the following link for my post and let me know if you have come across such issue.
    LSMW - Fixed Assets "unexpected record type" problem
    Thanks,
    Asha.

  • Problem with Java in solaris 10 zone

    HI ,
    i get this error message in my solaris 10 zone :
    #./java version
    Exception java.lang.OutOfMemoryError: requested -4 bytes for size_t in /BUILD_AREA/jdk1.5.0_11/hotspot/src/os/solaris/vm/os_solaris.cpp. Out of swap space?
    in global zone , java works fine !
    uname -a
    SunOS Server 5.10 Generic_141414-07 sun4u sparc SUNW,SPARC-Enterprise
    best regards

    I see mention of a similar problem, but only with early development releases of solaris10 branded zones running on Solaris 11 development bits. It seems as though this is not what you are running.
    Since there are no swap caps nor brand emulation in place, the next thing I would suspect would be that you somehow have inconsistencies between key libraries (e.g. libc) and the kernel. This could happen if you have a full-root zone that has been force attached (zoneadm -z <zone> attach -F). In the past, I've seen products that do this under the covers (e.g. Veritas Cluster) so it may have happened without your knowledge. If it is a sparse root zone, you may want to run "zoneadm -z <zone> detach; zoneadm -z <zone> attach -u". Prior to doing so, take whatever precautions you would normally take when patching a system.
    If you open a support call about this I bet the first advice you are going to get is to patch, as you seem to be 2+ years behind. Also, newer releases of Java 5 are available at http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html.

Maybe you are looking for

  • ALV display custom columns

    Hello experts, I am currently working on the report to display ACQUISITION PRICE and RENEWAL PRICE of some equipments. The renewal price will be calculated according to CPI, the CPI value should be entered by user. Based on this CPI the report should

  • Table AGR_1251: Search between a range of the field "LOW" and "HIGH

    Hello Experts, i've got a problem by searching all users who have the authority for a transaction. The transaction was written in a parameter, called p_trans. I've the Tables AGR_1251, AGR_AGRS and AGR_USERS. I know what I've to do. Here is my Join.

  • Abt user-define function

    Hi all,       I need to add 3 nodes in an user-defined function in message mapping using java code.The nodes r like EmpFirstName,EmpMiddleName,EmpLastName.I am writing one user-defined function like "ADD".How can i call these field names into "ADD" F

  • Can't start RMI server using JAR file

    I found it interesting that if I start my RMI server from a plain directory, everything goes fine. But if I jar all these necessary files into a jar file, and start my RMI server with command below java -jar server.jar UnmarshalException and ClassNot

  • Twitter and Facebook

    Hi. I'm looking for an automatic process to read data from facebook and twitter and feed them into OEID. For instance, in facebook I would like to have a company page with posts for new products, etc. I would like to crawl all the comments my followe