RFC - JDBC

hi all
am doing an RFC to JDBC async scenario. Can anybody tell me the steps required. I want to map the response from the rfc to jdbc. How can i invoke the rfc andsent the response to xi. Plzzzz help  am executing rfc from r3 sytem and need to get the response only in xi. and mapthat resp to jdbc asynchronously
regards
Vidya

It will help you
Re: RFC to JDBC for select
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step

Similar Messages

  • Error Handling in RFC- JDBC sync

    Hi all,
    We are having scenario RFC<->XI<->JDBC(Sync),and its working fine also.
    Suppose  exception  occur in RFC->JDBC request mapping,Now is it possible to pass the error back to R/3 ?
    If parsing error occurs in JDBC adapter how to catch this error in error structure of rfc ?
    We observed that if any exception occurs on request side , response mapping will not get executed can anybody explain me why this is happening ?
    Thanks in advance,
    Tuhin

    Hi Gopesh,
    U should follow the steps as below.
    1.Create TCT/IP connection with t-code SM59
      in R/3 and give program id (it is case sensitive also).
    2.Give same program name in Sender RFc communication     channel.Check that this channel is register in your R/3 system with t-code SMGW(Gate way monitor)
    Only this much extra config I have done.
    Thanks,
    Tuhin

  • XI: RFC -- JDBC communication deep structure

    Hello to all!
    I've got a RFC <--> JDBC szenario. Insert an update statements work fine.
    Now I want to implement a "SELECT"-statement. Therefore the XML-SQL-statements needs a <key>-tags such as:
    <key>
       <col1>value</col1>
       <col2>value</col2>
    </key>
    <key>
      <col2>value</col2>
    </key>
    To represent the key structure in ABAP I did the following steps
    - I created a structure "keyvalue" with fields: column, value (for <col>value</col>),
    - a table type "andkey" with line type "keyvalue",
    -  another table type "orkey" with linetype "andkey"
    I use the table type "orkey" as exporting parameter for the element "selectkey" in my rfc funtion module :
    CALL FUNCTION 'FUBA_JDBC' DESTINATION 'XI'
      EXPORTING
        selectkey         = it_key
      TABLES
        outtab            = it_outtab
      RESPONSE          =
    My problem is now, that the rfc function module creates a shortdump: CALL_FUNCTION_OPEN_ERROR
    Does anybody know a solution? Could I use the table type "orkey" in the rfc?
    Thanks for your suggestions,
    Christian

    Christian,
    This should probably be posted in the abap forum, you can get some help there.
    Regards
    Ravi Raman

  • RFC-JDBC error

    Hi,
    I am doing an RFC-JDBC scenario.
    My input file is being generated in the following format:
    - <T_SOMASTER>
    - <item>
      <CUSTOMERID>0000001033</CUSTOMERID>
      <ORDERDATE>0000-11-82</ORDERDATE>
      <PARTIALSHIP />
      <SALESORDERID />
      <SYNCIND />
      </item>
      </T_SOMASTER>
    It should have been
    - <T_SOMASTER>
    - <item>
      <CUSTOMERID>0000001033</CUSTOMERID>
      <ORDERDATE>2007-12-17</ORDERDATE>
      <PARTIALSHIP>1</PARTIALSHIP>
      <SALESORDERID>0000018818</SALESORDERID>
      <SYNCIND>Add</SYNCIND>
      </item>
      </T_SOMASTER>
    I get the following error in SXMB_MONI - "java.lang.NullPointerException thrown during
    application mapping
    com/sap/xi/tf/_MM_SAP2ABPP_SO_CREATE_CHANGE_:"
    Can you please help.
    Thanks,
    Shyam

    Hi shyam,
                    Generally this error occurs when values given in the payload is more than given limit (length of the value given is more than defined length). So check the values of the paylaod ......So in this case the mapping will not takes place for the resason mentioned above..............
    Hope this will solve u r poblem
    Reward with points if helpful
    Regards
    Sai Ganesh

  • Jdbc -rfc -jdbc

    hi all,
    i have jdbc - rfc - jdbc scenario,should i go with bpm or without bpm approach?

    i have jdbc - rfc - jdbc scenario,should i go with bpm or without bpm approach?
    we have 3 Approaches :
    1. using bpm synchasynchbridge
    2.RFC LooKUP it is standard function of the "CONVERSION" Function Group in pi 7.1
    Defining RFC Lookups Graphically
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8661
    note: if you are using pi 7.1 below version, then you need to wite one udf for RFC Lookup.
    3.Standard Adapter Module BEans RequestResponseBean
    http://wiki.sdn.sap.com/wiki/display/XI/Sync-AsyncwithoutccBPM
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7032

  • JDBC-RFC-JDBC  without  BPM

    Hi
    I have JDBC-RFC-JDBC Scenario.Now i have complated JDBC-RFC part but for the RFC response i dont want to use BPM . We are on PI 7.0 SP 11 . What changes needs to be done in module level to achieve this .
    Regards
    Vijay

    Hi bhavesh,
    But In your one of the thread File-RFC-File scenario
    These steps are mentioned ,  is it required in my JDBC-RFC-JDBC Scenario???
    4. We need to add a few modules in the Sender File Adapter.
    Go to the Modules Tab of the Sender File Adater, and add the following modules in the same sequence,
    Number - ModuleName - Type - ModuleKey
    1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1
    2- CallSapAdapter-Local Enterprise Bean - 2
    3-AF_Modules/ResponseOnewayBean-3
    Parameters
    ModuleKey - ParameterName - ParameterValue
    1 - passThrough - true
    3-receiverChannel - Receiver File Adapter Name
    3-receiverService - Receiver Business Service/ System
    Regards Vijay

  • Error when executing multiple scenarios with same ProgramID for RFC-JDBC

    Hi,
    I am working on the RFC-JDBC scenario.
    I see the following error in the dev_jrfc.trc file when I try to execute multiple scenarios which are using same program id (different communication channels).
    RfcException:
        message: Commit fault: com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchException: Wrong Sender Agreement:The Sender agreement does not have channel CC_SAP_XXXXX configured for the functionmodule Z_XXXXX_SO_CREATE_CHANGE
        Return code: RFC_CLOSED(6)
        error group: 108
        key: RFC_ERROR_INTERNAL
    Can one program id be used for multiple scenarios? Or do we need to create a new ProgramId for each scenario.
    Any response will be highly appreciated.
    Thanks
    Shyam

    Hello Shyam,
    >>>>>>>>Do you think that I still need to create a new Program Id for each of these processes.
    You should not use same program ID for different RFC adapters. It is recommended by SAP (check FAQ's on RFC).
    Although technically you can use but it gives you unpredictable behaviour based on connection pool.

  • JDBC- RFC - JDBC    How to send result set to rfc  ?

    Hi Friends ,
                        I am working on scenario like .
              <b>          I have to read  data from a sql server using select statement and send same   data  to r3 ( using RFC  we are inserting the same as  a copy ) .
                        Then i have have get confirmation from R3 as data inserted succesfully  - Flag  .Then we have to come back to same table and update one field  flag as 'U'.</b>
                      For this I am using JDBC Sender Adapter and RFC Receiver Adapter .Will i use  as Synchronous  Interface ?
                      I think i have to use JDBC  Receiver Adapter    also to Complete the cycle .
                      Can you please clarify  the following....
                       1. how is that whole selected data will send to R3 . If i use Select statement in JDBC Sender Adapter  it will as resultset  .It will contain Multiple Rows right ?  Our RFC Will accept the parameter as string .
                        2. If we use the synchronous Interface will it send row by row from the result send Then  get back the result from R3 and come back again to JDBC ( Database ) and  update the required field ?
                        3. In JDBC Sender Adapter , the Update Parameter doing the Updation  Part  prior to get the status from R3. How to handle this ?
                       4. Do i need to configur teh separate JDBC Receiver adpater for this updation part ? Then We cann't use Synchronous Interface right ?
                     5 . Will JDCB Sender  Adapter get the result set (by select statement )  and send to r3 as row by row and get the confirmation message as inserted  ?
    Best Regards .,
    V.Rangarajan

    Hi Udo ,
                   Thanks for your reply . If i have used the synchronnous RFC Calls  , that RFC will return the flag as 'Y' or 'N'  , for  Either succesfully inserted or Not successful .
                      In this synchronous  how can i use the JDBC Receiver adapter ?
                     If 'Y'  or 'N' I have to update the<b> same table ,same row</b> which have sent to RFC .  My doubt , we are  wrirtng the  SQL  select query as  "  <b>select * from table  name where UpdateStatus is null</b> " .
                     So it will return multiple rows right ?   I have to uses the synchronous response form RFC to update the row of the  same table using JDBC Adapter right ?
                   Can you please explain me little bit more ? I am new to xi .
    Best Regards .,
    V.Rangarajan

  • RFC- JDBC- Mail

    Hi
    I want to send something through RFC adapter to JDBC to update or insert some data and I want to have return code and send it through mail adapter.
    RFC sender interface should be Async, other interface can be sync or aync but as far as I know, in order to get return code from JDBC, the receiver JDBC interface should be sync, actually everything is ok so far, I could handle until this part but when I try to forward the return code from JDBC to Mail adapter, thats where I stuck, how can I handle this scenario with async mail interface?
    Thanks

    hi,
    >>>>I could handle until this part but when I try to forward the return code from JDBC to Mail adapter,
    you have to use BPM in order to do this
    all you have to do is to map jdbc sync response to the mail adapter (message interface) - so just another transformation step in your BPM and then
    you'll have your return code in your mail adapter message
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • RFC-JDBC synch, BPM or not?

    Hi everyone,
    I have a question regarding my business scenario. My scenario seems simple.
    RFC -> PI -> JDBC
    The RFC call is synchronous. When the data comes from the RFC PI will execute a stored procedure using JDBC. The stored procedure doesn't return any value. But my RFC waits for an result code. xx or yy.
    Is it possible to do this without using BPM? I am not sure how I should return a response to the RFC without using BPM.

    Hi,
    If you make a synchronous RFC call than JDBC adapter will send a response messages which will need to be handled in Pi.
    The JDBC adapter when sending its response back will create a Message Type of the same name as the request message with a u201C_responseu201D appended to it.
    Please refer to following blogs on SDN on how to configure response JDBC messages:
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    Regards,
    Deepak.

  • SOAP to JDBC/RFC  - RFC/JDBC  to  SOAP XI Scenario

    Hello,
    Can anybody give me the links for SOAP to JDBC/RFC-BAPI or RFC-BAPI/JDBC ---> XI ---> SOAP XI Scenario?
    I tried searching, but there isn't any step-by-step approach for it.
    Thank you in advance.
    Cheers,
    Deepak.

    Hi,
    Check some links on SOAP,
    RFC -> XI -> WebService - A Complete Walkthrough
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    SOAP with attachments
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    /people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap
    /people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
    SOAP
    An Overview of SOAP
    /people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap
    JDBC ADAPTER
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    Regards,
    phani
    Reward points if Helpful

  • File- XI- RFC, JDBC

    Hello Gurus.
    I have a scenario where i have to load File to JDBC (Oracle) and RFC (SAP) in parallel.
    If my file is QoS (EO), then do I have to use BPM to send the message to JDBC and RFC,
    or I can just create two Receivers, and the message will split in the pipeline on IE?
    The file is loaded once in Quarter, every 3 months.
    Thanks in advance...

    "In Parallel" means you may have to use BPM where you can have a parforeach block to simultaneously send the message to both the receivers.
    But i see why this process can be done in a sequence. If so , BPM is not required. You just have to MAP the Outbound to 2 inbounds, namely IDOC and the RFC.
    Raj

  • Removing ABAP dump when JDBC is down in RFC- JDBC- RFC scenario

    Hi All,
    I need help to build one scenario.
    I am working on RFC->XI->JDBC->XI->RFC scenario. It is working fine.
    But problem is that whenever JDBC server is down RFC is giving ABAP dump in SAP. How can i Remove ABAP dump in SAP and give information to RFC that "JDBC is out of order"
    Is it possible to implement without BPM, then How?
    If not possible then what could be the steps of BPM?
    Thanks & Regards

    Rohan,
    1.Recive Step should open the Synch - Asynch Bridge
    2. Block Step --> Send Synchronous inside this step with an Exception Hanler.
    3. Now in the exception ahndler step, do the necessary error handling requirement.
    4. Send Step --> closes Synch Asynch bridge.
    My question is what data do you want to send back to the RFC if the DB is down? This data should be populated inside the exception handling block and then this data should be mapped to the corresponding RFC response and used in the step 4.
    Regards,
    Bhavesh

  • JDBC- RFC- JDBC Synchronous scenario (Can't see the response message)

    Hello Experts,
    I tried this step in creating a synchronous scenario by using steps found in this site -> [http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without%20BPM%29|http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without%20BPM%29] I just changes File to JDBC. But problem is I see the sent XML message in SXMB_MONI but to response message. I also can't see the Sender interface name for the response message when I tried to use F4 in the Interface Name portion.
    Do someone encountered this before? Please help
    Regards,
    Alfred

    Hello,
    I hope someone could guide me on how to set this up cause I only see the sent message but there's no response message in SXMB_MONI. Note that interface was successful, I just want to see what was sent by the response.
    Regards,
    Alfred

  • RFC - JDBC fault message

    Hello All,
    Probably this has been discussed before, but i am unable to find a direct solution till now.
    I have a synchronous RFC to JDBC scenario, where data is inserted from R/3 to JDBC and JDBC returns with the count of records it inserted in oracle. everything is working fine.
    But in case when there is an error in insert, short dump occurs in R/3. i can see the response message has the error that some fields are null and so the insertion failed.
    My question is, how to capture this fault and get a exception equivalent in my RFC, so for further processing it can simply be check against SY-SUBRC.
    I would appreciate any pointers or help on this.
    Regards,
    Kinshuk

    Hi Kinshuk,
    one month ago I implemented also synch JDBC scenario but with call from client proxy (ABAP Proxy <->JDBC). First you ca try is to implement exception in your RFC and then update the metadata in IR. Assign also Fault Message to Inbound JDBC Message Interface and create mapping between RFC exception message and Fault Message.
    If it will not help you, try to change your implementation to ABAP Proxy if possible. With Proxy you can use ABAP statement  "TRY/CATCH" and catch system error as I do in my implementation.
    As far as I know, JDBC adapter does not support Fault Messages. But I never had system with latest SP. For examply in this 1492453 note you can see, that the detail text message of exception in Adapter was not transfered to IS (sxi_monitor) in SP bellow 12. With proxy you should have access to that exception and it might be possible get the "detail text" from exception object.
    On my current project I'm still waiting for SP so in my implementation I can catch Proxy exception but I'm not able to tell user what exactly happend. He has to check Comm.Channel monitoring for more info.
    If you have SP12 or higher you should be able not only catch system exception but also to get the detail error text from JDBC Adapter back to your proxy implementation.
    Martin

  • RFC JDBC Exception Handling

    Hello,
    i have the following scenario:
    RFC receiver adapter (synchronous) <> XI <> JDBC receiver adapter (to MS SQL-database)
    Is it possible to catch JDBC-exceptions, e.g. "duplicate primary key" and pass it to the calling rfc adapter?
    thanks for your help
    Christian

    Hello,
    still my problem is the exception handling of the synchronous JDBC - call.
    If an error occurs I get the error "no payload found" in sxmb_moni_bpe
    I think this is a problem of where the error occur, in the SOAP header
    In sxmb_moni i get the following Error:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Aufruf eines Adapters
      -->
    - <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. 'KUNDEN' (structure 'STATEMENT_NAME'): com.microsoft.sqlserver.jdbc.SQLServerException: Verletzung der PRIMARY KEY-Einschränkung 'PK_Kunden'. Ein doppelter Schlüssel kann in das 'dbo.KUNDEN'-Objekt nicht eingefügt werden.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Has anybody got any idea where my mistake is?#
    I´m at loss.
    If you need further information, contact me. I´ll send you the required informations.
    Thanks and regards
    Christian

Maybe you are looking for

  • Is ther a way to send music to multiple airplay speakers on my ipad without having to use itunes

    Hello all, l have a question that relates to air play and my ipad 4. ls there a way to send music to multiple airplay speakers with my ipad 4 without having to use itunes as the master controller on my other PC. l know it is possible with itunes, but

  • I have a blank screen when I run a test.

    I recently downloaded the trial version of Flash Pro CC. This was in the past few days so I have the newest version. I'm running Mac Yosemite (10.10). Whenever I run a test I'm given nothing but a blank white screen. Debug isn't available as an optio

  • STATUS 51 error not directed to inbox (Idoc error)

    Hi all, When the single step Task is triggering for Idoc error ie,Status 51 the workitem is not going to the Users inbox. The task has been assigned to User in PPOMW. Note: The workitem is going for other Status. Kindly guide with your points. Thanks

  • Publication not sending records (from two pub items) down to Oracle Lite

    Hi there, I have several publication items that are limited by queries. This query limits the data coming back to a time span of several days. When I run this limiting query in SQL Developer against the main database, the query brings back several ro

  • PD tables info

    Hi Experts,              Can any one provide me the tables and configuration information of PD,specially Appraisals.Pls bit urgnt. regards, Anil.