Need Help...........JDBC Adapter

Hi All,
We have installed SAP on OS/400.
My scenario is IDOC XI JDBC.
We have created a File JDBCTEST , member JDBCTEST and Field JDBCTEST.
These are created under a lib QLGP.
Then I did a message mapping between the IDOC and JDBCTEST by concatenation function.
<b>IN THE JDBC ADAPTER CONFIGURATION I am getting the error
Value missing for mandatory configuration attribute table EOColumnName Ts</b>
In the EO JDBC ADAPTER Configuration, the DATABASE parameters:
DBTABLE:JDBCTEST
KEY COLUMN NAME:JDBCTEST
Is there anything wrong I am doing?
Any help is appreciated.
Thank you.

Hi Bhavesh,
My XML structure after testing the mapping is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1><ns1:TEST_MT xmlns:ns1="http://mri.com/xi/IDOC2JDBC"><STATEMENTNAME><JDBCTEST action="INSERT"><access><JDBCTEST>567,23,2345,MRI</JDBCTEST></access></JDBCTEST></STATEMENTNAME></ns1:TEST_MT></ns0:Message1>
I have tested by giving the PERSISTENCE as LOCAL,then intially there was no error but now I am getting the Transformation error.
TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'JDBCTEST' (structure 'STATEMENTNAME'): java.sql.SQLException: [SQL0104] Token MOTOR was not valid. Valid tokens: ) ,.
Am I doing anything wrong in the JDBC Adapter Configuration or Message Mapping?
Please help me out with this issue.
Thank you in advance.

Similar Messages

  • [Help]JDBC adapter- sender/receiver

    Hello Gurus,
    I have a scenario but can not find a solution.
    We have a ECC and a database.
    The scenario is to run a report from ECC, sending the selection criteria to the database, and get the result from the SQL statement.
    How can i configure in PI?
    Thanks a lot in advance!
    Best regards,
    Charlie

    Hi,
        This can be done using sync client proxy call.
        On the ECC side we need to make a sync call to PI using client proxy, the input parameters to this proxy will be the
        selection criteria, on the receiver side in PI use JDBC adapter.
        For receiver side use the data type for "Select" statement :
        (http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm)
         and in mapping use the values received from ECC and map them as <key> elements.
        The returned value will be part of the output parameters of the client proxy.
    Pravesh.

  • Need help for Adapter Specific Message Attributes in Receiver Email Adapter

    We want to use Adapter Specifice Message Attributes(ASMA) in Receiver Email Adapter for sending the mails dynamically, and to set the CC and BCC. I have gone through the help give in <a href="http://help.sap.com/saphelp_nw04/helpdata/en/a5/1b5342d8a7be30e10000000a155106/frameset.htm">SAP Help</a>
    not clear how to use it. Please help to configure this.Any blogs?
    with regards,
    Ravi Siddam

    Hi Kumar,
    This blog explains about using 'Mail Package' option. We have already gone through this link and configured as explianed.  1.it dosen't support CC,BCC and 2. it is old way.
    We are on PI 7.0. It is recommended to use ASMA and in this it is possible to use CC and BCC.
    We don't know how to use ASMA. any help?
    with regards,
    Ravi Siddam

  • Need help JDBC masters

    Hi everybody;
    i'm doing a web app to record TimeIn and TimeOut for the employees of the company...
    now each branch of the company has a different timeIn (for ex. 10.00 or 8.00,,) and this is all stored in the DB..
    what i'm doing is that i'm taking this time from the MS SQL DB as Timestamp, and getting the current time also as Timestamp...
    now the current time is completely correct with the date (ex. 2007-07-22 08:45:00)
    but the MS SQL DB Time is becoming like this when retriving it (1900-01-01 08:00:00)..
    see...
    the time is correct but the DATE !!!!!!
    i want to know if the employee is late or not so when ever i'm using this:
    currentTime.after(branchTime)
    i'm getting true for sure...
    now what i thought of doing is away of getting only the time from both Timestamp obejcts and compare it...
    but again how to trim this object...
    I don't know really.. help me find a solution...
    Thanks in advance...
    p.s if you need more info. pls inform me...
    Q.Najjar (^_^);

    Thanks for everyone who tried to think about it...
    will i found a soultion for this matter. ..
    and to get some exp. here it is:
    1- I took the java.sql.Timestamp branchTime and formed into string by calling toString();2- using the substring(int beginIndex) to cut the time and remove the wrong date:
    ex. branchTime.toString() = 1900-01-01 08:00:00:0.0so i cut the 08:00:00:0.0 and save it into another String..
    3- now i took the current date from java.sql.Datewhich gives correct date, so again i turn it into String and using substring() i took the date like 2007-07-224- the last thing i did was to use the method timestamp.valueOf(String s) which takes the string formed like this YYYY-MM-DD HH:MM:SSand the string i passed to through the parameter of valueOf(String s) was like this:
    s = the date i got in step 3 + " " + the time i got from my DBand here it is a new Timestamp with the right date and it just look like this 2007-07-22 08:00:00:0.0I know it's complicated a bit, but at least i solved it...
    hope that somebody would take benfit from this...
    Thanks All
    Q.Najjar (^_^);

  • Need help JDBC conncetion for local database

    I have installed Oracle 8i home version on PC. I'm trying to access my database using JDBC, but I'm having problems with JDBC. How do I connect to the local database. Please post me the coding for that.
    Thanks
    my email address is - [email protected]

    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/basic.htm#1003303

  • NEED HELP: JDBC ERROR

    I get this error when I try to connect my applet through JDBC:
    Error null: Unexpected Packet. Type = 0
    I have punch a hole on my firewall to allow my jdbc thin to hit
    directly to oracle database.
    If you have an answer for my problem, please email me at
    [email protected]
    Thanks a bunch,
    -ed-
    null

    Hi ,
    Use following String
    http://<Hostname>:<PortNo>/ftpjdbc
    This can be used to check whether FTP and JDBC Drivers are properly deployed and connection can be done or not.
    Select JDBC . Then   :
    Driver Class (fully qualified)  : com.microsoft.sqlserver.jdbc.SQLServerDriver
    JDBC URL : jdbc:sqlserver://255.255.255.255:8888;databasename=Dummy
    USERNAME : DUMMY
    PASSWORD : DUMMY
    and enter valid values and then press connect
    Then In response you will see connection will be established and then closed , any else response means there is some problem...
    Regards
    Prabhat Sharma.

  • Need help reg sender JDBC adapter

    Hi,
    I am having a requirement like, i need to fetch the data from two data base tables. and after fetching the data, i need to update those two tables.
    For selecting the data from two tables, two select statements i need to write, how i can give two select statements in sender JDBC comm channel.
    In sender JDBC channel, only one update query we can give...how i can update two tables?
    Regards,
    Venkata Ramana.

    Hello Venkat,
    For your requirement, go for stored procedure and find the below thread.
    Fetching data from JDBC without using JDBC sender adapter
    Re: Executing an Oracle Stored Procedure from Sender JDBC adapter
    Re: Sender JDBC adapter not picking up data
    Re: Retrive data from two diffirent tables
    hope this will help you
    Thanks,
    Venky

  • Need help on JDBC

    Hi All,
    I need a solution on one of the requirement. Could you please help me on this.
    Requirement:
    I have to set up a interface between SQLServer and SAP HR using SAP XI. There is one constraint on database. We should not insert/update the data to the existing database table and can create other database if needed. Interface should run by every hour. one unique field transaction is there in the table.
    My doubt is how can we ensure that not to read any duplicate records every time.
    These are the possibilities :
      Option 1 :
    Create another database and table with additional update flag and transfer the whole data from the original database to this newly created database table using triggers.
              We need to poll the data from the newly database table and update the status every time.
    Disadvantage : Maintenance of additional data base is to push the effort and also would introduce complexity.
              Any comments on this solution ??
      Option 2:  Read the whole data from DB and send the data to proxy.
                    proxy should do the following.
    a)     Insert the whole data in Ztable (we need to create Ztable in SAP HR)
    b)     Call the BAPI to update the SAP HR data
    c)     Select max(Transaction) from the ZTable.
    d)     Need to pass this parameter to the JDBC adapter  (to ensure that not to read duplicate records)
    e)     Adapter will read the  data from next transaction ID basing on this parameter in next poll.
       My doubt would be is there any option that we can call Adapter from receiver proxy and pass this dynamic parameter(Transaction) ??
    Please review this and provide best possible solution.
    I am waiting for your reply.
    Regards,
    Sekhar D

    HI,
    can we call the adapter from proxy to pass this dynamic parameter
    Yes ofcourse.
    U use the IP address of the server along with the communication component and communication channel... and u can
    call a adapter passing the parameters.
    Please search in SDN for the same.. there are lot of blogs and wiki available.
    Babu

  • Need to connect to Oracle 11g using PI 7.1 JDBC adapter

    Hi All,
    I am trying to configure a JDBC adapter to connect Oracle 11g. For this I need to know the driver,jar and connection URL details.
    Can anyone please provide the above information?
    Please correct me if my details are wrong :
    JDBC Driver : oracle.jdbc.driver.OracleDriver
    JAR : ojdbc5.jar
    URL : jdbc:oracle:thin:@localhost:1521:ora11i
    Regards,
    Prakash.

    Yes i knew how to deploy the jars using SDA.
    I will try to deploy the above jar (ojdbc5.jar ) and try to connect to Oracle 11g with URL & Driver classname.
    If I face any problem then i will get  back to you.

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • Urgent help needed in jdbc

    Hi Experts,
    I am getting the following error while trying to send a request from HTTP test client to my database, inspite of giving the defining the select query perfectly,
    Please help me out in this regard, it is a urgent requirement.
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'tdsp_esiid' (structure 'STATEMENT'): java.sql.SQLException: ORA-00923: FROM keyword not found where expected
    </SAP:AdditionalText></SAP:Error>

    Hi,
    Use your structure like this.
    <StatementName4>
    <dbTableName action=”SELECT”>
        <table>realDbTableName</table>
    <access>
    <col1/>
    <col2/>
    <col3/> 
    </access>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName> 
      </StatementName4>
    action=SELECT
    Statements with this action cause existing table values to be selected. Therefore, the statement corresponds to an SQL SELECT statement.
    The <access> block contains the column names to be selected, a <key> element contains the columns whose values must be identical with the specified value to get the new column values. The name of the <key> element is arbitrary. Column values within a <key> element are combined with a logical AND; different <key> elements are combined with a logical OR.
    A statement with the action SELECT must have exactly one <access> element. The number of <key> elements with arbitrary names is not restricted.
    The corresponding SQL statement for StatementName4 in the example above is as follows:
    SELECT col1,col2,col3 FROM dbTableName  WHERE ((col2=’val2old’ AND col4=’val4’) OR (col2=’val2old2’))
    If there is no <key> element, or if there is a <key> element but it is empty, then no condition is specified and the entire table is to be selected. This may not be permitted by the configuration of the JDBC adapter for security reasons and will therefore result in an error during message processing and an appropriate error message.
    The response document contains the result of the action in XML format as follows:
    <row>
    <column1>value11</column1>
    <column2>value12</column2>
    </row>
    <row>
    <column1>valueN1</column1>
    <column2>valueN2</column2>
    </row>
    This will help you.
    regards
    Aashish Sinha
    PS : reward points if helpful

  • Help Needed : Setting JDBC Datasource in Crystal XI using Sybase 12.5??

    All,
    We are migrating our systems to the Crystal XI from Crystal 9 Reporting Servers. I need some technical assistance on the Java API ( use of the Datasources) .
    Problem: Currently in Crystal 9 we are using OLEDB datasources to connect to various Sybase 12.5 databases (which is been set programmatically at runtime). After I changed the Java code for getting the report object from the Crystal XI server instead of 9.  I stared facing the dbLogon failed exceptions.. But surprisingly it does work randomly on only one datasource for a given session (AppServer Restart).
    Need Help on Topics:
    1. Is there any different way of configuring/usage the OLEDB datasources for CrXI? or any Java API changes while setting the datasource when using OLEDB?
    2. Configuration required for using Simple JDBC connection (Sybase) instead of OLEDB? Can I get detailed help on this.
    I will prefer using JDBC for CrXI using the Sybase 12.5, but there are very less documentation for how to configure and set databases at runtime.
    Many Thanks in Adv.
    Regards - Sudhir Deshmukh | Solutions Lead

    Hi Sudhir,
    For Building up a connection for OLEDB  we need :
    In order for Crystal Reports to connect to a database through OLE DB, there are some requirements that must be met:
    u2022     The database client software must be installed on the client machine.
    u2022     The client machine must be able to connect to the server from its client software
    u2022     The client softwareu2019s working directory (example. c:\orant\bin) must be in the Windows search path
    u2022     The OLE DB provider must be installed on the local machine.
    We have the connection for crystal reports through OLEDB :
    The process by which Crystal Reports access data from an OLE DB data source consists of these five layers:
    Crystal Reports Layer
    OLE DB Translation Layer
    OLE DB Layer
    DBMS Translation (OLE DB provider) Layer
    Database Layer
    The data translation is similar to the ODBC connection model. Crystal Reports uses CRDB_ADO.DLL to communicate to the OLE DB provider, which communicates to the database. Crystal Reports can connect to any database as long as that database has an OLE DB provider.
    When creating a new report in Crystal Reports, OLE DB data sources are found in the Create New Connection folder with the OLE DB (ADO) connection.
    Regards,
    Naveen.

  • I need help identifying which Magsafe Power Adapter I need for my Macbook Pro Model A1398, EMC 2673?

    I need help identifying which Magsafe Power Adapter I need for my Macbook Pro Model A1398, EMC 2673?

    Provided the computer-end fits, you are free to use one with a HIGHER Wattage rating. No damage whatsoever will be done to any component, but it will likely run cooler (but may be slightly heavier).
    If you use one with too LOW a Wattage rating, you will not be able to charge and run at the same time, and your computer's top speed (for its most intensive computations) will be limited.

  • Need information about Mail  and JDBC Adapter

    Hi Guys,
    I am just started learning XI. Can any you provide any document how to use Mail and JDBC adapters in step-by-step way.
    Thanks & Regards
    Surendra M

    hi,
    Check these links
    Mail Adapter
    http://help.sap.com/saphelp_nw70/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    JDBC Adapter
    http://help.sap.com/saphelp_nw70/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
    Receiving Mail attachments using additional files of file adapter
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    FILE to JDBC Adapter using SAP XI 3.0
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Tips and Tutorial for Sender JDBC Adapter
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    Sachin
    Message was edited by:

  • JDBC Adapter. Help required

    Hi All,
    Can JDBC Adapter be used for calling API for
    stored procedures of database.
    If yes please send blogs/docs for it.
    Regards

    hI Rick,
    Chek action=EXECUTE point from this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Hope this helps you.
    Carlos

Maybe you are looking for