RFC to JDBC async

Hi All,
I have one client specific requirement, My scenario is  RFC to JDBC async.
Is it possible to know the successfully posting status in async scenario in JDBC side?
Like, from RFC they send details of 10 employee details in one go. And try to insert in DB table . 9th row is not successfully posted in DB.
Is there any way to know the successful posting report ? or can we set ECC  and DB table in sync possession. or anyway to read the log (successful or not) from ECC after posting over DB table through PI??

Hello,
Are u inserting records directly in a table or using SP?
I would suggest you to use SP and allow DB to handle trasaction, so in case there is any error while inserting records SP will catch the same (using try/catch) and update some status table.
Eventually,either using DB mailer services u can get a report of the records which are sucessfully posted (i would suggest take a log of the failed records) or if u want to use PI then query that status table directly and update the same in ECC.
Thanks
Amit Srivastava

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

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

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

  • 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

  • BPM in RFC to Jdbc

    Hi,
    Can you send me any RFC to Jdbc sync BPM links?. Also, Can you please tell me how is the design when  we use RFC and Message Interfaces involved.
    Thanks,
    Raj.

    hi Raj,
    <b>Defining Sync/Async Communication</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/43/65d4dab39b0398e10000000a1553f6/content.htm
    <b>Example: Sync/Async Communication</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/content.htm
    <b>RFC</b> Scenario using <b>BPM</b> --Starter Kit
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Walkthrough with <b>BPM</b>
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    FILE to <b>JDBC</b> Adapter using SAP XI 3.0
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Regards,
    michal

  • RFC to JDBC to RFC sync

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

    Hi 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

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

  • 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

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

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

  • Error in RFC-XI-JDBC scenario

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

    Go 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

  • Reg error in interface mapping in RFC to JDBC scenario

    Hi Techies,
    Iam trying to map the scenario RFC to JDBC.
    In configuration window Iam testing the configuration.
    when Iam testing it is giving 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 is as follows
                       mt_receiver                    
                                                            statement               
                                                                ROW          
                                                     action---insert     
                 ZHRT002----
         Table     
         Item----
    access     
              MANDT               
              PERNR                                     PERNR
              PERID                            PERID
              SHOPN                           SHOPN
    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/>
             <PERID/>
    </item>
       </ZHRT002>
    </ns0:ZTEST_PI_ZHRT002>
    Reciver
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:mt_receiver xmlns:ns1="urn:sap-com:RFC2JDBC"><Statement1><ROW action="INSERT"><TABLE>ZHRT002</TABLE><access><PERNR></PERNR><PERID></PERID></access></ROW></Statement1></ns1:mt_receiver>
    Please give suggestion how to go about this.
    Thanks in advance,
    Regards,
    Kiran

    Hi,
    Please check the payload you are using to test the configuration.
    The structure seems to be Incorrect.
    Regards,
    Deepak

Maybe you are looking for

  • HP Pavilion dv7 Microphone delay, Windows 7 64-bit

    I bought this notebook HP Pavilion dv7 a few weeks ago, so I tried recording with the external microphone and there is a very annoying delay which doesn't allow me to record audio properly. I haven't changed anything, it just doesn't work. How can I

  • How can I import javax.servlet.*?

    I am having the following problem: [ppandit@localhost projects]$ javac HelloServlet.java HelloServlet.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloServlet.java:4: cannot resolve symbol symbol : class GenericServlet loca

  • Duplicate Copies of HDD & Projects

    Hey guys, I recently bought a new MacBook Pro and transfered my account over via Time Machine. When I open iMovie '1, in my project library I have two copies of my internal HDD, tiltled Macintosh HD. I also have a drive labled Recovery HD, which I do

  • Don't upgrade!!   Unless you want to do without mail for a few days

    THis is a disaster if you depend on your .Mac or .Me for mail         Apple iCloud could put you behind for the forseeable future.  WARNING!!!!

  • Selecting from Combobox with only one item

    I'm populating Comboboxes based on selections from other comboboxes. I pick up the selection with the 'change' trigger, however when you select the top item or if there is only one item, the change route doesn't work. So I tried to use the 'click' an