RFC to JDBC synchronous

Hi experts,
i have to scenario RFC to JDBC
i need to know in R3 (parameter import by RFC) the number of lines inserted in database.
receiver JDBC give mne this data, but my doubt is if is necessary mapping this statement?, is necessary to create this datatype, what is the datatype -string, int,..? have i to defined a synchronous scenario?, how many messages interfaces i need?
very thanks,

thanks all,
how can i mapping this message, give me error..
jdbc_response  1..1                      rfc_response 1..1
   insert_count  1..1                         count         0..1
     count          1..1
my mapping is
jdbc_response -> rfc_response
count             -> count
(insert count no mapping)
the error is 'Returning synchronous error notification to calling application: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE:.'
can you help me please?

Similar Messages

  • RFC to JDBC Synchronous Scenario

    Hi,
    I have to configure a scenario in which by an RFC call we have to select records on a DB table and return them to the RFC as resultset. I'm not using any BPM.
    So I've developed all the design objects like:
    - MT : MT_Request; MT_Response
    - MI : MI_Synch_Inbound with MT_Request, MT_Response end FM ; MI_Asynch_Outbound with MT_Response
    - MM : MM_RFC_to_Request (from RFC to MT_Request ); MM_Response_To_RFC (from DB table response to RFC)
    - IM : IM_RFC_to_JDBC (from RFC to MI_Synch_Inbound with the 2 MM in request/response tabs)
    Also I have a JDBC CC Receiver Synch to perform the Select stm.
    My doubt now is: which configuration objects I have to configure ?
    The RFC Adapter needs 2 communication channels (Sender Asynch and Receiver Asynch) or only one Synch?
    Thanks to all,
    GB

    Dear all,
    I've created all the required configuration objects in ID:
    RFC CC sender, JDBC CC receiver, sender agreement , reciever determination, interface determination, reciever agreement.
    But when I run RFC called in background task by a report, I obtain only one message into SXMB_MONI, the one that contains the RFC output. In addition it's not visible into moni the Message Mapping execution.
    Instead if I remove the background task mode I obtain no message in moni.
    Any ideas?
    Thanks,
    Gianluca

  • 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

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

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

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

  • 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

  • RFC-XI-JDBC testing is not working

    Hi,
    I created rfc-xi-jdbc. I created 2 dt, 2 msg types, 2 msg mappings, 1 msg interface(synchronous, abstract), 1 interface mapping.
    In the CD, I defined, 1 sender, 1 receiver agreement. 1 receiver, 1 sender determination, 1 interface determination, and two comm channels.
    My RFC destination is working fine. But in se 37 , when I execute the FM, and submit the RFC destination I am getting dump. Please tell me what causes this error.
    In the message mapping when I tested it (rfc-jdbc) mapping, it gets the action as "insert" and not getting table value. Is it supposed to get a table name? or not?
    Thanks. I appreciate your help.
    Raj.

    Michal,
    As I said I already have this zreport program. This is how I am calling:
    CALL FUNCTION 'Z_PA_DINERS_TXN'
         destination 'DINERSIM' *RFC Dest 4 sender adapter
           EXPORTING
                ID            = lw_id
                INIT_ZDINERS  = lw_delete
           TABLES
                IT_ERROR   = IT_ERROR
                IT_ZDINERS = IT_IM_ZDINERS.
         commit work.
    Is that correct? I didnot create any seperate program for this, I am using the existing program. Please advice on further steps.
    In the RFC destination, do I need to mention XI server params in the gateway server host and service? or my sending system's details?
    Thanks,
    Raj.
    Message was edited by: Raj Peddisetty

  • ** RFC to JDBC scenario - Need not source code - Correct ?

    Hi Friends,
    I am doing RFC to JDBC scenario. It is a synchronous scenario. I think it is need not required to write any code in the source code tab of  RFC. Is it correct ...? (Only Import and Export parameters are enough.)
    Kindly reply, friends.
    Kind Regards,
    Jeg P.

    Hi,
    RFC needs only configuration and we  will call remote method in R/3. Actual logic present in R/3.
    Thanks,
    RamuV

  • BPM Question: JDBC Sender to RFC to JDBC Receiver

    I have the following requirement:
    JDBC Sender Adapter (by nature Asynchronous) – SELECT multiple rows from a table
    To…
    RFC Receiver Adapter (Synchronous)
    To…
    JDBC Receiver Adapter (Synchronous) – UPDATE multiple rows in a table
    Then…
    IF <SAP:Error> XML is returned from the JDBC Receiver Adapter, I want to either issue a CCMS alert, or utilize the XI Email Adapter for error notification. 
    ELSE, if <root_response> XML is returned from the JDBC Receiver Adapter, do nothing.
    This obviously requires a BPM.  If I use the JDBC Receiver Adapter Asynchronously (with no error handling) this is a piece of cake.  But after trying to use it synchronously along with error handling logic, I am stuck.
    This issue that I am facing is how to logically handle the JDBC Receiver Adapter Response XML in the BPM.  I would like to know what I need to do in the BPM in order to issue a CCMS alert (and/or send a message through the XI Email Adapter) ONLY if the <SAP:Error> XML is returned. 
    Below are examples of the 2 types of response messages that I would receive back from the JDBC Receiver:
    Error:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <!--  Call Adapter -->
      <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SAP_OrderImport' (structure 'StatementName2'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Violation of PRIMARY KEY constraint 'PK_SAP_OrderImport'. Cannot insert duplicate key in object 'SAP_OrderImport'.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Success:
      <?xml version="1.0" encoding="utf-8" ?>
      <root_response>
      <StatementName1_response>
      <update_count>1</update_count>
      </StatementName1_response>
      </root_response>
    I have searched SDN for a while but did not find anything that specifically addressed this.  I would appreciate any help…

    Hi,
    In ur BPM wrap the jdbc send step with a exception block. in the exception block define a control step to throw an alert.
    so when the jdbc step fails, the exception is caught and an alert is generated by the control step.
    cheers,
    naveen

  • RFC to Jdbc Synch Scenario

    Hi,
    I have a scenario like RFC to JDBC synch scenario, so what would be the QOS for sending( RFC) communication channel and as well as JDBC communicaiton channel.
    Thanks n Advance.,
    Xeon

    Hi,
    Neither the Sender RFC adapter nir the Receiver JDBC adapter provide the option to select the QOS.
    In your case if the report triggering the call to XI is making a Synch Call then the QOS in the SOAP header will be BE. If the Inbound Interface for the Receiver JDBC adapter is also a Synchronous Interface the QOS is taken as BE for the Receiver JDBC adapter.
    You need not manually change the QOS anywhere as long as you are using Synch message interfaces.
    Regards
    Bhavesh

  • RFC to JDBC

    Hi All,
    My scenario is RFCXIJDBC.
    Source side: SAP has data in Z tables which can be Picked and sent by RFC to Xi.
    In Target side Database the data sholud be transferred to two tables based on the certain condition & the two tables are having certain common columns.
    step1: First the First table should be populated with all valid values
    step2: Based upon the population of one specific common column in first table the second table should be populated 
    if not the record will not be processed and appropriate error message will be updated to an error message text column.
    can anybody please share your solutions in this regards bit urgent
    Thanks in advance.
    siva

    Hi,
    Re: RFC to JDBC for select
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    Same link but its other way JDBC-RFC
    JDBC-RFC-File
    Thanks
    VIkranth

  • 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

  • JDBC Synchronous Scenario Issue

    Hi,
    I am working on JDBC to RFC which is a synchronous scenario. My sender jdbc channel is configured QoS as Best Effort. Data is getting passed to JDBC to RFC, as this is synchronous the RFC(i.e. response) to JDBC is getting triggered. Now when the RFC to JDBC is triggered i am trying to delete some data in a jdbc table. This delete process is not happening. But in moni both the messages are successfull and in RWB also i couldn't find any error.
    Please help me out.
    Thanks in Advance.
    Regards,
    Sudheer

    Hi Aamir,
    As per your suggestion i have implemented BPM for this scenario and now it is triggering the receiver JDBC channel but in my apapter monitoring i found that my receiver channel is having an error and couldn't process my request.
    I have raised a forum thread for this error, please look at the below link for the same and kindly help -
    JDBC Receiver CC Error
    Looking forward for your help in this regard!!
    Thanks in advance!!

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

Maybe you are looking for

  • Color Picker Looks Like Crayons

    Hi All, I am using Photoshop CS 4 on a 2.16ghz iMac running OSX 10.5.7. My color picker looks like a crayon box, and I don't know how to get it to change to the regular/default color picker. Any ideas? Thanks for all help provided, Marty [email prote

  • BB keeps restarting on its own

    Hi.. I brought blackberry torch last year in Nov and is still in warranty period. Few days back, my bb started rebooting on its own. The reboot would start, halt in between and again restart. This means that fone is unable to restart completely. I tr

  • Redirect - a basic question

    Hello i'm new to podcasting and facing the very usual situation of redirecting a feed URL using <itunes:new-feed-url> my podcast feeds from a wordpress blog placed on my server, and the iTS is set to listen to the atom feed (which i like to change to

  • Oracle XE database and Forms 6i - licensing / pricing

    Hello there, I have been researching how Oracle Forms can connect to a "currently supported" Oracle Database. I have found (from several other great posts), that Oracle Forms 6i (patch 18) will be able to connect to Oracle Database Express Edition (b

  • Controlling visibility of Second Level navigation tabs in portal

    Hello, I have a request to create second level navigation based on user authorizations. The first level nav is called Applications, the second level navs under it are called SAP and BI. I only want to show SAP for some users and BI for others, and in