IPCC Database Insert

Hello everyone,
I have an environment of two servers: CCM 4.X and IPCC 4.0.5
I wish to insert a few records into its SQL DB (in the cdr_records table), these records represents a period where the IPCC server was down.
Although I can insert these records into the DB with no problems.
I want to understand how the IPCC inserts into its DB. I think it would one of either way:
A- It simply looks for the index of last record in the table (i.e. N) then increments and adds to the table at row  (N+1)
B- It has its internal index and simply increments on that.
If it's case B, I'm afraid that it would overwrite other data of other periods.
Really appreciate the response.
Thanks,
Ahmed

What I've done before which seems to have worked ok is just used a negative value for sessionid (since the generated sessionid's are always positive and the column datatype accepts negatives this seems to work ok without having values get overwritten).
Cheers,
Nathan

Similar Messages

  • Error - '.' expected - while database insert thru JSP & javabeans & JDBC

    I get the following error when i try to compile the below mentioned code in JDEVELOPER 10.1.2
    Error : '.' expected
    ===================
    have error in my code. I am trying to do a simple database insert program using javabeans and jsp. I get a value to be inserted in database through the jsp page in a text box and would like to be inserted into database using beans The connection to database and mysql query are in java file.
    Here is the code.
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page language="Java" import="java.sql.*" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <html>
    <head>
    </head>
    <body>
    <form name="form1" action="beancode" method="POST">
    Emp ID: <input type="text" name ="emplid"> <br><br><br>
    <input type = "submit" value="Submit">
    <jsp:useBean id="sampl" class="beancode" scope="page">
    <jsp:setProperty name="sampl" property="*"/>
    </jsp:useBean>
    </form>
    </body>
    </html>
    I know i might have made a mistake here in using the bean. Here is the java code which does the insert part.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    * @author Trainees
    public class beancode
    private String employid;
    private Connection con = null;
    private ResultSet rs = null;
    private PreparedStatement st = null;
    /** Creates a new instance of beancode */
    public beancode()
    try
              Class.forName("org.gjt.mm.mysql.Driver");
              Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
    catch(Exception e)
              System.out.println(e.getMessage());
    public void setemployid(String empid)
              employid = empid;
         public String getemployid()
              return (employid);
    public void insert()
    try
    String s1="insert into samp values('"+employid+"')";
    st = con.prepareStatement(s1);
    st.executeUpdate();
    st.clearParameters();
    st.close();
    catch(Exception m)
    }

    It's pretty hard to spot any errors the way it's currently formatted. But, you're trying to call the beancode when submitting your form, but the beancode isn't a servlet. Try to find a working example, run it, and then change it to implement your requirements.
    The following example shows you have to use the jstl sql tags: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jsps/jstlsql.html. If you want to do an insert when a user submits a form, you need 2 pages. The first will contain your form, the second will insert the record.
    (once you've got that running, look for some examples using an mvc framework, and how to use bind variables with jdbc)

  • Cross Database Insert on rows

    Is there a standard way to insert rows into a table and get the last inserted value for the identity column back ?
    e.g. Oracle does'nt support IDENTITY or AUTONUMBER on insert as a sequence is desired. This creates a huge problem for writing cross database insert code.
    Most of the times the last value inserted for the identity column has to be returned so it can be used in a database transaction.
    Say User wants to insert data into an User table which has the following columns...
    user_id int (PK) Auto generated number
    firstname VARCHAR(20)
    lastname VARCHAR(20)
    In Sybase or SQL Server The user would just call
    insert into User (firstname,lastname) values ('John', 'Doe') and then call select @@identity to get the last value of the PK inserted.
    However in Oracle the insert method first needs to know the name of the sequence from where the value of the PK needs to be obtained. Then it has to use that value to insert row in the table.
    If the sequence is Seq_User
    select Seq_User.nextval from dual and then
    insert into User (user_id,firstname,lastname) values (last_value, 'John', 'Doe')
    Now if a user has written code using JDBC for Sybase and the Database is migrated to Oracle, He has to go changing all his inserts!!!
    Is there a way to write cross database code so that user does not have to worry about changing his code for all the inserts?
    Any help is greatly appreciated.
    Thanks,

    This has been discussed here already.
    As far as I know there is no standard way.
    Maybe you can make an own "standard" solution by doing your logic in a stored procedure which returns the new ID value.
    So you can move all DBMS specific stuff into the stored procedure.
    Of course there's a need of adapting this to each target DBMS.
    Can you reduce the number of needed SPs by making them more generic?
    Very similiar solution - if you like it more - would be to make generic methods, in a base class or interface and overwritten/reimplemented for each target DBMS.
    There could be a good use of inheritance and polymorphism in this task which SPs don't provide (except for those DBMSses who allow Java-coded SPs, but that would be platform dependant again).

  • Flexible database insert

    hi all!
    after hours of trials, searching this forum and others now the very important question: I use the database-connectivity kit with labview 8.5 and want to create a flexible database-insert procedure. I easily want to insert row by row of a 2-dim array, by knowing the specific amount of columns for the chosen table. 
    my idea is: a gui for database-table view and editor function for any table in the database. What I did is, you can currently view each table in the database, change something inside. now i buffer the whole information of the changed table, delete the content in the database and write the changed buffered content back by using the INSERT - VI.
    I always get the error message, that the number of columns is not equal to the number of parameters.I don't want to bring in the code specific information for a table, because my programm should work with any table in the database. 
    ... is there anyone of you, who is able to help me out ? I get crazy by this time ...
    i added the vi in the attachement, unfortunatelly it is  a bit in german/englisch, sorry for that.
    thx a lot !
    energymix
    Attachments:
    tabellen_admin.vi ‏58 KB

    Database will return error if you right any empty string to it and in the code the table is written directly  without  parsing the table string for empty strings.  I suspect that there might be some extra empty cells are there in the table that is creating the problem.  So just parse the entire table for blank spaces -> truncate the entire table to the size the database expects->Update the data in the database.
    Hope this helps.
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • Duplicate messages/database inserts despite XA

    I have a simple test application which reads a single message at a time from WebSphere MQ, calls a tux service to insert into a database and writes an output MQ message (again via a tux service). The app is duplicating database inserts and MQ puts despite it being configured to use XA.
    I am running with AUTOTRAN=Y and can see the XA transactions in the trace.
    If I cause a DB failure (oracle 11g -> dataguard with fast start failover) , the servers exit and are re-started (this appeared to be the best way of cleaning up) however I get duplicates, despite the XA trace implying the global transaction was rolled back:
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ...MQ Read->GPU POC TEST MSG18313<0> <<<<<<MQGET here
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ...................calling <getu>
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: getu started
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: ..Input<GPU POC TEST MSG18313>
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: Conver string
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: .............................getu<GPU POC TEST MSG18313->GPU POC TEST MSG18313>
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: getu complete
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ..returned from getu
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ..calling mqwrite
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ...................calling <mqwrite>
    124530.tuxtestmachine!s_mqwrite.651446.1.0: gtrid x0 x4aec30de x8d3: TRACE:at: { tpservice({"writemq", 0x10, 0x20077930, 22, 0, -2147483648, {0, -2, -1}})
    124530.tuxtestmachine!s_mqwrite.651446.1.0: gtrid x0 x4aec30de x8d3: ...in mqwrite
    124530.tuxtestmachine!s_mqwrite.651446.1.0: gtrid x0 x4aec30de x8d3: +++++Writing to MQ<GPU POC TEST MSG18313><GPU POC TEST MSG18313> <<<This is the MQPUT
    124530.tuxtestmachine!s_mqwrite.651446.1.0: gtrid x0 x4aec30de x8d3: TRACE:at: { tpreturn(2, 0, 0x20077930, 0, 0x0)
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ..insert to database
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ..............Calling dbinsert with <GPU POC TEST MSG18313><21>
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ...................calling <db_insert>
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { /ò!(0x20019b74, 0, 0x0)
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } /ò! = -7
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_open(0x2002035c, 0, 0x0)
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_open = 0
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_start(0x20019b74, 0, 0x0)
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_start = 0
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: ...Calling dbinsert<GPU POC TEST MSG18313>
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: Database failure : ORA-25408: can not safely replay call <<<<As a result of the DB failure
    124640.tuxtestmachine!MQXA.778310.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_rollback(0x200196b4, 0, 0x0)
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_rollback(0x2001a454, 0, 0x0)
    124640.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: !!!Error calling<db_insert><13>
    124640.tuxtestmachine!MQXA.778310.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_rollback = 0 <<<< This looks to me like a succesful rollback by the TMS
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_rollback = -7 <<Resource manage unavailable, DB is still unavailable here
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_open(0x20020c3c, 0, 0)
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_open = 0
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_rollback(0x2001a454, 0, 0x0)
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_rollback = 0
    $
    Anyone with any ideas as to where I go from here ? Your time is much appreciated.
    Thanks.

    Hi Dan,
    Thanks for the question.
    Currently the Messaging Pattern implementation does not use/implement JTA/XA or Coherence transactions. It's much like regular JMS in that it provides it's own transaction framework, that neither uses JTA or XA. While the JMS specification provides an XA API, the implementation of this is optional, as are Queues or Topics.
    The original goal of the Messaging Pattern implementation was to demonstrate that JMS-like messaging is possible with Coherence. When we looked at constructing the Messaging example, most people we talked to said they didn't want JMS and especially they didn't want transactions. They simply wanted a simple messaging implementation. So it's initial goal was to demonstrate a high-scalable messaging layer. Unfortunately that meant no "real" transaction support, especially in terms of things like XA and/or JTA.
    That said given the way that the pattern is currently implemented one could easily implement an XA resource so that it could be used as a last resource. That's probably the quickest way to get what you would like at the moment.
    Of course I'm certainly interested in implementing XA support, but we know that is non-trivial. It's not currently on our roadmap for the pattern, but it could be. Our next release will provide persistent messaging, but we could investigate XA after that.
    -- Brian
    Brian Oliver | Architect | Oracle Coherence Engineering
    Oracle Fusion Middleware

  • Database.insert.vi

    I would like to now if the data saved using
    database.insert.vi
    are created/allocated statically or dynamically?

    Well, I for one do not understand your question. Whatever data you have is written to the table you specify. What do you mean by dynamic or static? Are you using the NI toolkit?

  • 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.

  • ERROR IN DATABASE INSERTION

    HI,
    i am trying to insert values in jsp into mysql database using beans....... but it doesn't shows any error or it doesn't inserts the value.. can any body help me out .
    abdul

    Not until we see some relevant code.
    Message was edited by:
    appy77

  • Php/MySQL database insert record issue...

    I have a php page that adds an "order" to a mysql database table (orders). One text field in the form is for tires/wheels. The description of the wheels often includes the " symbol for inches after a number....Everything submits fine, however when I look at the page that displays the orders all the data after the " symbol including the " symbol is gone... DOes anyone have any idea why this may be happening? It is requiring us to return and edit that area repeatedly. Any help is appreciated greatly. Thanks for your time.

    Ok, so just to summarize so I am understanding this correctly.  You have an ordering page for tires/wheels.  A customer places an order for tires/wheels and the data is submitted successfully and this includes a symbol for measurement (in.).  But on another summary page the symbol is returning a blank value.
    If this is correct we need to see:
    - First, the code that is inserting the symbol to the database table in question
    - Second, the query and code where you are printing the data to the screen.

  • Auto Increment ID Field Table in the Oracle Database (insert new record)

    I have been using the MySQL. And the ID field of the database table is AUTO INCREMENT. When I insert a new record into a database table, I can have a statement like:
       public void createThread( String receiver, String sender, String title,
                                 String lastPostMemberName, String threadTopic,
                                 String threadBody, Timestamp threadCreationDate,
                                 Timestamp threadLastPostDate, int threadType,
                                 int threadOption, int threadStatus, int threadViewCount,
                                 int threadReplyCount, int threadDuration )
                                 throws MessageDAOSysExceptionand I do not have to put the ID variable in the above method. The table will give the new record an ID number that is equivalent to the ID number of the last record plus one automatically.
    Now, I am inserting a new record into an Oracle database table. I am told that I cannot do what I am used to doing with the MySQL database.
    How do I revise the createThread method while I have no idea about what the next sequence number shall be?

    I am still very confused; in particular, the Java part. Let me try again.
    // This part is for the database table creation
    -- Component primary key sequence
    CREATE SEQUENCE dhsinfo_page_content_seq
        START WITH 0;
    -- Trigger for updating the Component primary key
    CREATE OR REPLACE TRIGGER DHSInfoPageContent_INSERT_TRIGGER
        BEFORE INSERT ON DHSInfoPageContent //DHSInfoPageContent is the table name
        FOR EACH ROW WHEN (new.ID IS NULL) // ID is the column name for auto increment
        BEGIN
            SELECT dhsinfo_page_content_seq.Nextval
            INTO :ID
            FROM DUAL;
        END;/I am uncertain what to do with my Java code. (I have been working with the MySQL. Changing to the Oracle makes me very confused.
       public void updateContent( int groupID, String pageName, int componentID,
                                  String content, Timestamp contentCreationDate )
                                   throws contentDAOSysException
       // The above Java statement does not have a value to insert into the ID column
       // in the DHSInfoPageContent table
          Connection conn = null;
          PreparedStatement stmt = null;
          // what to do with the INSERT INTO below.  Note the paramether ID.
          String insertSQL = "INSERT INTO DHSInfoPageContent( ID, GroupID, Name, ComponentID, Content, CreationDate ) VALUES (?, ?, ?, ?, ?, ?)";
          try
             conn = DBConnection.getDBConnection();
             stmt = conn.prepareStatement( insertSQL );
             stmt.setInt( 1, id ); // Is this Java statement redundant?
             stmt.setInt( 2, groupID );
             stmt.setString( 3, pageName );
             stmt.setInt( 4, componentID );
             stmt.setString( 5, content );
             stmt.setTimestamp( 6, contentCreationDate );
             stmt.executeUpdate();
           catch
           finally

  • Oracle Database Inserts Via Microsoft Data Transformation Services (DTS)

    This question involves a SQL Server database and an Oracle database. The databases reside on different servers. One of our developers periodically uses Microsoft DTS (Data Transformation Services) to read data from a SQL Server database and insert it into an Oracle database. Normally the job runs once a day and reportedly inserts about 20,000 rows. The job usually runs fine. About a month ago execution of the daily job was suspended. Two days ago the developer ran a job to select and insert nine days of information. He estimated that 80,000 rows would be inserted. The job cancelled after twenty-three minutes when it filled up the 512 MB UNDO tablespace. (FYI, we use automatic UNDO management.) At the point of failure the number of active sessions spiked sharply in the Oracle database because of system I/O waits (log file parallel write, db file parallel write, and control file parallel write). The number of active sessions also spiked sharply in three other Oracle databases whose files reside on the same array of disk drives. Most of those sessions were waiting on commits (log file sync). The spikes lasted for one minute or less. Grid Control’s performance monitor shows that sqlservr.exe is the module being executed when the UNDO tablespace fills up. We ran the job a second time and closely monitored it, watching the amount of UNDO space grow until it used all 512 MB available. The symptoms described above for the first cancellation were repeated in the second cancellation.
    We reran the job by processing a single day’s worth of information and that ran fine. Then we ran it for two days of information, then for six days of information. Everything ran fine. During those tests no more than 70 MB of space of UNDO were used.
    Our developer reported that last week he ran the job for nine days of information, the same amount as the job that cancelled twice today. He estimates that it ran for about 80 minutes and went to a normal end-of-job.
    Can anyone here offer an explanation of why we seem to be getting these varied demands for space in the UNDO tablespace? Do you know if Microsoft DTS issues a commit after each insert or only a single commit at the end-of-job?
    Thank you,
    Bill

    Hi Arthur,
    Yes both instances are same.
    Microsoft SQL Server 2008 R2 (SP2) - 10.50.4263.0 (X64)   Aug 23 2012 15:56:56   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
    I have run the Main package using the using SQL Agent, main package calls the child packages.
    The error message shown on SQL agent job is:
    R6025  - pure virtual function call.  The return value was unknown.  The process exit code was 255.
    or sometimes 
    The step did not generate any output.  The return value was unknown.  The process exit code was -532459699.
    in the even log it says:
    Error Level:
    Event ID 1000
    Faulting application name: DTExec.exe, version: 2009.100.4263.0, time stamp: 0x5036ba73
    Faulting module name: DTSPipeline.dll, version: 2009.100.4263.0, time stamp: 0x5036ba53
    Exception code: 0x40000015
    Fault offset: 0x00000000000a33c5
    Faulting process id: 0x98c
    Faulting application start time: 0x01cf64ba9b72b27c
    Faulting application path: C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTExec.exe
    Faulting module path: C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTSPipeline.dll
    Report Id: e8eb9b4f-d0ad-11e3-babd-005056997b14
    Information Level:
    Windows error reporting  Event ID 1001
    Fault bucket , type 0
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: DTExec.exe
    P2: 2009.100.4263.0
    P3: 5036ba73
    P4: DTSPipeline.dll
    P5: 2009.100.4263.0
    P6: 5036ba53
    P7: 40000015
    P8: 00000000000a33c5
    P9:
    P10:
    Attached files:
    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_DTExec.exe_ccc7a4e176faafbea69955957371ea96e175b_44c41e3e
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: e8eb9b4f-d0ad-11e3-babd-005056997b14
    Report Status: 4

  • Shipping instructions / Shipping attention database insert bug

    I'm 99.99% confident I've found a bug with BC's saving of data.
    I'm inserting into an order shipping instructions via the API using an entity ID, the bug happens IF the form contains "shipping attention" and no "shipping instructions" (aka details in the admin tool).
    How to reproduce:
    1. The checkout form where you enter your credit card details make sure it has shipping attention added to it, but no shipping instructions.
    2. Order something, DO NOT enter anything in shipping attention (keep it blank).
    3. Submit.
    At this point there is no problems, shipping instructions will be kept intact (if there is data in there). Now do the same thing but enter in something for shipping attention.
    It will save the shipping attention but destroy what was in "shipping instructions" (aka details in admin tool). I would assume since shipping instructions is not part of this form it should not destroy or overwrite any other sections of data in the database.
    I worked around it by saving the shipping attention via the API and nuking the form value before submitting the form (to BC), I spent about 2 days figuring this out, I first thought is was a timing issue but found this out by trial and error, it is definitely an issue you should look into. Happy to show example code if you need it.

    Adobe: Bug? Not a bug? Don't care?

  • Needs suggestion the best way database insertion using OSB

    Hi all, again and again I need your suggestion. Which is the best way for writing data to database using OSB in few tables as fastest as possible (speed consideration)?, should I make lots DB schema for supporting JCA adapter and transform each message and writing to database? OR should I call java callout then using EJB for writing to database?.

    Hi,
    We had the similar scenario in our project and this is my take on this.
    Its better to use a JCA DBAdapter to execute/invoke a stored procedure and then have the PL/SQL script for insertion into the Stored Procedure.
    As the OSB DBAdapter configuration is very tightly coupled to the DB structure any changes to the column types of the table will mean a regeneration of the adapter WSDL.
    In general even for other DB operations like select, delete, update... its is a good idea to use the stored procedure in conjunction with the DBAdapter to decouple the link to DB to some extent.
    Thanks,
    Patrick

  • File adapter-File to database insertion -multiple records

    Hi
    1)read from a file(3 rows)
    2)Transform it
    3)invoke Database partner link and insert in a table.
    4)assign say an ID.
    5)transform
    6)Invoke another database partrner and insert in another database
    *** we are inserting 3 records in the text file being read.
    ***3 instances are being created when viewed throgh console and its working fine.
    7)But after this we need to update another table for which we created one more partner link.
    It is deploying successfully but its not showing any instances in BPEL console,nor any error
    against it in BPEL console.
    Thanx in advance
    Regards
    Raju

    Hi Mahesh
    Thanx for replying.Its working fine now.Actually we purged all instances throgh BPELConsole.when we tried again after that it seems to work fine now.
    Regards
    Raju

  • My database insertion doesn`t quite work

    I have a ALV table in a WwbDynpro component.
    I have a ON_DATA_CHECK event handler for my INTERFACECONTROLLER.
    I`m trying to insert a new row in the table. Even if it gets to the succes message when I check the database table is does have a new row but it`s empty!
    Does somebody know why?
    Regards,
             Ilinca

    method ON_DATA_CHECK .
      DATA: node_angajati TYPE REF TO if_wd_context_node,
            elem_node_angajati TYPE REF TO if_wd_context_element,
            lt_angajati TYPE wd_this->elements_angajati,
            cod_angajati TYPE wd_this->element_angajati-cod_angajat,
           .......declaration for each attribute in node angajati
            data_nasteree TYPE wd_this->element_angajati-data_nastere.
       node_angajati = wd_context->get_child_node( name = wd_this->wdctx_angajati ).
    node_angajati->get_static_attributes_table( IMPORTING table = lt_angajati ).
    DATA: itab              TYPE STANDARD TABLE OF zangajati,
               itab_angajati LIKE LINE OF itab.
    itab_angajati-cod_angajat = cod_angajati.
    itab_angajati-nume = numee.
    itab_angajati-email = emaill.
    itab_angajati-data_nastere = data_nasteree.
    INSERT itab_angajati INTO TABLE itab.
    INSERT zangajati FROM TABLE itab ACCEPTING DUPLICATE KEYS.
    COMMIT WORK.
    message_text = 'Data was successfully saved.'.

Maybe you are looking for