JDBC- XI- RFC(V.V.Urgent)
Hi ,
JDBC->XI->RFC
I am Integrating Oracle database with SAP(RFC).
How should adapter knows some thing updated in Oracle.
How Should the Triggers in Oracle.How we have to write Query in XI..
Points Will be awarded for the Solution..
Regards,
Jayasimha
Hi
Refer the below links ...
check the below blogs
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
See the below links also ..
/people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response - XI: How-to on JDBC receiver response
JDBC Response /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
Receiver JDBC scenario - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
/people/ajay.kumar/blog/2005/03/24/writing-bsp-for-sap-r3-version-46
/people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii
/people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements
/people/community.user/blog/2006/09/21/xi-rfcadapter-reconnect-issue
/people/sap.user72/blog/2005/12/22/new-to-xi
Rewards point if useful
Similar Messages
-
JDBC to RFC synchronous scenario (Urgent).
Dear forum,
My requirement is data is populated in oracle data base.we are fecthing the data from database through XI and sending it to R/3. RFC is sending the response (suceess/failure) to XI. And XI is updating the status message into database.
For this,I have done the JDBC - RFC - JDBC syncronous scenario using BPM. .I got the successfull message under message monitering.Problem is I cannot able to find the data for RFC and JDBC reciever.
Please find the following Configuration steps for the above scenario
3 data types
JDBC request, JDBC response one dummy structure to capture RFC response messages.
3 message types for the above data types
5 message interfaces.
OB request,
OB ABS request,
IB Asyn for dummy,
Syn ABS (JDBC req and dummy structure),
IB JDBC response.
4 message mappings.
Mapping between JDBC request to JDBC request dummy.
Mapping between JDBC request dummy to RFC request.
Mapping between RFC response to JDBC response dummy.
Mapping between JDBC response dummy to JDBC response.
3 Interface Mappings.
JDBC request to JDBC request dummy.
JDBC request dummy to RFC request and RFC response to JDBC dummy response(Synchronous request and responce) .
JDBC dummy response to JDBC response.
Integration Process.
Used following steps.
Recieve step asynchronous -> Send synchronous -> Send asynchronous
I can able to see the payload for sender under communication channel.But the data is not reached to RFC.can any one help me to come out of this problem.
Points will be awarded for helpfull answers.
Thanks & Regards,
Naresh.KHi Seshagiri,
We are trying the same scenario with out using BPM.
Following steps has been done in design(IR).
2 data types for JDBC request & JDBC response.
2 message types for the above data types.
1 outbound synchronous message Interface.
2 message mappings (JDBC request -> RFC request) and (RFC response -> JDBC response)
1 Interface Mapping.
Could you please let me know how to maintain the collaborative profiles & and agreement details in Configuration(ID).
Your valuable assistence is required to complete the interface.
Thanks in advance.
Kind Regards,
Naresh.K -
Help on RFC to JDBC and JDBC to RFC
Help on RFC to JDBC and JDBC to RFC
Hi Gurus
I have the scenario where an RFC will be triggered in SAP , to write to a DB2 database and insert new records in a table
and vice versa the JDBC has to read som data from a table based on a primary key, mark them as read for not be read next time and send the data to an RFC where a table in SAP will be updated.
I have never worked with JDBC before , pls advice.
is there any new issue to consider in PI 7.0 regarding JDBC
Thanks.The requirement looks standard,
SEARCH IN SDN FOR JDBC scenarios,you will find many docs for sender as well as Receiver.
>
> is there any new issue to consider in PI 7.0 regarding JDBC
>
no issue with PI7.0.
Regards,
Raj -
Gurus,
Background :We have fresh installation of SAP PO 7.3 (Single Stack ) on SQL Server 2013.
Scenraio is : JDBC to RFC async scerio; i can pull data from SQL database but not able to post to SAP
Please advise what to do.
I always provide points for helpful answersHi V Jay - Did you check the below thread?
RfcClientException: functiontemplate from repository was <null>
Q 16: While sending a message to the RFC Adapter the error "... functiontemplate from repository was <null>" is shown. What is the reason?
A: After receiving a message from the Adapter Engine, the RFC Adapter extracts the payload from the message. Normally this should be an XML document in the RFC-XML format. In this format the root element of the XML document represents the name of the function module and is enclosed in the fixed RFC namespace 'urn:sap-com:document:sap:rfc:functions'. But this only will be checked at a later point, when the conversion from XML to native RFC is done. As prerequisite of this conversion the structures and types of the function module parameters has to be known. This is also called metadata or function template. To get this function template the name of the function module is extracted from the root element of the XML document and is queried against the metadata repository of the communication channel. If the metadata repository doesn't have a function module with this name, the exception named above is thrown. Possible reasons are
The XML document, which was sent to the RFC Adapter, is not a RFC-XML document. So the root element name of this document is not the name of a function module and thus can't be found in the metadata repository.
The metadata repository doesn't contain an entry for this function module name. Normally the metadata repository will be an R/3 system and it's function module repository can be searched with the transaction SE37
Reference : 730870 - FAQ XI 3.0/ PI 7.0/ PI 7.1/ PI 7.11/ PI 7.2/ 7.3 RFC Adapter -
Hi,
I am tryiing JDBC TO RFC SCEANRIO.
XI is picking data from MS SEQUEL SERVER but
the same data is not getting mapped into RFC
I am not getting any error as such.
Following are the details.
made a datatype
resultset
row
EmployeeID
LastName
FirstName
message mappping
RFCFORJDBC
resultset outab
row item
EmployeeID----
Empno
FirstName
concatenate--- Empname
Lastname
But for some odd reason
the OUTTAB FOR RFC
is coming like this in message
<?xml version="1.0" encoding="UTF-8" ?>
- <p3:ZZTESTXIJDBC xmlns:p3="urn:sap-com:document:sap:rfc:functions">
<OUTAB />
</p3:ZZTESTXIJDBC>
while payload is getting picked correctly
<?xml version="1.0" encoding="utf-8" ?>
- <resultset>
- <row>
<EmployeeID>9</EmployeeID>
<FirstName>Anne</FirstName>
<LastName>Dodsworth</LastName>
</row>
</resultset>
Kindl help with the sameHi,
t' was namespace.
It solved issue.
Besides
the sql statement
select EmployeeID , FirstName ,LastName from Employees where EmployeeID > 7
and the output is
<?xml version="1.0" encoding="UTF-8" ?>
- <p3:ZZTESTXIJDBC xmlns:p3="urn:sap-com:document:sap:rfc:functions">
- <OUTAB>
- <item>
<EMPNO>8</EMPNO>
<EMPNAME>Laura Callahan</EMPNAME>
</item>
- <item>
<EMPNO>9</EMPNO>
<EMPNAME>Anne Dodsworth</EMPNAME>
</item>
</OUTAB>
</p3:ZZTESTXIJDBC>
but I see only one record is getting updated
<EMPNO>9</EMPNO>
<EMPNAME>Anne Dodsworth</EMPNAME>
what could be the reason for that -
JDBC to RFC Scenario large data
Hi,
I have jdbc to rfc scenario. I have no problem with the small size data (about 10 mb ). if resultset is very large ( about 80 -120 mb ) , i received resultset and proceess it but when PI try to send these data to RFC it stucks status Scheduled in sxmb_moni , and in rwb is to be delivered and doesn't send to rfc.
What can i do ?Since you are using JDBC as sender, I would think you query from the sender and resultset is mapped to RFC for the target system. PI gives optimum performance upto 5 mb message size. YOur message size is pretty big.
Suggestion:
A) Make a minor change and do the query to result less records.
Example: Select Fields from tablename where rownum < 500 and
in update statement set flag = true for the read records so that next time you will not reread those old records again and every time you query only for 500 or 300 or your desired number records and keep the mesg size always constant irrespective of data available.
Hope that helps. -
Question regarding JDBC - XI -RFC
Hi all,
I have a scenario which XI will get data from database (using jdbc adpater) then send data to execute in RFC. This is an asynchronous call. My question is that.
1. If XI can get many records from database in 1 select, will it send many records to RFC at once? Is there any way i could tell XI to split input data into many message (1 message for each record) without using BPM? or Is it possible or better to set import parameter of RFC into table to get many record from XI at once?
2. If i manage to make 1 message for each record, Could i use queue for sending data to RFC? I want the first record to be completed before sending second record. Since this is an asynchronous call, I'm not sure that XI could be able to know when to send the second record or Do I have to make it synchronous call to get return response from RFC after RFC finish execution and use BPM to get return response before sending next data to RFC.
Any suggestion from expert?
Thanks,
PavinHi
1. If XI can get many records from database in 1 select, will it send many records to RFC at once? Is there any way i could tell XI to split input data into many message (1 message for each record) without using BPM? or Is it possible or better to set import parameter of RFC into table to get many record from XI at once?
Yes you can do multi mapping 1:N without BPM
Message Splitting Using the Graphical Mapping Tool
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
2. If i manage to make 1 message for each record, Could i use queue for sending data to RFC? I want the first record to be completed before sending second record. Since this is an asynchronous call, I'm not sure that XI could be able to know when to send the second record or Do I have to make it synchronous call to get return response from RFC after RFC finish execution and use BPM to get return response before sending next data to RFC.
You can queue to process one by one. Response can be obtained with or without BPM
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file(Without%2bBPM)
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/jdbcTOJDBC
JDBC to RFC Mapping Problem.
Thanks
Gaurav -
Hi All,
Can we do RFC->XI->JDBC->XI->RFC scenario without BPM?
In this SAP-RFC executed with SELECT and Table name
And SAP-RFC expect data from JDBC connection.
If not then what could be the expected steps of BPM?
RegardsHi,
Are you talking about a Sync call. I mean are the Sender and Receiver RFC are the same. If it is a Sync step you can do without a BPM.
Like RFC will initiate the process the XI and the the data is selected from JDBC and the response is given back to RFC.
If the above is not the case you can avoide using BPM by having to separate scenarios.
1. Scenario 1 RFC --> XI --> JDBC
2. Scenario 2 JDBC --> XI --> RFC
If there are some dependencies or due to some constraints if you need to use BPM then you will have the steps like
Receiver Async(RFC)Send Sync(JDBC)Send Async(RFC)
Thanks,
Prakash -
Hi,
Please find details of my scenario.
Oracle(VIEW)
Sender JDBC--> PI--
> RFC request
and RFC response I need to update some other table in Oracle using storeprocedure.
and have one more storeprocesdure to update the View so that I will not get duplicate entry.
I am not using UPDATE statement in JDBC sender communication channel, insted of that to update VIEW I am using storeprocedure.
Please let me know how I can achive it with BPM.
Thanks,
BhupeshHi,
1) If the structure send by JDBC is not acceptable by the BPM then you need one Mapping in JDBC ---> BPM flow.
2) If the structure send by JDBC is same as the receiving structure of BPM then no need of Mapping.
3) You will need one Mapping to map JDBC req message to the RFC req message; one mapping program to convert RFC response to the JDBC stored-procedure message....
So your scenario with mappings will be:
JDBC --> Interface Determination (Mapping Optional as per pt.1) -
> BPM
BPM <-> Interface Determination (Request-Response Mapping) <--> RFC
In the above mapping program your ABS MI of BPM should have below MTs
Req Message -
> Original Message Received from JDBC
Response Message ---> Message which needs to be send to the JDBC stored-procedure.
Now your IN SYNC MI at the RFC end should have below MTs
Req Message ---> RFC request message
Resp Message ---> RFC response massage.
Then in the Interface Detremination of BPM <----> RFC flow develop a IM with below mapping programs:
Request Mapping between ---> MessageFromJDBC_to_RFCRequest
ResponseMapping between ---> RFCResponse_to_JDBCStoredProcedure
BPM -
> JDBCStoredProcedure
For this flow there is no need of Mapping program...
using the above mappings programs you can ensure that there is no Transformation step in your BPM...this is to help you in achieving a good performance out of your BPM...
You need a Syns ABS and Sync IN message Interface for BPM <---> RFC communication.
Regards,
Abhishek. -
Hi all,
Anyone have any link for RFC to JDBC to RFC sync scenario step by step?
(For reverse one means JDBC to RFC to JDBC used RRBEANS configuration in sender jdbc channel and created one receiver JDBC channel.)
What should I do for the same?
Any suggestion?
Thanks,
ArthitaHi Inaki Vila,
2. Where I need to configure the RRBEANS ? In which channel?
In the RFC sender channel, the first channel to be used. You can check it in the wiki that i mentioned above.
Could you please provide the wiki link for the same?it ll be very helpful.
3. Is it applicable for reverse scenario?
Suppose JDBC is sender and I'm using one RFC. For that also no need to use any bridge (RequestResponseBean) ?
If you want to take the data from DB source and to pass to an ECC system via RFC you wont need any bridge, you can do a normal async scenario JDBC - RFC.
I'm asking for JDBC - RFC sync scenario where I'm using one RFC.
Thanks,
Arthita -
Dear All,
I'm creating JDBC to RFC Sync scenario.
Configured according to below link,
http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/12/04/jdbc-to-jdbc-synchronous-scenario-with-rr-beans-and-without-bpm-and-rfc-lookup
Sender JDBC structure is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_To_RFC_Source xmlns:ns0="http://FiletoFile.com">
<row>
<A>12</A>
<B>34</B>
</row>
</ns0:MT_JDBC_To_RFC_Source>
But in Test tab of MM_REQ is showing Red.
Why its showing red?
PFA the attached Screenshot.
Thanks,
ArthitaHi Arthitha
You cannot create structure of some kind and use completely different kind of input payload.
If your expected payload is of format
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_To_RFC_Source xmlns:ns0="http://FiletoFile.com">
<row>
<A>12</A>
<B>34</B>
</row>
</ns0:MT_JDBC_To_RFC_Source>
Then your Data type should be created as below
Regards
Osman -
JDBC to RFC synch RFC call not executing.
Hi,
I am working on the synchronous JDBC to RFC without BPM. After completing design and config when I test the complete scenario the data from databse is not getting updated in R/3. And I do not see any errors in MONI. But when compared the moni logs I observed the following between the working scenario and not working scenario.
<u>Working scenario log in MONI:</u>
<SAP:Receiver>
<SAP:Party agency="" scheme="" />
<SAP:Service>ECS300</SAP:Service>
<SAP:Interface namespace="<b>http://sap.com/xi/XI/System</b>">InterfaceCollection</SAP:Interface>
- <SAP:Mapping notRequired="S">
<SAP:ObjectId>YYgNVKC9PTCW4JlMapfxZQ==</SAP:ObjectId>
<SAP:SWCV>IrmTYNPLEdqKItGjlusuXw==</SAP:SWCV>
<u>Not working log from the MONI:</u>
++++++++++++++++++++++++
<SAP:Receiver>
<SAP:Party agency="" scheme="" />
<SAP:Service>ECS300</SAP:Service>
<SAP:Interface namespace="<b>http://my_Own_namespace</b>">JDBC_Rfc_Synch_MI</SAP:Interface>
- <SAP:Mapping notRequired="M">
<SAP:ObjectId>28ZZbGggOw6UcnigDXMD7A==</SAP:ObjectId>
<SAP:SWCV>IrmTYNPLEdqKItGjlusuXw==</SAP:SWCV>
<SAP:SP>-1</SAP:SP>
</SAP:Mapping>
Could some body point me where I am doing wrong ?
Thaks
Steve.Hi Steve,
I think the error is because your database table is expecting some kind of input and the input you are passing has some error in it.Just cross check the table using DESCRIBE <tablename> with the data you are trying to enter.
Also Just look at Query SQL Statement part ubnder this link,
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
Regards,
abhy -
Jdbc to rfc to jdbc scenario is not working
Hi...
We have done the JDBC to RFC to JDBC scenario using BPM, it was working fine in the last month. now we started testing the same scenario, that is not working. In SXMB_MONI it is showing only sender data is successful, it is not showing any RFC Receiver data & Jdbc Receiver data. in the CCM also Jdbc Sender CC is showing successfull and it is showing the successful messages also, but in RFC Receiver CC
& JDBC Receiver CC it is not showing any thing.
please help on this...
Regards,
Pasi.Hi
Check u r RFC response (put external break point)
and check wether it has data
rgds
srini -
Can you explain steps in the Async and Sync scenarios JDBC to RFC.
Hi,
Can you explain some basic steps in the Async and Sync scenarios for sending data from JDBC to RFC.
Like,
The data is picked up from the database table through JDBC adapter.
It is passed on to SAP by calling the RFC. RFC gets executed
successfully. The status is returned by the RFC. The status needs to be
updated back into the SQL database table.
Is this a sync case or async case.
What si the diffrences in the sync and async scenarios in the above JDBC to RFC scenarios.
Sooryahi check the below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
JDBC Synchronous call using BPM
Data Types -
1) File Input
2) JDBC Req
3) JDBC Response
4) File Response of similar type of JDBC Response.. ( This you can avoid also..let it be for first time)
Message Types
4 for each data type
Message Interfaces
1) Async, Outbound, Interface, to receieve the file
2) Async, Inbound , Interface to send the file from XI
3) Async, Absract , Interface of type File message type to recieve the message in the BPM
4) Sync, Abstract Interface with Req message type as File Request, and Response Message type as a file Response
5) Sync , Inbound interface for JDBC with Input message type as a JDBC Request and Output Message type as a JDBC Response
Message Mapping:
1)Mapping between File Req to the JDBC req
2) JDBC Response to File Response
Interface mapping:
1) Sender Interface as a Sync,Abstract Interface created for the file type and target interface as Synchrnous JDBC interface.
Use corresponding mapping for Req and Resp..
note:reward points if solution found helpfull.....
regards
chandrakanth.k -
Step by step cofig for jdbc-- xi-- rfc adapter.
hi,
all
can any one post any doc.. for the scenario
jdbc--> xi -->rfc
thanx
all sdn'sHi ! Dantuluri
U couldnt find the direct weblog
JDBC receiver
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
JDBC sender
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
IDoc sender
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
Refer the below links also for this scenario
/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements
For any issues check this blog:
/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi
also refer these .....
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
idoc settings /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
idoc mapping - /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping
Try this also .....
/people/laxman.molugu/blog/2006/08/13/integration-with-databases-made-easy-150-part-1
Re: Idoc triggering from a transaction
Message Mapping - JDBC to IDoc
Re: JDBC - System/Application Acknowledgement
/people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
Process Integration (PI) & SOA Middleware
Pls reward if useful
Maybe you are looking for
-
Dear all I tried to install Tarantella Secure Global Desktop 4.1. I followed the instructions in the installation guide and the installation finished successfully, however I cannot start any of the default applichation (e.g. Object manager) I always
-
OCS 2007 r2 new users are unable to sign in Help!!!
a little background: we had an issue with our domain controller and had to flash a backup image that we took 2 weeks prior. after we got everything setup correctly again and added users that were not there when we took the image backup. it all seemed
-
I have an older model Mac Pro that isn't WIFI: how do I update it?
I have an older model of Mac Pro - the MacPro 1,1 - that isn't wifi capable.a wifi network. How do I update it to a connect it wirelessly to my router? Would a PCIe card work? If so, what would be the best sort?Should I, instead, get the relevant A
-
HP Pavilion- HDMI to VGI cable Need settings for projectors
I have used my HP pavilion with the HDMI to VGI cable with success earlier. During a cient visit, the technicians changed the settings as it was not projecting and now I am unable to project it anywhere. Please help
-
Hi, I am using the Runtime class to execute some code that will send the user an email when they create an account on the website. For some reason the emails are taking a very long time ( a couple hours) to arrive whereas when executing the command f