Data is not inserted into database through OA-Page

Hi all,
I developed a region to store supplier additional information.In that region i'm able to enter data into fields and data is sucessfully stored into custom table.But when I embedded that region with Supplier-Address Book page(in R12) page through Personalization i'm facing a problem with inserting data into custom table.i.e After I entered data the data is not goes to custom table and the fields which are filled by data are also not cleared.
Could anyone please help me..
Thanks in Advance
Edited by: user9970067 on Oct 13, 2009 12:15 PM

Hi Nilesh,
First I just created region in Jdeveloper and ran it from jdeveloper then it's working fine.After this I added custom region in seeded xml page file and then ran page from Jdeveloper,then the data is not saved into custom table.
Steps I followed:
1. I created an EO(oracle/apps/pos/supplier/server)
2.Created VO based on above EO(oracle/apps/pos/supplier/server)
3.Created AM based on VO(oracle/apps/pos/supplier/server)
4.Created one Region based on this view instance.(oracle/apps/pos/supplier/webui)
5.Created one CO for the above region.( compiled and ran this standalone region then it's working fine)
6.Now I embedded the above region with the page which is located in oracle/apps/fnd/ framework/toolbox/tutorial/webui/SupplierSearchPG.xml through personalization.
When I entered into customized region the "save " button in my region is not highlighted.only "GO" button in SupplierSearch is highlighted.when I click on "save" button in my custom region it's not calling the controller.
could you please give me any solution for this.
Thanks in Advance.

Similar Messages

  • File to RFC problem- data is not inserting into ztable in R3 system

    Hi
    i have done File to RFC scenario which picks data from flat file and inserts into ztable via RFC in R3. but while testing my scenario everything is successful in XI monitoring (Successful flag in MONI and RWB) and in auditlog message status is DLVD.
    it seems to be everything successful in XI and RFC call also successful in R3 system.
    but for some reason data is not inserting into table (RFC is used to insert data into ztable)
    Is there any way to debug RFC call excecution in XI..?
    RFC code is like this:
    insert ZMM_AUTO_GR from INPUT_TABLE.
    commit work.
    END FUNCTION.
    please advice what could be the reason not inserting into table.
    Help would be appreciated.
    Regards,
    Rajesh

    Hi Praveen,
    please see audit log- from communication channel monitoring..
    Receiver channel 'CC_INCA_RFC_SAPECC_Receiver' for party '', service 'R3DCLNT210' (internal name 'RfcClient[CC_INCA_RFC_SAPECC_Receiver]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=210, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=jsaha, jco.client.sysnr=00, jco.client.ashost=ausr3devdc02}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=210, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=jsaha, jco.client.sysnr=00, jco.client.ashost=ausr3devdc02}
    Current pool size: 1, maximum pool size : 1
    Channel History
    - OK: 2008-07-28 04:32:04 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA
    - OK: 2008-07-28 04:31:04 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA
    - OK: 2008-07-28 03:56:56 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA
    - OK: 2008-07-28 03:49:04 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA
    - OK: 2008-07-28 03:48:04 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA

  • Data is not inserting into table

    Hi Team,
    I am inserting data into a custom table.
    but my records are not inserting into table
    //CO File
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createEmployee");
    // am.invokeMethod("init");
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("Apply") != null)
    OAViewObject vo = (OAViewObject)am.findViewObject("TestEmpVO1");
    String NAME = (String)vo.getCurrentRow().getAttribute("Name");
    Number employeeNumber = (Number)vo.getCurrentRow().getAttribute("Num");
    String NUM = String.valueOf(employeeNumber.intValue());
    am.invokeMethod("apply");
    MessageToken[] tokens = { new MessageToken("EMP_NAME", NAME),
    new MessageToken("EMP_NUMBER", NUM) };
    OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_CREATE_CONFIRM", tokens,
    OAException.CONFIRMATION, null);
    pageContext.putDialogMessage(confirmMessage);
    else if (pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollbackEmployee");
    TransactionUnitHelper.endTransactionUnit(pageContext, "empCreateTxn");
    // End CO
    //AMImpl
    package oracle.apps.fnd.framework.toolbox.labsolutions.server;
    import oracle.jbo.Row;
    import oracle.jbo.Transaction;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.domain.Number;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    // --- File generated by Oracle Business Components for Java.
    public class TestEmpAMImpl extends EmployeeAMImpl
    * This is the default constructor (do not remove)
    public TestEmpAMImpl()
    * Container's getter for TestEmpVO1
    public TestEmpVOImpl getTestEmpVO1()
    return (TestEmpVOImpl)findViewObject("TestEmpVO1");
    * Creates a new employee.
    public void createEmployee()
    OAViewObject vo = (OAViewObject)getTestEmpVO1();
    // Per the coding standards, this is the proper way to initialize a
    // VO that is used for both inserts and queries. See View Objects
    // in Detail in the Developer's Guide for additional information.
    if (!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    // Required per OA Framework Model Coding Standard M69
    row.setNewRowState(Row.STATUS_INITIALIZED);
    } // end createEmployee()
    public void apply()
    getDBTransaction().commit();
    * Sample main for debugging Business Components code using the tester.
    public static void main(String[] args)
    launchTester("oracle.apps.fnd.framework.toolbox.labsolutions.server", "TestEmpAMLocal");
    //End AmImpl
    Please suggest.
    Thanks,
    Ajit

    Ajit,
    Its always a good idea to close the thread with an explanation. It will help others whenever they are into similar situation.
    --Shiv                                                                                                                                                                                                                                                                                               

  • Issue - data is not inserting into queue table

    Hi friends....i created a queue table & queue , started queue. while inserting number into queue, it is going fine. but , while browsing queue table, there is no data inserted into table. table is empty. i executed same script in another machine, it is working fine there.but, it is not working in my machine. i don't know why?.
    can anybody please help me to find out what will be the issue.
    these are the scripts i created........
    BEGIN
    DBMS_AQADM.CREATE_QUEUE_TABLE (
    queue_table => 'put_queue_table',
    queue_payload_type => 'sys.aq$_jms_text_message'
    END;
    anonymous block completed
    BEGIN
    DBMS_AQADM.CREATE_QUEUE (
    queue_name => 'QUALTY_QUEUE',
    queue_table => 'put_queue_table'
    DBMS_AQADM.START_QUEUE (
    queue_name => 'QUALTY_QUEUE'
    END;
    anonymous block completed
    DECLARE
    v_payload SYS.AQ$_JMS_TEXT_MESSAGE;
    v_enqueue_options dbms_aq.enqueue_options_t;
    v_message_properties dbms_aq.message_properties_t;
    v_message_handle RAW(16);
    v_text VARCHAR2(37);
    BEGIN
    v_text := to_char('157');
    v_payload := SYS.AQ$_JMS_TEXT_MESSAGE.construct;
    v_payload.set_text(v_text);
    DBMS_AQ.ENQUEUE(
    queue_name => 'QUALTY_QUEUE',
    enqueue_options => v_enqueue_options,
    message_properties => v_message_properties,
    payload => v_payload,
    msgid => v_message_handle
    COMMIT;
    END;
    anonymous block completed

    Please define what you mean by "when browsing [the] queue table" and why you think what you are doing should be inserting new rows in the table. Also please post full version information.

  • Data not inserted into database from jsf..

    hello..
    m developing ma project with 2 separate module-EJB and WEB .in which web module contains JSF managed bean and jsf-jsp pages.
    my application is running well.bt didn't give output to the database for inserting data.
    m giving ma simple test application ...plz tell me whr m going wrong.
    //Emp.java---entity file in ejb module
    package entity;
    import java.io.Serializable;
    import javax.persistence.Basic;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    @Entity
    @Table(name = "emp")
    @NamedQueries({
        @NamedQuery(name = "Emp.findAll", query = "SELECT e FROM Emp e"),
        @NamedQuery(name = "Emp.findByName", query = "SELECT e FROM Emp e WHERE e.name = :name"),
        @NamedQuery(name = "Emp.findByAddress", query = "SELECT e FROM Emp e WHERE e.address = :address")})
    public class Emp implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @Basic(optional = false)
        @Column(name = "name")
        private String name;
        @Column(name = "address")
        private String address;
        public Emp() {
        public Emp(String name) {
            this.name = name;
        public Emp(String name, String address) {
            this.name = name;
            this.address = address;
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
        public String getAddress() {
            return address;
        public void setAddress(String address) {
            this.address = address;
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (name != null ? name.hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Emp)) {
                return false;
            Emp other = (Emp) object;
            if ((this.name == null && other.name != null) || (this.name != null && !this.name.equals(other.name))) {
                return false;
            return true;
        @Override
        public String toString() {
            return "entity.Emp[name=" + name + "]";
    //empsession.java--session file in ejb module
    package session;
    import entity.*;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    @Stateless
    public class empsession implements empsessionRemote {
        @PersistenceContext(unitName = "EJBmodulePU")
        private EntityManager em;
        public void addemp(String name, String address) {
            Emp objemp=new Emp(name,address);
            em.persist(objemp);
    //empsessionRemote.java--remote file for sessionbean
    package session;
    import javax.ejb.Remote;
    @Remote
    public interface empsessionRemote {
        void addemp(String name, String address); 
    //empMB.java--managed bean file in web module
    package mbean;
    import javax.faces.bean.ManagedBean;
    import javax.faces.bean.RequestScoped;
    import javax.naming.InitialContext;
    import session.empsessionRemote;
    @ManagedBean(name="empMB")
    @RequestScoped
    public class empMB {
        private String name;
        private String address;
        public String getAddress() {
            return address;
        public void setAddress(String address) {
            this.address = address;
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
        /** Creates a new instance of empMB */
        public empMB() {
        public void empadd()
            try
            InitialContext ic = new InitialContext();
            empsessionRemote esr=(empsessionRemote)ic.lookup(empsessionRemote.class.getName());
            esr.addemp(name, address);
            catch(Exception ex)
    }//AddEmp.jsp --jsf page in web module
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>JSP Page</title>
    </head>
    <body>
    name:
    <h:inputText id="txt1" value="#{empMB.name}"></h:inputText>
    address:
    <h:inputText id="txt2" value="#{empMB.address}"></h:inputText>
    <h:commandButton id="btnadd" value="submit" action="#{empMB.empadd}"></h:commandButton>
    <h1><h:outputText value="Hello World!"/></h1>
    </body>
    </html>
    </f:view>
    //faces-config.xml
    <faces-config version="2.0"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
    <managed-bean>
    <managed-bean-name>empMB</managed-bean-name>
    <managed-bean-class>mbean.empMB</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/AddEmp.jsp</from-view-id>
    <navigation-case>
    <from-outcome>AddEmp</from-outcome>
    <to-view-id>/index.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    m using toplink provider and mysql db
    wating for positive reply..
    thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I think this question would be more appropriate in a forum devoted to database or JPA topics.

  • Urgent help with HTML/arrays/insert into database through a bean

    I am currenly building an application that dynamically lists subjects and developers from a database. This list is used as a questionaire to ask developers what subjects will they be interested in attending or teaching. I having problem passing this data into the database on the bean level.
    I need help I have been working on this for months. I can explain further. I need to prove to my boss that I can do this project but i am currently stuck.

    Split your requirements into small pieces and ask them one by one, you will certainly get help here. But please make sure that you will do your home/office work.

  • Date not changing based on timezone during insert into database...

    I have a bpel project that gets data in GMT and insert into a database that's based on EST timezone...for some reason during insert into database, I expect it to reflect the time in EST time, but it's not doing so. It's a standard oracle bpel project and there was no customization to the date input. The following are the details:
    input data:
    <InvoiceDate>
    <GLogDate>20110613213249</GLogDate>
    <TZId>UTC</TZId>
    <TZOffset>+00:00</TZOffset>
    </InvoiceDate>
    date I get after transformation:
    <ns5:invoiceDate> 2011-06-13T21:32:49 </ns5:invoiceDate>
    date that gets inserted into the database:
    6/13/2011 9:32:49 PM
    Any thoughts as to what's going on? Is this the intended fuctionality or how does it adjust itself to the daylight saving? I thought database itself would handle it in this case.
    Thanks,
    Amkay

    WpgMom --
    From your description, it sounds totally like you are using Manually Scheduled tasks, which is not what you should be using in your project.  If you look at the Gantt bars in the Gantt Chart view of your project, if the Gantt bars are a turquoise color,
    you are using Manually Scheduled tasks, and that would be the reason that the dates do not automatically calculate for you.  If this is the case, click the Select All button to select every task in the project.  In the Tasks section of your Task
    ribbon, click the Auto Schedule button.  From this point forward, your project schedule will automatically recalculate every time you make any kind of schedule edit.
    Also, in the lower left corner of the Microsoft Project application window, you will probably see a button that says New Tasks: Manually Scheduled.  Click this button and select the Auto Scheduled option.
    To avoid all of these problems in all future projects, click File > Options.  In the Project Options dialog, click the Schedule tab.  In the Scheduling Options for This Project section, click the pick list where you see the name of your project
    and select the All New Projects item on the pick list.  Click the New Tasks Created pick list and select the Auto Scheduled option.  Click the OK button.
    Hope this helps.
    Dale A. Howard [MVP]

  • Date Format in servlet when i insert into database

    I am inserting data into database through servlet, but i am getting NumberFormat Exception, and my datatype in database is DATE ,when i typecast my day and year because they r in int and changing into String,still i am getting the same error .So please can any one tell me where to cahnge the format of date and how to type cast to my Date format of database.
    Thanks,
    lalitha

    My code is:import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.text.*;
    import java.sql.Date;
    import java.util.*;
    public class RegisterServlet extends HttpServlet
         Connection con;
         PreparedStatement ps;
    public void init(ServletConfig sc) throws ServletException
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con=DriverManager.getConnection("jdbc:odbc:plk","scott","tiger");
         System.out.println("connection created");
         catch(Exception e)
         System.out.println(e);
    public void doPost(HttpServletRequest req, HttpServletResponse res)
         try
         res.setContentType("text/html");
         PrintWriter pw= res.getWriter();
    String ulogin=req.getParameter("login").trim();
    String uph1=req.getParameter("ph1").trim();
    int ph1=Integer.parseInt(uph1);
    String upass=req.getParameter("pass").trim();
    String uph2=req.getParameter("ph2").trim();
    int ph2=Integer.parseInt(uph2);
    String cpass=req.getParameter("cfm").trim();
    String uweb=req.getParameter("web").trim();
    String ufirst=req.getParameter("first").trim();
    String uaddress=req.getParameter("address").trim();
    String umiddle=req.getParameter("middle").trim();
    String ucity=req.getParameter("city").trim();
    String ulast=req.getParameter("last").trim();
    String uzip=req.getParameter("zip").trim();
    int zip=Integer.parseInt(uzip);
    String ud=req.getParameter("Aday").trim();
    String um=req.getParameter("Amonth").trim();
    String uy=req.getParameter("Ayear").trim();
    SimpleDateFormat din=new SimpleDateFormat("dd-mm-yyyy");
    SimpleDateFormat dout=new SimpleDateFormat("yyyy/mm/dd");
    String txtDate="2001-07-07";
    Date date=din.parse(txtDate);
    java.sql.Date dt=new java.sql.Date(txtDate);
    dout.format(dt);
    String usex=req.getParameter("sex").trim();
    String uemail=req.getParameter("email").trim();
    String ust=req.getParameter("st").trim();
    String ucty=req.getParameter("cty").trim();
    ps=con.prepareStatement("insert into Userdetails values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
    ps.setString(1,ulogin);
    ps.setString(2,uph1);
    ps.setString(3,upass);
    ps.setString(4,uph2);
    ps.setString(5,cpass);
    ps.setString(6,uweb);
    ps.setString(7,ufirst);
    ps.setString(8,uaddress);
    ps.setString(9,umiddle);
    ps.setString(10,ucity);
    ps.setString(11,ulast);
    ps.setString(12,uzip);
    ps.setDate(13,dt);
    ps.setString(14,usex);
    ps.setString(15,uemail);
    ps.setString(16,ust);
    ps.setString(17,ucty);
    int i=ps.executeUpdate();
    if(i==1)
    pw.println("<h3><center> Thankyou! Your details have been stored. </center></h3>");
    res.sendRedirect("http://localhost:8080/SeekLogin.html");
    pw.close();
    else
         pw.println("<h3><center>Sorry! you are not registered properly. </center></h3>");
    pw.close();
    catch(Exception e)
         System.out.println(e);
    Can anyone look this code and help me out where i am doing the mistake.
    Thanks.

  • CDC Error (JOURNALIZED DATA is not loading into tartet database)

    HI,
    I have enabled source database for CDC and got green mark on source database model tables.
    while inserting data into source, J$ tables updating JRN_SUBSCRIBER and other filed.
    when I run the package/ interface JOURNALIZED DATA is not loading into target database.
    i have implemented cdc for 7 source table.
    and using JKM MSSQL Simple
    and enable JOURNALIZED DATA in interface level.
    and
    source database is : MSSQL Server
    Target Database : Oralce 11g.
    please advice me.
    thanks in advance.
    Zakeer Hussain

    Zakeer look into this link , -http://odiexperts.com/?p=1096 . Hope this helps.
    also before running Can you right click on the Source Datastore and click on Journal Data and can you see the data ? and if still the data is not passing through ,in that case make temporary objects t- yes in LKM , IKM and debug and see at which step data is not flowing through and look if there is any filter or condition which is stopping it .
    Still not able to figure out please tell us which step the data is not flowing through we will try to guide you.

  • Record not inserting into the table through Forms 10g

    Hi all,
    I have created a form in 10g(10.1.2.0.2) based on just one table that has 4 columns(col1, col2, col3, col4).
    Here col1, col2 and col3 are VARCHAR2 and col4 is date and all the columns are not null columns(There are no primary and foriegn key constrains, which means duplicates are allowed).
    My form contains 2 blocks where block 1 has one text item (col1) and 3 buttons (Delete, Save, Exit).
    And block2 is a database block and has col2,col3,col4 which are in tabluar layout frame displaying 10 records.
    When the form is opened the cursor has to be in block1.col1 for querrying. Here i enter a value in col1, and then when I click on col2 in the block2, then I put execute_query in new_block_instance of block2, which displays the records.
    The block2 properties are not updatable, insertable and query is allowed.
    Everything is working good until here. But here in the block2 when I want to insert another record into the table, by navigating all the way down to the last empty record and entering the new values for col2, col3 and col4 And then Ctrl+S will display the message "*FRM-40400: Transaction complete: 1 record applied and saved.*" But actually the record is not inserted into the table.
    I also disabled the col4 by setting the Enabled property to No, since while inserting new record the date have to be populated into it and it shouldnt be changed by the user. And im populating the sysdate into the new record by setting Intial Value property to *$$DATE$$*.
    And another requirement which I could not work arround here is that, the col3 also should be populated with the username of the user while inserting.
    please help me...

    Hi Sarah,
    I do not want to update the existing record. So I kept Udate Allowed to No in property palette for the items in block2.
    Do I have to do this property at block level also?
    I'm inserting a new record here.
    Edited by: Charan on Sep 19, 2011 8:48 AM

  • Pool data from text file and insert into database

    Can anyone tell me how to pool data from a text file and insert into database?
    let's say my text file is in this format
    123456 Peter 22
    234567 Nicholas 24
    345678 Jane 20
    Then I need to insert the all the value for this three column into a table which has the three column name ID, Name, Age
    Anyone knows? I need to do this urgently...Thank in advanced

    1. Use BufferedReader and read the file line by line.
    2. Loop thru the file and do the following steps with in this loop.
    3. Use StringTokenizer to seperate each line into three values (columns).
    4. Now create a insert statement with these values and add the statement to the batch (using addBatch() method of PreparedStatement or Statement).
    5. Finally (after exiting the loop), execute these batch of statements (using ps.executeBatch()).
    Sudha

  • Insert multiple records into database through internal table

    Hi
      please help me how to insert multiple records into database through internal table

    Hi,
    Welcome to SCN.
    Press F1 on INSERT statement and you will teh syntax as well the docu for the same.

  • Sharepoint List to Telerik Grid, Where data is not coming from database into List.

    SharePoint List to Telerik Grid, Where data is not coming from database into List.
    Here, i have a SharePoint list , where configurable text are stored, using some utility.
    I want to convert that SharePoint list into Telerik grid, with all Editable Option which i have in SharePoint.

    I know little about Telerik Grid, only find following article about Telerik integrate with SharePoint:
    http://www.telerik.com/help/aspnet-ajax/moss-spradlistview_designer_general.html
    a similar question:
    http://www.telerik.com/forums/how-to-bind-to-a-sharepoint-list-using-radgrid
    Thanks,
    Qiao Wei

  • Insert into database table

    Hi Guy's,
    Please help me, trying to insert the records into database table. when i debug the program work area contain  data records  but not insert into databse table.  Here pasted my code pls suggest me where i did mistake.
    FUNCTION ZEXM_PHOTOCOPYDTLS_EP.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(EXMCODE) TYPE  ZEXMCODE OPTIONAL
    *"     VALUE(EXMMONTH) TYPE  ZEXMMONTH OPTIONAL
    *"     VALUE(SEATNO) TYPE  ZSEATNO OPTIONAL
    *"     VALUE(STDFIRSTNAME) TYPE  ZSTDFIRSTNAME OPTIONAL
    *"     VALUE(STDMIDDLENAME) TYPE  ZSTDMIDDLENAME OPTIONAL
    *"     VALUE(STDLASTNAME) TYPE  ZSTDLASTNAME OPTIONAL
    *"     VALUE(ADDLINE1) TYPE  ZADDLINE1 OPTIONAL
    *"     VALUE(CITY) TYPE  ZCITY OPTIONAL
    *"     VALUE(COUNTRY) TYPE  ZCOUNTRY OPTIONAL
    *"     VALUE(PIN) TYPE  ZPIN OPTIONAL
    *"     VALUE(TELEPHONENO) TYPE  ZTELEPHONENO OPTIONAL
    *"     VALUE(MOBNO) TYPE  ZMOBNO OPTIONAL
    *"     VALUE(EMAIL) TYPE  ZEMAIL OPTIONAL
    *"     VALUE(DDNO) TYPE  ZDDNO OPTIONAL
    *"     VALUE(DDAMT) TYPE  ZDDAMOUNT OPTIONAL
    *"     VALUE(DDDATE) TYPE  ZDDDATE OPTIONAL
    *"     VALUE(BANKNAME) TYPE  ZBANKNAME OPTIONAL
    *"     VALUE(COLNAME) TYPE  ZCOLNAME OPTIONAL
    *"     VALUE(COLADDRESS) TYPE  ZCOLADDRESS OPTIONAL
    *"     VALUE(COURSECODE) TYPE  ZCOURSECODE OPTIONAL
    *"     VALUE(EXMYEAR) TYPE  ZEXMYEAR OPTIONAL
    *"     VALUE(PAPERCODE) TYPE  ZPAPERCODE OPTIONAL
    *"     VALUE(PAPERNO) TYPE  ZPAPERNO OPTIONAL
    *"     VALUE(MARKSOBT) TYPE  ZMARKSOBT OPTIONAL
    *"     VALUE(EXMDATE) TYPE  ZEXMDATE OPTIONAL
    *"     VALUE(EXMTIME) TYPE  ZEXMTIME OPTIONAL
    *"     VALUE(SUBCODE) TYPE  ZSUBCODE OPTIONAL
    *"  EXCEPTIONS
    *"      SELECTION_ERROR
      DATA : WA_OUTPUT TYPE  ZEXM_PHOTOCOPYDT,
             WA_COLL TYPE ZEXM_COLLEGEMST,
             WA_COURSE TYPE ZEXM_COURSEMST,
             WA_EXMCODE TYPE ZEXM_EXMCODEMST,
             WA_PAPER   TYPE ZEXM_PHOPAPERMAP,
             WA_SUBJECT TYPE  ZEXM_SUBJECTMST.
    STUDENT DETAILS
      MOVE : EXMCODE     TO WA_OUTPUT-ZEXMCODE,
             EXMMONTH    TO WA_OUTPUT-ZEXMMONTH,
             SEATNO    TO WA_OUTPUT-ZSEATNO,
             STDFIRSTNAME TO WA_OUTPUT-ZSTDFIRSTNAME,
             STDMIDDLENAME TO WA_OUTPUT-ZSTDMIDDLENAME,
             STDLASTNAME TO WA_OUTPUT-ZSTDLASTNAME,
             ADDLINE1    TO WA_OUTPUT-ZADDLINE1,
             CITY        TO WA_OUTPUT-ZCITY,
             COUNTRY     TO WA_OUTPUT-ZCOUNTRY,
             PIN         TO WA_OUTPUT-ZPIN,
             TELEPHONENO TO WA_OUTPUT-ZTELEPHONENO,
             MOBNO       TO WA_OUTPUT-ZMOBNO,
             EMAIL       TO WA_OUTPUT-ZEMAIL,
             DDNO        TO WA_OUTPUT-ZDDNO,
             DDAMT       TO WA_OUTPUT-ZDDAMT,
             DDDATE      TO WA_OUTPUT-ZDDDATE,
             BANKNAME    TO WA_OUTPUT-ZBANKNAME.
    insert into ZEXM_PHOTOCOPYDT values wa_output.
    if sy-subrc = 0.
    commit work.
    endif.
    Thanks and Regards,
    Sai.
    Edited by: sai shanhu on Jun 4, 2008 11:13 AM

    Hai,
    move wa_output into ZEXM_PHOTOCOPYDT.
    insert  ZEXM_PHOTOCOPYDT.
    Thanks,
    Durai.V

  • XML document convert into String and Insert into Database

    Hello all,
         In the FIle to File Scenario  I want to send the data to the Reciever System in xml Document and convert into String and insert into Database.
      Please can you tell me exact way how to send it.
    Thanks & Regards,
    Raj

    HI,
    As per my understanding your scenario is File to file where you will get output fiel in XML format.
    Now that XMl payload need to be passed as single string in the database via XI.
    You cauld do this but you need to imply some manipulations such as
    With the help of standard API you need to concatenate the  XML tags and create the structre along with the data.
    For e.g. in your outpuf file the XML structre contain data as
    <field1>ABCD</field1>
    Then in mapping
    The source field will be mappeda s concat(<field1>) + value of  Source field "ABCD" + concat(</field1>) to the target field.
    This is the way that you could achive the requirments else there is no direct way avaialble for it.
    thanks
    Swarup

Maybe you are looking for

  • How can I revert my Macbook Air back to Mountain Lion?

    I got my Macbook Air for Christmas in 2012, so it's only a little over a year old. It came with Mountain Lion, and it's been fine, until I updated it to Mavericks. Well, it was alright for a little bit, until the past two days, it has frozen on me fo

  • Account error no mail delivery

    Greetings I have a stuck account. i have reconstructed (mailbfr-m) several times, yet mail sits in the queue with a Temporary Failure notice. many flushes. I removed the account from Master and re-entered it. I moved the mailstore to a new location.

  • How use the function add_months() in a mapping??

    Hi, I have a variable in ODI with a date and i need add other variable to add "x" months... How do I can do that? thanks,

  • Download error ios 5

    After downloading I get an error when it's processing the new software. It says the software on my iPhone was demaged during the download. Unhook the cable and try again. Check your network settings. Can anyone help me with this? I tried already seve

  • Transfering XDCAM files into FCE

    Is it possible to transfer SONY XDCAM files into FCE, or do you need to have FCP?