Embeding a SAP GUI based Report program into EP portal

Hi experts,
                  I need a help, Is their any way to integrate a GUI based report program into EP portal. If yes can some one post how is it possible to acheive this functionality?.

You may try the following options
A. Transaction iView
    1.Make a transaction for the report program.
    2.Create an iView in Portal for transaction
B. ITS service
     1.Make a transaction for the report program.
     2.Create an ITS service and pass the transaction name to the parameter ~TRANSACTION in the ITS service
     3.Create an iView in Portal for ITS service
This way you will be able to call report program in Portal.

Similar Messages

  • Converting SAP Query to Report Program

    Hello Experts,
    I'm stuck up with an issue.
    I want to convert SAP query into a report program as the things which I need to implement is not possible with SAP Query anymore.
    So I need to convert SAP query to Report program.
    I'm very much aware about the SQ01--> Query --> More functions --> Display Report Program
    But this Report Program generates is AQ..................... but if you see the code there will be buch of dynamic calls not as clear as ABAP code and not much flexibility to modify...
    Please Provide a solution to this.
    Regards,
    Titiksha

    Hi Bhange,
    Glen Anthony has said very well and I support him. Even I suggest you to ignor the report generated with Query and develop a new report with the required business logic.
    Regards,
    Vijay

  • MATMAS01 IDOC not reaching to SAP XI via report program.

    Dear Experts,
    WE are facing small challenge.
    I searched on SDN on scenarios: IDOC not reaching to SAP XI. But could not find exact solution t oour scenario.
    Problem:
    MATMAS01 IDOC is not reaching to SAP XI via report program and is in status of 03 on SAP system. And there are not entries under SM58.
    Under SAP XI system IDOC entry is not reflecting under IDX5 transaction, I tried to delete meta data of MATMAS01 thru IDX1 and uploaded again but still IDOC is not reaching to SAP XI.
    The strange is that MATMS01 IDOC is reaching to XI via WE19 test tool. So PORT and RFC destination settings betweeen R3 and XI is also correct.
    What could be the wrong ?
    Thanks
    Divyesh

    When sending Idoc from R/3,
    Settings at R/3
    create one port at WE21,
    Create Partner Profile for Outbound Message type in WE20.
    settings at XI
    Create one port in IDX1
    Import Matadata in IDX2.
    Create complete scenario in ESR for Idoc sender, also import IDoc in Imported Objects.
    Check these settings & send test idoc using WE19.

  • Insert records from report program into R3 table

    Hi
    I wanted to insert records from report program into R3 table.
    here is my code
    data : itab type standard table of zemp initial size 10 with header line.
    itab-EMPNO = '012'.
    itab-ENAME = 'XXXX'.
    itab-JOB = 'XXXX'.
    APPEND itab.
    insert ztable from table itab.
    but i am getting the following error
    the type of the data base table and work area/internal table "ITAB" are no unicode-converible.
    how can I insert records from report program into R3 table
    should I have to write move corresponding
    pls guide
    thanks
    manian

    Hi,
    itab-EMPNO = '012'.
    itab-ENAME = 'XXXX'.
    itab-JOB = 'XXXX'.
    APPEND itab.
    insert ztable from table itab.
    Do one thing
    Data : itab type table of ztable with header line.
    itab-EMPNO = '012'.
    itab-ENAME = 'XXXX'.
    itab-JOB = 'XXXX'.
    APPEND itab.
    insert ztable from table itab.
    error will resolve, then try to make structure similar to ZTABLE

  • Itz possible to call one report program into another program

    hi guys,
                i had a doubt that can i call a report program into another report program by declaring their name into the second program like as we calling Includes ,function modules and like class and their methods .
    if  anybody done this or know how to do this,  give me the details and explination about this  friends
    if it possible with screenshots and codings
    Thanks & Regards
    Saigijeo

    Please search before posting, do not ask basic questions here.
    Always do your own work before turning to the community with specific problems.
    Thread locked.
    Thomas
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]

  • How to call the Report program into Function module

    Hi Experts,
    Actually I want to create the DataSource. But I have only the ALV report program. I need to create function module but I don’t know how to call the ALV report program using in function module  
    So could you please any one send the Document or step by step method?
    Advance Thanks,
    Sathis

    If the report is just based out of a table than create a Generic Extractor using View.
    If its an InfoSet query than create a Generic Extractor on that InfoSet.
    If its an ABAP report than create a Generic Extractor using FM
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33

  • GUI Status - Report program

    Hi Experts
                 How to create toolbar in the Report program.
                ie how to add gui status and how to code for it.
                 Pls suggest me.
    Thanks in advance.
    Regards
    rajaram

    Hi
            This is my coding part inwhich i want to add a button in toolbar, Can you change this coding that where exactly changes needed and what.
              Pls help me.
    Regards
    Rajaram
    REPORT  ZSAB_POLY_INVOICE.
    tables : vbrp, vbrk, vbap.
    DATA : BEGIN OF it_final OCCURS 0.
            INCLUDE STRUCTURE ZINV_ORG.
    DATA : END OF it_final.
    data : wa like line of it_final.
    data : mode type string.
    data : flag type i,
           flag1 type i.
    DATA : fm_name  TYPE  rs38l_fnam.
    DATA : w_formname TYPE tdsfname.    "form name
    w_formname = 'Z_POLY_ORGINAL'.
    DATA: LX_OUTPUT TYPE SSFCOMPOP,
    LX_CNTL TYPE SSFCTRLOP.
    LX_CNTL-NO_DIALOG = 'X'.
    LX_OUTPUT-TDDEST = 'LP01'.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.
    PARAMETERS vbeln TYPE vbrk-vbeln matchcode object ZINVOICE.
    PARAMETERS rtim TYPE vbrk-ERZET.
    SELECTION-SCREEN END OF BLOCK bk1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    parameter : p_org as checkbox,
                p_dup as checkbox,
                p_tri as checkbox,
                p_qua as checkbox.
    SELECTION-SCREEN END OF BLOCK b2.
           select a~vbeln
                  a~bukrs
                  b~posnr
                  b~werks
                  a~stceg
                  a~FKDAT
                  a~INCO1
                  a~INCO2
                  b~MATNR
                  b~ARKTX
                  b~FKIMG
                  b~UEPOS
                  from vbrk as a
                  inner join vbrp as b on avbeln = bvbeln
                  into corresponding fields of table it_final
                  where a~vbeln = vbeln.
    break pro01.
    if p_org is not initial and p_dup is not initial
    and p_tri is not initial and p_qua is not initial.
    mode = 'Original for Buyer'.
    perform original.
    mode = 'Duplicate'.
    perform original.
    mode = 'Triplicate'.
    perform original.
    mode = 'Quadruplicate'.
    perform original.
    elseif p_org is not initial and p_dup is not initial
    and p_tri is not initial.
    mode = 'Original for Buyer'.
    perform original.
    mode = 'Duplicate'.
    perform original.
    mode = 'Triplicate'.
    perform original.
    elseif p_dup is not initial and p_tri is not initial
    and p_qua is not initial.
    mode = 'Duplicate'.
    perform original.
    mode = 'Triplicate'.
    perform original.
    mode = 'Quadruplicate'.
    perform original.
    elseif p_org is not initial and p_dup is not initial.
    mode = 'Original for Buyer'.
    perform original.
    mode = 'Duplicate'.
    perform original.
    elseif p_tri is not initial and p_qua is not initial.
    mode = 'Triplicate'.
    perform original.
    mode = 'Quadruplicate'.
    perform original.
    elseif p_org is not initial and p_tri is not initial.
    mode = 'Original for Buyer'.
    perform original.
    mode = 'Triplicate'.
    perform original.
    elseif p_dup is not initial and p_tri is not initial
    and p_qua is not initial.
    mode = 'Original for Buyer'.
    perform original.
    mode = 'Duplicate'.
    perform original.
    mode = 'Triplicate'.
    perform original.
    elseif p_org is not initial.
    mode = 'Original for Buyer'.
    perform original.
    endif.
    *&      Form  original
          text
    -->  p1        text
    <--  p2        text
    FORM original .
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = w_formname
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = fm_name
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION '/1BCDWB/SF00000447'
    EXPORTING
    RTIM = RTIM
    MODE = MODE
    *ARCHIVE_INDEX =
    *ARCHIVE_INDEX_TAB =
    *ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS = LX_CNTL
    *MAIL_APPL_OBJ =
    *MAIL_RECIPIENT =
    *MAIL_SENDER =
    OUTPUT_OPTIONS = LX_OUTPUT
    *USER_SETTINGS = 'X'
    *BOL_NUM =
    *CARRIER_NAME =
    *SHIP_FROM_ADR =
    *SHIP_TO_ADR =
    *THIRD_PARTY_ADR =
    *IMPORTING
    *DOCUMENT_OUTPUT_INFO =
    *JOB_OUTPUT_INFO =
      TABLES
        it_final                  = it_final
    IF sy-subrc = 0.
    *MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.

  • SSO to mulitple SAP GUI based systems in the Portal

    Hi Experts,
    I need to create links for multiple SAP Systems (based on the SAP GUI) in the portal and implement SSO for them. Can someone tell me where and how to place these links in the portal? Is there a standard approach for this, like a "Systems" iview or something?
    Regards,
    Shobhit

    Hi,
    So have you created 5 diiferent systems on Portal corresponding to your backend systems :
    SAP ERP Dev
    SAP ERP Qua
    SAP ERP Prd
    SAP CRM Dev
    SAP SEM Dev
    Once you create the systems and the alias to these systems, you can create 5 iviews, one for each of these systems using SAP transaction iviews. The transaction code could be S000.
    To learn how to create systems and SAP Transaction iviews, use these links :
    <b>Creating system :</b> http://help.sap.com/saphelp_nw70/helpdata/en/ec/0fe43d19734b5ae10000000a11405a/content.htm
    <b>Editing system -> Editing SAP System properties </b> http://help.sap.com/saphelp_nw70/helpdata/en/42/11e43d19734b5ae10000000a11405a/frameset.htm
    The above links should help you create SAP systems and their aliases.
    Then you need to create SAP Transaction iviews:
    http://help.sap.com/saphelp_nw70/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm
    To open these iviews as a pop-up or in a new window, set the following property for each of these iviews in the property category "Drag and Relate" : Launch in New Window = Display in separate window.
    Set the <b>permission Read for Group Everyone</b> for each of these iviews.
    Hope this helps.
    Cheers,
    Sunil

  • How to place a ABAP report program into a Change Request?

    I used to create an ABAP4 report program, but maybe when I created it, I created it as local or $TMP that there is no any Change Request related to this program.  Now I want to transport this program from Development to Test, how would create a Change Request that includes this program?
    Thanks in advance!

    Kevin,
    Generally objects saved in a local package are not transported. You should always assign those objects to a change request and a developemnt class or package.
    Copy your program in to a new program and assign that new program to a CTS and a package. Then you always can rename the new program name to the old programs name once after deleting the old program.
    Thanks

  • Post Report program in Enterprise Portal

    Hi Experts,
    We have to post a standard report program in EP ( Enterprise Portal ). If anyone has the steps please share the steps. Thanks a lot.

    Hi,
    You mean to display the report in iview?
    Then you create a transaction for that report and create a transaction iview in EP.
    Thanks and Regards,
    Chandra Madapati

  • SAP Stndard FI Report/ programs

    Hi,
    Many times I observe and not able to quite understand below.
    In SAP Standard reports and progrrams, in PAI, there is always a command.
    LOOP.
    ENDLOOP.
    There is nothing in between and no table name.
    For example, you can see transaction FS10,  Program SAPMF42B and screen 310.
    If you see it, there is a loop , endloop in PAI statement. Is it a step Loop or so?
    PROCESS BEFORE OUTPUT.
            MODULE EXCTAB.
            MODULE STATUS.
            MODULE TITEL.
          LOOP.
            MODULE D0310_ANZEIGEN.
          ENDLOOP.
    PROCESS AFTER INPUT.
            MODULE EXIT AT EXIT-COMMAND.
          LOOP.
          ENDLOOP.
            MODULE OKCODE_VERARBEITUNG.

    Hi Rupali,
    What you understood is right,,
    You can have more details on STEP LOOP in
    Tx ABAPDOCU
    ABAP Documentation and Examples >BC - ABAP Programming >ABAP User Dialogs >Screens >Complex Screen Elements >Step Loops
    Thanks & regards,
    Dileep .C

  • Using a swing program with a gui-based jdbc program

    hello.
    my name is james mcfadden and i am a final year computing student at letterkenny IT in ireland. i have 2 programs here that i want to make interact with each other. the first one is a jdbc demo and the second one is a login program that i'll be using with the first one. i was trying to get the 2 programs interacting with each other yesterday but i was unsuccessful. would you be able to look at it as soon as possible? i have to be able to use these programs next week. thank you very much.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JOptionPane;
    import java.sql.*;
    public class Demo extends JFrame {
    static String url = "jdbc:odbc:VideoLibrary";
    static Statement stmt;
    static Connection con;
         //declare member variables here
         JTextField hostField;
    JTextField queryField;
    QueryTableModel qtm;
    JComboBox comboBox;
    public static void main(String args[]){
         //new LogOn();     
    int choice=-1;
              do{
    choice=getChoice();
    if(choice!=0){
    getSelected(choice);
    }while(choice!=5);
    System.exit(0);
    public static int getChoice(){
    String choice;
    int ch;
    choice = JOptionPane.showInputDialog(null,"1. Maintain product details\n"+"2. Maintain member details\n"+"3. Maintain rental details\n"+"4. View product, member and rental details\n"+"5. Log Off\n\n"+"Enter your choice");
              ch = Integer.parseInt(choice);
    return ch;
    public static void getSelected(int choice){   
              if(choice==1){
    addProducts();
    if(choice==2){
    addMembers();
              if(choice==3){
    addRentals();
              if(choice==4){
              Demo test = new Demo();
    test.setVisible(true);
    public static Connection getConnection(){
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con=DriverManager.getConnection(url,"","");
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    return con;
    public static void addProducts(){
    Connection con = getConnection();
    String addProduct1, addProduct2, addProduct3, addProduct4, addProduct5, addProduct6, addProduct7, addProduct8, addProduct9, addProduct10, addProduct11, addProduct12, addProduct13, addProduct14, addProduct15, addProduct16, addProduct17, addProduct18, addProduct19, addProduct20, addProduct21, addProduct22, addProduct23, addProduct24, addProduct25, addProduct26, addProduct27, addProduct28, addProduct29, addProduct30, addProduct31, addProduct32, addProduct33, addProduct34, addProduct35, addProduct36, addProduct37, addProduct38, addProduct39, addProduct40, addProduct41, addProduct42, addProduct43, addProduct44, addProduct45, addProduct46, addProduct47, addProduct48, addProduct49, addProduct50, addProduct51, addProduct52, addProduct53, addProduct54, addProduct55, addProduct56, addProduct57, addProduct58, addProduct59, addProduct60, addProduct61, addProduct62, addProduct63, addProduct64, addProduct65, addProduct66, addProduct67, addProduct68, addProduct69, addProduct70, addProduct71, addProduct72, addProduct73, addProduct74, addProduct75, addProduct76, addProduct77, addProduct78, addProduct79, addProduct80, addProduct81, addProduct82, addProduct83, addProduct84, addProduct85, addProduct86, addProduct87, addProduct88, addProduct89, addProduct90, addProduct91, addProduct92, addProduct93;
    addProduct1 = "insert into Product values (110001, 'The Killers - Sams Town', 5.00, 'G', 'CD', 2006)";
    addProduct2 = "insert into Product values (110002, 'Robbie Williams - Rudebox', 5.00, 'G', 'CD', 2006)";
    addProduct3 = "insert into Product values (110003, 'Razorlight - Razorlight', 5.00, 'G', 'CD', 2006)";
    addProduct4 = "insert into Product values (110004, 'My Chemical Romance - The Black Parade', 5.00, 'G', 'CD', 2006)";
    addProduct5 = "insert into Product values (110005, 'Snow Patrol - Eyes Open', 5.00, 'G', 'CD', 2006)";
    addProduct6 = "insert into Product values (110006, 'Scissor Sisters - Ta-Dah!', 5.00, 'G', 'CD', 2006)";
              addProduct7 = "insert into Product values (110007, 'Lovesounds - Justin Timberlake', 5.00, 'G', 'CD', 2006)";
    addProduct8 = "insert into Product values (110008, 'Director - We thrive on big cities', 5.00, 'G', 'CD', 2006)";
    addProduct9 = "insert into Product values (110009, 'Roxette - Roxette hits', 5.00, 'G', 'CD', 2006)";
    addProduct10 = "insert into Product values (110010, 'Pussy Cat Dolls - PCD', 5.00, 'G', 'CD', 2006)";
    addProduct11 = "insert into Product values (110011, 'Evanescence - The Open Door', 5.00, 'G', 'CD', 2006)";
    addProduct12 = "insert into Product values (110012, 'Deacon Blue - The Singles', 5.00, 'G', 'CD', 2006)";
              addProduct13 = "insert into Product values (110013, 'Rod Stewart - The Best of Rod Stewart', 5.00, 'G', 'CD', 2006)";
              addProduct14 = "insert into Product values (110014, 'P Diddy - Press Play', 5.00, 'G', 'CD', 2006)";
    addProduct15 = "insert into Product values (110015, 'James Morrison - Undiscovered', 5.00, 'G', 'CD', 2006)";
    addProduct16 = "insert into Product values (110016, 'BDay - Beyonce', 5.00, 'G', 'CD', 2006)";
    addProduct17 = "insert into Product values (110017, 'John Legend - Once Again', 5.00, 'G', 'CD', 2006)";
              addProduct18 = "insert into Product values (110018, 'Luther Vandross - The Ultimate', 5.00, 'G', 'CD', 2006)";
              addProduct19 = "insert into Product values (110019, 'Fleetwood Mac - Greatest Hits', 5.00, 'G', 'CD', 2006)";
              addProduct20 = "insert into Product values (110020, 'Kooks - Inside In Inside Out', 5.00, 'G', 'CD', 2006)";
              addProduct21 = "insert into Product values (110021, 'Scooter - Mind the Gap', 5.00, 'G', 'CD', 2007)";
              addProduct22 = "insert into Product values (110022, 'Scooter - Whos Got the Last', 5.00, 'G', 'CD', 2007)";
              addProduct23 = "insert into Product values (110023, 'Scooter - Jigga Jigga', 5.00, 'G', 'CD', 2007)";
              addProduct24 = "insert into Product values (110024, 'Dr. Alban - Look Whos Talking', 5.00, 'G', 'CD', 2007)";
              addProduct25 = "insert into Product values (110025, 'Dr. Alban - Hello Afrika', 5.00, 'G', 'CD', 2007)";
              addProduct26 = "insert into Product values (110026, 'Dr. Alban - Born in Africa', 5.00, 'G', 'CD', 2007)";
              addProduct27 = "insert into Product values (110027, 'Bon Jovi - Crossroad', 5.00, 'G', 'CD', 2007)";
              addProduct28 = "insert into Product values (110028, 'Bon Jovi - Have a Nice Day', 5.00, 'G', 'CD', 2007)";
              addProduct29 = "insert into Product values (110029, 'Bon Jovi - These Days', 5.00, 'G', 'CD', 2007)";
              addProduct30 = "insert into Product values (120001, 'Mission Impossible 3', 5.00, '15', 'DVD', 2006)";
              addProduct31 = "insert into Product values (120002, 'The Wind that Shakes the Barley', 5.00, '12', 'DVD', 2006)";
              addProduct32 = "insert into Product values (120003, 'The Break Up', 5.00, '12', 'DVD', 2006)";
              addProduct33 = "insert into Product values (120004, 'The Da Vinci Code', 5.00, '15', 'DVD', 2006)";
              addProduct34 = "insert into Product values (120005, 'Ice Age 2', 5.00, 'G', 'DVD', 2006)";
              addProduct35 = "insert into Product values (120006, 'Just My Luck', 5.00, '12', 'DVD', 2006)";
              addProduct36 = "insert into Product values (120007, 'Stormbreaker', 5.00, '12', 'DVD', 2006)";
              addProduct37 = "insert into Product values (120008, 'X-Men 3', 5.00, 'PG', 'DVD', 2006)";
              addProduct38 = "insert into Product values (120009, 'Lake House', 5.00, '12', 'DVD', 2006)";
              addProduct39 = "insert into Product values (120010, 'Inside Man', 5.00, '15', 'DVD', 2006)";
              addProduct40 = "insert into Product values (120011, 'Ultraviolet', 5.00, '12', 'DVD', 2006)";
              addProduct41 = "insert into Product values (120012, 'Friends with Money', 5.00, '15', 'DVD', 2006)";
              addProduct42 = "insert into Product values (120013, 'Fearless', 5.00, 'PG', 'DVD', 2006)";
              addProduct43 = "insert into Product values (120014, 'When A Stranger Calls', 5.00, '15', 'DVD', 2006)";
              addProduct44 = "insert into Product values (120015, 'Prime', 5.00, '15', 'DVD', 2006)";
              addProduct45 = "insert into Product values (120016, 'Poseidon', 5.00, '12', 'DVD', 2006)";
              addProduct46 = "insert into Product values (120017, 'Tristan & Isolde', 5.00, '12', 'DVD', 2006)";
              addProduct47 = "insert into Product values (120018, 'Little Mermaid', 5.00, '12', 'DVD', 2006)";
              addProduct48 = "insert into Product values (120019, 'The Fast & The Furious 3', 5.00, '12', 'DVD', 2006)";
              addProduct49 = "insert into Product values (120020, 'The Omen', 5.00, '15', 'DVD', 2006)";
              addProduct50 = "insert into Product values (120021, 'Eragon', 5.00, '15', 'DVD', 2007)";
              addProduct51 = "insert into Product values (120022, 'Arthur and the Minimoys', 5.00, '15', 'DVD', 2007)";
              addProduct52 = "insert into Product values (120023, 'The Pursuit of Happyness', 5.00, 'G', 'DVD', 2007)";
              addProduct53 = "insert into Product values (120024, 'Van Wilder 2: The Rise of Taj', 5.00, '15', 'DVD', 2007)";
              addProduct54 = "insert into Product values (120025, 'Blood Diamond', 5.00, '15', 'DVD', 2007)";
              addProduct55 = "insert into Product values (120026, 'Deja Vu', 5.00, '15', 'DVD', 2007)";
              addProduct56 = "insert into Product values (120027, 'For Your Consideration', 5.00, '18', 'DVD', 2007)";
              addProduct57 = "insert into Product values (120028, 'The Fountain', 5.00, 'PG', 'DVD', 2007)";
              addProduct58 = "insert into Product values (120029, 'Bobby', 5.00, '15', 'DVD', 2007)";
              addProduct59 = "insert into Product values (130001, 'Need for Special Carbon', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct60 = "insert into Product values (130002, 'Need for Special Carbon', 5.00, '15', 'Nintendo DS Game', 2006)";
              addProduct61 = "insert into Product values (130003, 'Need for Special Carbon', 5.00, '15', 'PSP Game', 2006)";
              addProduct62 = "insert into Product values (130004, 'Need for Special Carbon', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct63 = "insert into Product values (130005, 'EYETOY Play SPORTS', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct64 = "insert into Product values (130006, 'Family Fun With Playstation 2', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct65 = "insert into Product values (130007, 'Smackdown v Raw 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct66 = "insert into Product values (130008, 'Smackdown v Raw 07', 5.00, '15', 'PSP Game', 2006)";
              addProduct67 = "insert into Product values (130009, 'Smackdown v Raw 07', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct68 = "insert into Product values (130010, 'Sinister Legends', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct69 = "insert into Product values (130011, 'Pro Evolution Soccer 6', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct70 = "insert into Product values (130012, 'Pro Evolution Soccer 6', 5.00, '15', 'PSP Game', 2006)";
              addProduct71 = "insert into Product values (130013, 'Pro Evolution Soccer 6', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct72 = "insert into Product values (130014, 'BUZZ Jungle Party', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct73 = "insert into Product values (130015, 'FIFA 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct74 = "insert into Product values (130016, 'Killzone Liberation', 5.00, '15', 'PSP Game', 2006)";
              addProduct75 = "insert into Product values (130017, 'Gangs of London', 5.00, '15', 'PSP Game', 2006)";
              addProduct76 = "insert into Product values (130018, 'FIFA 07', 5.00, '15', 'PSP Game', 2006)";
              addProduct77 = "insert into Product values (130019, 'Passport to Amsterdam', 5.00, '15', 'PSP Game', 2006)";
              addProduct78 = "insert into Product values (130020, 'Tiger Woods 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct79 = "insert into Product values (130021, 'Tiger Woods 07', 4.90, '15', 'PSP Game', 2006)";
              addProduct80 = "insert into Product values (130022, 'Tiger Woods 07', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct81 = "insert into Product values (130023, 'Madden NFL 07', 4.90, '15', 'Playstation 2 Game', 2006)";
              addProduct82 = "insert into Product values (130024, 'Madden NFL 07', 4.90, '15', 'Nintendo DS Game', 2006)";
              addProduct83 = "insert into Product values (130025, 'Madden NFL 07', 4.90, '15', 'PSP Game', 2006)";
              addProduct84 = "insert into Product values (130026, 'Madden NFL 07', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct85 = "insert into Product values (130027, 'Gears of War', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct86 = "insert into Product values (130028, 'Star Trek: Legacy', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct87 = "insert into Product values (130029, 'Tekken: Dark Ressurection', 4.90, '15', 'PSP Game', 2006)";
              addProduct88 = "insert into Product values (130030, 'GTA Vice city stories PSP', 4.90, '15', 'PSP Game', 2006)";
              addProduct89 = "insert into Product values (130031, 'Star Trek: Encounters', 5.00, '15', 'Playstation 2 Game', 2007)";
              addProduct90 = "insert into Product values (130032, 'Star Trek: Shattered Universe', 5.00, '15', 'Xbox 360 Game', 2007)";
              addProduct91 = "insert into Product values (130033, 'Star Trek Voyager: Elite Force', 5.00, '15', 'Playstation 2 Game', 2007)";
              addProduct92 = "insert into Product values (130034, 'Battlestar Galactica', 5.00, '15', 'Xbox 360 Game', 2007)";
              addProduct93 = "insert into Product values (130035, 'Battlestar Galactica', 5.00, '15', 'Playstation 2 Game', 2007)";
              try {
    stmt = con.createStatement();
    stmt.executeUpdate(addProduct1);
    stmt.executeUpdate(addProduct2);
    stmt.executeUpdate(addProduct3);
    stmt.executeUpdate(addProduct4);
                   stmt.executeUpdate(addProduct5);
    stmt.executeUpdate(addProduct6);
              stmt.executeUpdate(addProduct7);
    stmt.executeUpdate(addProduct8);
    stmt.executeUpdate(addProduct9);
    stmt.executeUpdate(addProduct10);
    stmt.executeUpdate(addProduct11);
    stmt.executeUpdate(addProduct12);
              stmt.executeUpdate(addProduct13);
              stmt.executeUpdate(addProduct14);
    stmt.executeUpdate(addProduct15);
    stmt.executeUpdate(addProduct16);
    stmt.executeUpdate(addProduct17);
              stmt.executeUpdate(addProduct18);
              stmt.executeUpdate(addProduct19);
              stmt.executeUpdate(addProduct20);
              stmt.executeUpdate(addProduct21);
              stmt.executeUpdate(addProduct22);
              stmt.executeUpdate(addProduct23);
              stmt.executeUpdate(addProduct24);
              stmt.executeUpdate(addProduct25);
              stmt.executeUpdate(addProduct26);
              stmt.executeUpdate(addProduct27);
              stmt.executeUpdate(addProduct28);
              stmt.executeUpdate(addProduct29);
              stmt.executeUpdate(addProduct30);
              stmt.executeUpdate(addProduct31);
              stmt.executeUpdate(addProduct32);
              stmt.executeUpdate(addProduct33);
              stmt.executeUpdate(addProduct34);
              stmt.executeUpdate(addProduct35);
              stmt.executeUpdate(addProduct36);
              stmt.executeUpdate(addProduct37);
              stmt.executeUpdate(addProduct38);
              stmt.executeUpdate(addProduct39);
              stmt.executeUpdate(addProduct40);
              stmt.executeUpdate(addProduct41);
              stmt.executeUpdate(addProduct42);
              stmt.executeUpdate(addProduct43);
              stmt.executeUpdate(addProduct44);
              stmt.executeUpdate(addProduct45);
              stmt.executeUpdate(addProduct46);
              stmt.executeUpdate(addProduct47);
              stmt.executeUpdate(addProduct48);
              stmt.executeUpdate(addProduct49);
              stmt.executeUpdate(addProduct50);
              stmt.executeUpdate(addProduct51);
              stmt.executeUpdate(addProduct52);
              stmt.executeUpdate(addProduct53);
              stmt.executeUpdate(addProduct54);
              stmt.executeUpdate(addProduct55);
              stmt.executeUpdate(addProduct56);
              stmt.executeUpdate(addProduct57);
              stmt.executeUpdate(addProduct58);
              stmt.executeUpdate(addProduct59);
              stmt.executeUpdate(addProduct60);
              stmt.executeUpdate(addProduct61);
              stmt.executeUpdate(addProduct62);
              stmt.executeUpdate(addProduct63);
              stmt.executeUpdate(addProduct64);
              stmt.executeUpdate(addProduct65);
              stmt.executeUpdate(addProduct66);
              stmt.executeUpdate(addProduct67);
              stmt.executeUpdate(addProduct68);
              stmt.executeUpdate(addProduct69);
              stmt.executeUpdate(addProduct70);
              stmt.executeUpdate(addProduct71);
              stmt.executeUpdate(addProduct72);
              stmt.executeUpdate(addProduct73);
              stmt.executeUpdate(addProduct74);
              stmt.executeUpdate(addProduct75);
              stmt.executeUpdate(addProduct76);
              stmt.executeUpdate(addProduct77);
              stmt.executeUpdate(addProduct78);
              stmt.executeUpdate(addProduct79);
              stmt.executeUpdate(addProduct80);
              stmt.executeUpdate(addProduct81);
              stmt.executeUpdate(addProduct82);
              stmt.executeUpdate(addProduct83);
              stmt.executeUpdate(addProduct84);
              stmt.executeUpdate(addProduct85);
              stmt.executeUpdate(addProduct86);
              stmt.executeUpdate(addProduct87);
              stmt.executeUpdate(addProduct88);
              stmt.executeUpdate(addProduct89);
              stmt.executeUpdate(addProduct90);
              stmt.executeUpdate(addProduct91);
              stmt.executeUpdate(addProduct92);
              stmt.executeUpdate(addProduct93);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public static void addMembers(){
    Connection con = getConnection();
    String addMember1, addMember2, addMember3, addMember4, addMember5, addMember6, addMember7, addMember8, addMember9, addMember10;
    addMember1 = "insert into Member values (1234, 'Ann', 'Smyth', 'Upper Killult, Falcarragh, Co. Donegal', '(074)-9135210', '(087)-2030172', #5/11/85#, #5/12/06#)";
    addMember2 = "insert into Member values (2345, 'John', 'Murphy', 'Lower Killult, Falcarragh, Co. Donegal', '(074)-9135211', '(087)-2030173', #4/12/85#, #6/13/06#)";
    addMember3 = "insert into Member values (1324, 'James', 'McFadden', 'Lower Ardsbeg, Gortahork, Co. Donegal', '(074)-9165314', '(087)-2030171', #4/11/85#, #6/14/06#)";
    addMember4 = "insert into Member values (1235, 'Frankie', 'Ferry', 'Ardsmore, Gortahork, Co. Donegal', '(074)-9165325', '(087)-2031234', #6/13/60#, #6/15/06#)";
    addMember5 = "insert into Member values (1236, 'Daniel', 'McKimm', 'Ballyness, Falcarragh, Co. Donegal', '(074)-9135212', '(087)-2030184', #5/14/73#, #6/16/06#)";
    addMember6 = "insert into Member values (2346, 'Stephen', 'Doohan', 'Ballyness, Falcarragh, Co. Donegal', '(074)-9135213', '(087)-2030185', #6/13/85#, #5/13/06#)";
    addMember7 = "insert into Member values (2347, 'James', 'Ferry', 'Meenlaragh, Gortahork, Co.Donegal', '(074)-9165360', '(087)-2031345', #9/12/85#, #5/14/06#)";
    addMember8 = "insert into Member values (2348, 'Liam', 'Cannon', 'Derryconner, Gortahork, Co.Donegal', '(074)-9165324', '(087)-2031456', #4/11/86#, #5/15/06#)";
    addMember9 = "insert into Member values (2401, 'Ciaran', 'Ferry', 'Brinalack, Gweedore, Co.Donegal', '(074)-9176425', '(087)-2030282', #9/12/85#, #5/16/06#)";
    addMember10 = "insert into Member values (2402, 'Ciaran', 'McGee', 'Derrybeg, Gweedore, Co.Donegal', '(074)-9176536', '(087)-2030393', #9/14/85#, #5/18/06#)";
    try {
    stmt = con.createStatement();
    stmt.executeUpdate(addMember1);
    stmt.executeUpdate(addMember2);
    stmt.executeUpdate(addMember3);
                   stmt.executeUpdate(addMember4);
                   stmt.executeUpdate(addMember5);
                   stmt.executeUpdate(addMember6);
                   stmt.executeUpdate(addMember7);
                   stmt.executeUpdate(addMember8);
                   stmt.executeUpdate(addMember9);
                   stmt.executeUpdate(addMember10);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
         public static void addRentals(){
    Connection con = getConnection();
    String addRental1, addRental2, addRental3, addRental4, addRental5, addRental6, addRental7, addRental8, addRental9, addRental10;
    addRental1 = "insert into Rental values (110001, 'The Killers - Sams Town', 1234, 'Ann', 'Smyth', #9/01/06#, #9/10/06#, 'Yes', 2.00)";
    addRental2 = "insert into Rental values (120001, 'Mission Impossible 3', 2345, 'John', 'Murphy', #9/02/06#, #9/09/06#, 'No', 0.00)";
    addRental3 = "insert into Rental values (130001, 'Need for Special Carbon', 1324, 'James', 'McFadden', #9/03/06#, #9/12/06#, 'Yes', 2.00)";
    addRental4 = "insert into Rental values (110002, 'Robbie Williams - Rudebox', 1235, 'Frankie', 'Ferry', #9/04/06#, #9/11/06#, 'No', 0.00)";
    addRental5 = "insert into Rental values (120015, 'Prime', 1236, 'Daniel', 'McKimm', #9/05/06#, #9/14/06#, 'Yes', 2.00)";
    addRental6 = "insert into Rental values (130015, 'FIFA 07', 2346, 'Stephen', 'Doohan', #9/06/06#, #9/13/06#, 'No', 0.00)";
    addRental7 = "insert into Rental values (110009, 'Roxette - Roxette hits', 2347, 'James', 'Ferry', #9/07/06#, #9/16/06#, 'Yes', 2.00)";
    addRental8 = "insert into Rental values (120003, 'The Break Up', 2348, 'Liam', 'Cannon', #9/08/06#, #9/15/06#, 'No', 0.00)";
    addRental9 = "insert into Rental values (130027, 'Gears of War', 2401, 'Ciaran', 'Ferry', #9/09/06#, #9/18/06#, 'Yes', 2.00)";
    addRental10 = "insert into Rental values (110021, 'Scooter - Mind the Gap', 2402, 'Ciaran', 'McGee', #9/10/06#, #9/17/06#, 'No', 0.00)";
    try {
    stmt = con.createStatement();
    stmt.executeUpdate(addRental1);
    stmt.executeUpdate(addRental2);
    stmt.executeUpdate(addRental3);
                   stmt.executeUpdate(addRental4);
                   stmt.executeUpdate(addRental5);
                   stmt.executeUpdate(addRental6);
                   stmt.executeUpdate(addRental7);
                   stmt.executeUpdate(addRental8);
                   stmt.executeUpdate(addRental9);
                   stmt.executeUpdate(addRental10);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public Demo(){
    super("Demo Test Frame");
    setSize(350, 200);
    comboBox = new JComboBox();
    comboBox.addItem("jdbc:odbc:VideoLibrary");
    qtm = new QueryTableModel();
    JTable table = new JTable(qtm);
    JScrollPane scrollpane = new JScrollPane(table);
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(3, 2));
    p1.add(comboBox);
    p1.add(new JLabel("Enter your query: "));
    p1.add(queryField = new JTextField());
    p1.add(new JLabel("Click here to send: "));
    JButton jb = new JButton("Search");
    jb.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    qtm.setHostURL();
    qtm.setQuery(queryField.getText().trim());
    p1.add(jb);
    getContentPane().add(p1, BorderLayout.NORTH);
    getContentPane().add(scrollpane, BorderLayout.CENTER);
    }//end class
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class LogOn extends JPanel{
         private static JTextField username=null;
         private static JPasswordField password=null;
         private static JButton button=null;
    public LogOn(){
              setSize(260,160);
              username=new JTextField(15);
         password=new JPasswordField(15);
              //JPanel pane=new JPanel();
              JLabel usernameLabel=new JLabel("Username: ");
              JLabel passwordLabel=new JLabel("Password: ");
              /*pane.*/add(usernameLabel);
              /*pane.*/add(username);
              /*pane.*/add(passwordLabel);
              /*pane.*/add(password);
              //setContentPane(pane);
              show();
              button=new JButton("Ok");
              add(button);
         button.addActionListener(new ButtonListener());
              JFrame frame=new JFrame("Welcome to Home Entertainment");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.getContentPane().add(new LogOn());
         frame.pack();
         frame.setVisible(true);
         private class ButtonListener implements ActionListener{
         public void actionPerformed(ActionEvent e){
              try{
                        new Demo();
                   catch(Exception ex){}     
    }

    here's the code (again, but it doesn't look as ugly as it did earlier on).
    i have three programs, only 2 of which can interact with each other. QueryTestTable.java is used with Demo.java to display data in a JTable. the third program is called LogOn.java. i want to use the LogOn.java (username and password for logging on to the system) program in order to be able to use the other 2 programs. i have to be able to use these programs next week. thank you very much.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JOptionPane;
    import java.sql.*;
    public class Demo extends JFrame {
       static String url = "jdbc:odbc:VideoLibrary";
       static Statement stmt;
       static Connection con;
       //declare member variables here
       JTextField hostField;
       JTextField queryField;
       QueryTableModel qtm;
       JComboBox comboBox;
       public static void main(String args[]){
          //new LogOn();
          int choice=-1;
          do{
             choice=getChoice();
             if(choice!=0){
                getSelected(choice);
          }while(choice!=5);
          System.exit(0);
       public static int getChoice(){
          String choice;
          int ch;
          choice = JOptionPane.showInputDialog(null,"1. Maintain product      
          details\n"+"2. Maintain member details\n"+"3. Maintain rental 
          details\n"+"4. View product, member and rental details\n"+"5. Log 
          Off\n\n"+"Enter your choice");
          ch = Integer.parseInt(choice);
          return ch;
       public static void getSelected(int choice){
          if(choice==1){
             addProducts();
          if(choice==2){
             addMembers();
          if(choice==3){
             addRentals();
          if(choice==4){
             Demo test = new Demo();
             test.setVisible(true);
       public static Connection getConnection(){
          try {
             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          catch(java.lang.ClassNotFoundException e) {
             System.err.print("ClassNotFoundException: ");
             System.err.println(e.getMessage());
          try {
             con=DriverManager.getConnection(url,"","");
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
          return con;
       public static void addProducts(){
          Connection con = getConnection();
          String addProduct1, addProduct2;
          addProduct1 = "insert into Product values (110001, 'The Killers -  
          Sams Town', 5.00, 'G', 'CD', 2006)";
          addProduct2 = "insert into Product values (110002, 'Robbie
          Williams - Rudebox', 5.00, 'G', 'CD', 2006)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addProduct1);
             stmt.executeUpdate(addProduct2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public static void addMembers(){
          Connection con = getConnection();
          String addMember1, addMember2;
          addMember1 = "insert into Member values  
          (1234, 'Ann', 'Smyth', 'Upper Killult, Falcarragh, Co. Donegal', '(074)-
          9135210', '(087)-2030172', #5/11/85#, #5/12/06#)";
          addMember2 = "insert into Member values
          (2345, 'John', 'Murphy', 'Lower Killult, Falcarragh, Co.
          Donegal', '(074)-9135211', '(087)-2030173', #4/12/85#, #6/13/06#)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addMember1);
             stmt.executeUpdate(addMember2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public static void addRentals(){
          Connection con = getConnection();
          String addRental1, addRental2;
          addRental1 = "insert into Rental values (110001, 'The Killers - 
          Sams Town', 1234, 'Ann', 'Smyth', #9/01/06#, #9/10/06#, 'Yes', 2.00)";
          addRental2 = "insert into Rental values (120001, 'Mission
          Impossible 3', 2345, 'John', 'Murphy', #9/02/06#, #9/09/06#, 'No',
          0.00)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addRental1);
             stmt.executeUpdate(addRental2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public Demo(){
          super("Demo Test Frame");
          setSize(350, 200);
          comboBox = new JComboBox();
          comboBox.addItem("jdbc:odbc:VideoLibrary");
          qtm = new QueryTableModel();
          JTable table = new JTable(qtm);
          JScrollPane scrollpane = new JScrollPane(table);
          JPanel p1 = new JPanel();
          p1.setLayout(new GridLayout(3, 2));
          p1.add(comboBox);
          p1.add(new JLabel("Enter your query: "));
          p1.add(queryField = new JTextField());
          p1.add(new JLabel("Click here to send: "));
          JButton jb = new JButton("Search");
          jb.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                      qtm.setHostURL();
                      qtm.setQuery(queryField.getText().trim());
          p1.add(jb);
          getContentPane().add(p1, BorderLayout.NORTH);
          getContentPane().add(scrollpane, BorderLayout.CENTER);
    }//end class
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class LogOn extends JPanel{
       private static JTextField username=null;
       private static JPasswordField password=null;
       private static JButton button=null;
       public LogOn(){
          setSize(260,160);
          username=new JTextField(15);
          password=new JPasswordField(15);
          //JPanel pane=new JPanel();
          JLabel usernameLabel=new JLabel("Username: ");
          JLabel passwordLabel=new JLabel("Password: ");
          /*pane.*/add(usernameLabel);
          /*pane.*/add(username);
          /*pane.*/add(passwordLabel);
          /*pane.*/add(password);
          //setContentPane(pane);
          show();
          button=new JButton("Ok");
          add(button);
          button.addActionListener(new ButtonListener());
          JFrame frame=new JFrame("Welcome to Home Entertainment");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.getContentPane().add(new LogOn());
          frame.pack();
          frame.setVisible(true);
       private class ButtonListener implements ActionListener{
          public void actionPerformed(ActionEvent e){
             try{
                new Demo();
             catch(Exception ex){}
    import java.sql.*;
    import java.io.*;
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.table.*;
    public class QueryTableModel extends AbstractTableModel{
       Vector cache; 
       int colCount;
       String[] headers;
       Connection db;
       Statement statement;
       String currentURL;
       public QueryTableModel(){
          cache=new Vector();
          try{
             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          catch(Exception e){
             System.out.println("problem loading the driver ");
       public String getColumnName(int i){
          return headers;
    public int getColumnCount(){
    return colCount;
    public int getRowCount(){
    return cache.size();
    public Object getValueAt(int row, int col){
    return ((String[])cache.elementAt(row))[col];
    public void setHostURL(){
    String url = "jdbc:odbc:VideoLibrary";
    closeDB();
    try{
    db=DriverManager.getConnection(url,"","");
    statement=db.createStatement();
    catch(Exception e){
    System.out.println("Could not initialize the database.");
    e.printStackTrace();
    public void setQuery(String q){
    cache=new Vector();
    String s="select * from Product";
    try{
    ResultSet rs=statement.executeQuery(q);
    ResultSetMetaData meta=rs.getMetaData();
    colCount=meta.getColumnCount();
    headers=new String[colCount];
    for(int h=1;h<=colCount;h++){
    headers[h-1]=meta.getColumnName(h);
    while(rs.next()){
    String[] record=new String[colCount];
    for(int i=0;i<colCount;i++){
    record[i]=rs.getString(i+1);
    cache.addElement(record);
    fireTableChanged(null);
    catch(Exception e){
    cache=new Vector();
    e.printStackTrace();
    public void initDB(String url){
    try{
    db=DriverManager.getConnection(url);
    statement=db.createStatement();
    catch(Exception e){
    System.out.println("Could not initialize the database.");
    e.printStackTrace();
    public void closeDB(){
    try{
    if(statement!=null){
    statement.close();
    if(db!=null){
    db.close();
    catch(Exception e){
    System.out.println("Could not close the current connection.");
    e.printStackTrace();

  • SAP GUI Install Issues on computers using VISTA

    Installed SAP GUI many times on Windows XP computers, but having issues on your new VISTA system?
    There are two major issues for SAP GUI on VISTA, here is an overview of how to solve them:
    1. The unzipping wizard native to VISTA is lousy. Download the WinZip demo (www.winzip.com) or one of many free archiving tools. Make sure to unzip the SAP GUI file WITH FOLDERS. Use Windows Explorer to drill down through the unzipped GUI as shown. Double click SapGuiSetup.exe to start your installation...
    2. The saplogon.ini file MUST be placed in the SAP GUI installation folder, not into C:\Windows.
    The folder is:
    C:\Program Files\SAP\FrontEnd\SAPgui
    or for 64bit:
    C:\Program Files (x86)\SAP\FrontEnd\SAPgui
    Restart SAP GUI to properly display your server list. Contact your Hosting Center if you continue to have issues. Our email is sap at csuchico.edu

    Troy -
    There is also this link recently which may be of help.
    SAPgui 720 PL1 upgrade causing IE 7/8 issues
    Running this resolved that users issue.
    C:\Program Files\sap\sapsetup\setup\"sapregsv.exe mshtml.tlb"
    In your case it may be under the x86 folder since you are 64bit.
    C:\Program Files (x86)\sap\sapsetup\setup\"sapregsv.exe mshtml.tlb"
    Regards,
    Zecher

  • Error in starting SAP GUI as part of an Java RFC call from a PC

    Hi,
    We are on the 4.6C version of SAP and have the latest basis kernel patches that allow an RFC connection to start the SAP GUI. The program that I am running externally is java using the 3.0.1 JCo. The OS of the PC I am using is Windows XP. The SAPGUI version is 7.10 patch level 11.
    The program seems to be working properly as the command prompt window goes grey as if there is another window being opened but then I get back this error message and I do not see the GUI.
    The message I am getting back is:
    Exception in thread "main" com.sap.conn.jco.JCoException:(136) JCO_ERROR_ILLEGAL_STATE:Launching SAP GUI failed, though it was requested(error message:Communication with SAPGUI timed out)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.startSAPGui(MiddlewareJavaRfc.java:1853)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1285)
    at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:661)
    at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)
    at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:171)
    at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:44)
    at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:160)
    at com.sap.conn.jco.rt.RfcDestination.initializ(RfcDestination.java:766)
    at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:794)
    at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:32)
    at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:865)
    at GISToSAPWO_Test.get_wo_call(GISToSAPWo.java:91)
    at GISToSAPWO_Test.main(GISToSAPWO_Test.java:206)
    I have been all over trying to find the solution to this and have come up empty. Any help will be greatly appreciated. If this is the wrong forum for this please let me know and I will re-post.
    Thank you in advance for any information you can pass on about the issue,
    Mark

    Hi Greetson,
    Thank you in advance for your response. It is greatly appreciated.
    1) In a way yes. I am using the connection setting USE_SAPGUI = 1. This is suppose to start the GUI prior to starting the RFC's program run. If this is not correct please let me know.
    2) The code is part of the JCo and the RFC library from what I have read. If this is not correct please let me know.
    3) I am only testing from my PC at this moment. I have re-installed my SAP GUI and am now at patch level 13 on 7.10.
    4) The application passes in the connection information which includes username and password along with the parameters for the RFC call. I would like the SAP GUI to open without the user having to re-enter his/her username and password. I thought that once the RFC is called using the dialog users credentials that the GUI would then open using the connection. I have used the java pooled connection method and it still does not open the GUI.
    5) The purpose is to pass Equipment objects, Functional Location objects and Leak Id objects to an RFC to open a list screen from IW39, List Maintenance Order transaction, for display of each at one pass, as well as open Excel with data from classification for the Leak Id's.
    Hope this sheds some light on the problem I am having. Please let me know if more information is needed.
    Best regards,
    Mark

  • How to download a report prg into local system

    how to downlaod a report program into local system

    Hi
       Goto Function Builder se37 and select WS_DOWNLOAD
    so you wil get the function module WS_DOWNLOAD in your report,then there wil be a option called path=' ',so give the path where u wanna download a report program....
    datsit...
    REWARD PLEASE

Maybe you are looking for

  • Open PDF-Output in browser window with full height

    Hi, I must open some BIP-Reports as PDF in a browser window via URL. The problem ist, that the height of the PDF-Output is fixed, as the PDF is shown in an iframe with fixed height. The height can be set in the BIP preferences, but only to a fixed va

  • Access 2010 InfoPath Data Collection Export Fails Due to Date Format That Includes Time Zone

    I created an Access 2010 database that has multiple data collection (InfoPath) forms that were generated from Access and have been in use for about 1.5 years.  Starting in 2013 (for about a week now), the submitted data fails to Export due to a "data

  • Query key Date Variable not working

    Hi Folks -      I am coming across an issue with which some of you might be able to help me. I have a time dependent master data object which I've marked as a datatarget and have created a report on it. I wanted to give the user an option of specifyi

  • Find.text Then apply Paragraph.Style

    Hi Everyone, Is that possible we find the text then apply the paragraph style every find text. We find [CN] then apply paragraph style "Chap_Num", Find next  [CT] apply PS "Chap_TTL" Find next [COX1] apply PS "Chap_Para". Any trick find and apply par

  • IPhone 4 32GB compatibility with Volvo USB

    Hello. I have a problem to use the USB connection with my Volvo C30 -2011. It worked with my iPhone 3GS 32GB. But when i connect the new one it tells me "Unreadable unit". Anyone else with the same problem? How to solve it?