Where I'm wrong

Hello,
I use a Centura Database
I want to read a file and then insert some data from each line into a database. The file I read has at least 640 lines. Everything works for 81 lines readed but then, I receive the following error message :
" SQLException
java.sql.SQLException: com.centurasoft.java.sqlbase.SqlbaseException: 00135 SQL ICN Invalid cursor number "
Please tell me what shoul I do.
I have a table "UST" with 3 columns : PROD_TYPE(String), CAR_ID(String) , COST(int);
Here is the code I use to insert and to update when is neccesary some data into database.
public void insert_update(String prod, String car_id, int cost) {
try {
this.setCursor( new Cursor( Cursor.WAIT_CURSOR ) );
Statement stat = this.dbConnection.createStatement();
Statement stat1 = this.dbConnection.createStatement();
Statement stat2 = this.dbConnection.createStatement();
int value1;
String sql = "SELECT COST FROM UST WHERE (PROD_TYPE = '" + prod + "' AND CAR_ID = '" + car_id + "')";
ResultSet rs = stat.executeQuery( sql );
if( rs.next() ) {
value1 = rs.getInt(1);
int new_value = value1 + cost;
rs.close();
String query = "UPDATE UST SET COST = '" + new_value + "' WHERE (PROD_TYPE = '" + prod + "' AND CAR_ID = '" + car_id + "')";
int result = stat1.executeUpdate( query );
else {
rs.close();
stat2.executeUpdate( "INSERT INTO UST VALUES('" + prod + "','" + car_id + "','"+ cost +"' )");
dbConnection.commit();
this.setCursor( Cursor.getDefaultCursor() );
catch ( SQLException sqlex ) {
System.err.println( "SQLException\n" + sqlex.toString());
return;
}

hi
you should use only one statement and
You must call statement.close();

Similar Messages

  • SQLException: how do I know where I went wrong?

    I just revolutioned the database I was using for my tomcat application, switching from MyIsam to InnoDB.
    But as soon as I tried an insert I got an SQLException.
    this is part of the code (which is called from a servlet):
        public void saveInitialize(String gameName) throws ClassNotFoundException, SQLException {
            Connection con = null;
         Statement stmt = null;
         PreparedStatement pstmt = null;
         ResultSet rs = null;
         try {
             con = DBConnect.connect("GAMES");
             con.setAutoCommit(false);
             stmt = con.createStatement();
             int IDGioco = 1;
             rs = stmt.executeQuery("SELECT ID FROM GAMES ");
             while (rs.next()) {
              IDGioco = rs.getInt("ID") + 1;
             rs.close();
             stmt.executeUpdate("INSERT INTO GAMES VALUES (" + IDGioco + ", '" + gameName + "', " + numeroPeriodi + ", " + numeroAziende + ", " + numeroProdotti + ", " + periodiGiocati + ")");
             for (int i = 1; i <= numeroAziende; i++) {
                 stmt.executeUpdate("INSERT INTO AZIENDE " +
                  "VALUES (" + i + ", '" + nomeAzienda[i] + "', ENCODE('" + passwordAzienda[i] + "','tbg'), " + IDGioco + ", " + periodiInseriti[i] + ")");
             for (int j = 1; j <= numeroProdotti; j++) {
                 stmt.executeUpdate("INSERT INTO PRODOTTI " +
                  "VALUES (" + j + ", '" + nomeProdotto[j] + "', " + IDGioco + ")");
             pstmt = con.prepareStatement("INSERT INTO P_UNITA VALUES ( ?, ?, ?, ?)");
             pstmt.setInt(1, parametroUnitaPrezzo);
             pstmt.setInt(2, parametroUnitaInvestimenti);
             pstmt.setInt(3, parametroUnitaPezzi);
             pstmt.setInt(4, IDGioco);
             pstmt.executeUpdate();
             pstmt.close();
             pstmt = con.prepareStatement("INSERT INTO P_DEFAULT_PRODOTTO VALUES ( ?, ?, ?, ?, ?, ?, ?, ?)");
             for (int j = 1; j <= numeroProdotti; j++) {
                 pstmt.setInt(1, parametroDefaultPrezzo[j]);
                 pstmt.setInt(2, parametroDefaultPromozione[j]);
                 pstmt.setInt(3, parametroDefaultPubblicita[j]);
                 pstmt.setInt(4, parametroDefaultPrevisioneDiVendita[j]);
                 pstmt.setInt(5, parametroDefaultDesign[j]);
                 pstmt.setInt(6, parametroDefaultTecnologia[j]);
                 pstmt.setInt(7, IDGioco);
                 pstmt.setInt(8, j);
              pstmt.addBatch();
             pstmt.executeBatch();
             pstmt.close();
    /// etc. etc. etc.this is the error message I get:
    java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '800. 600. 1)' at line 1 at com.mysql.jdbc.MysqlIO.sendCommand(Unknown Source) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(Unknown Source) at com.mysql.jdbc.Connection.execSQL(Unknown Source) at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source) at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source) at Game.saveInitialize(Game.java:7759) at SingletonGame.syncInitialize(SingletonGame.java:71) at SaveNewGame.doPost(SaveNewGame.java:316) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at
    etc. etc. etc.
    how do I know where I went wrong (the insert code is about 1200 lines)?
    thank you
    alessandro

    While not related to your problem, I did notice that you're inserting into columns without specifying the column names, ie.
             stmt.executeUpdate("INSERT INTO GAMES VALUES (" + IDGioco + ", '" + gameName + "', " + numeroPeriodi + ", " + numeroAziende + ", " + numeroProdotti + ", " + periodiGiocati + ")");While technically it's not an error, it's really easy to introduce a bug into your code. There's no guarantee that the order of columns will always be the same as when you created the table. It's much better to do something like "insert into games (col1,col2,col3...) values(...)".

  • AMD 3500 venice stuck at 2.5ghz. Tell me where im going wrong.K8N Diamond

    Im memtest stable(8hours) at 2.6ghz can run superpi  but lock up after about ten mins of prime95 any advice would be appreciated I cant seem to see where im going wrong.....
    Motherboard Model: K8N Diamond
    BIOS Revision:1.8   
    HT Speed:
    HT Multiplier:4
    Reference Clock:
    Memory Lock (1:1 if using none or default settings):
    CPU Multiplier:11
    CPU Speed:.2.6ghz
    CPU Voltage:1.497V
    RAM Voltage:2.8
    Chipset Voltage:1.65
    CPU Model Number:3500 venice
    CPU Stepping:
    CPU Week:
    RAM's rated speed:pc3200 2,2,2,8
    Relevant RAM Timings (such as 1T/2T and CAS latency):2.5,3,3,8 at 2t memory ratio is 1:1
    PSU Wattage:480
    Amps on 12 volt rail:28
    Prime95 Stable for 0 hours
    Memtest Stable :8 hours stable

    You should be working from known data point to unknown data points,  Suggest you first use recommended OEM voltages for CPU and RAM to figure out the MAX Prime 95 stable OC you can reach with your PC.  You can then slowly increase your Vcore and/or Vdimm to find out if it makes a difference or allows you a higher Prime 95 stable OC.
    You should also use other software such as 3Dmark XX, PC Mark XX, Everest, .... to compare the perforance of your different Prime 95 stable OC to figure out which one is best for your system.  The highest OC number will not necessarly be the setup that will provide you with the overall best performance.  Finding the OC sweetspot for any system is a slow and tedious process/
    Good luck,

  • Where i am wrong ?

    LOOP AT it_bsid2.
         IF it_bsid2-years LT 1.
    i_out-bukrs= '0011'
            i_out-year = '2003'.
            i_out-dmbtr1 = it_bsid2-dmbtr.
          ELSEIF it_bsid2-years Lt 2 AND it_bsid2-years Ge 1.
            i_out-dmbtr2 = it_bsid2-dmbtr.
          ELSEIF it_bsid2-years Lt 5 AND it_bsid2-years Ge 2.
            i_out-dmbtr3 = it_bsid2-dmbtr.
          ELSEIF  it_bsid2-years Ge 5.
            i_out-dmbtr4 = it_bsid2-dmbtr.
          ENDIF.
        ELSEIF it_bsid2-year = '2004'.
          IF it_bsid2-years LE 1.
            i_out-year = '2004'.
            i_out-dmbtr1 = it_bsid2-dmbtr.
          ELSEIF it_bsid2-years LE 2 AND it_bsid2-years GT 1.
            i_out-dmbtr2 = it_bsid2-dmbtr.
          ELSEIF it_bsid2-years LE 5 AND it_bsid2-years GT 2.
            i_out-dmbtr3 = it_bsid2-dmbtr.
          ELSEIF  it_bsid2-years GT 5.
            i_out-dmbtr4 = it_bsid2-dmbtr.
          ENDIF.
    ENDIF.
        COLLECT i_out.
        CLEAR : i_out, it_bsid2.
    where iam wrong inthis code
    i am collecting year wise i am not getting properly

    Hi,
    Assuming you have Company code, Year & Amount fields in your internal table it_bsid2.
    Follow the below steps to get the cumulated amounts by Year field.
    1. Sort the internal table it_bsid2 BY company code, year.
    2. Put AT END OF Year....ENDAT with in LOOP...ENDLOOP.
    3. Between AT END OF Year...ENDAT,
          i)  put statement SUM.
         ii)  Move the company code, year of it_bsid2 TO  corresponding fields of internal table i_out.
         iii) And move it_bsid2-amount should be moved to i_out-amount.
    With this, you have cumulated amounts for company code & year. Hope this will help you, pls write to me if you still need any assistance.
    Regards
    Mohammad Shaik.

  • POPULATING THE JTABLE FROM DATABASE!!I need find out where im going wrong?

    for some reason wen i run the program the fields dont populate!!! no errors in my output monitor nothing? im puzzled! no errors in the code either!!! im using Netbeans IDE 6.0 with no code generators watsoever! i type out all type code myself! i have checked and rechecked and rechecked! been stuck here for two days! if anyone has code out there they are willing to share or possibly advice if u've had the same problem please let me know where to look or pass on the solution!
    Hurry Im losing a lot of hair!!!!!!
    Edited by: Dubs08 on Feb 7, 2008 10:36 PM

    code ?

  • Please check my code where i am wrong ,-very urgent please

    Hi ,
    i am getting all values execpt the values from table t685  , kolnr and kotabnr and i am using three selects and moving the values in it_output_report.
    this is very urgent
    REPORT zmaster_condition LINE-COUNT 80 LINE-SIZE  225.
         D A T A                                                         *
    INCLUDE zmaster_condition_top.
        S E L E C T I O N S                                              *
    SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-b01.
    SELECT-OPTIONS: s_kvewe FOR  t683s-kvewe,
                    s_kappl  FOR  t683s-kappl,
                    s_kalsm  FOR  t683s-kalsm,
                    s_kschl  FOR   t683s-kschl,
                    s_kabnr  FOR  t682i-kotabnr.
    SELECTION-SCREEN END OF BLOCK b01.
    *SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-s04.
    *PARAMETERS:      p_vari     LIKE   disvariant-variant.
    *SELECTION-SCREEN END OF BLOCK b4.
    **SELECTION-SCREEN BEGIN OF BLOCK b02 WITH FRAME TITLE text-b02.
    *SELECTION-SCREEN BEGIN OF BLOCK b02 WITH FRAME TITLE text-b02.
    PARAMETERS R1 RADIOBUTTON GROUP RADI1 DEFAULT 'X'.
    *SELECTION-SCREEN END OF BLOCK b02.
         A T   S E L E C T I O N - S C R E E N                           *
         M A I N   P R O G R A M                                         *
    START-OF-SELECTION.
    *Initializing the local tables.
      CLEAR:it_t682i,it_t683s,it_t685,it_output_report.
      REFRESH:it_t682i,it_t683s,it_t685,it_output_report.
    *Selection of data from pricing procedure tables using a join.
    *SELECT  Akvewe Akappl Akalsm Astunr A~zaehk
           Akschl  Bkolnr Bkotabnr Ckozgf
    INTO  TABLE it_output_report
    FROM  t683s as A
    JOIN  t682i  as B
    ON Akvewe eq  Bkvewe and
        Akappl  eq  Bkappl
    JOIN t685 as C
    ON Bkvewe  eq Ckvewe and
        Bkappl  eq Ckappl and
        Bkozgf  eq  Ckozgf
    WHERE  A~KVEWE = 'B' and
            A~KAPPL  = 'V1' .
            A~KALSM  IN S_KALSM  and
            A~KSCHL  IN S_KSCHL   and
            B~KOTABNR IN S_KABNR.
    *Selection of data from pricing procedure tables
    *SELECT  * FROM t683s APPENDING  CORRESPONDING FIELDS OF TABLE  it_t683s
                   WHERE kvewe = 'B'
                   and   kappl = 'V1'.
    SELECT kvewe kappl kozgf kolnr kotabnr FROM t682i
               INTO TABLE  it_t682i
               WHERE kvewe = 'B'
               AND  kappl = 'V1'.
      SELECT kvewe kappl kalsm stunr zaehk kschl  FROM t683s
           INTO   TABLE  it_t683s
           WHERE  kvewe = 'B'
           AND    kappl = 'V1'
           AND    kalsm  IN s_kalsm.
    *SELECT kvewe kappl kschl kozgf  FROM t685
            INTO TABLE it_t685
            WHERE  kvewe = 'B'
            AND    kappl = 'V1'
             and   KSCHL in S_KSCHL
              AND   KOZGF in s_kabnr.
    SELECT kvewe kappl kschl kozgf  FROM t685
             INTO TABLE it_t685
             WHERE  kvewe = 'B'
             AND    kappl = 'V1'
              and   KSCHL in S_KSCHL
               AND   KOZGF in s_kabnr.
    *clear it_t685.
    *loop at it_t685.
             it_output_report-kschl =  it_t685-kschl.
             it_output_report-kozgf =  it_t685-kozgf.
    it_output_report-kozgf = it_t682i-kozgf.
    it_output_report-kolnr = it_t682i-kolnr.
    it_output_report-kotabnr = it_t682i-kotabnr.
    *endloop.
    clear it_t683s.
    loop at it_t683s.
              it_output_report-kvewe = it_t683s-kvewe.
              it_output_report-kappl =  it_t683s-kappl.
              it_output_report-kalsm =  it_t683s-kalsm.
              it_output_report-stunr =  it_t683s-stunr.
              it_output_report-zaehk =  it_t683s-zaehk.
              it_output_report-kschl =  it_t683s-kschl.
    it_output_report-kozgf = it_t682i-kozgf.
    it_output_report-kolnr = it_t682i-kolnr.
    it_output_report-kotabnr = it_t682i-kotabnr.
    APPEND IT_OUTPUT_REPORT.
    clear it_output_report.
    *loop at it_t685.
             it_output_report-kschl =  it_t685-kschl.
            it_output_report-kozgf =  it_t685-kozgf.
    it_output_report-kozgf = it_t682i-kozgf.
    it_output_report-kolnr = it_t682i-kolnr.
    it_output_report-kotabnr = it_t682i-kotabnr.
    endloop.
    *MOVE : it_t683s-kvewe TO it_output_report-kvewe.
            E N D - O F - S E L E C T I O N
    END-OF-SELECTION.
    *Output to a list
      FORMAT COLOR 2 .
      WRITE:/2 'Usage',09 'App',17 'Proced',24 'Step',
                37 'Counter',50 'CondType',63 'Description',85 'AccSeq',
               97 'AccSeqNum',108 'ConTable'.
      WRITE:/1(225) sy-uline.
    loop at it_output_report.
      WRITE:/ it_output_report-kvewe UNDER 'Usage',
              it_output_report-kappl UNDER 'App',
              it_output_report-kalsm UNDER 'Procedure',
              it_output_report-stunr UNDER  'Step',
              it_output_report-zaehk UNDER  'Counter',
              it_output_report-kschl UNDER 'CondType',
               it_output_report- UNDER  'Description',
              it_output_report-kozgf UNDER 'AccSeq',
              it_output_report-kolnr UNDER 'AccSeqNum',
              it_output_report-kotabnr UNDER  'ConTable'.
                it_output_report- UNDER  'SalesOrg',
                it_output_report- UNDER  'DocType'.
                it_output_report- UNDER  'Customer'.
      endloop.
      INCLUDE ZMASTER_CONDITION_TOP                                      *
    *Table declaration
    Tables:T682I,
           T683S,
           T685,
           NACH,
           B005.
    *Data declaration for internal tables
    DATA:Begin of it_output_report  occurs 0,
             KVEWE   LIKE   T683S-KVEWE,      "Usage of the condtion  table
             KAPPL   LIKE   T683S-KAPPL,      "Application
             KALSM   LIKE   T683S-KALSM,      "Procedure for pricing
             STUNR   LIKE   T683S-STUNR,      "step number
             ZAEHK   LIKE   T683S-ZAEHK,      "condition counter
             KSCHL   LIKE   T683S-KSCHL,      "condition type
             KOZGF   LIKE   T685-KOZGF,       "Access sequence
             KOLNR   LIKE   T682I-kOLNR,    "Access sequence number
             KOTABNR LIKE   T682I-KOTABNR,   "Condition Table
        End of it_output_report.
    DATA: BEGIN OF IT_T683S OCCURS 10  ,
             KVEWE   LIKE   T683S-KVEWE,      "Usage of the condtion  table
             KAPPL   LIKE   T683S-KAPPL,      "Application
             KALSM   LIKE   T683S-KALSM,      "Procedure for pricing
             STUNR   LIKE   T683S-STUNR,      "step number
             ZAEHK   LIKE   T683S-ZAEHK,      "condition counter
             KSCHL   LIKE   T683S-KSCHL,
            KOZGF   LIKE   T685-KOZGF,        "condition type
           END OF IT_T683S.
    DATA: BEGIN OF IT_T685 OCCURS 10,
              kvewe  like   t685-kvewe,
              kappl  like   t685-kappl,
              KSCHL  LIKE   T685-KSCHL,
              KOZGF   LIKE   T685-KOZGF,       "Access sequence
           END OF IT_T685 .
    DATA: BEGIN  OF IT_T682I OCCURS 0,
              KVEWE  LIKE T682I-KVEWE,
              KAPPL  LIKE  T682I-KAPPL,
              KOZGF   LIKE   T682I-KOZGF,       "Access sequence
             KOLNR   LIKE   T682I-kOLNR,    "Access sequence number
             KOTABNR LIKE   T682I-KOTABNR,   "Condition Table

    Hi,
    I think may be you should check with T682I-KOZGF(Access sequence) instead of T682I-KOTABNR(Condition table).
    In select-options declare like
    s_KOZGF FOR t682i-KOZGF
    SELECT kvewe kappl kschl kozgf FROM t685
    INTO TABLE it_t685
    WHERE kvewe = 'B'
    AND kappl = 'V1'
    and KSCHL in S_KSCHL
    AND KOZGF in s_KOZGF. //change s_kabnr to s_kozgf
    Thanks,
    Veni.

  • Can anyone tell me where I got wrong in my jni conde?

    I am new to jni.
    I want to pass a class from java to C, and after some data value inserting, this class will be returned to Java.
    But the exception occured: java.lang.UnsatisfiedLinkError.
    I can't see where the error is.
    So anyone can give me any suggestions??
    I'll paste my test code as follows:
    TestSCJNI.java
    import java.lang.*;
    public class TestSCJNI {
              static {
              System.loadLibrary("TestSCJNI");
         private native ServiceComp test_queryServiceComp(ServiceComp _sc);
         ServiceComp sc;
         public TestSCJNI(){
              sc = new ServiceComp();
         public static void main(String[] args) {
              TestSCJNI t = new TestSCJNI();
              t.sc = t.test_queryServiceComp(t.sc);
              System.out.println("tsId" + t.sc.tsId + "NwID" + t.sc.orginNwId);
         class ServiceComp {
              char tsId;
              char orginNwId;
              char svId;
    }TestSCJNI.c
    #include <stdio.h>
    #include <stdlib.h>
    #include <jni.h>
    #include "TestSCJNI.h"
    JNIEXPORT jclass JNICALL Java_TestSCJNI_test_queryServiceComp(JNIEnv *env, jobject obj, jobject sc) {
         jclass t = (*env)->GetObjectClass(env,sc);
         (*env)->SetCharField(env,t,"tsId",12);
         (*env)->SetCharField(env,t,"orginNwId",0);
         (*env)->SetCharField(env,t,"svId",3);
         //t.orginNwId = 0;
         //t.svId = 3;
         return t;
    } Thanks for any help!

    yes. The procedure I run the program are :
    1. javac *.java
    javah -jni TestSCJNI
    2. gcc -c TestSCJNI.c
    3. gcc �shared -o libTestSCJNI.so TestSCJNI.o
    4. java -Djava.library.path=. TestSCJNI
    I supposed that the procedure is right...
    Or something incorrect in the procedure??This is just a wild guess, but what happens if you replace step
    2) and 3) by one new step? like this:
    gcc TestSCJNI.c -o libTestSCJNI.so -shared -I<include stuff here>
    I suspect that gcc generates position dependent code if it just has
    to compile a compilation unit. The -shared flag implies the -fPIC
    flag for compilation if I'm not mistaken ...
    kind regards,
    Jos

  • Update query running fine when subquery in where clause is wrong.

    Hi,
    I am running one update statement-
    Update table a set column1=2000
    where a.column2 in(select col 3 from Table b where b.col4=111)
    Now when I run the subquery: select col 3 from Table b where b.col4=111-----> It gives me error "col 3 invalid identifier"
    But when I run the full query then it updates the 700 rows.
    Can somebody please explain this?
    My subquery is throwing error but when i use that in another query it is running fine.

    Col_3 must be in your outer table (table_a, I guess).
    If you always prefixed column names with a table alias, you'd know in an instant.

  • Please tell me where I am wrong?

    Dear All,
    I am writing one procedure, that inserts records into one table. I used nativ dynamic sql in
    my procedure.
    Here Is Details;
    procedure:
    CREATE OR REPLACE PROCEDURE PRAT(mstring in varchar2, mconditions in varchar2)
    IS
    -- vyearqtr NUMBER := myearqtr;
    -- vyearnum NUMBER := myearnum;
    vstring VARCHAR2(1000) := mstring;
    vnum     VARCHAR2(10);
    vconditions VARCHAR2(4000) := mconditions;
    v_strvar varchar2(32767);
    CURSOR c1 is
    SELECT TO_CHAR(a.COLUMN_VALUE) num
    FROM TABLE(CAST(split(vstring,',')as split_tbl)) a;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO vnum;
    exit when c1%notfound;
    -- EXECUTE IMMEDIATE
    v_strvar:= 'INSERT INTO ibs_cbs_temp3';
    v_strvar:= v_strvar ||' select a.YearQtr,a.cgs_name Groupname,a.Code,a.Name1,';
    v_strvar:= v_strvar ||' Round((nvl(bSum1, 0) + nvl(cSum1, 0) + nvl(dSum1, 0) +';
    v_strvar:= v_strvar ||' nvl(eSum1, 0) + nvl(fSum1, 0)) / 10000000) as TOTAL,';
    v_strvar:= v_strvar ||' Round((nvl(bSum1, 0)) / 10000000) as MaturityCode1,';
    v_strvar:= v_strvar ||' Round((nvl(cSum1, 0)) / 10000000) as MaturityCode2,';
    v_strvar:= v_strvar ||' Round((nvl(dSum1, 0)) / 10000000) as MaturityCode3,';
    v_strvar:= v_strvar ||' Round((nvl(eSum1, 0)) / 10000000) as MaturityCode4,';
    v_strvar:= v_strvar ||' Round((nvl(fSum1, 0)) / 10000000) as MaturityCode5,';
    v_strvar:= v_strvar ||' Round((nvl(gBank, 0)) / 10000000) as sBank,';
    v_strvar:= v_strvar ||' Round((nvl(hBank, 0)) / 10000000) as SPrivate,';
    v_strvar:= v_strvar ||' Round((nvl(iBank, 0)) / 10000000) as SPublic,';
    v_strvar:= v_strvar ||' Round((nvl(i1Bank, 0)) / 10000000) as SUnallocated';
    v_strvar:= v_strvar ||' from    (Select  distinct';
    v_strvar:= v_strvar ||' cg.cgs_name,aq.CTY_Code as Code,aq.CTY_Name as Name1,';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr as yearqtr';
    v_strvar:= v_strvar ||' from Ibs_Countrygroups cg';
    v_strvar:= v_strvar ||' INNER JOIN IBS_CountryMaster aq ';
    v_strvar:= v_strvar ||' on cg.cgs_id=aq.cty_ctygrpid and cg.cgs_active=1 ';
    v_strvar:= v_strvar ||' and aq.cty_active=1';
    v_strvar:= v_strvar ||' INNER JOIN ibs_org_bankdata ';
    v_strvar:= v_strvar ||' ON aq.CTY_Code =ibs_org_bankdata.bd_councd';
    v_strvar:= v_strvar ||' INNER JOIN ibs_bankmaster bk ';
    v_strvar:= v_strvar ||' on ibs_org_bankdata.bd_bkcode = bk.bnk_code';
    v_strvar:= v_strvar ||' INNER JOIN ibs_countrymaster cm ';
    v_strvar:= v_strvar ||' on bk.bnk_countryofinc = cm.cty_id';
    v_strvar:= v_strvar ||' INNER JOIN IBS_ALCategory ';
    v_strvar:= v_strvar ||' ON ibs_org_bankdata.bd_alcd = IBS_ALCategory.Alc_Code';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_yrqtr = '|| vnum ;
    v_strvar:= v_strvar ||' group by cg.cgs_name,aq.CTY_Name,';
    v_strvar:= v_strvar ||' aq.CTY_Code,ibs_org_bankdata.bd_yrqtr)a';
    v_strvar:= v_strvar ||' left join';
    v_strvar:= v_strvar ||' (select sum((case';
    v_strvar:= v_strvar ||' when ibs_org_bankdata.bd_matcd = 1 AND '||vconditions ;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr)';
    v_strvar:= v_strvar ||' else';
    v_strvar:= v_strvar ||' 0';
    v_strvar:= v_strvar ||' end)) as bSum1,';
    v_strvar:= v_strvar ||' sum((case';
    v_strvar:= v_strvar ||' when ibs_org_bankdata.bd_matcd = 2 AND '||vconditions ;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr)';
    v_strvar:= v_strvar ||' else';
    v_strvar:= v_strvar ||' 0';
    v_strvar:= v_strvar ||' end)) as cSum1,';
    v_strvar:= v_strvar ||' sum((case when';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_matcd = 3 AND '||vconditions;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr) else 0 end)) as dSum1,';
    v_strvar:= v_strvar ||' sum((case';
    v_strvar:= v_strvar ||' when ibs_org_bankdata.bd_matcd = 4 AND '||vconditions ;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr)';
    v_strvar:= v_strvar ||' else';
    v_strvar:= v_strvar ||' 0';
    v_strvar:= v_strvar ||' end)) as eSum1,';
    v_strvar:= v_strvar ||' sum((case';
    v_strvar:= v_strvar ||' when ibs_org_bankdata.bd_matcd = 5 AND '||vconditions;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr)';
    v_strvar:= v_strvar ||' else';
    v_strvar:= v_strvar ||' 0';
    v_strvar:= v_strvar ||' end)) as fSum1,';
    v_strvar:= v_strvar ||' sum((case';
    v_strvar:= v_strvar ||' when IBS_Sector.SEC_Parent = 0 AND '||vconditions ;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr)';
    v_strvar:= v_strvar ||' else';
    v_strvar:= v_strvar ||' 0';
    v_strvar:= v_strvar ||' end)) as gBank,';
    v_strvar:= v_strvar ||' sum((case';
    v_strvar:= v_strvar ||' when IBS_Sector.SEC_Parent = 1 AND '||vconditions ;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr)';
    v_strvar:= v_strvar ||' else';
    v_strvar:= v_strvar ||' 0';
    v_strvar:= v_strvar ||' end)) as hBank,';
    v_strvar:= v_strvar ||' sum((case';
    v_strvar:= v_strvar ||' when IBS_Sector.SEC_Parent = 2 AND '||vconditions ;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr)';
    v_strvar:= v_strvar ||' else';
    v_strvar:= v_strvar ||' 0';
    v_strvar:= v_strvar ||' end)) as iBank,';
    v_strvar:= v_strvar ||' sum((case';
    v_strvar:= v_strvar ||' when IBS_Sector.SEC_Parent = 3 AND '||vconditions ;
    v_strvar:= v_strvar ||' then';
    v_strvar:= v_strvar ||' getvalueininr(Abs(ibs_org_bankdata.bd_fc_bal) +';
    v_strvar:= v_strvar ||' Abs(ibs_org_bankdata.bd_fc_int),';
    v_strvar:= v_strvar ||' (select ibs_currencymaster.cur_id';
    v_strvar:= v_strvar ||' from ibs_currencymaster';
    v_strvar:= v_strvar ||' where ibs_org_bankdata.bd_curcd =';
    v_strvar:= v_strvar ||' ibs_currencymaster.cur_code),';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr)';
    v_strvar:= v_strvar ||' else';
    v_strvar:= v_strvar ||' 0';
    v_strvar:= v_strvar ||' end)) as i1Bank,';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_councd as Cty_Id';
    v_strvar:= v_strvar ||' FROM IBS_CountryMaster aq';
    v_strvar:= v_strvar ||' INNER JOIN ibs_org_bankdata ';
    v_strvar:= v_strvar ||' ON aq.CTY_Code =ibs_org_bankdata.bd_councd';
    v_strvar:= v_strvar ||' inner join ibs_bankmaster bk ';
    v_strvar:= v_strvar ||' on ibs_org_bankdata.bd_bkcode =bk.bnk_code';
    v_strvar:= v_strvar ||' inner join ibs_countrymaster cm ';
    v_strvar:= v_strvar ||' on bk.bnk_countryofinc = cm.cty_id';
    v_strvar:= v_strvar ||' INNER JOIN IBS_Sector ';
    v_strvar:= v_strvar ||' ON ibs_org_bankdata.bd_sectcd =IBS_Sector.Sec_Code';
    v_strvar:= v_strvar ||' INNER JOIN IBS_ALCategory ';
    v_strvar:= v_strvar ||' ON ibs_org_bankdata.bd_alcd =IBS_ALCategory.Alc_Code';
    v_strvar:= v_strvar ||' INNER JOIN IBS_ALTypes ';
    v_strvar:= v_strvar ||' ON ibs_org_bankdata.bd_typecd =IBS_ALTypes.Act_Code';
    v_strvar:= v_strvar ||' INNER JOIN IBS_MaturityCodeMaster ';
    v_strvar:= v_strvar ||' ON ibs_org_bankdata.bd_matcd =IBS_MaturityCodeMaster.MCM_Code';
    v_strvar:= v_strvar ||' where';
    v_strvar:= v_strvar ||' ibs_org_bankdata.bd_yrqtr = '||vnum ;
    v_strvar:= v_strvar ||' group by ibs_org_bankdata.bd_councd) ';
    v_strvar:= v_strvar ||' l on a.Code = l.CTY_Id';
    v_strvar:= v_strvar ||' order by total desc';
    EXECUTE IMMEDIATE v_strvar;
    END LOOP;
    CLOSE C1;
    COMMIT;
    END;
    The paramers that i am passing while executing the procedure are as follows;
    mstring = '20052,20051'
    mconditions = (CTY_Code='IN' and (((bd_forcd='IN' and ALC_Code in ('11','21','31') and bd_councd <>'IN'  and bd_sectcd <>'11') or (bd_forcd<>'IN' and ALC_Code in ('11','21','31') and bd_councd <>'IN' )))) or ((CTY_Code<>'IN' and  CTY_BIS_REPORTING_CBS='Y') and ALC_Code in ('11','21','31')  and bd_councd=CTY_Code) or ((CTY_Code<>'IN' and  CTY_BIS_REPORTING_CBS='N') and ALC_Code in ('11','21','31') and  bd_councd<>'IN'))
    The procedure compiled successfully. but while executing the procedure I got
    missing right parenthesis error.
    The parametr mconditions that I passed is as follows;
    '(CTY_Code=''IN'' and (((bd_forcd=''IN'' and ALC_Code in (''11'',''21'',''31'') and bd_councd <>''IN''  and bd_sectcd <>''11'') or (bd_forcd<>''IN'' and ALC_Code in (''11'',''21'',''31'') and bd_councd <>''IN'' )))) or ((CTY_Code<>''IN'' and  CTY_BIS_REPORTING_CBS=''Y'') and ALC_Code in (''11'',''21'',''31'')  and bd_councd=CTY_Code) or ((CTY_Code<>''IN'' and  CTY_BIS_REPORTING_CBS=''N'') and ALC_Code in (''11'',''21'',''31'') and  bd_councd<>''IN'')'
    please help me.
    Thanks In advance.

    DBMS_OUTPUT.Put_Line has its limitations. You can't
    just use it to print out v_strvar:
    DBMS_OUTPUT.Put_Line(v_strvar);
    ORA-20000: ORU-10028: line length overflow, limit of
    255 chars per lineNot in 10g ;)
    SQL> declare
      2    mytext varchar2(2000) := RPAD('0',2000,'1');
      3  begin
      4    dbms_output.put_line(mytext);
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on
    SQL> /
    011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    11111111111111111111
    PL/SQL procedure successfully completed.
    SQL>

  • Would you plz tell me where i am wrong using JasperReports?

    Hi everybody!
    I use JasperReports to create a simple report
    here is the code:
    public class TestReport {
         private class TestObject{
              String text = "";
             public TestObject(String text){
                  this.text = text;
             public String getText(){
                  return this.text;
             public void setText(String text){
                  this.text = text;
         public TestReport() {
         public static void main(String[] args) {
              TestReport t = new TestReport();
              HashMap<String, TestObject> myParams = new HashMap<String, TestObject>();
              myParams.put("id", t.new TestObject("id"));
              try{
                   JasperReport jasperReport =
                        JasperCompileManager.compileReport("reports/test.xml");
                   JasperPrint jasperPrint = JasperFillManager.fillReport(
                             jasperReport,
                             myParams,
                             //new HashMap(),
                             new JREmptyDataSource());
                   JasperExportManager.exportReportToPdfFile(jasperPrint,
                             "reports/test.pdf");
              catch (JRException e){
                   e.printStackTrace();
              /*String dirname = "d:/temp/";
            String filename = "simple.pdf";
            try {
                Runtime rt=Runtime.getRuntime();
                Process pr=rt.exec("c:/Program Files/Adobe/Acrobat 7.0/Reader/AcroRd32.exe " + "\"" + dirname + filename + "\"" );
            catch (Exception e) {
    }

    No, it's your job to identify the problem. Are you getting compiler errors? If so, what are they? Or are you getting run-time exceptions? If so, what are they and what does the stack trace say? Or does the code not do what you wanted it to do? If so, what did you want it to do and what does it do instead?
    And I believe you will find JasperReports has its own forum where you can ask questions, once you have formulated a question.

  • Recently purchased a Lacie Rugged Harddrive yet im struggling to move data from my macpro to the harddrive anybody know where im going wrong?

    After purchasing a lacie drive Im struggling to move data and drop it onto my rugged external harddrive........................infact it wont do it atall?? is there a way of formatting the drive on my mac so it works or is the external hardrive not so rugged afterall??

    Heollo there, first of all plug the disk to a free working port on your Mac (I suppose it's USB2). Then, check if it mounts on the desktop. If not, launch Disk Utility: on the left, you should see the external drive along the startup disk.
    Careful! There is a device tree for each disk! Top: device. Lower: formatted volume.
    You select the top disk icon and select "Partition". Reformat the disk as GUID partition scheme. As a disk format, go for "Mac OS Extented (Journaled)". Let the Mac erase the drive and - at last - it should mount on the desktop.
    If the Mac does not let you erase the disk, or should you not be able to even see the device, launch System Information and check that the disk is being seen by Mac OS X (under USB or FireWire, depending on how you plugged the disk).
    Let us know how it goes.

  • How to create an array object?(where am I wrong?)

    Output window tell :
    java.lang.NullPointerException
    at Class.main(Class.java:5)
    Exception in thread "main"
    here is the source code:
    public class Class {
    public static void main (String s[]){
    Book[] theFirst =new Book[3];
    theFirst[2].getNum();
    theFirst[2].getIsHere();
    theFirst[2].out();
    theFirst[2].getIsHere();
    theFirst[2].in();
    theFirst[2].getIsHere();
    class Book{
    private int num=0;
    String bookName,auName,pageNumber;
    private boolean isHere =true;
    Book(){
    num++;
    void getNum(){
    System.out.println("������������ "+num);
    void getIsHere(){
    System.out.println("��������? "+isHere);
    void out(){
    isHere=false;
    void in(){
    isHere=true;
    }

    You just allocated the array..but need to create Book Object
    Add this line of code, compile and run it...
    theFirst[2] = new Book();
    Manikandan
    Source Code
    public class Class {
    public static void main (String s[]){
    Book[] theFirst =new Book[3];
    theFirst[2] = new Book();
    theFirst[2].getNum();
    theFirst[2].getIsHere();
    theFirst[2].out();
    theFirst[2].getIsHere();
    theFirst[2].in();
    theFirst[2].getIsHere();
    class Book{
    private int num=0;
    String bookName,auName,pageNumber;
    private boolean isHere =true;
    Book(){
    num++;
    void getNum(){
    System.out.println("������������ "+num);
    void getIsHere(){
    System.out.println("��������? "+isHere);
    void out(){
    isHere=false;
    void in(){
    isHere=true;

  • Linking Form to a report ----- Please tell me where i am wrong

    I have followed the steps as mentioned in the following forum
    Re: Danger in using commitAndResume?
    Can anyone tell me why this code is not working. Please.
    Declare
    mProject_Id NUMBER;
    Rep_Url Varchar2(2000);
    begin
    mProject_Id := p_session.get_value_as_number(
    p_block_name=> 'DEFAULT', p_attribute_name=> 'A_PROJECT_ID');
    Rep_url := 'http://m2s-fisoracle01.mlgw.org/pls/portal/CIADBA.RPT_RESOURCE_REQUEST.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=25&p_arg_names=_portal_max_rows&p_arg_values=25&p_arg_names=PROJECTID&p_arg_values=49';
    PORTAL.wwa_app_module.set_target(Rep_url,'CALL');
    end;
    When I click the button i get the following error
    Error: (WWV-00000) without opening the actual report window.
    Also the address window shows the following
    http://m2s-fisoracle01.mlgw.org/pls/portal/!PORTAL.wwa_app_module.accept

    Hi,
    Your code seems to be fine. Looks like there is some problem with your report. Are you able to run the report
    independantly?
    Please try a simple one with department like this. It works fine for me.
    Declare
    mdeptno NUMBER;
    Rep_Url Varchar2(2000);
    begin
    mdeptno := p_session.get_value_as_number(
    p_block_name=> 'DEFAULT', p_attribute_name=> 'A_DEPTNO');
    Rep_Url :=
    'http://toolsweb.us.oracle.com:2000/pls/mb/MYBUGS_DEMO.NEW_TEST_RPT.show?p_arg_names=department&p_arg_values='||mdeptno;
    MYBUGS.wwa_app_module.set_target(Rep_url,'CALL');
    end;
    This code I have entered in the success section of the form.
    If even this does not work, then there is a problem in your build.
    Thanks,
    Sharmila

  • Hi All, Please let me where I am wrong?

    Please Use Meaningful Subject In Future
    Hi All,
    I am validating parameters in selection screen but getting stuck?
    Please make it correct ..
    AT SELECTION-SCREEN.
    AT SELECTION-SCREEN ON p_werks.
    Validating the PLANT
      PERFORM validate_werks.
    AT SELECTION-SCREEN ON p_matkl.
    Validating the MATERIAL GROUP .
      PERFORM validate_matkl.
    AT SELECTION-SCREEN ON p_matnr.
    Validating the MATERIAL.
      PERFORM validate_matnr.
      IF p_matkl IS INITIAL AND p_matnr IS INITIAL.
        MESSAGE e531(0u) WITH 'Please Enter either material or material group'.
      ELSEIF p_matkl IS NOT INITIAL AND p_matnr IS NOT INITIAL.
        MESSAGE e531(0u) WITH 'Please Enter either material or material group'.
      ENDIF.
    Thanks
    Steve
    Edited by: Matt on Jul 15, 2009 10:57 AM

    Hi,
    IF p_matkl IS INITIAL AND p_matnr IS INITIAL.
    MESSAGE e531(0u) WITH 'Please Enter either material or material group'.
    ELSEIF p_matkl IS NOT INITIAL AND p_matnr IS NOT INITIAL.
    MESSAGE e531(0u) WITH 'Please Enter either material or material group'.
    ENDIF.
    You are giving the same message even if they are initial and even if they are not initial. Check this once.
    Else try like this:
    AT SELECTION-SCREEN.
    AT SELECTION-SCREEN ON p_werks.
    * Validating the PLANT
    AT SELECTION-SCREEN ON p_matkl.
    IF p_matkl IS NOT INITIAL.
    ELSE.
    MESSAGE 'Your message' TYPE 'E'.
    ENDIF.
    AT SELECTION-SCREEN ON p_matnr.
    IF p_matnr IS NOT INITIAL.
    ELSE.
    MESSAGE 'Your message' TYPE 'E'.
    ENDIF.
    Thanks,
    Sri.
    Edited by: Sri on Jul 15, 2009 1:06 PM

  • Where i am wrong in this code

    WHEN 'PRINT'.
          WRITE : 'There is No Data Available'.
          leave to list-processing and return to  screen 100.
    once i am in list i want back to main screen how i will proceed

    Hi,
    start-of-selection.
    WHEN 'PRINT'.
    WRITE : 'There is No Data Available'.
    leave screen .
    leave to list-processing and return to screen 100.
    Regards,
    pravin
    Edited by: pravin s. on Jul 21, 2009 2:04 PM

Maybe you are looking for

  • PrintToPrinter, ExportToDisk Problem

    Hello, I am using Crystal Reports 2008 inside VS2005 and I wanna get the report in PDF format. The first thing i tried was exporting the report using the ExportToDisk function. It works ok, but the fonts of the PDF generated werent the same as the fo

  • How to (grep) similar words ending or not in s?

    The idea is to recognize identical words like: car /cars house/houses, etc. Could not solve with look-behinds, etc.

  • Excise rate

    Hi, when i create a PO ,there is 16% of BED is maintained in table,so calculation is only based on this rate.But MIGO is done after 1st april At that time Rate is maintianed 14%(PART 1 is not maintained) But now invoice is coming with all duties calc

  • Which network effective route for KM repository ?

    Our portal (Knowledge Management) server is located (at Location A) physically far apart  from our remote offices (Location B) due to which we are concerned of network bandwidth, latency delays while accessing huge files of 40 / 60MB from a DB reposi

  • Transparent pic has white background

    im using this          try { Image image = (Toolkit.getDefaultToolkit().getImage(new URL("http://scapeserver.nationvoice.com/2.png")));           anIntArray1439 = new int[anInt1440 * anInt1441];           PixelGrabber pixelgrabber               = new