Its Urgent need a help...

Hi Guys,
I got a problem with select query...could you polease help me out...plz check the second select query statement
when i open tstcp table i gave Ztable and then when I exceute i am able to get the list when i do it programatically it is not working .....
any suggestions...points will be rewarded..
select tabname
from dd02l into table i_dd02l where tabname like 'Z%' and
( tabclass = 'VIEW'
or
tabclass = 'TRANSP' ) and
( mainflag = 'X'
or
mainflag = '' ).
if not i_dd02l[] is initial.
loop at i_dd02l.
v_tabna = i_dd02l-tabname.
select single tcode
param into (v_tcode , v_param)
from tstcp where param like '%v_tabna%'.
i_tstcp-tcode = v_tcode.
i_tstcp-param = v_param.
append i_tstcp.
clear i_tstcp.
endloop.
endif.
Regards,
Ravi Ganji

Hi ,
Use
concatenate  '%' i_dd02l-tabname '%' into v_tabna.
and then use.
  select single tcode
param into (v_tcode , v_param)
from tstcp where param like v_tabna.
Regards,
GSR

Similar Messages

  • ORA-00289|ORA-00280    Urgent - ( need recovery help)

    PLS NEED A HELP
    RUNNING ON NOARCHIVELOG
    SUNOS 5.8 SUN4U
    ORACLE 9i
    DEV DATABASE
    TRYING TO OPEN THE DATABASE
    ORA-00279: change 18906722884 generated at 04/02/2008 16:18:30 needed for thread 1
    ORA-00289: suggestion: /oracle/ora926/dbs/arch1_14790.dbf
    ORA-00280: change 18906722884 for thread 1 is in sequence #14790
    need help, is urgent
    Regards.

    $ tail -60 alert_MLQA.log
    compatible = 9.2.0.0.0
    db_file_multiblock_read_count= 32
    fast_start_mttr_target = 300
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    undo_retention = 10800
    max_enabled_roles = 50
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    instance_name = MLQA
    job_queue_processes = 10
    hash_join_enabled = TRUE
    background_dump_dest = /oracle/admin/MLQA/bdump
    user_dump_dest = /oracle/admin/MLQA/udump
    core_dump_dest = /oracle/admin/MLQA/cdump
    sort_area_size = 524288
    db_name = MLQA
    open_cursors = 300
    star_transformation_enabled= FALSE
    query_rewrite_enabled = FALSE
    pga_aggregate_target = 104857600
    aq_tm_processes = 1
    PMON started with pid=2
    Thu Apr 3 07:52:44 2008
    ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=mltlcrmt
    RT=1521))'
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    CJQ0 started with pid=8
    QMN0 started with pid=9
    Thu Apr 3 07:52:46 2008
    ALTER DATABASE MOUNT
    Thu Apr 3 07:52:50 2008
    Successful mount of redo thread 1, with mount id 1528507534
    Thu Apr 3 07:52:50 2008
    Database mounted in Exclusive Mode.
    Completed: ALTER DATABASE MOUNT
    Thu Apr 3 07:52:50 2008
    ALTER DATABASE OPEN
    ORA-1589 signalled during: ALTER DATABASE OPEN...
    Thu Apr 3 07:58:48 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Thu Apr 3 08:04:51 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Thu Apr 3 08:10:55 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Thu Apr 3 08:16:59 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Thu Apr 3 08:23:02 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Thu Apr 3 08:29:06 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    $
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> SELECT GROUP#,MEMBERS FROM V$LOG;
    GROUP# MEMBERS
    1 1
    2 1
    3 1
    4 1
    SQL> SELECT GROUP#,MEMBER FROM V$LOGFILE;
    GROUP#
    MEMBER
    3
    /data1/oradata/mlqa/redo03.log
    4
    /data2/oradata/mlqa/redo04.log
    1
    /data1/oradata/mlqa/redo01.log
    GROUP#
    MEMBER
    2
    /data2/oradata/mlqa/redo02.log
    SQL>
    SQL> select file# from v$recover_file;
    no rows selected
    SQL>
    SQL> recover database using backup controlfile;
    ORA-00279: change 18906722884 generated at 04/02/2008 16:18:30 needed for
    thread 1
    ORA-00289: suggestion : /oracle/ora926/dbs/arch1_14790.dbf
    ORA-00280: change 18906722884 for thread 1 is in sequence #14790
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    SQL> desc v$logfile
    Name Null? Type
    GROUP# NUMBER
    STATUS VARCHAR2(7)
    TYPE VARCHAR2(7)
    MEMBER VARCHAR2(513)
    SQL> select group#,status,member from v$logfile;
    GROUP# STATUS
    MEMBER
    3 STALE
    /data1/oradata/mlqa/redo03.log
    4 STALE
    /data2/oradata/mlqa/redo04.log
    1
    /data1/oradata/mlqa/redo01.log
    GROUP# STATUS
    MEMBER
    2 STALE
    /data2/oradata/mlqa/redo02.log
    SQL>
    THE ABOVE ARE THE COMMANDS I ATTEMPTED

  • Urgent need for help

    Hi folks,
    I really need help to solve an urgent issue.
    The context
    We are about to deliver an e-learning course made essentially
    with captivate lessons.
    The content is accessed through an html Main Menu which in
    turn is nested in a frameset.
    The reason for that is that in the second half of the
    frameset resides the SCO script since the content will be
    ultimately accessed from an LMS.
    The problem
    To exit the captivate content at the end of a lesson and go
    back to the main menu, we insert a button in the last slide where
    we indicate the main menu dynamic file location in case of success.
    All links are working fine during execution except when the
    main menu is called from the frameset.
    It looks like if captivate simulations don’t know what
    to do when they are launched from a frameset.
    I tried to go around it using JavaScript in the button, but
    that also won’t work.
    Any help would be greatly appreciated.
    Thanks in advance
    Mike

    I'm unclear on the issue.
    This is an HTML page your group has made? The Main Menu is
    nested in a
    frameset? Or, as I would think makes more sense, the Main
    Menu us *part*
    of the frameset, with the other frame being what loads the
    Captivate
    content?
    So you want to bundle a bunch of Captivate SWFs into one HTML
    frameset...
    And when you load the Captivate file, since the Captivate's
    HTML file -
    that contains the code to communicate with the LMS API - is
    in a
    frameset, it can't find the LMS?
    Or is it a different issue?
    Why would you call the Main Menu from the Captivate file?
    Erik
    MichelGervais wrote:
    > Hi folks,
    >
    > I really need help to solve an urgent issue.
    >
    >
    > The context
    >
    >
    > We are about to deliver an e-learning course made
    essentially with captivate
    > lessons.
    >
    > The content is accessed through an html Main Menu which
    in turn is nested in a
    > frameset.
    >
    > The reason for that is that in the second half of the
    frameset resides the SCO
    > script since the content will be ultimately accessed
    from an LMS.
    >
    > The problem
    >
    > To exit the captivate content at the end of a lesson and
    go back to the main
    > menu, we insert a button in the last slide where we
    indicate the main menu
    > dynamic file location in case of success.
    >
    > All links are working fine during execution except when
    the main menu is
    > called from the frameset.
    >
    > It looks like if captivate simulations don?t know what
    to do when they are
    > launched from a frameset.
    >
    > I tried to go around it using JavaScript in the button,
    but that also won?t
    > work.
    >
    > Any help would be greatly appreciated.
    >
    > Thanks in advance
    >
    > Mike
    >
    >
    >
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Urgent Need of Help Playing Movie Clips

    I'm a complete noob when it comes to AS. I know basic things like stop(); and gotoAndPlay.
    Here's my dilemma.
    Dearest Professor has given us a task of creating a website in Flash. You need to have 15 links, or 15 pages. He states that you can only go frame by frame on the main timeline with no tweening spaces in between. So I'm virtually creating all of my animations in symbols.
    This isnt such a problem... I created a short introduction title video in Flash using a Movie Clip Symbol... placed it on the main timeline on the first page, and then called ActionScript to play the video.
    Here's the problem... So.... the movie will play, but it will continuously loop... I've tried putting stop(); on the home page, under the AS... I'm just completely lost on how to get this to play the short clip and go straight to the home page... Could someone PLEASE, direct me on how to do this and give me an explanation as to why this way is the way it is... I would very much like to understand how it works.
    Thanks
    The Flash Noob

    Thanks Rob!
    I did what you suggested but I think I may have messed it up...
    Here's the output error I have going on right now.
    TypeError: Error #1034: Type Coercion failed: cannot convert flash_website_template2_fla::MainTimeline@7fff0d7aea1 to openingtodogwood.
      at openingtodogwood/frame9()[openingtodogwood::frame9:3]
    In the end of the timeline of the movie clip I put this:
    stop();
    openingtodogwood(parent).play();
    I think that might be wrong but I'm unsure on what I should have really put. I was also reading that having the name of the movie clip the same as the class in the properties panels is not a good idea?
    Thank you so much for your help!

  • In urgent need of help regarding getting month name and dates

    Hi Experts
    I have a table called MONTHLYBILL with Column TRANSACTIONMONTH. I need one query / function / SP to do return ouput based on following combination. I am using Oracle 9i
    Have researched on various forums, documents but unable to get the desired output. Finally here in hope of help.
    Input
    From Date: 06/01/2011
    To Date: 12/03/2011
    Output
    Month: DECEMBER-2010 (previous month of From Date). Now if DECEMBER-2010 is not available in table, then returns the
    month which is available immediately the month preceeding DECEMBER-2010
    Begin Date: 01/01/2011 (1st day following the month returned in output)
    End Date: 31/03/2011 (last date of month based on input To Date)
    Input
    From Date: Null
    To Date: 12/03/2011
    Output
    Month: First available transactionmonth in DB (say JANUARY-2010)
    Begin Date: 01/02/2011 (1st day following the month returned in output)
    End Date: 31/03/2011 (last date of month based on input To Date)
    Input
    From Date: Null
    To Date: Null
    Output
    Month: First available transactionmonth in DB (say JANUARY-2010)
    Begin Date: 01/02/2011 (1st day following the month returned in output)
    End Date: Current month's last date

    What is your application release?
    I am in big trouble now.. can anyone help....
    I have a backup of an EBS instance, lets say it was taken one month ago, and now we got some datas lost in the current production server..
    some one deleted some datas...
    Now we need some specific data from the old backup and restore it to the production
    or can it be restored? please help me guys...What kind of data? What is the table name?
    Since this is a production issue, I would suggest you log a SR.
    Thanks,
    Hussein

  • Hi its urgent...help on selection screen parameters

    Hi all,
    I need help on selection screen parameters.
    requirement is that,
    i am having input fields for material, plant ,start date and end date and a check box and an input field for getting the txt file.
    when i select the checkbox, it should ignore the mandatory fileds in the selection screen.
    and when i get the file input, it should take  the input data material, plant, start date and end date from the flat file and populate the corresponding input fields in selection screen.
    How to do this..
    thanks in advance.

    Hi ..
    While declare the Matnr, Plant etc dont use the OBLIGATORY addition.
    instead of the based on the value of check box validate them .
    AT SELECTION-SCREEN.
      IF c_box = ' '.
       << validate for mandatory fields>>
    endif.
    <b>REWARD IF HELPFUL.</b>

  • RECORDING WITH F-32 ......ITS URGENT SO PLZ HELP

    HI 
    WISH EVERYTHING IS GOING ON WELL FOR YOU PELOPE
    I GOT AN ASSIGNMENT IN FI AND I AM VERY MUCH NEW TO FI SO PLZ HELP TO SOLVE THIS PROBLEM
    REQUIREMENT IS SOMETHING LIKE THIS
    I HAVE TO TAKE THE START DATE AND THE END DATE AS INPUT.
    I HAVE TO DO THE RECORDING IN F-32 WHICH IS FOR CLEAR CUSTOMER.
    SO AS PRE THE DATE VALUE I HAVE TO SELECT ALL THE REQUIRED VALUE FROM THE DATA BASE TABLE AND I HAVE TO CLEAR THEM .
    I HAVE DONE THE WORK TILL SELECTION SCREEN AND THE SELECT STAMENT,BUT I AM NOT ABLE TO DO THE RECORDING AS I AM NOT GETTING SOME APPROPRIATE DATA.
    SO IF ANYBODY HAVE GONE THROUGH SUCH KIND OF PROBLEM THAN PLZ HELP ME OUT WITH CODE ,ITS RGENT FOR ME.
    THANKS A LOT TO ALL
    MRUTYUN

    Hi
    Trx F-32 is the trx to clear documents of customers, there's a general trx to do this: FB05.
    This one is supported by b.i. std RFBIBL00.
    Max

  • Urgently need some help with a few Swing questions

    Hi
    I'm hoping someone can help me, I need to get these problems fixed very soon or I'm in trouble.
    Scenario: I have a JTreeTable inside a JScrollPane inside a JPanel that is inside a JFrame.
    Problems I'm having (solutions or help with any of all would be greatly appreciated):
    1. I'm trying to make it possible to do a selection in the JTreeTable by right-clicking the mouse (as well as the normal left click), but only if there is nothing currently selected, so I do something like this:
            int[] sel = treeTable.getSelectedRows();
            if ((sel == null) || (sel.length == 0)) {
                treeTable.setColumnSelectionAllowed(false);
                treeTable.setRowSelectionAllowed(true);
                treeTable.setRowSelectionInterval(0, 0);            // but I don't know what these values should be set to, where to get them from?
            }I want to select the row at the mouse cursor, I have the x/y values but I don't know how to relate them to the row index. The full feature that I require is I need
    2. I have a popup menu that appears after a right click on the JTreeTable, it's handled by a MouseListener attached to the JTreeTable, I want this to also appear anywhere else in the JScrollpane. I've tried moving the MouseListener to the JScrollPane, but then the popup stops working if user clicks inside JTreeTable, if I add it to both, it almost works, except that user cannot click below the JTreeTable's first column. Any ideas on this?
    3. How can I change the JTreeTable selection behaviour so that you can only multi-select using Ctrl/Shift and not the mouse? Mouse must only allow single connection, I'm currently using:
    treeTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);But this allows mouse drag selection as well, which shouldn't be there. How is this avoidable?
    4. I want to make the minimize button to make an icon in system tray and be able to restore it by clicking on it. Also I want to be able to minimze from a popup menu, I've currently got the following:
            thisApp.getMainFrame().setState(Frame.ICONIFIED);
            thisApp.getMainFrame().setVisible(false);
            thisApp.getMainFrame().pack();
            try {
               tray.add(trayIcon);
            } catch (AWTException ex) {
            }thisApp is a copy of the SingleFrameApplication variable that is passed to the main frame constructor (main frame extends FrameView). This code above doesn't do anything except create the tray icon. If I click on the tray icon (code below) then it opens up a blank window:
            trayIcon.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    thisApp.getMainFrame().setVisible(true);
                    thisApp.getMainFrame().setState(Frame.NORMAL);
                    thisApp.getMainFrame().pack();
                    tray.remove(trayIcon);
            });I need to get this part fixed and I optionally also want to bind this behaviour to the normal minimize button.
    Please, please help!
    Lionel

    Issue 2 has been solved, was an error in the MouseListener code.

  • Urgent need of help with a java WSDL application

    Hello,
    I'm trying to turn a WORKING java application which uses some webservices, into a JAR file.
    Somehow i keep on getting the same errors all the time.
    I added all the necessary jar files, which are used in the program, in the global JAR file, but still the error remains.
    Can anyone help me with this error? (Error see below, WARNING EXTREMELY LONG!)
    ---------------------------------------------------------------- ERROR MESSAGE --------------------------------------------------------------------
    standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
    .xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
    saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.<init>(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.<init>(Main.java:10)
    at test.Main.main(Main.java:14)
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.<init>(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.<init>(Main.java:10)
    at test.Main.main(Main.java:14)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
    nit>(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 10 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:93)
    ... 13 more
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.<init>(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.<init>(Main.java:10)
    at test.Main.main(Main.java:14)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
    nit>(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 10 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:93)
    ... 13 more
    ---------------------------------------------------------------- ERROR MESSAGE --------------------------------------------------------------------

    I face this same problem too, I have a jar which calls a webservice and I want to execute it from windows command , I get the following error when I use the command : java -cp Has.jar moicr.Main
    standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
    .xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
    saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
    ry(JoPayWebServiceService_SerializerRegistry.java:26)
    at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
    ervice_Impl.java:26)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
    at moict.Main.confirmPayment(Main.java:142)
    at moict.Main.main(Main.java:93)
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
    ry(JoPayWebServiceService_SerializerRegistry.java:26)
    at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
    ervice_Impl.java:26)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
    at moict.Main.confirmPayment(Main.java:142)
    at moict.Main.main(Main.java:93)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
    nit>(LiteralAnyElementSerializer.java:16)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
    nit>(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 14 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:93)
    ... 18 more
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
    ry(JoPayWebServiceService_SerializerRegistry.java:26)
    at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
    ervice_Impl.java:26)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
    at moict.Main.confirmPayment(Main.java:142)
    at moict.Main.main(Main.java:93)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
    nit>(LiteralAnyElementSerializer.java:16)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
    nit>(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 14 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    C:\>

  • Problem with accessing database in minisap 4.6 d( very urgent need ur help)

    hi all sap masters please help me.
    i have installed the minisap 4.6d system in the windows 200 prof os.
    i had the following problem in my minisa access.
    while Displaying table contents with transactions SE11 or SE16
    gives an error "No changes on SAP objects allowed".
    while Accessing the logical database F1S gives a syntax error because the
    include DBF1SF01 is missing.
    so i have used the mbspatch1 that comes with the cd.
    i have copied the mbscorr0104200 file in the directory '<MBS_DIR>\trans\tmp' as mentioned.
    and i have followed the steps as follows.but i have the same problem.please have a look at the
    process below and hel me to make it work roerly.
    this roblem is really eating me a lot and since many in this forum are sap master,thought
    you all can help me please.
    C:\>cd mbs
    C:\MBS>dbenv.cmd
    C:\MBS>REM Setting environment for db connect to MBS
    C:\MBS>set dbms_type=mss
    C:\MBS>set DIR_LIBRARY=.
    C:\MBS>set MSSQL_DBNAME=MBS
    C:\MBS>cd trans\tmp
    C:\MBS\TRANS\TMP>r3trans -i mbscorr01042000
    'R3TRANS' is not recognized as an internal or external command,
    operable program or batch file.
    hope there was some problem here only,but to continue i have pasted the r3trans in the folder C:\MBS\TRANS\TMP
    C:\MBS\TRANS\TMP>r3trans -i mbscorr01042000
    This is R3TRANS version 6.05 (release 46D - 04.10.00 - 09:16:00).
    2EETW169 no connect possible: "connect failed with DBLI_RC_LOAD_LIB_FAILED."
    R3TRANS finished (0012).
    then i have done the generate program step .
    (4) Generate programs:
         - Logon as user BCUSER to the MBS system.
         - Start transaction SE38.
         - Enter the program 'SAPLSTRD' and select 'Program -> Generate'.
         - Enter the program 'SAPDBF1S' and select 'Program -> Generate'.
    while generating the second program i got the error Accessing the logical database F1S gives a
    syntax error because the include DBF1SF01 is missing.
    hope somebody could have got the same problem.so please help me with your experience.iam new to this
    minisap problems.
    again all the problem of acessing the tables exit even after doing the steps.
    hope i have explained my problem very clearly.
    please find where i went wrong or suggest some help to acess the datadase tables with the minisap cd.

    all webas downloads (ABAP, java)
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    webas 6.40 ABAP server
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/b2918eea-0601-0010-6284-e6cb7eee4399 [original link is broken]
    SAP gui
    https://www.sdn.sap.com/irj/sdn/softwaredownload?download=ftp://ftp.sap.com/pub/sdn/devkits/netweaver/abap/50072743_4.zip&df=0
    Regards
    Raja

  • Urgent need of help with a chat application!

    Hi,
    I'm writing a Chat Application and I want to add Emoticon, I did so by adding buttons but I don't know how to send the gif to my JTextField and to my JTextArea.
    Here is part of my code can someone can help me PLEASE!!!
    JPanel chatPane = new JPanel(new BorderLayout());
    JPanel emoticon = new JPanel(new GridLayout(2, 5));
    b1 = new JButton (sourrire);
    b1.setToolTipText("Un Sourire");
    // b1.addActionListener();
    emoticon.add(b1);
    b2 = new JButton (gsourrire);
    b2.setToolTipText("Un Grand Sourire");
    // b2.addActionListener();
    emoticon.add(b2);
    b3 = new JButton (triste);
    b3.setToolTipText("Triste");
    // b3.addActionListener();
    emoticon.add(b3);
    b4 = new JButton (grimace);
    b4.setToolTipText("Grimace");
    // b4.addActionListener();
    emoticon.add(b4);
    b5 = new JButton (pleure);
    b5.setToolTipText("Pleure");
    // b5.addActionListener();
    emoticon.add(b5);
    b6 = new JButton (bec);
    b6.setToolTipText("Un bec");
    // b6.addActionListener();
    emoticon.add(b6);
    b7 = new JButton (coeur);
    b7.setToolTipText("Un coeur pour toi");
    // b7.addActionListener();
    emoticon.add(b7);
    b8 = new JButton (fache);
    b8.setToolTipText("Fache");
    // b8.addActionListener();
    emoticon.add(b8);
    b9 = new JButton (lunettes);
    b9.setToolTipText("Je suis Cool");
    // b9.addActionListener();
    emoticon.add(b9);
    b10 = new JButton (clinoeil);
    b10.setToolTipText("Clin d'Oeil");
    //b10.addActionListener(new ActionAdapter2());
    emoticon.add(b10);
    Thanks a lot!
    Isabelle

    Hi anoopjain13
    what I did is that each button is an IconImage and I was trying to send the Icon to the textfield.
    here is the complete code of my chat, you'll understand better what I tried to do.
    //Naziha Berrassil et Isabelle Gosselin
    //Travail Pratique #1
    //remis � Said Senhaji
    //Developpement d'une application CHAT
    //package chatv2.a
    import java.lang.*;
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
    public class TCPChat2a implements Runnable {
    // Constantes de l'etat de la connection
    public final static int NULL = 0;
    public final static int DISCONNECTED = 1;
    public final static int DISCONNECTING = 2;
    public final static int BEGIN_CONNECT = 3;
    public final static int CONNECTED = 4;
    // Declaration d'un tableau de chaines
    public final static String statusMessages[] = {
    " Erreur! Aucune connexion possible!", " Deconnexion",
    " Deconnexion en cours...", " Connexion en cours...", " Connexion"
    //Instentiation de la classe
    public final static TCPChat2a tcpObj = new TCPChat2a();
    // Indique la fin d'une session
    public final static String END_CHAT_SESSION =
    new Character((char)0).toString();
    // Informations sur l'etat de la connexion
    public static String hostIP = "localhost";
    public static String user = "";
    public static String s1;
    public static int port = 1234;
    public static int connectionStatus = DISCONNECTED;
    public static boolean isHost = true;
    public static String statusString = statusMessages[connectionStatus];
    public static StringBuffer toAppend = new StringBuffer("");
    public static StringBuffer toSend = new StringBuffer("");
    // Declaration des composantes GUI et initialisation
    public final static ImageIcon sourrire = new ImageIcon ("icons/sourrire.gif");
    public static JButton b1;
    public final static ImageIcon gsourrire = new ImageIcon ("icons/grand_sourrire.gif");
    public static JButton b2;
    public final static ImageIcon triste = new ImageIcon ("icons/triste.gif");
    public static JButton b3;
    public final static ImageIcon pleure = new ImageIcon ("icons/pleure.gif");
    public static JButton b4;
    public final static ImageIcon coeur = new ImageIcon ("icons/coeur.gif");
    public static JButton b5;
    public final static ImageIcon grimace = new ImageIcon ("icons/grimace.gif");
    public static JButton b6;
    public final static ImageIcon lunettes = new ImageIcon ("icons/lunettes.gif");
    public static JButton b7;
    public final static ImageIcon fache = new ImageIcon ("icons/fache.gif");
    public static JButton b8;
    public final static ImageIcon bec = new ImageIcon ("icons/bec.gif");
    public static JButton b9;
    public final static ImageIcon clinoeil = new ImageIcon ("icons/clinoeil.gif");
    public static JButton b10;
    public static JFrame mainFrame = null;
    public static JTextArea chatText = null;
    public static JTextField chatLine = null;
    public static JPanel statusBar = null;
    public static JLabel statusField = null;
    public static JTextField statusColor = null;
    public static JTextField ipField = null;
    public static JTextField username = null;
    public static JTextField portField = null;
    public static JRadioButton hostOption = null;
    public static JRadioButton guestOption = null;
    public static JButton connectButton = null;
    public static JButton disconnectButton = null;
    // Declaration des composantes TCP
    public static ServerSocket hostServer = null;
    public static Socket socket = null;
    public static BufferedReader in = null;
    public static PrintWriter out = null;
    //Methode qui retourne le premier pannel(optionsPane),ce dernier
    //se compose de 5 panneaux
    private static JPanel initOptionsPane() {
    //pannel pane qui sera ajout� au pannel optionsPane
    JPanel pane = null;
    //initiation de la classe ActionAdapteur qui implemente ActionListner
    ActionAdapter buttonListener = null;
    // Creation du pannel optionsPane
    JPanel optionsPane = new JPanel(new GridLayout(5, 1));
    // 1er pannel pane pour label et textfield de l'adresse IP
    pane = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    pane.add(new JLabel("Serveur IP:"));
    ipField = new JTextField(10);
    ipField.setBackground(new Color(0.98f, 0.97f, 0.85f));
    ipField.setText(hostIP);
    ipField.setEnabled(false);
    //evenement generer par Component avec la methode addFocusListener
    //en cas d'obtention ou perte du focus par un composant
    ipField.addFocusListener(new FocusAdapter() {
    public void focusLost(FocusEvent e) {
    ipField.selectAll();
    //Editable seulement en mode deconnexion
    if (connectionStatus != DISCONNECTED) {
    changeStatusNTS(NULL, true);
    else {
    hostIP = ipField.getText();
    pane.add(ipField);
    optionsPane.add(pane);
    // 2eme pannel pane pour label et textfield du port
    pane = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    pane.add(new JLabel("Port:"));
    portField = new JTextField(10);
    portField.setBackground(new Color(0.98f, 0.97f, 0.85f));
    portField.setEditable(true);
    portField.setText((new Integer(port)).toString());
    portField.addFocusListener(new FocusAdapter() {
    public void focusLost(FocusEvent e) {
    //Textfield du port modifiable si on est en mode deconnexion
    if (connectionStatus != DISCONNECTED) {
    changeStatusNTS(NULL, true);
    else {
    int temp;
    try {
    temp = Integer.parseInt(portField.getText());
    port = temp;
    catch (NumberFormatException nfe) {
    portField.setText((new Integer(port)).toString());
    mainFrame.repaint();
    pane.add(portField);
    optionsPane.add(pane);
    // 3eme pannel pour label et textfield du nom d'utilisateur
         pane = new JPanel(new FlowLayout(FlowLayout.RIGHT));
              pane.add(new JLabel("Nom: "));
              username = new JTextField(10);
    username.setBackground(new Color(0.98f, 0.97f, 0.85f));
              username.setText(user);
              username.setEnabled(true);
              username.addFocusListener(new FocusAdapter() {
              public void focusLost(FocusEvent e) {
              // username.selectAll();
              // Should be editable only when disconnected
              if (connectionStatus != DISCONNECTED) {
              changeStatusNTS(NULL, true);
              else {
              user = username.getText();
              pane.add(username);
    optionsPane.add(pane);
    // Host/guest option
    buttonListener = new ActionAdapter() {
    public void actionPerformed(ActionEvent e) {
    if (connectionStatus != DISCONNECTED) {
    changeStatusNTS(NULL, true);
    else {
    isHost = e.getActionCommand().equals("host");
    // Cannot supply host IP if host option is chosen
    if (isHost) {
    ipField.setEnabled(false);
    ipField.setText("localhost");
    hostIP = "localhost";
    else {
    ipField.setEnabled(true);
    //creation de boutton groupe radio(serveur et invite)
    ButtonGroup bg = new ButtonGroup();
    hostOption = new JRadioButton("Serveur", true);
    hostOption.setMnemonic(KeyEvent.VK_S);
    hostOption.setActionCommand("host");
    hostOption.addActionListener(buttonListener);
    guestOption = new JRadioButton("Invite", false);
    guestOption.setMnemonic(KeyEvent.VK_I);
    guestOption.setActionCommand("invite");
    guestOption.addActionListener(buttonListener);
    bg.add(hostOption);
    bg.add(guestOption);
    // 4eme pannel pane pour les 2 bouttons radio
    pane = new JPanel(new GridLayout(1, 2));
    pane.add(hostOption);
    pane.add(guestOption);
    optionsPane.add(pane);
    // 5eme pannel buttonPane pour les bouttons de connexion et deconnexion
    JPanel buttonPane = new JPanel(new GridLayout(1, 2));
    buttonListener = new ActionAdapter() {
    public void actionPerformed(ActionEvent e) {
    // requete pou debut d'une connexion
    if (e.getActionCommand().equals("connect")) {
    changeStatusNTS(BEGIN_CONNECT, true);
    // Deconnexion
    else {
    changeStatusNTS(DISCONNECTING, true);
    //creation des bouttons dans le pannel et l'ajout au premier pannel
    //(optionsPane)
    connectButton = new JButton("Connexion");
    connectButton.setMnemonic(KeyEvent.VK_C);
    connectButton.setActionCommand("connect");
    connectButton.addActionListener(buttonListener);
    connectButton.setEnabled(true);
    disconnectButton = new JButton("Deconnexion");
    disconnectButton.setMnemonic(KeyEvent.VK_D);
    disconnectButton.setActionCommand("disconnect");
    disconnectButton.addActionListener(buttonListener);
    disconnectButton.setEnabled(false);
    buttonPane.add(connectButton);
    buttonPane.add(disconnectButton);
    optionsPane.add(buttonPane);
    return optionsPane;
    // Initialisation de toutes les composantes GUI et affichage du frame
    private static void initGUI() {
    // Configuration du status bar
    // cr�ation d'un autre pannel statusBar qui se compose d'un petit carr�
    // color� et un label indiquant le mode de connexion
    statusField = new JLabel(); //Label indiquant l'�tat de la connexion
    statusField.setText(statusMessages[DISCONNECTED]);
    statusColor = new JTextField(1); //carr� color� indiquant l'�tat de la connection grace a des couleurs
    statusColor.setBackground(Color.red);
    statusColor.setEditable(false);
    statusBar = new JPanel(new BorderLayout());
    statusBar.add(statusColor, BorderLayout.WEST);
    statusBar.add(statusField, BorderLayout.CENTER);
    // Configuration du pannel optionsPane en appelant la methode d'initiation
    // de ce dernier
    JPanel optionsPane = initOptionsPane();
    // Creation et configuration du pannel chatPane qui contient un
    // textarea au centre avec une barre defilante verticale et un textfield
    // au sud pour faire rentrer les messages
    JPanel chatPane = new JPanel(new BorderLayout());
         JPanel emoticon = new JPanel(new GridLayout(2, 5));
    b1 = new JButton (sourrire);
    b1.setToolTipText("Un Sourire");
    // b1.addActionListener();
    emoticon.add(b1);
    b2 = new JButton (gsourrire);
    b2.setToolTipText("Un Grand Sourire");
    // b2.addActionListener();
    emoticon.add(b2);
    b3 = new JButton (triste);
    b3.setToolTipText("Triste");
    // b3.addActionListener();
    emoticon.add(b3);
    b4 = new JButton (grimace);
    b4.setToolTipText("Grimace");
    // b4.addActionListener();
    emoticon.add(b4);
    b5 = new JButton (pleure);
    b5.setToolTipText("Pleure");
    // b5.addActionListener();
    emoticon.add(b5);
    b6 = new JButton (bec);
    b6.setToolTipText("Un bec");
    // b6.addActionListener();
    emoticon.add(b6);
    b7 = new JButton (coeur);
    b7.setToolTipText("Un coeur pour toi");
    // b7.addActionListener();
    emoticon.add(b7);
    b8 = new JButton (fache);
    b8.setToolTipText("Fache");
         // b8.addActionListener();
         emoticon.add(b8);
    b9 = new JButton (lunettes);
    b9.setToolTipText("Je suis Cool");
    // b9.addActionListener();
    emoticon.add(b9);
    b10 = new JButton (clinoeil);
    b10.setToolTipText("Clin d'Oeil");
    //b10.addActionListener(new ActionAdapter2());
    emoticon.add(b10);
    emoticon.addActionListener(new ActionAdapter() {
    public void actionPerformed(ActionEvent e) {
                             String image = chatLine.setImage().toString();
                             appendToChatBox(image);
                             chatLine.selectAll();
                             sendString(image)
                             chatLine.setText(" ");
    emoticon.setVisible(true);
    //b1 = setVisible(true);
    chatText = new JTextArea(10, 100);
    chatText.setBackground(new Color(0.98f, 0.97f, 0.85f));
    chatText.setLineWrap(true);
    chatText.setEditable(false);
    chatText.setForeground(Color.blue);
    JScrollPane chatTextPane = new JScrollPane(chatText,
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
    JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    chatLine = new JTextField(10);
    chatLine.setBackground(new Color(0.98f, 0.97f, 0.85f));
    chatLine.setForeground(Color.blue);
    chatLine.setEnabled(false);
    chatLine.addActionListener(new ActionAdapter() {
    public void actionPerformed(ActionEvent e) {
    String s = chatLine.getText();
    if (!s.equals("")) {
    appendToChatBox(user=username.getText()+" dit : \n" + s + "\n");
    chatLine.selectAll();
    // Envoi de la chaine entr�e
    sendString(s);
    chatLine.setText("");
    chatPane.add(chatLine, BorderLayout.SOUTH);
    chatPane.add(chatTextPane, BorderLayout.NORTH);
    chatPane.setPreferredSize(new Dimension(300, 300));
         chatPane.add(emoticon, BorderLayout.CENTER);
    // Ajout des pannels dans le pannel principal (mainPane)
    JPanel mainPane = new JPanel(new BorderLayout());
    mainPane.add(statusBar, BorderLayout.SOUTH);
    mainPane.add(optionsPane, BorderLayout.WEST);
    mainPane.add(chatPane, BorderLayout.CENTER);
    // Configuration du frame (mainFrame)
    mainFrame = new JFrame("Chat");
    mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // la m�thode setDefaultCloseOperation(int)provient de la classe javax.swing.JDialog
         // Elle specifi l'op�ration qui sera ex�cut�e par d�fault lorsque
         // l'utilisateur initialisera une fermeture de session
    mainFrame.setContentPane(mainPane);
    mainFrame.setSize(mainFrame.getPreferredSize());
         // la m�thode getPreferredSize() provient de la classe java.awt
         // Retourne la grosseur "pr�f�r�e" du container.
    mainFrame.setLocation(200, 200);
    // la m�thode setLocation(double, double) provient de la classe java.awt.Point
         // elle permet de specifiez un emplacement d'un point a des coordonn�es de type Float
    mainFrame.pack();
    // la m�thode pack() provient de la class AWT.Window, elle permet a la fenetre
    // d'�tre ajuster a la grosseur et a la mise en page des sous-composantes de celle-ci
    mainFrame.setVisible(true);
    // Le thread qui permet le changement des composantes GUI pendant le
    // changement de l'etat
    private static void changeStatusTS(int newConnectStatus, boolean noError) {
    // Changer l'etat si valide
    if (newConnectStatus != NULL) {
              connectionStatus = newConnectStatus;
    // S'il n'y a aucunes erreur, afficher le bon message de l'etat
    if (noError) {
    statusString = statusMessages[connectionStatus];
    // Autrement, afficher le message d'erreur
    else {
    statusString = statusMessages[NULL];
    System.out.println("Echec lors de la connexion");
    // Appel a la routine de run()(Runnable interface) sur la gestion des erreurs
    // et la mise a jours des composantes GUI grace au thread
    SwingUtilities.invokeLater(tcpObj);
    // Le changement des composantes GUI sans aucun pendant le
    // changement de l'etat
    private static void changeStatusNTS(int newConnectStatus, boolean noError) {
    // Changer l'etat si valide
    if (newConnectStatus != NULL) {
    connectionStatus = newConnectStatus;
    // S'il n'y a aucunes erreur, afficher le bon message de l'etat
    if (noError) {
    statusString = statusMessages[connectionStatus];
    // Autrement, afficher le message d'erreur
    else {
    statusString = statusMessages[NULL];
    // Appel a la routine de run()(Runnable interface) sur la gestion des erreurs
    // en utilisant le thread
    tcpObj.run();
    // L'ajout au chat box avec l'utilisation du Thread
    private static void appendToChatBox(String s) {
    synchronized (toAppend) {
    toAppend.append(s);
    System.out.println(s);
    // Ajouter le text au "send-buffer"
    private static void sendString(String s) {
    synchronized (toSend) {
    toSend.append(user=username.getText()+ " dit : \n" + s + "\n");
    // Nettoyage pour le debranchement
    private static void cleanUp() {
    try {
    if (hostServer != null) {
    hostServer.close();
    hostServer = null;
    catch (IOException e) { hostServer = null; }
    try {
    if (socket != null) {
    socket.close();
    socket = null;
    catch (IOException e) { socket = null; }
    try {
    if (in != null) {
    in.close();
    in = null;
    catch (IOException e) { in = null; }
    if (out != null) {
    out.close();
    out = null;
    // Verification de l'etat courrant et ajustement de "enable/disable"
    // en fonction de l'etat
    public void run() {
    switch (connectionStatus) {
    case DISCONNECTED:
    connectButton.setEnabled(true);
    disconnectButton.setEnabled(false);
    ipField.setEnabled(true);
    portField.setEnabled(true);
    username.setEnabled(true);
    hostOption.setEnabled(true);
    guestOption.setEnabled(true);
    chatLine.setText("");
    chatLine.setEnabled(false);
    statusColor.setBackground(Color.red);
    break;
    case DISCONNECTING:
    connectButton.setEnabled(false);
    disconnectButton.setEnabled(false);
    ipField.setEnabled(false);
    portField.setEnabled(false);
    hostOption.setEnabled(false);
    guestOption.setEnabled(false);
    chatLine.setEnabled(false);
    statusColor.setBackground(Color.orange);
    break;
    case CONNECTED:
    connectButton.setEnabled(false);
    disconnectButton.setEnabled(true);
    ipField.setEnabled(false);
    portField.setEnabled(false);
    hostOption.setEnabled(false);
    username.setEnabled(false);
    guestOption.setEnabled(false);
    chatLine.setEnabled(true);
    statusColor.setBackground(Color.green);
    break;
    case BEGIN_CONNECT:
    connectButton.setEnabled(false);
    disconnectButton.setEnabled(false);
    ipField.setEnabled(false);
    portField.setEnabled(false);
    hostOption.setEnabled(false);
    username.setEnabled(false);
    guestOption.setEnabled(false);
    chatLine.setEnabled(true);
    chatLine.grabFocus();
    statusColor.setBackground(Color.orange);
    break;
    // S'assurer que l'etat des champs bouton/texte sont consistent
    // avec l'etat interne
    ipField.setText(hostIP);
    portField.setText((new Integer(port)).toString());
    hostOption.setSelected(isHost);
    guestOption.setSelected(!isHost);
    statusField.setText(statusString);
    chatText.append(toAppend.toString());
    toAppend.setLength(0);
    mainFrame.repaint();
    // Procedure principale
    public static void main(String args[]) {
    String s;
    initGUI();
    while (true) {
    try {
    Thread.sleep(10);
         // Verification a toute les 10 ms
    catch (InterruptedException e) {}
    switch (connectionStatus) {
    case BEGIN_CONNECT:
    try {
    // Essai de configuration du serveur si "host"
    if(user != ""){
         if (isHost) {
         hostServer = new ServerSocket(port);
         socket = hostServer.accept();
         // Si invit�, essai de branchement au serveur
         else {
         socket = new Socket(hostIP, port);
    in = new BufferedReader(new
    InputStreamReader(socket.getInputStream()));
    out = new PrintWriter(socket.getOutputStream(), true);
    changeStatusTS(CONNECTED, true);
    System.out.println("Ouverture de la session: \n" + socket);
              else{
              JOptionPane.showMessageDialog(null, "Erreur, vous devez entrer un nom d'utilisateur", "Erreur", JOptionPane.PLAIN_MESSAGE);
                        changeStatusTS(DISCONNECTED, false);
    // Si erreur, nettoyage et envoi du message d'erreur
    catch (IOException e) {
    cleanUp();
    changeStatusTS(DISCONNECTED, false);
    break;
    case CONNECTED:
    try {
    // Envoi de data
    if (toSend.length() != 0) {
    out.print(toSend);
    out.flush();
    toSend.setLength(0);
    changeStatusTS(NULL, true);
    // Reception de data
    if (in.ready()) {
    s = in.readLine();
    if ((s != null) && (s.length() != 0)) {
    // Verification de la fin de la transmission
    if (s.equals(END_CHAT_SESSION)) {
    changeStatusTS(DISCONNECTING, true);
    // Autrement, reception du texte
    else {
    appendToChatBox( s + "\n");
    changeStatusTS(NULL, true);
    catch (IOException e) {
    cleanUp();
    changeStatusTS(DISCONNECTED, false);
    break;
    case DISCONNECTING:
    // Dis aux autres fenetre de chat de se d�brancher aussi
    out.print(END_CHAT_SESSION);
    out.flush();
                   System.out.println("Fermeture de la session");
    // Nettoyage (ferme les streams/sockets)
    cleanUp();
    changeStatusTS(DISCONNECTED, true);
    break;
    default: break; // ne fait rien
    // Certaines interfaces �couteurs sont accompagn�es d'adaptateurs qui
    //implementent toutes les methodes de l'interface et evitent de les lister.
    class ActionAdapter implements ActionListener {
    public void actionPerformed(ActionEvent e) {}
    ////////////////////////////////////////////////////////////////////

  • URGENT NEED OF HELP!!!!!!

    I have some technical problems of my iPod.
    I have my iPod first set up in Hong Kong, everything's fine by then, but then when I went to toronto to study and plugged in my iPod to my laptop, everything got lost since it asked me if i wanted to replace all the things i have in my iPod. my iPod username was at first athena, but now for no reason, it changes to ephiPod, which doesn't work and even can't input songs into it. it says my iPod is full which in fact was only 1/30 filled with music.
    wt's the problem, if i happen to connect my iPod to somewhere else, how can I get all the music i used to have brought back to the library in my new computer
    PLEASE PLEASE PLEASE HELP MEEEEE

    andyrossi24 wrote:
    I FORGOT MY USER NAME AND PASSWORD FOR MY BB APP, PLEASE HOW DO I GET THE INFO BACK
    Hi andyrossi24,
    You mean BlackBerry App World?
    BlackBerry ID Password Reset
    https://blackberryid.blackberry.com/bbid/recoverpassword
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

  • Urgent need of help please

    So i play on a game on here called clash of the clans my 4 y/o daughter loves ot and i let her play un supervised but she decided to shop n click on buy stuff but she dont my password and it was not entered ot now cost me around 150 pounds is there any way i can get this back as the pasword for the app was not entered so should of never went through please help me

    That is the only choice you have to get in touch with iTunes support. They usually will answer an email within 24 hours. I'm not sure of their policy for in-app purchases, but I know that normal purchases in the App Store of iTunes is all sales are final. However, if you relate your story to them, it could make a difference. I suggest that you set restrictions on and restrict in-app purchases if you are going to allow a child to use the device.

  • Urgent need a help

    I am new in pl/sql xml. Please help me how can i write xml in pl/sql. Please advise me
    Thanks
    SS

    8i has fewer options than 9i and beyond. You are limited to the XML SQL Utility which has both a Java and PL/SQL api. The PL/SQL packages are really wrappers to the Java, so the database must have the JVM installed. The package you would use is DBMS_XMLQuery (the package DBMS_XMLSave is the complementary package that allows insert, update, and deletes using XML). It has fairly rich set of procedures and functions. You can get started by following the installation instructions contained in Note:171658.1
    good luck
    tom

  • Urgent need please help me

    hi abap experts
    1. how we will upload data into  R/3 system for the transaction va01 with the help of table control?  in this sceniaro how we will be the flat file structure? if u have any source code please send it?
    2. please send me the flat file structure for transaction xk01?
    3. what is the necessity of ale/idocs in implementation project? please send me the business sceniaro? how it will be useful in implementation project?

    hi krishna,
           u can go thro this code for va01.
    1) DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    DATA : w_auart(4) TYPE c,
    w_vkorg(4) TYPE c,
    w_vtweg(2) TYPE c,
    w_spart(2) TYPE c,
    w_kunnr(10) TYPE c,
    w_kunrg(10) TYPE c,
    w_bstkd(35) TYPE c,
    w_bstdk(10) TYPE c,
    w_kwmeng(18) TYPE c,
    w_zterm(4) TYPE c,
    w_inco1(3) TYPE c,
    w_inco2(28) TYPE c,
    w_augru(3) TYPE c.
    DATA : var1 TYPE string,
    var2 TYPE c VALUE '(',
    var3 TYPE c VALUE ')',
    num(2) TYPE c,
    flag(1) TYPE c.
    DATA : BEGIN OF it_order, " Internal table Structure
    auart(4) TYPE c, " Sales Order Type
    vkorg(4) TYPE c, " Sales Organization
    vtweg(2) TYPE c, " Distribution Channel
    spart(2) TYPE c, " Division
    kunnr(10) TYPE c, " Sold-to-Party
    kunrg(10) TYPE c, " Ship-to-Party
    bstkd(35) TYPE c, " Purchase Order No
    bstdk(10) TYPE c, " Purchase Order Date
    zterm(4) TYPE c, " Payment Terms
    inco1(3) TYPE c, " Inco Terms1
    inco2(20) TYPE c, " Inco Terms2
    augru(3) TYPE c, " Order Reason
    mabnr(18) TYPE c, " Material No
    kwmeng(18) TYPE c, " Quantity
    END OF it_order,
    itab LIKE STANDARD TABLE OF it_order WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETER filename LIKE rlgrap-filename.
    PARAMETER session LIKE apqi-groupid.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
    Get the file path
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = filename
    def_path = ' '
    mask = ',.,..'
    mode = 'O'
    title = 'Select File'
    IMPORTING
    filename = filename
    EXCEPTIONS
    selection_cancel = 1.
    CHECK sy-subrc = 0.
    START-OF-SELECTION.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    codepage = ' '
    filename = filename
    filetype = 'ASC'
    headlen = ' '
    line_exit = ' '
    trunclen = ' '
    user_form = ' '
    user_prog = ' '
    dat_d_format = ' '
    IMPORTING
    FILELENGTH =
    TABLES
    data_tab = itab
    EXCEPTIONS
    conversion_error = 1
    file_open_error = 2
    file_read_error = 3
    invalid_type = 4
    no_batch = 5
    unknown_error = 6
    invalid_table_width = 7
    gui_refuse_filetransfer = 8
    customer_error = 9
    OTHERS = 10.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PERFORM open_group.
    LOOP AT itab.
    CLEAR : w_auart,w_vkorg,w_vtweg,w_spart,w_kunnr,w_kunrg,
    w_bstkd,w_bstdk,w_zterm,w_inco1,w_inco2,w_augru.
    w_auart = itab-auart.
    w_vkorg = itab-vkorg.
    w_vtweg = itab-vtweg.
    w_spart = itab-spart.
    w_kunnr = itab-kunnr.
    w_kunrg = itab-kunrg.
    w_bstkd = itab-bstkd.
    w_bstdk = itab-bstdk.
    w_zterm = itab-zterm.
    w_inco1 = itab-inco1.
    w_inco2 = itab-inco2.
    w_augru = itab-augru.
    ON CHANGE OF itab-kunnr OR itab-kunrg OR itab-bstkd .
    flag = 0.
    num = 1.
    PERFORM bdc_dynpro USING 'SAPMV45A' '0101'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'VBAK-AUART'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'VBAK-AUART' " Order Type
    itab-auart.
    PERFORM bdc_field USING 'VBAK-VKORG' " Sales Organization
    itab-vkorg.
    PERFORM bdc_field USING 'VBAK-VTWEG' " Distribution Channel
    itab-vtweg.
    PERFORM bdc_field USING 'VBAK-SPART' " Division
    itab-spart.
    PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'VBKD-BSTKD' " PO Number
    itab-bstkd.
    PERFORM bdc_field USING 'VBKD-BSTDK' " PO Date
    itab-bstdk.
    PERFORM bdc_field USING 'KUAGV-KUNNR' " Sold to Party
    itab-kunnr.
    PERFORM bdc_field USING 'KUWEV-KUNNR' " Ship to Party
    itab-kunrg.
    PERFORM bdc_field USING 'VBKD-ZTERM' " Payment Terms
    itab-zterm.
    PERFORM bdc_field USING 'VBKD-INCO1' " Inco Terms1
    itab-inco1.
    PERFORM bdc_field USING 'VBKD-INCO2' " Inco Terms2
    itab-inco2.
    PERFORM bdc_field USING 'VBAK-AUGRU' " Order Reason
    itab-augru.
    ENDON.
    IF flag = 0.
    LOOP AT itab WHERE bstkd = itab-bstkd AND kunnr = itab-kunnr .
    var1 = 'RV45A-MABNR'.
    CONCATENATE var1 var2 num var3 INTO var1.
    PERFORM bdc_field USING var1
    itab-mabnr.
    var1 = 'RV45A-KWMENG'.
    CONCATENATE var1 var2 num var3 INTO var1.
    PERFORM bdc_field USING var1
    itab-kwmeng.
    PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    num = 2.
    ENDLOOP.
    ELSE.
    CONTINUE.
    ENDIF.
    flag = 1.
    PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SICH'.
    PERFORM bdc_transaction USING 'VA01'.
    ENDLOOP.
    PERFORM close_group.
    WRITE : / 'Session',session, 'was Created'.
    FORM open_group.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    client = sy-mandt
    group = session
    user = sy-uname
    keep = 'X'.
    ENDFORM.
    FORM close_group.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    ENDFORM.
    FORM bdc_transaction USING tcode.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    tcode = tcode
    TABLES
    dynprotab = bdcdata.
    ENDFORM.
    FORM bdc_dynpro USING program dynpro.
    CLEAR bdcdata.
    bdcdata-program = program.
    bdcdata-dynpro = dynpro.
    bdcdata-dynbegin = 'X'.
    APPEND bdcdata.
    ENDFORM.
    FORM bdc_field USING fnam fval.
    IF fval <> ' '.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
    ENDIF.
    ENDFORM.
    2) flat file should be designed as per your requirement and the fields that you r going to populate.
    Regards...
    Arun.
    Reward points if useful.

Maybe you are looking for