RFC to JDBC response

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

Similar Messages

  • 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 Ferrato

    Hi,
      <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.

  • RFC to JDBC Sync Scenario and get JDBC response

    Hi All,
    We need to create RFC to JDBC synchronous interface with update_insert action.
    And we need to get the number of records updated or inserted as response and map the response and send it back to ECC as RFC response mesg.
    I have gone through the help document on JDBC and it says :
    The response document has the following format; one of the two values is always 0 because either an UPDATE or an INSERT action is always executed:
    <update_count>count</update_count>
    <insert_count>count</insert_count>
    Now following is the question: Is this this the standard feature? Because in our case Database side they will not be sending any response back.
    So with the synchronous receiver JDBC channel would we get this update and insert count as response  by default?.
    Please help with replies.
    Thanks,
    Jane

    Hi Jane
    No setting needs to be done by the Database team, it is a standard feature.
    Whenever you insert or update records in DB using the JDBC Adapter, you will get the response with the count.
    If insertion fails due to some reason in JDBC Adapter, then there will be no response.
    Regards
    Osman

  • RFC to JDBC Empty tables parameters in response

    Hello,
    I've got a problem with an XI query (RFC to JDBC, UPDATE_INSERT) which contains a "tables" parameter. When I get the RFC's response in se37 (in the calling system of course), the "tables" parameter is empty. I need the values for further processing. What can I do to get back the values?
    Thanks in advance for your answers.
    Pierre Lejeune

    Hi Sarvesh.
    Thanks for your answer. The XML response in SXI_MONITOR tells me table is empty.
    My scenario is very simple. I got Receiver Determination, Interface Determination, Sender Agreement and Receiver Agreement, a sender CC to R/3 system and a receiver one to JDBC.
    Maybe it's a mapping problem. In the response mapping, I don't know what to link to the "tables" parameter.

  • Can we able to create a scenario in XI like, RFC to JDBC

    Hello,
    I want to know whether  there is any way to create a scenarion like RFC to JDBC.
    RFC sends a rfc call with some parameters on sender side.
    JDBC stores the data in the receiver side.
    Thanks ,
    Prakash

    Hi Prakash,
    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
    XI: How-to on JDBC receiver response:
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
    -Pinkle

  • RFC XI JDBC to external database.... Get data in multiple rows

    Hi,
    We have been really struggling with this scenario. We have created a RFC that has 1 Import parameter (Order_ID) and table parameter (3 Columns: Order_ID, Partner_type, Partner_no).
    When we call this RFC in SAP, it should make a connection to external database via JDBC and get multiple row data for every Order_ID. We are not using Oracle Stored Procedure, instead we are using simple Select statement. Did all the mapping and configured correctly. However, we are getting short-dump when we execute RFC. When we checked in XI, it says " Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at "
    Has anyone tried getting multiple row information from external database(Oracle) using Select statement in XI ? IF so, can you pl let us know if we need to something different in Mapping ?
    Niranjan

    Niranjan,
    Check this blog of mine to see how the datatype for Synchronous Select should be constructed,
    https://weblogs.sdn.sap.com/pub/wlg/3928. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    If this looks good, a few checks
    1. Check the request inbound payload , i.e the RFC request in MONI. Is this as expected?
    2. Check the output of the request mapping and check if this is as expected.
    3. Check the response from JDBC, is this as per the datatype defined.
    4. Check the mapping from JDBC response to RFC response.
    To me this looks like an issue with the JDBC response structure.
    Meanwhile to understand how to test mapping, check blog of michal,
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Regards
    Bhavesh

  • RFC- XI- JDBC- XI- RFC

    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?
    Regards

    Hi,
    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

  • Synch Scenario ( RFC to JDBC)

    Hi,
    I have a synch scenario like RFC to JDBC.
    1. I have a qurey regarding JDBC receiver side structure. What would be the structure I have to create on receiver side ( JDBC) for the same.
    2. Mainly, what would be the constants I have to map for the action, table, statement fileds??!! If possible try to explain for each and every scenario.( synch/asynch)
    Cheers.,
    Stallin

    Hi Stallin,
    Check these links:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
    http://help.sap.com/saphelp_nw04s/helpdata/en/33/c6e63b60c25767e10000000a11402f/frameset.htm
    Regards,
    Subhasha Ranjan

  • Don't want JDBC Response.

    Hi,
       I have a RFC -> XI -> JDBC Scenario.
       I don't need the number of inserted rows, but the response of JDBC brings to me. How do I do to ignore it? Because a error appears in <b>Request Message Mapping</b> Step of <b>Response Msg</b>.
       The <b>ProcessingMode</b> is synchronous even if I configurated the Message Interface as asynchronous.
    Thanks in advance.

    Hi Luis,
    you need to send the RFC request asynchrounous:
    CALL FUNCTION 'Z_MY_FUNC'
    IN BACKGROUND TASK
    DESTINATION 'MY_DEST'
    COMMIT WORK.
    Regards,
    Udo

  • 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
    Lax

    Hi 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 "No messages available for selection"

    Hi Guys
    I am testing my RFC to JDBC scenario, and on  sxmb_moni I get error: "No messages available for selection"
    on SE37 I have ran my RFC with a data.
    On SM59  I created and test my RFC destination its working fine, on the SM58 no errors, I am using
    BAPI_BANK_GETLIST as my sender and my DataBase table (SQLServer) is my receiver
    On my MM I have set access to constant INSERT
    What am I not doing right?
    Thanks
    Yonela

    Hi Guys
    As Bruno have specified I decided to reverce my scenario now it JDBC to RFC Synch but now the problem I am facing with is that I dont get a response back. I want it to return one field from my table.
    I am using the BAPI_BANK_GETLIST and  BAPI_BANK_GETLIST.Response, SQL Server as my database server.
    On my http://xxxxx:50000/mdt/channelmonitorservlet the JDBC sender is working fine but when testing the RFC Receiver I get the below error and went through lots of blogs still no luck.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
    On my sxmb_moni my fllag is black and white which is what I wanted to see.
    Your suggestions will be helpful,
    Thanks
    Yonela

  • RFC to JDBC for select

    Hi,
    I have an RFC to JDBC scenario. I need to make RFC call to DB and using select need to get the DataBase Table Data.
    I am little bit confused here, Can you please tell me how many data types, Message Types, Msg Mappings, Msg Inetrfaces for that??.
    I know like this: 2 DTs for DB table. One when I make the RFC call, another when I return my data from DB to RFC. So, how to do the Msg Map??. I am liitle bit confusing.
    Thanks-a-lot in advance for your help.
    Regards,
    Sunita.

    Hi,
    As you will be using the JDBC adapter as your Reciver that will select data from the database, the Adapter will be SYNCHRONOUS and the format of the Datatype has to be,
    <DT>
    <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>
    </Dt>
    The COL between ACESSS will contain the column names that have to be selected from the database.
    The values between KEY will contain the conditional values.
    The response will be of this format,
    <DT_response>
    <row>
    <column1>value11</column1>
    <column2>value12</column2>
    </row>
    <row>
    <column1>valueN1</column1>
    <column2>valueN2</column2>
    </row>
    <DT_Response>
    Just create the Datatypes of this formats for the request and response JDBC and it will work fine.
    Do let us know if u need any further help.
    All info will be available on this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Regards,
    Bhavesh

  • 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.

  • 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

  • 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
    Veena

    HI,
    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

Maybe you are looking for

  • Apple cinema 22" connected to a 1st gen mini shuts on and off

    I have a 22" apple cinema with a clear enclosure (older models) that is connected to a 1st generation mac mini through an Apple DVI to ADC Display Adapter. Everything has been working like a charm, despite the flickering problem which was solved, for

  • BI 7 WAD Upgradation.

    Hi Gurus, Can anyone tell what are the pros and cons we should consider when we upgrade WAD 3.5 to WAD 7.0 to maintain the stability? Please help me.

  • Regarding "BAPI_MATERIAL_AVAILABILITY" (important)

    Hi, In my program, I use BAPI_MATERIAL_AVAILABILITY to get the <u><b>on-hand quantity in CSE.</b></u> The following is my code:     CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'       EXPORTING         plant      = I_ZDAILY_MVMT-WERKS         material  

  • I need to password protect a whole section of a website. Help?

    I will have both retail customers and retail stores accessing the same website. I need some of the info to be behind some kind of firewall so only stores can access it. Doesn't have to be elaborate. What do you think? Working with CS3. Chris Baker

  • Upgrading Question

    Greetings,  I am getting ready to upgrade to a new phone. I would like to upgrade from my Blackberry Storm 2 to the new Motorola Droid Bionic but I read somewhere online that if I upgrade to the bionic that I will lose my unlimited data plan that is