JDBC to RFC & Mail

Scenario:
In JDBC to RFC
Output of above sender adapter will pass through 1:N mapping to generate individual records as separate message.
Each individual records is passed to attached XSLT to genarate RFC format message
RFC response has to be evaluated for errors. If there are errors there should be an email to a support group (we have to use email adapter here)
Along with the email, if there are errors, we need to update  the source table.
How to acheive this using bpm?
i mean how many
Data Types,Message Types,Service Intrefce (obibabs),message mapping & operation mapping in IR
SenderAgreement,ReceiverAgreement,InterfaceDetermination,and ReceiverDetermination in ID
Thanks
Sri

How to trigger a mail adapter from BPM??
I need to fetch the data from database table through XI, and mapping to Synchronous RFC. Then, RFC response is send to both JDBC and email also. I am using BPM scenario for this. Please, let me know, how can I map with RFC response to email and JDBC. How can I handled in BPM scenario.
Can you please suggest me steps.
Thanks You
Edited by: Srilak on Mar 8, 2011 3:49 AM

Similar Messages

  • 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

  • JDBC to RFC- Error in RWB

    Gurus,
    Background :We have fresh installation of SAP PO 7.3 (Single Stack ) on SQL Server 2013.
    Scenraio is : JDBC to RFC async scerio; i can pull data from SQL database but not able to post to SAP
    Please advise what to do.
    I always provide points for helpful answers

    Hi V Jay - Did you check the below thread?
    RfcClientException: functiontemplate from repository was <null>
    Q 16: While sending a message to the RFC Adapter the error "... functiontemplate from repository was <null>" is shown. What is the reason?
                  A: After receiving a message from the Adapter Engine, the RFC Adapter extracts the payload from the message. Normally this should be an XML document in the RFC-XML format. In this format the root element of the XML document represents the name of the function module and is enclosed in the fixed RFC namespace 'urn:sap-com:document:sap:rfc:functions'. But this only will be checked at a later point, when the conversion from XML to native RFC is done. As prerequisite of this conversion the structures and types of the function module parameters has to be known. This is also called metadata or function template. To get this function template the name of the function module is extracted from the root element of the XML document and is queried against the metadata repository of the communication channel. If the metadata repository doesn't have a function module with this name, the exception named above is thrown. Possible reasons are
    The XML document, which was sent to the RFC Adapter, is not a RFC-XML document. So the root element name of this document is not the name of a function module and thus can't be found in the metadata repository.
    The metadata repository doesn't contain an entry for this function module name. Normally the metadata repository will be an R/3 system and it's function module repository can be searched with the transaction SE37
    Reference :  730870 - FAQ XI 3.0/ PI 7.0/ PI 7.1/ PI 7.11/ PI 7.2/ 7.3 RFC Adapter

  • JDBC TO RFC SCENARIO

    Hi,
    I am tryiing JDBC TO RFC SCEANRIO.
    XI is picking data from MS SEQUEL SERVER but
    the same data is not getting mapped into RFC
      I am not getting any error as such.
    Following are the details.
    made a datatype
    resultset
         row
         EmployeeID
         LastName
         FirstName
    message mappping
                                    RFCFORJDBC
         resultset                      outab
                row                        item
                  EmployeeID----
    Empno
                  FirstName
                               concatenate--- Empname
                  Lastname
        But for some odd reason
        the OUTTAB FOR RFC
         is coming like this in message
          <?xml version="1.0" encoding="UTF-8" ?>
    - <p3:ZZTESTXIJDBC xmlns:p3="urn:sap-com:document:sap:rfc:functions">
      <OUTAB />
      </p3:ZZTESTXIJDBC>
    while payload is getting picked correctly
    <?xml version="1.0" encoding="utf-8" ?>
    - <resultset>
    - <row>
      <EmployeeID>9</EmployeeID>
      <FirstName>Anne</FirstName>
      <LastName>Dodsworth</LastName>
      </row>
      </resultset>
    Kindl help with the same

    Hi,
    t' was namespace.
    It solved issue.
    Besides
    the sql statement
    select EmployeeID , FirstName ,LastName from Employees where EmployeeID > 7
    and the output is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <p3:ZZTESTXIJDBC xmlns:p3="urn:sap-com:document:sap:rfc:functions">
    - <OUTAB>
    - <item>
      <EMPNO>8</EMPNO>
      <EMPNAME>Laura Callahan</EMPNAME>
      </item>
    - <item>
      <EMPNO>9</EMPNO>
      <EMPNAME>Anne Dodsworth</EMPNAME>
      </item>
      </OUTAB>
      </p3:ZZTESTXIJDBC>
    but I see only one record is getting updated
    <EMPNO>9</EMPNO>
      <EMPNAME>Anne Dodsworth</EMPNAME>
    what could be the reason for that

  • JDBC to RFC  Scenario large data

    Hi,
    I have jdbc to rfc scenario. I have no problem with the small size data (about 10 mb ). if resultset is very large ( about 80 -120 mb ) , i received resultset and proceess it  but when PI try to send these data to RFC it stucks status Scheduled in sxmb_moni , and in rwb is  to be delivered and doesn't send to rfc.
    What can i do ?

    Since you are using JDBC as sender, I would think you query from the sender and resultset is mapped to RFC for the target system. PI  gives optimum performance upto 5 mb message size. YOur message size is pretty big.
    Suggestion:
    A) Make a minor change and do the query to result less records.
    Example: Select Fields from tablename where rownum < 500    and
                   in update statement set flag = true for the read records so that next time you will not reread those old records again and every time you query only for 500 or  300 or your desired number records and keep the  mesg size always constant irrespective of data available.
    Hope that helps.

  • Question regarding JDBC - XI -RFC

    Hi all,
    I have a scenario which XI will get data from database (using jdbc adpater) then send data to execute in RFC. This is an asynchronous call. My question is that.
    1. If XI can get many records from database in 1 select, will it send many records to RFC at once? Is there any way i could tell XI to split input data into many message (1 message for each record) without using BPM? or Is it possible or better to set import parameter of RFC into table to get many record from XI at once?
    2. If i manage to make 1 message for each record, Could i use queue for sending data to RFC? I want the first record to be completed before sending second record. Since this is an asynchronous call, I'm not sure that XI could be able to know when to send the second record or Do I have to make it synchronous call to get return response from RFC after RFC finish execution and use BPM to get return response before sending next data to RFC.
    Any suggestion from expert?
    Thanks,
    Pavin

    Hi
    1. If XI can get many records from database in 1 select, will it send many records to RFC at once? Is there any way i could tell XI to split input data into many message (1 message for each record) without using BPM? or Is it possible or better to set import parameter of RFC into table to get many record from XI at once?
    Yes you can do multi mapping 1:N without BPM
    Message Splitting Using the Graphical Mapping Tool
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    2. If i manage to make 1 message for each record, Could i use queue for sending data to RFC? I want the first record to be completed before sending second record. Since this is an asynchronous call, I'm not sure that XI could be able to know when to send the second record or Do I have to make it synchronous call to get return response from RFC after RFC finish execution and use BPM to get return response before sending next data to RFC.
    You can queue to process one by one. Response can be obtained with or without BPM
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file(Without%2bBPM)
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/jdbcTOJDBC
    JDBC to RFC Mapping Problem.
    Thanks
    Gaurav

  • 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

  • JDBC- XI- RFC(V.V.Urgent)

    Hi ,
    JDBC->XI->RFC
    I am Integrating Oracle database with SAP(RFC).
    How should adapter knows some thing updated in Oracle.
    How Should the Triggers in Oracle.How we have to write Query in XI..
    Points Will be awarded for the Solution..
    Regards,
    Jayasimha

    Hi
    Refer the below links ...
    check the below blogs
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    See the below links also ..
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response - XI: How-to on JDBC receiver response
    JDBC Response /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    Receiver JDBC scenario - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    /people/ajay.kumar/blog/2005/03/24/writing-bsp-for-sap-r3-version-46
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    /people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements
    /people/community.user/blog/2006/09/21/xi-rfcadapter-reconnect-issue
    /people/sap.user72/blog/2005/12/22/new-to-xi
    Rewards point if useful

  • JDBC to RFC with BPM

    Hi,
    Please find details of my scenario.
    Oracle(VIEW)
    Sender JDBC--> PI--
    > RFC request
    and RFC response I need to update some other table in Oracle  using storeprocedure.
    and have one more storeprocesdure to update the View so that I will not get duplicate entry.
    I am not using UPDATE statement in JDBC sender communication channel, insted of that to update VIEW I am using storeprocedure.
    Please let me know how I can achive it with BPM.
    Thanks,
    Bhupesh

    Hi,
    1) If the structure send by JDBC is not acceptable by the BPM then you need one Mapping in JDBC ---> BPM flow.
    2) If the structure send by JDBC is same as the receiving structure of BPM then no need of Mapping.
    3) You will need one Mapping to map JDBC req message to the RFC req message; one mapping program to convert RFC response to the JDBC stored-procedure message....
    So your scenario with mappings will be:
    JDBC --> Interface Determination (Mapping Optional as per pt.1) -
    > BPM
    BPM <-> Interface Determination (Request-Response Mapping) <--> RFC
    In the above mapping program your ABS MI of BPM should have below MTs
    Req Message -
    > Original Message Received from JDBC
    Response Message ---> Message which needs to be send to the JDBC stored-procedure.
    Now your IN SYNC MI at the RFC end should have below MTs
    Req Message ---> RFC request message
    Resp Message ---> RFC response massage.
    Then in the Interface Detremination of BPM <----> RFC flow develop a IM with below mapping programs:
    Request Mapping between ---> MessageFromJDBC_to_RFCRequest
    ResponseMapping between ---> RFCResponse_to_JDBCStoredProcedure
    BPM -
    > JDBCStoredProcedure
    For this flow there is no need of Mapping program...
    using the above mappings programs you can ensure that there is no Transformation step in your BPM...this is to help you in achieving a good performance out of your BPM...
    You need a Syns ABS and Sync IN message Interface for BPM <---> RFC communication.
    Regards,
    Abhishek.

  • 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

  • JDBC to RFC Sync Error

    Dear All,
    I'm creating JDBC to RFC Sync scenario.
    Configured according to below link,
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/12/04/jdbc-to-jdbc-synchronous-scenario-with-rr-beans-and-without-bpm-and-rfc-lookup
    Sender JDBC structure is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_JDBC_To_RFC_Source xmlns:ns0="http://FiletoFile.com">
       <row>
          <A>12</A>
          <B>34</B>
       </row>
    </ns0:MT_JDBC_To_RFC_Source>
    But in Test tab of MM_REQ is showing Red.
    Why its showing red?
    PFA the attached Screenshot.
    Thanks,
    Arthita

    Hi Arthitha
    You cannot create structure of some kind and use completely different kind of input payload.
    If your expected payload is of format
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_JDBC_To_RFC_Source xmlns:ns0="http://FiletoFile.com">
       <row>
          <A>12</A>
          <B>34</B>
       </row>
    </ns0:MT_JDBC_To_RFC_Source>
    Then your Data type should be created as below
    Regards
    Osman

  • JDBC to RFC synch RFC call not executing.

    Hi,
    I am working on the synchronous JDBC to RFC without BPM. After completing design and config when I test the complete scenario the data from databse is not getting updated in R/3. And I do not see any errors in MONI. But when compared the moni logs I observed the following between the working scenario and not working scenario.
    <u>Working scenario log in MONI:</u>
    <SAP:Receiver>
      <SAP:Party agency="" scheme="" />
      <SAP:Service>ECS300</SAP:Service>
      <SAP:Interface namespace="<b>http://sap.com/xi/XI/System</b>">InterfaceCollection</SAP:Interface>
    - <SAP:Mapping notRequired="S">
      <SAP:ObjectId>YYgNVKC9PTCW4JlMapfxZQ==</SAP:ObjectId>
      <SAP:SWCV>IrmTYNPLEdqKItGjlusuXw==</SAP:SWCV>
    <u>Not working log from the MONI:</u>
    ++++++++++++++++++++++++
    <SAP:Receiver>
      <SAP:Party agency="" scheme="" />
      <SAP:Service>ECS300</SAP:Service>
      <SAP:Interface namespace="<b>http://my_Own_namespace</b>">JDBC_Rfc_Synch_MI</SAP:Interface>
    - <SAP:Mapping notRequired="M">
      <SAP:ObjectId>28ZZbGggOw6UcnigDXMD7A==</SAP:ObjectId>
      <SAP:SWCV>IrmTYNPLEdqKItGjlusuXw==</SAP:SWCV>
      <SAP:SP>-1</SAP:SP>
      </SAP:Mapping>
    Could some body point me where I am doing wrong ?
    Thaks
    Steve.

    Hi Steve,
    I think the error is because your database table is expecting some kind of input and the input you are passing has some error in it.Just cross check the table using DESCRIBE <tablename> with the data you are trying to enter.
    Also Just look at Query SQL Statement part ubnder this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    Regards,
    abhy

  • HTTP - RFC - Mail  - Mapping

    Hello,
    I want to set up an HTTP -> RFC -> Mail Scenario.
    HTTP from external party to XI (async).
    XI calls the RFC (sync)
    The RFC-response I want to sent via the Mail-Adapter (sync).
    So I have one Oubound Interface (HTTP)
    I have an Inbound Interface (RFC)
    And I guess I need another Inbound Interface for the Mail Adapter.
    Now I have a problem with mapping. How should I map the response of the RFC to the Mal-Interface. In the Interface-Mapping Editor I only have the option to map the RFC-Request to the Mail-Interface.
    I hope it is clear.
    In other posts it said that such a szenario is possible. I just need to know how to do the mapping.
    Thanks,
    Elko

    Hi Elko
    Hi Pl refer These link for ur Scenario
    <b>HTTP -> RFC</b>
    Passing RFC Table parameters from XI
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/httpToRFCSynchronousScenario-FAQs&
    Unable to view payload in HTTP to RFC Scenario
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
    /message/266750#266750 [original link is broken]
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    <b>Mail Scenario</b>
    Check this blog-
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Thanks!!

  • JDBC to RFC synchronous scenario (Urgent).

    Dear forum,
    My requirement is data is populated in oracle data base.we are fecthing the data from database through XI and sending it to R/3. RFC is sending the response (suceess/failure) to XI. And XI is updating the status message into database.
    For this,I have done the JDBC - RFC - JDBC syncronous scenario using BPM. .I got the successfull message under message monitering.Problem is I cannot able to find the data for RFC and JDBC reciever.
    Please find the following Configuration steps for the above scenario
    3 data types
    JDBC request, JDBC response one dummy structure to capture RFC response messages.
    3 message types for the above data types
    5 message interfaces.
    OB request,
    OB ABS request,
    IB Asyn for dummy,
    Syn ABS (JDBC req and dummy structure),
    IB JDBC response.
    4 message mappings.
    Mapping between JDBC request to JDBC request dummy.
    Mapping between JDBC request dummy to RFC request.
    Mapping between RFC response to JDBC response dummy.
    Mapping between JDBC response dummy to JDBC response.
    3 Interface Mappings.
    JDBC request to JDBC request dummy.
    JDBC request dummy to RFC request and RFC response to JDBC dummy response(Synchronous request and responce) .
    JDBC dummy response to JDBC response.
    Integration Process.
    Used following steps.
    Recieve step asynchronous -> Send synchronous -> Send asynchronous
    I can able to see the payload for sender under communication channel.But the data is not reached to RFC.can any one help me to come out of this problem.
    Points will be awarded for helpfull answers.
    Thanks & Regards,
    Naresh.K

    Hi Seshagiri,
    We are trying the same scenario with out using BPM.
    Following steps has been done in design(IR).
    2 data types for JDBC request & JDBC response.
    2 message types for the above data types.
    1 outbound synchronous message Interface.
    2 message mappings (JDBC request -> RFC request) and (RFC response -> JDBC  response)
    1 Interface Mapping.
    Could you please let me know how to maintain the collaborative profiles & and agreement details in Configuration(ID).
    Your valuable assistence is required to complete the interface.
    Thanks in advance.
    Kind Regards,
    Naresh.K

  • 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

Maybe you are looking for

  • Error message from a BAD PDF

    I am using Adobe Reader to render PDF documents as a part of a process and then convert it into TIFF. Some of the documents that come in are corrupt PDF documents and cannot render itself in the reader and hence cannot be converted. This is the error

  • Can't move objects small distances

    CS6, OS X I can't seem to move objects in my drawing small distances..I'm used to being able to do this..must be some setting I hit, but I can't find which one it might be. I have snap to off, but this isn't behaving like snap to..it's behaving like

  • Progress Tracker

    Hi Experts, I have a form with lot of fields spanning across multiple pages - in order to make the form user friendly and enable the user to keep track of their form filling activity, I want to add a progress tracker which will track the percentage o

  • USE of  DBMS_STATS

    Hi All I want to use the dbms_stats package to gather the statistics EXEC DBMS_STATS.EXPORT_SCHEMA_STATS ( ownname => 'SCOTT', stattab => 'DBSTATS', statid => 'SCOTT' || '_' || TO_CHAR(SYSDATE,'MMDDYYYY'), statown => 'DB_MONITOR'); In the above synta

  • LCM - Unable to Migratge - 11.1.1.3

    Hi, We just patched all of our Shared Services environments to Version: 11.1.1.3.18.37(Patch 9703047) (Drop 6). When we try and migrate applications between environments we are getting errors: java.io.IOException: java.io.IOException: java.io.IOExcep