How to use the JDBC adapter

Hello Every one,
we have third party sales order process systems in our company, one system is in Borland data base and the other is using SQL Server. presently what we are doing is sending this orders from respective databases to SAP using LSMW (XLs spreadsheets)on nightly basis. so the challenge is we want to USE SAP-XI instead of LSMW, could any one tell me what could be the right idea for this. please give me some  suggestions. thanks in advance.
kind regards,
Gayatri.

Hi Gayatri,
You can refer the following links to give you a clear idea about your query.
http://help.sap.com/saphelp_nw04/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
The links there can be further expanded to get more information
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
then
check this document:
How To Install and Configure External Drivers for JDBC & JMS
https://websmp206.sap-ag.de/~sapdownload/011000358700003994312004E/HowTo_ConfigExtAdapters.pdf
Regards,
Ramesh.

Similar Messages

  • Is it possible to execute a stored procedure using the JDBC adapter?

    Hi all,
    Can anybody confirm whether we can execute a stored procedure created in a database using the processing parameters of a JDBC adapter of a communication channel?
    If yes, then please let me know how (may be with an example)
    Thanks.

    Yes, that is possible. You have to chose EXECUTE in the action field to execute the stored procedure. Here's a little piece on the JDBC receiver:
    JDBC Receiver
    For writing data to an SQL database you also need to define a strict data type. The general format is like this:
        <ns:MT_RECORDSET>
              <STATEMENT>
                   <TABLE_NAME ACTION="">
                        <TABLE/>
                        <ACCESS>
                             <FIELD1/>
                             <FIELD2/>
                             <FIELDn/>
                        </ACCESS>
                        <KEY>
                             <ID compareOperation=""/>
                             <FIELDx compareOperation=""/>
                        </KEY>
                   </TABLE_NAME>
              </STATEMENT>
    </ns:MT_RECORDSET>
    This recordset represents an SQL statement like "update TABLE1 set FIELD1=123, FIELD2=456, FIELDn='xyz' where ID=12345 and FIELDx is NULL"
    MT_RECORDSET is the name of the Message Type used.
      For the value of the attribute ACTION you can choose from the following values:
         UPDATE : updates the given fields in the table with their new values
         INSERT : insert the given fields as a new row in the table
         UPDATE_INSERT : insert rows in the table when update is not possible
         DELETE : deletes given fields from the table
         SELECT : selects given fields from the table. Note that this option returns a response in the JDBC Sender form!
         EXECUTE : execution of a stored SQL procedure
         SQL_QUERY | SQL_DML : option to transfer more complex SQL statements to the database
      The attribute compareOperation can have the following values:
         EQ : equal
         NEQ : not equal
         LT : less than
         LTEQ : less than or equal to
         GT : greater than
         GTEQ : greater than or equal to
         LIKE : used to compare strings

  • How many records does JDBC adapter can obtain in one polling?

    Hello everybody,
    I need to do an interface between legacy system and SAP ECC, the legacy systems have a DB so i use the jdbc adapter (sender) and receive the information to SAP ECC with proxy, so i need to activate the polling option from my jdbc adapter working as a sender, i read a table with lot of records, and i need to know how many records does jdbc adapter support when the polling is executed, because is necessary read all records from the table and change the status of the processed field.
    Is possible to get all the records from that table in one polling interval (50,000 records aprox)?, or i need to do the polling by blocks of records until finish all records from the table?, the second option, i dont have idea how can i do it.
    Regards,
    Vicman

    Hi again!,
    i still working on that, but i have a question, is possible to handle Store Procedure in jdbc adapter?? is supported?, like PL SQL, because i was working in the next query but i don't know if it works and where do i need to locate the query in the Query SQL Statement or in Update SQL Statement field or both? but how?.
    DECLARE c_cursor CURSOR FOR
    SELECT * FROM tablename
    WHERE processed=0
    OPEN c_cursor
       FETCH NEXT FROM c_cursor
    WHILE @@FETCH_STATUS = 0
    BEGIN
       update tablename set processed=1
       FETCH NEXT FROM c_cursor
    END
    CLOSE c_cursor
    DEALLOCATE c_cursor
    Regards,

  • Using the Ariba adapter

    Can anyone tell me how to use the Ariba adapter, and where to find documentation?

    Can you explain more about your requirement and the use of ariba adapter in your implementation.?
    Thanks
    Sree

  • How to update an existing item in a sharepoint list using the WSS adapter for Biztalk

    Is there a way that a record in SP list be updated using WSS adapter in biztalk ?
    BizTalk 2013 and SP 2013 ..
    Regards
    Ritu Raj
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    A ListItem has its own unique row id so in all likelihood, an insert with the same data will result in a new list entry. The Lists Web Service however, has an UpdateListItem method which will take an update request. [refer
    http://msdn.microsoft.com/en-us/library/office/websvclists.lists.updatelistitems(v=office.15).aspx ]
    There is another note in the conference (marked answered) to your List Item Update problem. Probably worth a try too. [refer
    http://social.msdn.microsoft.com/Forums/en-US/bee8f6c6-3259-4764-bafa-6689f5fd6ec9/how-to-update-an-existing-item-in-a-sharepoint-list-using-the-wss-adapter-for-biztalk?forum=biztalkgeneral ]
    Regards.

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • How to start a BPEL Process using the File Adapter

    Hi
    I would like to automatically start a BPEL Process when I store a file in a specific directory. Can this be done using the File Adapter?.
    Regards,
    Néstor Boscán

    Yes, there are samples of how to do this in the BPEL samples directory.

  • How to use the adapter framework sample_ra.

    hi..
    I have deployed the sample_ra adapter framework code through NWDS. Now how to use the adapter framework into my scenario.Please answer elaborately .How to call this adapter framework while configuring the communication channel.

    hi
    Follow these links I think it will helps you
    http://www.sap-hefte.de/download/dateien/1241/140_leseprobe.pdf
    NWDS and  generate java proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/32/43d84072378031e10000000a1550b0/content.htm
    http://msdn2.microsoft.com/en-us/library/ms944509.aspx
    thanks and regards
    santosh

  • I need this file "How to Use the Content Conversion Module in JMS Adapter"

    Can someone send me this file:
    "How to Use the Content Conversion Module in JMS Adapter"
    I am not able to find it.
    Thanks
    Antonello

    pls refer guide
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-adapters/how%20to%20use%20the%20content%20conversion%20module%20with%20xi%203.0%20j2ee%20jms%20adapter.pdf
    Regards,
    Swetha.

  • How to use the oracle jdbc driver

    hi all,
    i have use the jdbc driver for oracle before but this time i<m under a hp-ux system and it seems to be different
    the dba here said the odbc driver and the jdbc driver where install but i get this error when i compile the code
    Class oracle.jdbc.driver.OracleDriver not found in type declration.
    if i try to use a odbc driver i can compile(since the classes are in jdk1.3) but i get this error at run time
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:126)
    at TestOracle.<init>(TestOracle.java:33)
    at TestOracle.main(TestOracle.java:126)
    can someone help me out to better understand what is wrong
    it seems the drivers are not install but again the dba assures me they are
    import java.sql.*;
    import java.io.*;
    public class TestOracle {
    public TestOracle()
    // Load the Oracle JDBC driver
    // Connect to the database
    // search the dossiers numbers in the right table depending on criteria
    // if demands comes from extranet verify to only send back the dossier
    // numbers that are linked to the customer
    // Load the Oracle JDBC driver
    try
         //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         //Class.forName("oracle.djbc.driver.OracleDriver");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    catch( Throwable t ){t.printStackTrace();}
    //SQLException,IOException,ClassNotFoundException,
    //IllegalAccessException,InstantiationException
    try
         // Connect to the database
         // You can put a database name after the @ sign in the connection URL.
         Connection conn =
              //DriverManager.getConnection ("jdbc:oracle:oci8:@COLDDEV", "USER", "PPP");
              DriverManager.getConnection("jdbc:odbc:COLDDEV","USER", "PPP");
         Statement stmt = conn.createStatement ();
         ResultSet r = stmt.executeQuery("select * from Dossier");
         stmt.close();
         System.out.println("trouver:" + r.getString("Dossier_Number"));
    catch (SQLException e){e.printStackTrace();}
    public static void main(String[] args)
    TestOracle testOracle1 = new TestOracle();
    here is the code iuse

    http://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
    The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
    hope this helped,
    Jamie

  • Can someone tell how to use the digital av adapter to hook up my iPod to the tv

    Can someone tell me how to use the digital av adapter with my iPod to the tv

    Per this YouTube discussion it appears it does not nsupport TV out, only mirroring
    https://productforums.google.com/forum/#!searchin/youtube/tv$20out/youtube/wbm8v 35tbyg/ULbLJ3sAnVUJ

  • ADF mobile: how do I upload a file using the rest adapter api

    Hello,
    I want to upload files using the rest adapter. How would I upload files such as pdfs, images (png, jpg ..) etc.. Some code would be appreciated.
    Thanks,

    Thanks Frank,
    The back-end is functioning in the following way (using Jersey and handling input streams):
        @POST
        @Path("/uploadFile")
        @Consumes(MediaType.MULTIPART_FORM_DATA)
        public Response uploadFile(@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file") FormDataContentDisposition fileDetail) {
            String uploadedFileLocation = "D:\\temp\\uploadsTest\\" + fileDetail.getFileName();
            // save it (this function reads from the input stream)
            writeToFile(uploadedInputStream, uploadedFileLocation);
            String output = "File uploaded to : " + uploadedFileLocation;
            return Response.status(200).entity(output).build();
         Is there a way to send data over a stream?
         Thanks,

  • Using the RFC adapter (sender), how do I know which RFC is being sent?

    Hello everyone!
    Has anyone used the RFC adapter (sender) in XI to pick up RFC messages? How would I know which RFC is triggered for example when a user creates a PO (purchase order)?
    Warm Regards,
    Glenn

    Glenn,
    When u are writinfg RFC program, u will have destination right?  There u know u have to give RFC Destination(SM59) while creating RFC destination we will be giving Program ID .
    Similarly in XI while creating Sender RFC u have to give the program id. So with these program id these programs are linked together and triggered from R/3 to the exact Sender adapter.
    Please see Michal weblog for more details
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    I hope it clears your doubt!!!
    Best regards,
    raj.

  • How smart is my mac? can use the AC adapter as a main power source and not charge the battery when its fully charged?

    does my mac use the AC adapter as the power source when its plugged in and the battery is full? is it smart to enough to split?

    The charging circuit charges until the battery reaches 100%, then shuts down the charging and goes to powering mode.  When the battery charge trickles down to 93-95% the charging circuit starts again and tops up the battery.  Will continue to operate like that if you leave it plugged in.  Keeping it plugged in does not harm the battery or risk overcharging.

  • In the rwb adapter monitoring the JDBC Adapter always grey

    Hi all
    I try to use JDBC Adapter in XI 3.0 sp14.
    First I deploy the MS SqlServer JDBC by SDM RemoteGui.I can see the deployed JDBC package in \j2ee\cluster\server0\bin\ext\com.sap.aii.af.jmsproviderlib.
    Then I create a communication Channel using JDBC 2.0 in a Business System and active the configuration.
    But when I monitor JDBC Adapter in the rwb, I find the JDBC Adapter is always grey.In the \server0\log\services\com.sap.aii.adapter.jdbc.svc, no log shows the jdbc adapter is initial.
    So what extended configuration shall i do.
    Thanks in advanced
    Elliott

    hi Alessandro,ravi:
    Thanks for your reply. I will describe detail.
    I use a file adapter as a sender and use a JDBC adapter as a receiver.
    In the sxmb_moni I find the processed message status is successful.
    So I think the integration server works fine.
    In the message monitoring, the message is waiting status.
    If I change the receiver adapter to file adapter.
    It works fine.So I think the process config is fine and the itegration server works fine. the error is in the receiver JDBC adapter side.
    I check the default trace, <b>there is error logs</b>:
    #com.sap.aii.af.ra.ms.impl.core.queue.ReceiveConsumer
    #sap.com/com.sap.aii.af.ms.app
    #com.sap.aii.af.ra.ms.impl.core.queue.ReceiveConsumer.invokeHandler(QueueMessage, MessageController, Services)
    #J2EE_GUEST#0#SAP J2EE Engine JTA Transaction :
    [057ffffffb160017c]
    #cgbasis.comgroup.cn_XID_5746950#XIAFUSER#0a056bc0900311daa9ca0013d4b31c7c#SAPEngine_Application_Thread[impl:3]
    _36##0#0#Error##Java###Rolling back transaction for
    message due to: #2#d2fe2281-8fd4-11da-cf7f-
    0013d4b31c7c(INBOUND)#Object not found in lookup of
    SapXIJDBCAdapterService.#
    #com.sap.aii.af.ra.ms.impl.core.queue.ReceiveConsumer#sap
    .com/com.sap.aii.af.ms.app#com.sap.aii.af.ra.ms.impl.core
    .queue.ReceiveConsumer.invokeHandler(QueueMessage, MessageController, Services)
    #J2EE_GUEST#0##cgbasis.comgroup.cn_XID_5746950#XIAFUSER#0
    a056bc0900311daa9ca0013d4b31c7c#SAPEngine_Application_Thread
    [impl:3]_36##0#0#Error##Java###Transaction rolled back
    for meesage due to: #2#d2fe2281-8fd4-11da-cf7f-
    0013d4b31c7c(INBOUND)#Object not found in lookup of
    SapXIJDBCAdapterService.#
    In the adapter monitoring, JDBC Adapter icon is grey. I
    can't click for detail information. I only deploy the
    JDBC drivers by SDM remoteGui. What else shall I do.
    Btw, Can you say sth detail about how to test the
    deployed JDBC adapter on visual administrator?
    Thanks
    Elliott

Maybe you are looking for