RFC to JDBC Asynchronous Acknowledgements
Hi All,
I have one scenario RFC to JDBC (SQL db) async. This is schedule once in a day.
My customer wants, if any data has unsuccessful to insert in a table of DB. ECC automatically come to know and send the particular data again.
Is it possible?how?as of now I'm using PI 7.1.
Please suggest me..
Thanks,
Arthita
Hi Arhitam
Why to complicate the scenario with acknowledgments?, your requirement implies a synchronous scenarios, if you dont want to retrieve data in the source RFC, you can do async/sync bridge like RFC - JDBC - Adapter to retrieve confirmation (Check point 4 to see an example http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f96dbf-adca-3010-ffb5-daf2d1f0e276?QuickLink=index&…)
Regards.
Similar Messages
-
RFC to JDBC Async Acknowledgements
Hi All,
My scenarion is RFC to JDBC async. I want a ack back from JDBC side after successful uploading of data. This is a schedule job(Once in a day).
How to configure an acknowledgements?any step by step guide?
Thanks,
ArthitaHi,
You can find more information about acknowledgements using these links:
http://help.sap.com/saphelp_nwpi71/helpdata/en/55/65c844539349e9b1450581ab44a5e6/frameset.htm
Acknowledgment Support in the Adapter Engine - Integration Directory - SAP Library
The documents above say that acknowledgements need to be requested by the sending application. But from the definition, you can only request acknowledgements if you are using Java/Abap Proxies and Integration Process (BPM).
Regards,
Mark -
Synchronous - asynchronous interface (RFC - XI - jdbc)
hello to everybody!
i want configure a synchronous - asynchronous interface (RFC - PI - jdbc) whit my PI 7.1
This RFC send 2 output tables to PI/XI and i want write it into 2 different tables in a SQL Server Database.
How can i do it?
i tried whit one mapping to a unique outbound datatype...but only header table was insert and not rows.
i tried whit 2 Receiver Interfaces but i have on mapping the follow error:
Multiple inbound interfaces not supported for synchronous calls
so??
other possibility?
BPM?
please help me
Thanks
AlessandroHi,
I have a similar problem; I have JMS - PI - RFC synchronous scenario. I will receive message from JMS, and depending on the data received, I should call either of two RFCs (NOT BOTH). The BAPI return message should then be sent back to JMS.
Hence, I have one "Sender/Outbound" Message Interface, one receiver determination for that Message Interface - in which there is "one" receiver (backend SAP system).
In "Interface Determination", I specifed the two BAPIs as two Interfaces, and defined conditions based on "context objects" - since I need to know the Interface Mapping "dynamically"
However, I get the error - "Multiple inbound interfaces not supported for synchronous calls ". any suggestions on how to proceed?
I am posting this question here as it is a related issue. Hope it is fine.
Thanks,
Archana -
Hello,
I have a scenario SAP-> RFC -> XI -> JDBC. Where i'm using data from SAP R/3 to update a table in an Oracle database of a third party system. Is there any way i can find out if the fields have been updated succesfully or not?
I know that only if i use a synchronous JDBC reciever i will get a response.
Helpful suggestions will be rewarded.Hi,
The Response sent by your JDBC adapter will be not be a Apllication Level Acknowledgement, but rather a System Level Acknowledgement and so, you will have to configure a BPM, if you want to send the number of rows Updated as a response to your RFC.
For more info, just take a look at this link,
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
It contains the info,
<b>The response documents described below can only be evaluated by the Integration Server/PCK if the call is synchronous because the content of the response document is not accessible if the call is asynchronous. The response is put in a separate element <StatementName_response> for each statement element.</b>
So, if you want to send the response, then you will have to configure your receiver JDBC adapter sysnchronous, use a BPM to route the response message to whichever system you want.
Regards,
Bhavesh -
RFC to JDBC or PROXIES to JDBC ??
Hello,
I have a scenario where i need to send the data from SAP to two different Databases.
In this what would be the best solution between RFC to JDBC and Proxies to JDBC.
Which type can i prefer if I
1) Have the response from databases to SAP?
2) No response from the database to SAP?
Appreciate for your answer.
Thanks
LaxHi Madduri,
Even I had to develop RFC to JDBC scenario. Our SAP system version was 4.7C
Earlier my requirement was to send a response back (Synchronus) to SAP saying how many records were updated in the tables.
The interface worked well till the development and quality system. however in Production system the interface started giving performane problems.
The sender RFC adapter gave lot of problems in production. Many times the Data sent from SAP system didnt even reach the PI box. We reported this error to SAP, however even they were not able to provide a solution.
Then we decide to go for Asynchronous RFC to JDBC scenarios. Even Asynchronous interface gave same error in production.
We couldnt use proxies as our SAP system version was 4.7C and there was no scope of SAP system being upgraded to 6.2 or higher. So in the end we had to scrap the interface.
Just wanted to share above information with you.
So best option for you would to use proxies if your SAP system verison is >= 6.2. Synchronous or Asynchronous will totally depend on business requirement.
Regards,
Deepak -
Rfc to jdbc --issue with import structure
Hi
I am doing asynch RFc to jdbc scenario, for which I followed the below blog,
/people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
(My abap code is as per the blog)
But one doubt ,as per the blog, my imported rfc structure in IR doesnot conatin those fields(table structure) then how this mapping is going to happen?
Else all the configurations are ok and success in runtime n in sxmb_moni,
Please can anyone help in understanding this,
ThanksHi,
What is the problem which you are facing ?
You cant see the fields after importing in XI ?
If so where are you trying to see the fields ?
>>wanted to know as to how to code in R/3 so as to trigger the RFC in background.
This is what is mentioned in the blog.
>>i am not able to understand the blogs logic (R/3 code)
Which part of the code you are not able to understand ?? theres hardly any code .
Any part/word of the code which you cant understand ..just click on that word and press F1.
Regards,
Sumit -
RFC to JDBC(Insert) async scenario
Hi Experts,
In RFC to JDBC(Insert) async scenario we are getting the the response from JDBC as <insert_count>1</insert_count> after inserting in to DB . Is there any way to stop getting response?
Regards,
Raj<insert_count>1</insert_count>
Firstly this is not an error but an acknowledgement from the JDBC that the Insert for the corresponding Statement node is successful. The count 1 represents that you have made just one Insert-Statement call to the JDBC......had there been no Insert in the DB then you could have got 0 insetad of 1.
Normally happens when the sender requests for an acknowledgement. Don have knowledge on the ABAP-front so cant comment on the blog given by Prateek, but seems that because of the sync nature of RFC you are getting this ack from JDBC...
Regards,
Abhishek. -
Want help in rfc to jdbc connection
Hi PI gurus
I have a requirement in PI that i have to integrate SAP with pacer system .pacer is having oracle database.
in SAP side iam using RFC in pacer side i have to use JDBC adapter.i have to update the data in pacer tables.this should be asynchronous messaging. Please guide me with proper blogs . i want to get step by step process. Points immedietly rewarded.
Thanks and Regards
VeenaHI,
This weblog answer your question
step by step RFC to JDBC scenario
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/step%2bby%2bstep%2brfc%2bto%2bjdbc%2bscenario
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
/people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
1. Create a RFC in the R/3 system
2. Configure the SM59 and Sender Communication channle as given in the Michal's blog. Also test if it is succesful.
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
3. Import the RFC in XI
4. Do the mapping to the target strucutre
5. Configure the JDBC receiver adapter
/people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
6. You can trigger the RFC from R/3 sytem by using
Async Call
CALL Function "RFC Name" IN BACKGROUND TASK destination <sm59 destination>
COMMIT WORK.
Sync Call
CALL Function "RFC Name" destination <sm59 destination>
Thanks
Swarup
Edited by: Swarup Sawant on Jan 26, 2008 9:25 AM -
Reg RFC to JDBC "Parsing an empty source. Root element expected!"
Hi techies,
This in regard of RFC to JDBC.
in integration test iam getting the error.
"com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_mm_mapping_: Parsing an empty source. Root element expected!"
My Mapping and interface mapping tests are working fine, while testing the configuration Iam getting this error.
My interface Mapping test result is as mentioned below
Sender Interface (RFC Sender)
<?xml version="1.0" encoding="UTF-8"?>
<ns0:ZTEST_PI_ZHRT002 xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
<ZHRT002>
<item>
<MANDT/>
<PERNR>1234</PERNR>
<PERID>kiran</PERID>
<SHOPN>test</SHOPN>
</item>
</ZHRT002>
</ns0:ZTEST_PI_ZHRT002>
Reciver Interface after test
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mt_receiver xmlns:ns1="urn:sap-com:RFC2JDBC"><Statement><dbTableName action="INSERT"><table>ZHRT002</table><access><PERNR>1234</PERNR><PERID>kiran</PERID><SHOPN>test</SHOPN><access></dbTableName></Statement></ns1:mt_receiver>
My message Mapping is as mentioned below
ZTEST_PI_ZHRT002 is my BAPI which is mapped to mt_receiver.
ZHRT002 it my table which is mapped to Statement of reciver
item of sender is floating ( not mapped to any reciver node)
subsequently feilds are mapped.
Reciver action is atribute (required) calling INSERT
table is "ZHRT002" (constant) (1...1)
This is my scenario.
Thanks in advance,
Regards,
KiranThis is RFC to JDBC. Is it Synchronous or Asynchronous?
Some tips:
Create JDBC target data structure something similar to this
<StatementName>
<dbTableName action=u201DINSERTu201D>
<table>realDbTableName</table>
<access>
<col1>val1</col1>
<col2>val2</col2>
</access>
</dbTableName>
</StatementName>
Map Table name and action using Constant.
>>item of sender is floating ( not mapped to any reciver node)
What is that? you have to map source item node fields to target access fields.
Please go through the below sap link . This might be very helpful.
http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm -
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 -
Error"SYSTEM Failure" while testing the RFC in SE37 : RFC to JDBC Scenario
Hi All,
I am doing RFC to JDBC scenario. When I am testing the RFC in SE37 using the RFC destination created in SM59, I get an error "SYSTEM FAILURE".
Please suggest.
Thanks,
Shyam
Edited by: Shyam Sreepada on Dec 18, 2007 5:46 PMHi,
You must run RFC with RFC destination in background mode, I suggest to read following post in order to understand it better.
Syntax would be:
CALL FUNCTION func IN BACKGROUND TASK
[DESTINATION <your RFC destination>]
parameter list
http://help.sap.com/saphelp_nw04/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
If you read it you will find that you can't test it directly from SE37, for this either you need to create dummy ABAP program or another RFC where you will call this RFC with background syntax.
Regards,
Gourav
Reward points if it helps you
Edited by: Gourav Khare on Dec 18, 2007 6:07 PM -
Mapping problem in message response RFC -- xi -- JDBC
Hi all,
I'm using the follow scenario:
RFC <-> xi <-> JDBC
It's a synchronous interface.
In JDBC the message do a SELECT in database and returns selected rows in message response.
The message response transfers selected rows to RFC.response in the mapping.
It seems working right but no data are transfered to RFC.
In SXMB_MONI I can see the selected rows from database.
There is no error in JDBC and RFC adapter. Bellow is the message response in the SXMB_MONI:
<ns1:MT_jbdc_select_response xmlns:ns1="http://braskem.com.br/xi/sapxi03">
<t7_productionorder_response>
<row>
<PRODUCT>Nafta Media</PRODUCT>
</row>
<row>
<PRODUCT>Nafta Media</PRODUCT>
</row>
</t7_productionorder_response>
</ns1:MT_jbdc_select_response>
I think that there is an error in message mapping between RFC.response <-- message_response, because I'm just mapping the fields <row> and <product>, because if I make a link beteween <t7_productionorder_response> and return table of RFC, a Short DUMP happens.
Bellow the structure of MESSAGE RESPONSE:
<t7_productionorder_response>
<row>
<PRODUCT/>
</row>
</t7_productionorder_response>
Bellow the structure of RFC RESPONSE:
<RFC.response>
<t_return>
<item>
<product/>
</item>
</return>
</RFC.response>
When I make a link in the mapping between
<t7_productionorder_response> -> <t_return>
a short DUMP happens in RFC call in R/3.
Anyone could help me about this problem ?
Thanks in advance
Regis FerratoHi,
<i>because if I make a link beteween <t7_productionorder_response> and return table of RFC, a Short DUMP happens.</i>
After doing this mapping, did you test it in the IR mapping editor? was it successful?
Do specify the occurence of all the headers so we can help you better.
Regards,
Smitha. -
Hi All,
I have a Interface like RFC-XI-JDBC and triggering the RFC in SAP system i am getting the error like "<b>alternativeServiceIdentifier: party/service from channel configuration are not equal to party/service from lookup of alternative</b>".
Can anybody help me what could be the reason and where i need to do settings.
Thanks and Regards,
KPGo through See SAP Note - 730870
This should solve the issue
OR
<b>/people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place
<b>alternativeServiceIdentifier: party/service from channel configuration are.
<b>/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
Thanks '
Abhishek Mahajan
******Please Reward points if Helpful********** -
RFC - XI - JDBC - cannot insert in Table !
Hi Experts...
I have a scene RFC - XI - JDBC !
When executing the application in the SXMB_MONI my status is processed successfully!
But cannot insert the data in SQLServer Tables !
Im Message Monitoring i have the erros:
Error No "action" attribute found in XML document ("action" attribute missing or wrong XML structure)
Error Exception caught by adapter framework: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure).
I need to insert in 4 tables --> CRHE, CRFT, CRFV and TLINES
Where CRHE is the father table.
This is my RFC Structure:
CONTROL_RECIPE_DOWNLOAD
CLIENT
CRFT
item
CRID
FTNO
FTTYP
COSTR
VORNR
FTRNR
CRFV
item
CRID
FTNO
FVNO
ATNAM
ATWRT
ATFOR
FVLNR
CRHE
item
CRID
WERK
BID
ADRES
TSTKZ
CRSTAT
KTXT
MATNR
MATXT
INSPLOT
BATCH
DEST
SCHED_START_DATE
SCHED_START_TIME
TLINES
item
CRID
FTNO
FVNO
TDFORMAT
TDLINE
This is my XML Receiver Structure:
msgType_ibatch_po
TABLE1
Statement
CRHE
action
access
CRID
WERK
BID
ADRES
TSTKZ
CRSTAT
KTXT
MATNR
MATXT
INSPLOT
BATCH
DEST
SCHED_START_DATE
SCHED_START_TIME
TABLE2
Statement
CRFT
action
access
CRID
FTNO
FTTYP
COSTR
VORNR
FTRNR
TABLE3
Statement
CRFV
action
access
CRID
FTNO
FVNO
ATNAM
ATWRT
ATFOR
FVLNR
TABLE4
Statement
TLINES
action
access
CRID
FTNO
FVNO
TDFORMAT
TDLINE
How to resolve this problem ??? ...i believe the problem is in the action of Message Mappings ?? ...but have some problems to resolve it !
Some one can Help me !!!
Thanks Very Much for the atention !!
Regards..
Boni.Hi Bravesh...
I don't have error in JDBC adapter !! This is OK !!
When i send the message from XI to R/3 ...in SXMB_MONI it does not contain errors !
When executing the application in the SXMB_MONI my status is processed successfully!
But cannot insert the data in SQLServer Tables !
Im Message Monitoring i have the erros:
Error No "action" attribute found in XML document ("action" attribute missing or wrong XML structure)
Error Exception caught by adapter framework: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure).
thanks.
Boni. -
Performance problem in RFC to JDBC interface
Hello everybody!
i'm working whit SAP PI 7.1
We defined some interfaces RFC - PI - JDBC (SQL server) but we have some performance problem.
If we have many row to write on the table then interface finish in timeout :
Synchronous timeout exceeded.
Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message 1d1f00b0-fecf-11de-8738-0015600446f0(OUTBOUND) expired.
I read the PI tuning document and i tried to apply configuration whit Advanced Adapter Engine but whitout result.
Now we want change the timeout in visual admin and maybe we solve the error but i'm asking myself....:
It's normal that for write 1500 row in a table we need more than 4 minuts????
It's possible accelerate this process??? After go live we will write messages whit more than 50.000 row.
somebody may help me?
PS: please no link to tuning guide or to notes (to increase the timeout parameter).This could be because your Database system (JDBC server) is taking more time to insert. The problem is not on PI side but on the receiving system side. Try inserting the same number od rows on the database server itself and check for the time taken for execution. Adding indexes on your database table solves the issue lot of times.
Here PI is not the culprit but definitely the receiver system.
VJ
Maybe you are looking for
-
How do I remove custom privileges on my drive.
Hi, I have a 2010 macmini running MAC OS 10.6.8. I am having some grief with an external drive (Home 136rv)I have been setting up as a media centre HDD. I was attempting the setup the sharing for this drive so I could copy files (music+video) from ey
-
Hello Forms, WebUtil and Java Gurus, I have installed and configured WebUtil on the Windows 2003 server on the 10gDS following instructions in WebUtil document and release notes including jacob, makecert and signing of the jar files. Everything went
-
Microsoft office download problem " Mounting Failed "
Hello there , Thank you for your time . Im trying to download Microsoft office for mac but every time i download the file i get the message " Mounting Failed " Dont know what the problem . thank you
-
Elements 3 Upgrade to 7 - How to move collections
I recently upgraded from Elements 3 to Elements 7. My tags that were associated with photos moved over just fine; however, my "collections" don't appear to have moved. In Version 3, I set up Collections that groups my photos. I had a Collection ca
-
I have recently updated my itunes and am now trying to load 4669 songs onto my ipod. I keep getting a message that says I do not have enough space. Although I do. I have checked the box that says to sync music with 'checked items' (4669 songs) but it