Insert problem

hi guys,
        i want to insert the data into sap r/3 table..via jco using bapi
         here is the program...., but data is not found in the sap table...
         any wrong in my program ?...
         they given some data to insert into sap table
         import parameters,table rows.... i shown in the below program.(exact information i set )
       IFunctionTemplate ftemplate = repository.getFunctionTemplate("ZHR_INFOTYPE_OPERATION");
           if(ftemplate != null) {
        // Create a function from the template
       JCO.Function function = ftemplate.getFunction();
       JCO.ParameterList paralist=function.getImportParameterList();
                         paralist.setValue("11","PERNR");
                         paralist.setValue("INS","ACTIO");
                         paralist.setValue("A","TCLAS");
                         paralist.setValue("20071213","BEGDA");
                         paralist.setValue("20071213","ENDDA");
                         paralist.setValue("1","OBJPS");
                         paralist.setValue("LTA","SUBTY");
                         client.execute(function);  //executing the function.
                   JCO.Table sales_orders = function.getTableParameterList().getTable("PROPOSED_VALUES");
                         sales_orders.appendRows(3);
                          System.out.println("after function"+sales_orders.getNumRows());
                         for(int i=0;i<sales_orders.getNumRows();i++)
                                 sales_orders.setValue("0582","INFTY");
                                 sales_orders.setValue("P0582-AMTEX","FNAME");
                              sales_orders.setValue("200.00","FVAL");
                              sales_orders.nextRow();
                              sales_orders.setValue("0582","INFTY");
                              sales_orders.setValue("P0582-JBGDT","FNAME");
                              sales_orders.setValue("20071213","FVAL");
                              sales_orders.nextRow();
                              sales_orders.setValue("0582","INFTY");
                              sales_orders.setValue("P0582-JENDT","FNAME");
                              sales_orders.setValue("20071213","FVAL");
                    JCO.Table sales_orders1 = function.getTableParameterList().getTable("MODIFIED_KEYS");
                             sales_orders1.setRow(1);
                             sales_orders1.appendRow();
                           sales_orders1.setValue("11","PERNR");
                           sales_orders1.setValue("0582","INFTY");
                           sales_orders1.setValue("LTA","SUBTY");
                           sales_orders1.setValue("1","OBJPS");
                           sales_orders1.setValue("20071213","BEGDA");
                           sales_orders1.setValue("20071213","ENDDA");
             System.out.println("modified"+sales_orders1.getNumRows());
             System.out.println("modified"+sales_orders.getNumRows());
    OUTPUT: in my console it showing it appended...
                  but that record is not present in the sap r/3 table
                  when abapers are checking that record...

hi,
this is a custom functiion module  which is  a rfc
here record is not inserting in the sap r/3 table
what is the problem?
i got the ouput like this......
MODIFIED_KEYS
PROPOSED_VALUES
IMPORT         ACTIO
IMPORT         BEGDA
IMPORT         DIALOG_MODE
IMPORT         ENDDA
IMPORT         LUW_MODE
IMPORT         MASSN
IMPORT         NO_ENQUEUE
IMPORT         NO_EXISTENCE_CHECK
IMPORT         OBJPS
IMPORT         PERNR
IMPORT         PERSG
IMPORT         PERSK
IMPORT         PLANS
IMPORT         SEQNR
IMPORT         SPRPS
IMPORT         SUBTY
IMPORT         TCLAS
IMPORT         WERKS
EXPORT          HR_RETURN
EXPORT          RETURN
EXPORT          RETURN1
NO OF ROWS ARE:---3
THE COLUMNS IN THE TABLE ARE:--4
INFTY:     0582
FNAME:     P0582-AMTEX
FVAL:     200.00
SEQNR:     00
INFTY:     0582
FNAME:     P0582-JBGDT
FVAL:     20061215
SEQNR:     00
INFTY:     0582
FNAME:     P0582-JENDT
FVAL:     20061215
SEQNR:     00
PERNR:     00000011
INFTY:     0582
SUBTY:     LTA
OBJPS:     1
SPRPS:     
ENDDA:     2006-12-15
BEGDA:     2006-12-15
SEQNR:     000

Similar Messages

  • Update/Insert Problem with Oracle Warehouse Builder

    Hello,
    i have update/insert problem with owb.
    Situation: I have a source-table called s_account and a target table called w_account_d. In the target table are already data which was filled trough the source table inserts. Now anyone make changes on data on the target table. This changes should now give further on the source table with an update operation. But exactly here is the problem i can´t map back the data to source because that will create a loop.
    My idea was to set a trigger but i can´t find this component in owb or is anywhere hidden?
    Also i have already seen properties as CDC or conditonal loading in the property inspector of the table, but i have no idea how it works.
    Give it other possibilities to modeling this case? or can anyone me explain how i can implement this eventually with CDC?
    I look forward for your replies :)

    Hi
    thanks for your answer. I follow your suggestion and have set the constraints of both tables into the database directly.Nevertheless it doesn´t work to begin. In the next step i found by right click on a table the listpoint "configure" - I goes to "unique key" --> creation method and set here follow options: Constraint State = ENABLE, Constraint Validation = Validate. That error message that appears before by the deployment disappears yet. Now i start the job to test if the insert/update process works right. Finally it seems to work - but not really.
    My Testscenario
    1. Load the data from source table about the staging area to data warehouse table: Check - it works!
    2. Change one data record in source table
    3. Load the source table with changed data record once again to staging area: Check - it works!
    4. Load new staging area table with the changed data record to data warehouse table: Check it works! BUT, BUT i can not recognize if it is insert or update operation, then under the design window by jobs execution windows is reported "rows selected 98", Rows inserted" is empty and "rows updated" is empty. So i think works not correct, then my opinion if it works correct it should show be "rows updated" 1.
    What can yet now still be wrong or forgotten? Any ideas?
    *By the way think not 98 rows there is not important if you make an update or insert which performance. It is an example table the right tables have million of records.*
    I look forward for your answers :)

  • CRUD insert problems.

    Hello all,
    I was wondering about DB operations in JSF pages, so I took a look over the Single Page CRUD example. What hitted me was there is a need for a two step insertion, first by issuing a select in search for the biggest ID of the primary key, and after that the insertion of the element with that obtained biggest ID + 1. I see at least 2 problems with this approach:
    1. Concurrency issues.What happends if 2 users are issuing at the same time an insert operation over the same table? There is the possiblity of getting the same ID to insert, and the first one could insert, but the second one would fail even if it's request is logically corect (validated & converted). I see three solutions over the insert problem:
    a. lock on the database (if it's possible).
    b. using a synchronized block in the application bean to get the ID and insert.
    c. using DB specific constructs (e.g. MySQL's AUTO_INCREMENT)
    2. Overhead issues. Why doing in two steps an operation that should be just an insert? Previous a. an b. approaches do not solve our overhead problem, because we still have two steps in insertion; we only synchronize them.
    I was wondering which is the best practice for production quality web applications. Personally because I've picked MySQL as DB I've used AUTO_INCREMENT, but the immediate huge and obvious drawback is dumping DataProvider's capability of changing the storage medium at a glance.

    I'm not sure if I entirely understood your questions here.
    - Concurrency problem.
    database bound Data provider underneath uses CachedRowset, which uses SyncProvider to take care of concurrency problem. If the default RIOptimisticProvider is not enough, it possible to register other more sophisticated SyncProvider.
    You can read about it here.
    http://java.sun.com/j2se/1.5.0/docs/api/javax/sql/rowset/CachedRowSet.html
    - Overhead issue
    I believe, it is possible to let the DB auto increment the primary key field, and left it out in the insertion from data provider.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • User defined field insertion problem in Stock Taking Report (PLD)

    We are creating one PLD for one of our customer for Stock Taking Report by modifying the existing sytem report. We will insert two user defined fields (Rack & Bin) from OITW table and link these with the warehouse code field which is at report header as there are different warehouse for the item and material is kept in different rank and bin in different warehouse. But after inserting these fields we found that repetative area becomes blank in the report.
    So please let us know how to overcome this problem.
    Thanks & with regards.
    Aloke
    Edited by: ALOKE BANDYOPADHYAY on Sep 4, 2010 4:42 PM

    Hi Aloke,
    This PLD is one of the hard coded PLD. You are not able to add UDF freely. I believe you may only add UDF from OITM table. Try you own report instead.
    Thanks,
    Gordon

  • Insert problem using a SELECT from table with a index by function TRUNC

    I came across this problem when trying to insert from a select statement, the select returns the correct results however when trying to insert the results into a table, the results differ. I have found a work around by forcing an order by on the select, but surely this is an Oracle bug as how can the select statements value differ from the insert?
    Platform: Windows Server 2008 R2
    Oracle 11.2.3 Enterprise edition
    (I have not tried to replicate this on other versions)
    Here are the scripts to create the two tables and source data:
    CREATE TABLE source_data
      ID                 NUMBER(2),
      COUNT_DATE       DATE
    CREATE INDEX IN_SOURCE_DATA ON SOURCE_DATA (TRUNC(count_date, 'MM'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120101', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120102', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120103', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120201', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120202', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120203', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120301', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120302', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120303', 'YYYYMMDD'));
    CREATE TABLE result_data
      ID                 NUMBER(2),
      COUNT_DATE       DATE
    );Now run the select statement:
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM')You should get the following:
    1     2012/02/01
    1     2012/03/01
    1     2012/01/01Now insert into the results table:
    INSERT INTO result_data
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM');Select from that table and you get:
    1     2012/03/01
    1     2012/03/01
    1     2012/03/01The most recent month is repeated for each row.
    Truncate your table and insert with the following statement and the results should now be correct:
    INSERT INTO result_data
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM')
    ORDER BY 1, 2;If anyone has encountered this behavior before could you please let me know, I can't see that I am making a mistake as the selects results are correct they should not differ from what is being inserted.
    Edited by: user11285442 on May 13, 2013 5:16 AM
    Edited by: user11285442 on May 13, 2013 6:15 AM

    Hi,
    welcome to the forum. I cannot reproduce the same behavior.
    Could you please post the SQLPlus output while executing all commands, like it has been done by S10390?
    Also post the output of the following command:
    SELECT * FROM v$version;When you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Formatted code is easier to read.
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Report designer - inserting problem

    hi,
    we want to use report designer for formatting reports. When we insert
    query to report then following error occurs: internal error
    ID: E-CREATEFROMQUERY and message: reference to object is not set to
    instance of the object. When I go through this errors and execute
    this report to web I get this error: Web Item Report error: Tag "band"
    with name "footer1": Tag "keyfigure": Nested tag "y" must not
    be empty. Have you any solution for this problem?
    Thanx

    Hi,
    I mean frontend SP 12 (is already released). You can stay on your SPS in ABAP, Java. Frontend is compatible with older backend.
    Regards, Karol

  • An insert problem

    hi
    i am inserting in a table values like-----
    insert into tab1(col1) values(seq.nextval);
    my col1 of tab1 is of varchar2(20) datatype and seq is a sequence.
    now an error is coming
    PL/SQL: ORA-00984: column not allowed here
    why??

    does not look like any error here...
    14:14:07 SQL> CREATE TABLE tab1 (col1 VARCHAR2(20));
    Table created.
    Elapsed: 00:00:00.00
    14:14:20 SQL> CREATE SEQUENCE seq START WITH 1 INCREMENT BY 1;
    Sequence created.
    Elapsed: 00:00:00.00
    14:14:46 SQL> INSERT INTO tab1(col1) VALUES(seq.NEXTVAL);
    1 row created.
    Elapsed: 00:00:00.00
    14:15:06 SQL> SELECT * FROM tab1;
    COL1
    1
    Elapsed: 00:00:00.00
    14:15:13 SQL> INSERT INTO tab1(col1) VALUES(seq.NEXTVAL);
    1 row created.
    Elapsed: 00:00:00.00
    14:15:22 SQL> SELECT * FROM tab1;
    COL1
    1
    2
    Elapsed: 00:00:00.00can you give more details about your problem, desc of your table, name of the sequence etc...

  • Database insertion problem

    Hello,
    I was wondering how to solve a problem at inserting new rows in a mysql database. I have a table named employees and one named addresses. In order to link an address to an employee I use an address_id at the employee table. Though, the addresses table is also used by so many other tables. The problem is that every time I insert an employee to the database (and therefore an address) I need to know the address_id so that I can insert it into the proper column in the employee row. The address_id is autonumerical. One solution I thought was to query the addresses table before the insertion to get the next address_id. Then use that number in the employees table. Though, I imagine that when the web applications is used by a large number of people at the same time, there are going to be some concurrency problems.
    What can be a better solution?
    Is there a better data model I could use for this matter?
    I hope I made myself clear in my writing,
    Thank you,
    Alfredo Fern�ndez A.

    Typically you do the followng.
    1. Start a transaction.
    2. Insert address - which also returns the id of the insertion.
    3. Insert the employee.
    4. Commit the transaction.
    Step 2 depends on what specific database you are using.
    It can also depends on the business rules for an address.

  • Multiple record insert problem in Oracle Procedure that uses a cursor

    Dear X-pert guies,
    I have a oracle procedure that use a cursor, I repeatedly make query on 1st table using cursor value and insert that queried value(of 1st table) to 2nd table
    y_summary. y_summary has composite  primary key :PK_Y_SUM (BILL_DATE, TRUNK_MGR, IDD_FLAG, PK_FLAG, PREFIX).*
    when i run the procedure explicit2('201001'); the it gives me the error:::: begin explicit2('201001'); end;_
    ORA-00001: unique constraint (PRM.PK_Y_SUM) violated_
    ORA-06512: at "PRM.EXPLICIT2", line 413_
    ORA-06512: at line 1_
    but when i remove the composite primary key from y_summary table then, the procedure runs ok and make so many duplicate entries in y_summary.
    but i want the single record  to be inserted for single time in y_summary ,so You guies are honorly requested to make the required help .
    the structure of y_summary Table and Procdure code is given below.
    Table:
    -- Create table
    create table Y_SUMMARY
    BILL_DATE VARCHAR2(10) not null,
    TRUNK_MGR VARCHAR2(20) not null,
    IDD_FLAG VARCHAR2(10) not null,
    PK_FLAG NUMBER(2) not null,
    OUTCALLS NUMBER(20,2),
    OUTDUR NUMBER(20,2),
    PREFIX VARCHAR2(10) not null
    tablespace TBS_PRM_D01
    pctfree 10
    pctused 40
    initrans 1
    maxtrans 255
    storage
    initial 64K
    minextents 1
    maxextents unlimited
    -- Create/Recreate primary, unique and foreign key constraints
    alter table Y_SUMMARY
    add constraint PK_Y_SUM primary key (BILL_DATE, TRUNK_MGR, IDD_FLAG, PK_FLAG, PREFIX)
    using index
    tablespace TBS_PRM_D01
    pctfree 10
    initrans 2
    maxtrans 255
    storage
    initial 64K
    minextents 1
    maxextents unlimited
    Procedure:
    create or replace procedure explicit2( month_val in varchar2) is
    cursor explicit_cur is select dest_code from y_table where dest_code like '44%' order by dest_code desc;
    dummy varchar2(100);
    lv_length Number(9);
    sqlstr varchar2(2500);
    rec_count1 number;
    rec_count2 number;
    rec_count3 number;
    begin
    open explicit_cur;
    LOOP
    fetch explicit_cur into dummy;
    EXIT WHEN explicit_cur%NOTFOUND;
    rec_count1 :=0;
    rec_count2 :=0;
    rec_count3 :=0;
    lv_length := length(dummy);
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count1;
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'',
    ''ITAX1B'',''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count2;
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'',
    ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count3;
    if(rec_count1>0) then
    sqlstr := 'insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||' ,substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''00'',''1'' from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||''''|| ' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if ;
    if(rec_count2>0) then
    sqlstr :='insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||' ,substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''00'',''0'' from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if;
    if(rec_count3>0) then
    sqlstr :='insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||',substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''012'',''0'' from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if;
    end loop;
    close explicit_cur;
    end explicit2;
    Edited by: user10951541 on 25.4.2010 12.08

    Dear concern
    Really sorry not to make format listing because i am amature to this blog.
    my anwser to your way .
    1. I have Tested my SQL statements manually in SQL*Plus. this runs ok
    2. "Cursor loops, such as the one you have coded here, have been obsolete in Oracle since version 8i 12+ years ago.
    Look up BULK COLLECT and FORALL in the docs and use them instead."
    I am trying to make use of the BULK COLLECT and FORALL statement in proper location.
    3. "Your procedure never performs a commit so no work actually takes place" i need to get the anwser why........................?
    4. "On what basis was the decision made to use the default PCTFREE and PCTUSED values of 10 and 40?"
    is there any problem if default is used..? if any suggestion........pls
    5." You did not format your listing using the CODE tags as explained in the FAQ making your listing unreadable ... so I've not read it.
    Please read the FAQ and use the proper way to post code so we can understand it. Then perhaps we can help you further. " really sorry not to make understandable to you..? but i will try from next post..
    I really will try to be synced..
    My aim is to make query to Table A using the cursor value like( '4422','442','4411','441','44') and get some data in accordance of these values.Then i put the data into another Table B. same time i need to delete the record from Table A containing the prefix value in accordance for example- i compute value for '4422' from Table A and put the computed value to Table B .Then i delete the record from Table A where prefix is '4422' .so that computed value for the next prefix '442' should contain the computed value for 442[0-1] and 442[3-9] .Same way it will be happened for ('4411','441','44'....bla...bla).
    Thanks in advance..

  • XML insert problem

    Hi,
    I am trying to insert an xml ducument into table.
    But because of quotation i the file is not getting inserted.
    here is the Insert statement
    INSERT INTO MYTABLE3
    VALUES(' <catalog>
         <book >
    <author>Gambardella, Matthew</author>
    <title>XML Developer's Guide</title>
    <genre>Computer</genre>
    <price>44.95</price>
    <publish_date>2000-10-01</publish_date>
    <description>An in-depth look at creating applications
    with XML.</description>
    </book>
    </catalog>'
    The following line causing the error
    <title>XML Developer's Guide</title>
    can anybody tell me how to solve this problem.
    cheers
    RRK

    Simply escape it with another single-quote inside the main content.
    For example, try
         SELECT 'New Year''s Day' FROM dual;
    Hope this helps
    Gajanan

  • Disc Insertion Problem

    Has anyone noticed that inserting a disc into the iMac drive can become difficult after a couple of years of use?  At first I thought there was a disc in the drive that wouldn't mount or eject, but the drive turned out to be empty.  Insertion, however, required moderate force, as if part of the internal drive mechanism was resisting.  Is this a problem in the making?  Should I have it checked out by a certified technician before anything gets worse?  I've never experienced this before.  (I sure miss that reassuring pinhole!)

    Try a commercial DVD head cleaner you insert to DVD drive.
    google" DVD head cleaner"

  • Text insertion problem with 'Share' applications

    When I add photos to an email in iPhoto (9.3) using the templates and try to insert text, the "insert your message here" dialogue cannot be removed and my text sustituted.  Also the same situation in the book and card creation programs. This is just a recent development. Any ideas?   

    Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If it doesn't then you current library is the culprit.
    In that case  make a temporary, backup copy of your library if you don't already have one (Control-click on the library and select Duplicate from the contextual menu) and  apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    You might consider using Mail as your email client instead of iPhoto.  Mail has photo stationary similar to iPhoto's themes and is easier to add multiple addresses and provides a Sent copy.
    OT

  • Insertion problem in Wordpress

    HI !
    when i give my edge-made banner to a developper in order to insert it in a wordpress blog, i have a unexpected trouble : under every banner, 1 big ugly empty space, pushing away the other elements of the site… a kind of margin below ?
    Any idea ?
    So my developper wants me to re-create my banner in a gif or flash format…
    Thanks for your help.
    Eric

    I need to see the css to understand why there is this kind of behavior, but i don't think that it's an edge problem.
    Hi,
    J

  • Insertion problem .... plzzzzzzzzzzz help

    I have a jsp page code below mentioned...
    This jsp page retrieved values from a html files, which is shown as bold.
    my problem is that i cannot insert the values in database.plzz help me...
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <%@ page import =" java.sql.Date.*" %>
    <%@ page import =" java.text.SimpleDateFormat.*" %>
    <%@ page import =" java.util.Date.*" %>
    <%@ page import =" java.text.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page language="java" import="java.sql.*" %>
    <%
         String     Security_No, Category_code,Face_Value, Purchase_Value,Interest_Paid,Interest_Received,Brokrage,Total_Value,Voucher_No,Voucher_Date,Voucher_Amt,D_Date1,D_Date2,Ledger_No,Maturity_Date,sql1 ;
         java.util.Date voudate_temp=null;
         java.util.Date duedate1_temp=null;
         java.util.Date duedate2_temp=null;
         java.util.Date matdate_temp=null;
         ResultSet results;
         PreparedStatement sql;
    try {
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection conn=DriverManager.getConnection("jdbc:odbc:pf","scott","ttlscott");
         System.out.println("got connection");
              try
                   SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
                   format.setLenient(false);
                   int     sec_no, catg_code,face_val,pur_val,int_paid,int_recd,brkr,tot_val,vou_amt;
                   String vou_no, lf_no;
                   java.sql.Date vou_date, due_date1, due_date2,mat_date;
                   boolean     doneheading = false;
                   Statement s=con.createStatement();
              Security_No = request.getParameter("secno");
              Category_code = request.getParameter("catcode");
              Face_Value = request.getParameter("facevalue");
              Purchase_Value = request.getParameter("purvalue");
              Interest_Paid = request.getParameter("intpaid");
              Interest_Received = request.getParameter("intrecvd");
              Brokrage = request.getParameter("brokrage");
              Total_Value = request.getParameter("tvalue");
              Voucher_No = request.getParameter("vouno");
              Voucher_Date = request.getParameter("voudate");
              Voucher_Amt = request.getParameter("vouamt");
              D_Date1 = request.getParameter("due1");
              D_Date2 = request.getParameter("due2");
              Ledger_No = request.getParameter("lfno");
              Maturity_Date = request.getParameter("maturity");          
              sql1 = "insert into sec_mast values (" + "'" + Security_No + "', '" Category_code "' , '" + Face_Value + "', '" + Purchase_Value + "', '" + Interest_Paid + "', '" + Interest_Received + "', '" + Brokrage + "', '" + Total_Value + "', '" + Voucher_No + "', #"+ Voucher_Date+ "# , '" + Voucher_Amt + "', #" + D_Date1 + "#, #" + D_Date2 + "#, '" + Ledger_No + "', #" + Maturity_Date + "#)" ;
              s.executeUpdate(sql1);               
                   sql = con.prepareStatement("SELECT * FROM sec_mast WHERE sec_no = '" + Security_No + "' ");
                   results = sql.executeQuery();
                   while(results.next())
                        if(! doneheading)
                             doneheading = true;
    sec_no = results.getInt("sec_no");
    catg_code= results.getInt("catg_code");
    face_val = results.getInt("face_val");
    pur_val = results.getInt("pur_val");
    int_paid= results.getInt("int_paid");
    int_recd = results.getInt("int_recd");
                        brkr = results.getInt("brkr");
    tot_val= results.getInt("tot_val");
                        vou_no = results.getString("vou_no");
                        voudate_temp = results.getDate("vou_date");
    vou_amt = results.getInt("vou_amt");
                        duedate1_temp = results.getDate("due_date1");
    duedate2_temp= results.getDate("due_date2");
    lf_no= results.getString("lf_no");
         matdate_temp = results.getDate("mat_date");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   vou_date = sdf.format(voudate_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   due_date1 = sdf.format(duedate1_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   due_date2 = sdf.format(duedate2_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   mat_date = sdf.format(matdate_temp);
    out.println("<BODY bgColor=blanchedalmond text=#008000 topMargin=0>");
    out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia > <BIG>SECURITY INFORMATION</BIG></FONT></P>");
    out.println("<P align=center>");
    out.println("<TABLE align=center border=1 cellPadding=1 cellSpacing=1 width=\"75%\">");
    out.println("<TR>");
                        out.println("<TD>Secuirty No.</TD>");
    out.println("<TD>Category Code</TD>");
    out.println("<TD>Face Value</TD>");
    out.println("<TD>Purchase Value</TD>");
                        out.println("<TD>Interest Paid</TD>");
                        out.println("<TD>Interest Recieved</TD>");
    out.println("<TD>Brokrage Value</TD>");
    out.println("<TD>Total Value</TD>");
    out.println("<TD>Voucher No.</TD>");
    out.println("<TD>VOucher Date</TD>");
                        out.println("<TD>VOucher Amount</TD>");
    out.println("<TD>Due Date 1</TD>");
                        out.println("<TD>Due Date 2</TD>");
    out.println("<TD>L F No.</TD>");
                        out.println("<TD>Maturity Date</TD>");
                        out.println("<tr><td>" + sec_no);
                        out.println("<td>" + catg_code);
                        out.println("<td>" + face_val);
                        out.println("<tr><td>" + pur_val);
                        out.println("<td>" + int_paid);
                        out.println("<td>" + int_recd);
                        out.println("<tr><td>" + brkr);
                        out.println("<td>" + tot_val);
                        out.println("<td>" + vou_no);
                        out.println("<tr><td>" + vou_date);
                        out.println("<td>" + vou_amt);
                        out.println("<td>" + due_date1);
                        out.println("<tr><td>" + due_date2);
                        out.println("<td>" + lf_no);
                        out.println("<td>" + mat_date);
                   if(doneheading)
                        out.println("</table>");
                   else
                        out.println("<BODY bgColor=blanchedalmond text=#FF0000 topMargin=0>");
                        out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia ></FONT></P>");
    out.println("<P align=center>");
                        out.println("No matches for " + Security_No);
                   }catch(ParseException e) {
    out.println("do date format error action.<br>");
              catch (SQLException s)
                   out.println("<BODY bgColor=blanchedalmond text=#FF0000 topMargin=50>");
                        out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia ></FONT></P>");
    out.println("<P align=center>");
                   out.println("Duplicate Entry.Try another Security Code No.<br>");
              catch(ParseException e) {
              out.println("do date format error action.<br>");
         catch (ClassNotFoundException err)
              out.println("Class loading error");
    %>
    </body>
    </html>

    you should try posting it in the jsp forum.what error/exceptions are you getting if any?

  • Help insert problems

    I am very new to web development and I’m sure
    it’s a simple problem. I keep receiving an error “
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in
    INSERT INTO statement.
    And I can’t figure it out. My database table is
    “CSH” and my fields include “Date, Type, Title,
    URL, Description” any help would be greatly appreciated

    As was said in the two previous replies ...... YOU WILL HAVE
    PROBLEMS WITH RESERVED WORDS.
    Try enclosing your column named DATE in brackets [DATE] or
    easier yet, rename the column. Also, using single quotes (') is
    correct, NOT double quotes ("). Plus, like I said, if your DATE
    column is a date/time column, you will probably need to convert
    your FORM.date variable to a datetime object.
    Phil

Maybe you are looking for

  • List Monitor - Não está atualizando após download do XML

    Pessoal, boa tarde! Estou com a seguinte situação: Ambiente emitindo e recebendo NF-e 2.0 GRC no SP16, utilizando o SVC. Após go-live, verificado que no monitor List and Download após selecionar uma XML e clicar no botão download o mesmo aparentement

  • Code To Update the Table in ECC from Webdynpro

    Hi All, I want to know, the table is dispalyed in the webdynpro browser when we calls the Adaptive RFC Model. after i want to add one more row in the webdynpro and just clicking on add button the row will be updated in the ECC server(backend) for tha

  • Problem in JDBC receiver Updation

    Hi friends,     I am updating the DB using the JDBC receiver adapter. Tell me for the following case updation can be done or not.   key Field       Field1       Field2       A                  X           Y       B                  X         C       

  • Performance problem in 7.6.6.10

    We have a performance problem after doing the update from MaxDB 7.6.6.3 to 7.6.6.10.   The symptom is that querys with the "<>" operator in the WHERE-Clause on a indexed Integer/SmallInteger-column slows down extremly, e.g. "WHERE FILEDNAME <> 1". On

  • Our ipods wont sync purchased music since the itunes update

    After our most recent itunes update, our purchased music doesn't sync with our ipods.  You must click on the song and drag it to the playlist you want.  Also, we are unable to fine a sort feature that shows purchaced music by most recent purchace, on