Regarding JDBC Adapter in SAP XI
Hi
I have done one scenario in SAP XI using JDBC Lookup it is working fine thanks for all who were helped me ......
I need a clarification on following
What is
Generic Lookup API
Special Lookup API
and while i am configuring i have given
Persistence : Local
Confilct Resolution : Redo
In what situation we will give Presistence : Local and in what situation we will give Persistence : Database means i need to know where we will use LOCAL and where we will use DATABASE
and what is the difference between REDO and ERROR...........?
In Message Protocol we have two protocols
XML SQL Format
Native XML Format
what is the difference between these two
I have gone through some blogs which i got in my previous posts but i am not able to understand clearly..... can any one clarify my doubts please........?
Best Regards
Ravi Shanakar B
Generic Lookup API
In the case of generic access, before executing the lookup, developers first need to both build the payload that the adapter expects and parse the result payload themselves.
To access an application system generically, developers use the SystemAccessor class. For generic calls, developers of a method must pass a stream with the payload, which is then sent to the adapter. The result of the call is a payload object, which you can use to both read the payload as a stream and parse the payload.
The generic lookup API is part of the mapping API (see LookupService class in the Javadoc documentation). For more information about these APIs, see SAP Developer Network at https://www.sdn.sap.com/irj/sdn/javadocs
You can obtain the schema to call an RFC by simply importing the RFC into the Integration Repository. (See Importing IDocs and RFCs.)
Special Lookup API
For access using the special lookup API, developers do not require any knowledge of the structure of the payload. Instead, they pass the API string commands that are to be executed in the application system called.
Currently, there is one special lookup API for the JDBC adapter. To use this API, developers use the DataBaseAccessor class instead of the SystemAccessor class.
The special lookup API is part of the mapping API (see the getDataBaseAccessor method of the LookupService class in the Javadoc documentation). For more information about these APIs, see SAP Developer Network at https://www.sdn.sap.com/irj/sdn/javadocs
XML SQL Format
Table values can be inserted, updated, or deleted in one or more tables. In the database, stored procedures can be called using transfer parameters. In the case of synchronous queries, results from database queries or return values of stored procedures can also be transferred.
Native SQL String
An arbitrary SQL statement is expected as the message content. This statement is transferred unaltered to the database for processing
Please see the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
Regards
Chilla..
Similar Messages
-
JDBC adapter to SAP: select & join from multiple tables ???
Hello,
I have a task to get an aggregating information from two tables and send it into SAP.
I use XI JDBC sender adapter to access to MSSQL DB.
I know how to construct SQL quiery:
(something like that)
SELECT table1.Date SUM(table1.sum) from table1
INNER JOIN table2
ON table1.Number = table2.Number
But I don't understand how to construct Data Type for this complex select operator?
How does it look like?
Where to store and how to map the selected data?
Please give me an example or an advice.
Thank You.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 -
Problem in JDBC Adapter in SAP PI 7.0
Hi Everyone,
I have scenario JDBC to JDBC......I Designed and Configured the Scenario....When I executed the scenario my connection to the
PI dev server is lost........
Then in Config tool I setting jdbc adapter option to "manual" which is "always".....and deactivated the JDBC communication
channel.....then I set the option to "always" from "manual" in config tool.......
I am not getting exact problem.....Please help me out.....
Regards,
SudheerHi,
I explain you my scenario once again...................i.e JDBC to JDBC......
I am using MS-Access as database............
I have completed IR part and in ID part I configured Sender Communication channel by giving the following Connection details
sun.jdbc.odbc.JdbcOdbcDriver
jdbc:odbc:Driver= {Microsoft Access Driver (.mdb)};DBQ=C:\XI_FILES\SENDER\Student_Database.mdb*
After completing RD/ID/SA/RA....as soon as I activated CC.....there gone connection to Server and cannot open the IR or ID or
Runtime Work Bench.......
If I enter SXMB_IFR in Dev sever...it is giving error "Enterprise Service Repository address not maintained"......
After that with some discussions with Basis people they have found that J2ee engine stoped. then in Config tool they
changed jdbc adapter settings to "Manual" so that we can deactive CC that is activated.......Then after that "manual" is
changed to "Always" and now Server is running fine.....
My probelm is......
When I am activating CC, the server is going down immediatledy.....and I dont know exactly where the problem is
occurring........
Regards,
Sudheer -
Hello Experts,
If i want to perform File to JDBC Scenario, Is it require any pre-requisite for JDBC Adapter configuration.
Thank youHi ravi kumar chandragiri ,
The following websites will answer u'r question:
JDBC is a technical Adapter provided by SAP.
Configuring the Sender JDBC Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
Configuring the Receiver JDBC Adapter
http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d36d51d-0b01-0010-b3aa-9cb313b63cf4
SAP XI Utilize SAP Adapters to connect to heterogenous systems
https://wwwn.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3fc4bd90-0201-0010-68bd-ab931b06f9c2 -
Jdbc adapter in sap netweaver pi 7.3
Hi All,
My system details:
SAP NET WEAVER PI 7.3 and database MYSQL 10.00.2531
Can you pls let me know
1. what are all the drivers I need to download ?
2. from where I can download JDBC drivers ?
3. how to deploy JDBC drivers into our PI 7.3 server.
Regards,
Rajesh.>what are all the drivers I need to download ?
You need just jdbc driver
>from where I can download JDBC drivers ?
http://www.mysql.com/products/connector/
>how to deploy JDBC drivers into our PI 7.3 server.
Use JSPM to deploy jdbc and jms drivers. It is pretty much similar to PI 7.1. No big difference. -
Cmp connection over XI with jdbc adapter to sap r/3
Hi,
hope the subject is possible!
Is there some documentation which describe a successful appilication, that can get data from sap, and can write it back?
Thanks
PPeter
Message was edited by: Péter PappHi,
U can go through the following steps to perform an RFC call to SAP system
Steps:
<b>Design time:</b>1) Import the RFC into design time.
2) perfrom the required message mapping between source message and RFC .
3) perfrom the imterface mapping.
<b>
Configuration time :</b>
1) Create a sender agreement, receiver determination, interface determination and interface mapping, and receiver agreement.
In receiver agreement, use an RFC adapter ( receiver channel ) and provide the necessary parameters to connect to sAP system.
Links of help:
http://help.sap.com/saphelp_nw04/helpdata/en/25/76cd3bae738826e10000000a11402f/content.htm
hope this helps you,
Cheers,
Siva Maranani. -
Hi,
I have few question and I am requesting you to answer my questions.
1. What is the purpose of Program ID to specify when we configure the Sender RFC communication Channel?
2. How to get the JDBC Driver name , connection parameters, Host and Port for the JDBC Communication channel configuration. My Basis consultant said, he has not aware this JDBC Adapter?
I need to use JDBC Adapter for my JDBCXIFile Scenario. Please explain me the step by step procedure. Please explain me from where we need to get the above parameters and JDBC Driver already configued in XI. I need the Driver name with syntax and connection parameters, host and port.
3. Where we need to write the SQL Query for SELECT, INSERT, DELETE, and UPDATE in configuring the Receiver JDBC Communication channel?
I am very thankful to you in advance.
Nagarjuna.Hi,
I have few question and I am requesting you to answer my questions.
1. What is the purpose of Program ID to specify when we configure the Sender RFC communication Channel?
Program ID : Program ID of the registered server program. The selected program ID must uniquely describe the RFC sender channel in the configured gateway (Application Server (Gateway) and Application Server Service (Gateway) parameters). Also this program where you execute your RFC function with specified RFC destination.
2. How to get the JDBC Driver name , connection parameters, Host and Port for the JDBC Communication channel configuration. My Basis consultant said, he has not aware this JDBC Adapter?
I need to use JDBC Adapter for my JDBCXIFile Scenario. Please explain me the step by step procedure. Please explain me from where we need to get the above parameters and JDBC Driver already configued in XI. I need the Driver name with syntax and connection parameters, host and port.
Host and Port for the JDBC Communication channel configuration: there are DB parameters which you are using.
info about installation drivers for JDBC & JMS adapters
FIRST: drivertool you can find at https://www.sdn.sap.com/irj/sdn/howtoguides
Then Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 How to Install and Configure External Drivers for JDBC & JMS AdaptersDownload attached system files (ZIP 16KB)
SECOND:installation guiade:
External Driver Configuration for Process Integration 7.0
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60237e74-ef19-2b10-5a9b-b35cc6a28e83
Tips and Tutorial for Sender JDBC Adapter
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
File-to-JDBC(Receiver JDBC)
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
3. Where we need to write the SQL Query for SELECT, INSERT, DELETE, and UPDATE in configuring the Receiver JDBC Communication channel?
You write them in action tag in Message Mapping.
For the details find "Document Formats for the Receiver JDBC Adapter" on help.sap.com
BR,
Dzmitry -
Regarding JDBC Reaciver Adapter
Hi Everyone,
After Mapping in IR do i need to write any SQL Statements in ID.Some one can help me in these.
Regd's
RajDo have a look at these links :
http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Also this weblog - /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 -
JDBC Adapter - Established database connection failed
Hi Guys,
we have installed the JDBC Adapter based on the How To Guide and we checked after the installation the Libaries :Cluster --> Server --> Libraries --> com.sap.aii.af.jmsproviderlib and the box Box "JARs Contained" was filled.
So in my point of view we have done everything right during the installation.
Now the developer tested theJDBC Adapter and he comes back with following Error:
Attempt to establish database connection failed with SQL error com.sap.aii.adapter.jdbc.sql.DriverManagementException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://xxx.x.xx.xxx:1433; databaseName=CZZ03;":ClassNot FoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
Do you have any ideas?
Regards
MarkusHello Markus,
To install JDBC driver follow the how to guide.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
Configuration of JDBC Adapter for SQL Server
JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
UserID and Password.
If the connection is not working find the correct port number.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
JDBC- X I - R/3 Scenario
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Thanks,
Satya Kumar
Reward Points If it is Useful.. -
Error in JDBC Adapter Configuration....
Hi,
My scenario is like this FTP->XI->Oracle Database.
The problem is that the files are not getting posted to the database though it is running well.
In XI receiver comm channel in JDBC adapter, I have provided the Connection path as jdbc:oracle:thin:@esealmw275.al.sw.ericsson.se:1521:S14. Whereas in channel monitoring it is taking jdbc:oracle:THIN:@esealmw275.al.sw.ericsson.se:1521:S14. Please note it is taking THIN as in caps.
Can anybody suggest me is this the proposed error for that, if it is so, then pls provide me the suitable solution for that.
BR
SoumyaHi Soumya,
Have a look at ths blog...
<a href="/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 to JDBC Adapter using SAP XI 3.0</a> by Anirban Ghatak
Also have a look at this wiki
https://wiki.sdn.sap.com/wiki/display/XI/JDBCTOJDBC
Regards
Santi
<a href="Remember to set the thread to solved when you have received a solution to set the thread to solved when you have received a solution</a>
Where There is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way. -
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. -
Reciever JDBC Adapter error (Oracle)
Hi,
I am trying FILE-XI-JDBC Scenario to get data loaded in Oracle. I have configured the reciever adapter in Communication Channel but while sending the message i am getting the following error:
<b>com.sap.aii.af.ra.ms.api.DeliveryException: JDBC Adapter configuration not initialized: null</b>
Can anyone guide me what needs to be done here?
Below are the settings that i am using:
JDBC Adapter: jdbc:oracle:thin:@<ipaddress>:<port>
Connection: oracle.jdbc.driver.OracleDriver
Thanks,
Rajneeshi am getting the following error:
>>>>com.sap.aii.af.ra.ms.api.DeliveryException: JDBC Adapter configuration not initialized: null
means connection to ORACLE DATABASE is not established.....check whethere oracle database is working or not...
2) check DATABASE CONNECTION fields....
jdbc driver and connection....
JDBC receiver
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - <u><i><b>File to JDBC</b></i></u>
How to use SELECT statement in JDBC scenario's.
Ref : https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1725 [original link is broken] [original link is broken] [original link is broken]
stored procedures
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures by siva
Best Regards,
Srikanth
Reward the useful answers and you will get one point yourself
/people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself ---onepoint blog -
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 Mhi,
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: -
Hi Experts,
We have nearly 60 interfaces will read/write from/on DB and AS400 tables.
We are facing so many problems in production system. Everyday the messages are strucking at Adapter Engine. All messages are in "To be delivered" stage. If we can stop some cc's then it is processing slowly even the Database is using 60% usage.
We tried to create logical views(Instead of Physical views) on DB and AS400 even the performance has not increased.
We have used "prefetch=false" at "connection" on JDBC adapter but no use.
We can use "Disconnect after each message processed", but my client is not agree with this option.
We don't want to increase the connections to DB and AS400.
Is there any parameters needs to be updated at JDBC Adapter?
Help needed...
Regards,
Rams.Hi,
The below links may help u.
JDBC ADAPTER
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC
JDBC - http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
multiple tables with JDBC - http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
JDBC Response /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
Regards
Pullarao -
Hi Experts,
I am coming from background of production support of the current XI environment. Do anyone of you have a good site on step-by-step guide to create an interface in JDBC adapter?
Currently I have an interface whereby SAP will do direct update to a third-party Database. I can only get the login information like IP address, Login ID and Password in the Communication Channel of the interface, but I cannot find the 'Table name' and also the SQL statement to do the insertion of data to the third-party Database.
Any enlightenment?
thanks.
Cheers,
Isaac.Hi,
Here is one good example of File to JDBC:
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 -
About JDBC Drivers:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f
Regards,
Sarvesh
Maybe you are looking for
-
Mini-DVI to HDMI adapter or Mini-DVI to DVI cable?
I know Apple has a couple different Mini-DVI adapters for their Powerbook and MacBook computers. I don't especially like adapters and was wondering if anyone knows of a Mini-DVI to DVI cable. Also, with the gaining popularity of HDMI, do you think we
-
Refresh APEX_ITEM.TEXT Value when Interactive Report Page Changes
I use an APEX_ITEM.TEXT column in an IR where the user can enter some number date. to make this data persistent while paginating the ir, i use some DA . Via ajaxthis DA call an onDemandProcess to save the entered data in a collection. works great; th
-
How can I select 5-star photos in one catalog and use them to create a new catalog
I've been using Lightroom since LR1. I now have several LR 5.5 catalogs generally organized by year and camera. I want to create a new catalog which will contain my best from each catalog. BUT, I don't want to remove the photos from their "home" cata
-
How do I get Discoverer 3.1 to read data from Paradox 8.0?
The on-line manual for version 3.1.36.06 of the Discoverer Admin product suggests that you can read in data from non-Oracle databases. The following steps are from the on-line manual instructions about creating a new business area: 1. From the File m
-
Can i use my ipad2/iphone or touch to interface with a home phone landline?
My house phone has broken and i was wondering if there is a docking device that can be interfaced with one of my apple products to make it utilise my landline.