JDBC to RFC.request and RFC.response to JDBC

Hi all,
I have the need of create this scenario: JDBC will pick some records from DB and send them to SAP into a RFC.request, after that, SAP will generate a response that will be sent to XI (via the RFC. response), these data has to be sent back to the DB.
So I am clear in the first part: JDBC sender and sRFC receiver, so that, the response will be sent back to XI, BUT, is there a way to map these response data into a DT_Receiver_JDBC without using BPM????  If so, how?
And, what about the initial loads of data???  Customer wants this kind of scenario to be used then. What do you think about that?
I know XI is not the best approach for this purpose but...  And i think i would have to take into account the response time of SAP in synchronous RFC...
Hope you guys may help me on this.
Thanks in advance and best regards,
David

is there a way to map these response data into a DT_Receiver_JDBC without using BPM?
No. U will have to use BPM.
I have not used it personally with JDBC adapter but u may try this to avoid BPM. Hope it works
http://help.sap.com/saphelp_nw04/helpdata/en/45/20c210c20a0732e10000000a155369/frameset.htm
I know XI is not the best approach for this purpose but... And i think i would have to take into account the response time of SAP in synchronous RFC...
For sync scenario, the response time should always be considered. However, using XI won't be that much of pain. It will surely relieve you when it comes to monitoring.
Regards,
Prateek

Similar Messages

  • Parameter JCO.Request and JCO.Response where null

    Hi ;
    I try to execute RFCtoRFC scenario. I have done all settings including receiver,sender agreement too.
    But when i call rfc , i get following error
    parameter JCO.Request and JCO.Response where <null>
    My code that the calls a remote function is like;
    CALL FUNCTION 'ZBAPI_EH_GET_DATA_GEN'
        DESTINATION 'OLT200'
    What would be the reason ?
    Thanks

    Hi,
    in your RFC call, specify the data which is sent as RFC req msg from R/3 system in EXPORTING parameter if your RFC call is asycnh or both EXPORTING and RFC response msg structure in IMPORTING if your RFC call is synch.........in your report, use pretty printer and specify your RFC in CALL FUNCTION and then you will see the default calling procedure of your RFC.......then create a structue for your RFC req msg structure and response msg struc and fill it with data and then execute your RFC by using this CALL FUNCTION method.........
    Regards,
    Rajeev Gupta

  • Need to get SOAP request and SOAP response message.

    Hi All,
    I need to know that how can I get the SOAP request and SOAP response message. Now I am using WSDL2Java tool from Axis to generate the stub classes (such as ServiceLocator, SoapBindingStub, and soapPort ) and applying the classes to make the SOAP request. I have seen the solution for getting the SOAP request with Dynamic invocation interface (DII) style (http://mail-archives.apache.org/mod_mbox/ws-soap-user/200310.mbox/%[email protected]%3e), but not Static stub like what I did. Could anyone suggest me how to do it please ( I can't run tcpcom on the linux server, because x-window is not allowed to install ). Thank you for any help in advance.

    You can try writing a client-side handler.
    Handler gets called before the actual request is sent, and you can get the SOAP
    message in it.
    You have to deploy the handler in client-config.wsdd.
    Handler is just like Servlet Filter.
    I think there might be a simpler solution, but I dont know.

  • How to create Asynchronous request and delayed response Provider ABCS

    Hi All,
    I am using Jdveloper 11.1.1.5 and AIA FP 3.0
    Whenver I am creating Asynchronous Provider ABCS through Service constructor, it asks for the wsdl in Callback tab. Would someone please help me in :
    *1.* What wsdl we should provide in Callback tab
    *2.* If I provide the EBS wsdl operation response. Then there is no call back in the BPEL process of the ABCS. Instead of that there is an invoke activity which is invoking the response operation of the EBS.
    *3.* Does anyone tried to develop a complete Asynchronous (Req/Delayed response) AIA interface. if so please share with us.
    Thanks
    Sunil

    HI Veeru,
    Thanks for this quick reply. According to you suggestion I am following this design pattern to create the Async AIA Interface.
    ==============================================================================================
    (1.Request) (2.port Type=ProjectEBS) (3.CreateProject)
    Async BPEl Process ---------1-------> CreateProjectReqABCS---------------2--------------------->ProjectReqEBS----------3------------->CreateProjectProvABCS
    (4.portType=ProjectEBSResponse) (5.CreateProjectResponse) (6.Response Message)
    CreateProjectProvABCS------------------4-------------------------->ProjectRespEBS------------5--------------->CreateProjectReqABCS---------6----------->Async BPEL process
    ==============================================================================================
    Would you please confirm these points :_
    1. While connecting to EBS from ReqABCS I am selecting only PortType=CreateProjectEBS, I am not providing Callback PortType, Beacause we are using seperate Service to handle the response. Is this step is correct ?
    2. Also while connecting to EBS from ProviderABCS i am selecting tType=CreateProjectEBSResponse, I am not providing Callback PortType. Is this is correct ?
    3. In Requester ABCS test page on EM console there are two WSDL service showing. Which one to select while providing wsdl in ProjectResponse EBS while handling response message
    Thanks
    Sunil
    Edited by: 856749 on Apr 23, 2012 12:47 PM

  • JDBC(Sender)-XI-RFC (Request) RFC (Response)-XI-JDBC(Receiver)

    Hi All,
    JDBC(Sender)-XI-RFC (Request)
    RFC (Response)-XI-JDBC(Receiver).
    Need some solution for sending email for successfully completion of scenario after updating SQL DB Table.
    Let me explain the scenario:
    We are pooling the SQL DB table to pull the records and map the records to RFC request parameters, after successful Posting the entries in R3 HR, RFC response contain the same with E (Error) S (Success) records status, we are updating the same in SQL DB table, I implemented the complete scenario without BPM with the help of module processor in Sending JDBC Adapter, scenario is working fine but now we have to send the successful mail to our support team with status contain Number of success, Error and total records as email.
    I need the solution how to implement the same requirement in current scenario.
    Is their way to do something with the RFC receiver adapter module addition to send the successful mail or generating Alert with all the description?
    I am at PI 7.0 SP12 with HP unix box.
    Thanks in Advance for creative idea
    With Regards
    Sunil

    Hi Bhavesh,
    Thanks for your help and your blog is really helpful. I implemented the UDF for generating Email Alert but this alert is generating before Updating the SQL Database, is their any way to generate alert after updating the SQL.
    Actually in my scenario we are sending the data from SQL to R3 by RFC and again updating the SQL status whatever the RFC return, after successfully updating SQL we need to send success email to support people but if we are sending the email before updating the DB then their will be problem.
    JDBC receiver after updating the SQL DB returns the response with No. of row updated but how to capture this response, if we can capture this response then we can send email through email adapter even their is one more problem, In my scenario I am counting the number of rows with status “S” and “E” and sending the same in alert email but if are sending email after updating the SQL DB where can hold the row count value and use it while sending the email.
    Implemented the scenario without using BPM..i am using sender JDBC module processor for Syn-Asyn bridge.
    Even I do not find the link to reward point. Please let me know how to do it.
    With Regards
    Sunil

  • Inserting RFC Response to Tracking table using JDBC as a receiver

    Hi All
    I want to update my tracking table with the RFC response but the problem is I cant figure out he Target structure on my JDBC.
    Every time when testing on my http://xxxxxx:50000/mdt/channelmonitorservlet I get nothing on the  "Processing Details"
    I've configured my RFC Response as a sender (ASYN) and JDBC as a receiver, I do have RFC destination and it working fine.
    My is like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:RFC_JDBC_MT xmlns:ns1="http://yonela.com">
    <StatementName_response>
    <PI_JDBC_TBL ACTION="UPDATE">
    <TABLE>PI_JDBC_TBL</TABLE>
    <access>
    <TYPE></TYPE>
    </access>
    <key>
    <key><CARRID>AA</CARRID></key>
    </key>
    </PI_JDBC_TBL>
    </StatementName_response>
    </ns1:RFC_JDBC_MT>
    Any suggestion

    Hi,
    Use Insert in the action field instead of Update and try again.
    -Supriya.

  • Can I configure JDBC Sender to process the RFC response message?

    Dear All,
    We're working on an integration scenario of synchronous messaging from database to RFC. Is there any way to update or insert the record(s) onto the source database according to the BAPI response?
    Any inputs are welcome. Many thanks for your time and support.
    Regards,
    Matthew

    Hi Chun,
    As far as I know you will not be able update the database back based on RFC response in a synchronous way though you have option of selecting BE in sender JDBC adapter.
    This is sentence from SAP training material...
    "In the case of a JDBC sender, the database table is queried via a SELECT statement. The message is by definition asynchronous hence the QoS should be set as EO or EOIO. "   
    The only option i can think of is JDBC Sender(async)->BPM->RFC(synch)->response mapping to JDBC receiver structure->JDBC receiver to update the table.
    Also check these threads...
    JDBC source in a Synchronous BAPI call.
    Re: JDBC Sender Synchronously?
    Anand
    Message was edited by: Anand Torgal

  • File to RFC, and through RFC response i am trying to trigger the Mail adapt

    Hi All,
    Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the  file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
    Till now i am not using BPM, can we do this without BPM pls let me know
    now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
    or else  i need use only BPM pls share  the steps which i need to be configure.
    Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
    Thanks in advance
    Venkat

    With BPm, follow this:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Instead of receiving the response in file, use mail adapter
    Regards,
    Prateek

  • How to check which RFCs causing issues in the system and RFC response times

    Hi,
    We have an issue with the RFC response times in CRM and need investigstion. We need to know which Which RFCs causing issues and how we can solve the problems.
    Regards

    Hi,
    chek the below code
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
    EXPORTING
    FILE = W_FILENAME
    RECEIVING
    RESULT = W_RESULT
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    WRONG_PARAMETER = 3
    NOT_SUPPORTED_BY_GUI = 4
    others = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-* MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF W_RESULT IS INITIAL.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
    EXPORTING
    DIRECTORY = W_FILENAME
    RECEIVING
    RESULT = W_RESULT
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    WRONG_PARAMETER = 3
    NOT_SUPPORTED_BY_GUI = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    ENDIF.
    ENDIF.
    IF W_RESULT = 'X'.
    RC = '1'.
    ELSE.
    RC = '0'.
    ENDIF.
    reward if helpful.
    Regards,
    nagaraj

  • File2RFC Scenario in XI-want to send and the response of rfc by mail/fil

    I have an File to RFC scenario in PI.The initial requirement was to just pick the file and update the data in sap.its file to rfc sceanrio in XI...
    *Now i need to send the response of the rfc function module via file or could be via mail*
    Please tell me the best way to approach..howdo i handel this scenario.
    Thanks.
    Rohan Patil.

    Hello Rohan,
    In your case you can follow two approaches.
    1. If need to send RFC Response through Mail Use BPM
    2. IF need to send via File
           2.1 you can implement with the  BPM
           2.2 you can implement the same without BPM also(but needed SP10 of PI7.0 for this implementation by using standard modules check wiki for the same )
    Regards
    Rajesh

  • How to merge source data with RFC response and post back again as Idoc

    Hi All,
    This is the requirement we have for an interface
    The legacy application is sending Vendor master to PI 7.0
    If it is new vendor then it is send as an Cremas Idoc into SAP. Legacy (New Vendor) -
    > PI 7.0  -
    >Cremas Idoc SAP
    If it is changed Vendor legacy will only send changed fields for that Vendor.In PI we would like to call an RFC which will return all the data for that changed Vendor Number and then merge the RFC response with changed data from legacy and then send it to SAP as Cremas Idoc again with all values.
    I know these can be achieved using Proxy by custom Abap Code in SAP.But we would like to avoid it.
    How can we achieve it?
    1.RFC lookup - Shall we use these , when PI receives changed Vendor from legacy ,it will call RFC using RFC lookup and the response message from RFC lookup should be merged with source data .Is this possible?
    2.Shall we achieve this using BPM ?Is it feasible and How?
    Any Help greatly appreciated
    Thanks,
    V

    If it is changed Vendor legacy will only send changed fields for that Vendor.In PI we would like to call an RFC which will return all the data for that changed Vendor Number and then merge the RFC response with changed data from legacy and then send it to SAP as Cremas Idoc again with all values.
    I am not sure why you want to pull whole data from R3 and send back to R3.
    you can follow any of these approach..
    if you have any indicator for new/ changed cusotmer in the legacy data then trigger CREMAS IDoc accordingly.
    mapping rules will be diffrent for New and changed CREMAS idoc.
    otherwise just do RFC look up for each record then based on the output(new/changed) create or update cusotmer data through CREMAS IDoc.
    when changing the customer through CREMAS no need to pass whole data again. it is enough if pass the changed fields. offcourse qualifier values  for segments will differ.

  • Cant send msg to RFC Response

    Hi,
    I have RFC XI BPM Jdbc scenario, in which, I am raising an exception when database connection fails, and sending a message back to the RFC like "failed". But I am not getting any mapping error in the repository, but couldnot map at runtime....when I see in the Technical Workflow, I see "Mapping NOt found".
    Could you please help on this issue.
    Thanks,
    Raj.

    hi Raj,
    >>>>and sending a message back to the RFC like "failed".
    you need to map jdbc request to RFC.response
    in the <b>exception branch</b> to do the mapping correctly
    (this is the only way)
    remember to refresh the cache (SXI_CACHE)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • RFC Response Error in XI

    Dear team,
    In my SOAP to RFC scenario, Im facing the error.The is two message mappings in my scenario.
    One is between SOAP Req MT and RFC Import str . Second one is b/w RFC.Response and SOAP RESP MT. While Im testing with XMLSPY the request mapping is executed successfully. the RFC executes its functionality successfully in SAP[updating data in atransaction]. The RFC response should be "SUCCESS" or "FAILURE".*Even if we check RFc individually its working fine and giving response as SUCCESS / FAILURE* .
    BUT
    In my case I got the below error in MONI in Response message .The INBOUNDMESSAGE(CENTRAL)->Payload contains the below response. So obviously the response mapping failed in XI . Why im getting this error. BUT RFC functionlity working in SAP , but response getting error .
    Failure case:
    - <rfc:ZRFC_USAGE_DEC.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <Name>JCO_ERROR_XML_PARSER</Name>
      <Text>Expecting a tag to begin with '<' instead of '#', in "#F#A#I#L#U"</Text>
      </rfc:ZRFC_USAGE_DEC.Exception>
    SUCCESS case:
    - <rfc:ZRFC_USAGE_DEC.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <Name>JCO_ERROR_XML_PARSER</Name>
      <Text>Expecting a tag to begin with '<' instead of '#', in "#S#U#C#C#E"</Text>
      </rfc:ZRFC_USAGE_DEC.Exception>
    Thanks.
    -Drumi

    I have done cache refresh, cross checked MT strucures.
    SOAP Response   MT structure  is
    --->MT
    >REsponse
    RFC.REpsonse Structureis...
    --->RFC.RESPONSE
    >Response
    -Drumi

  • Wrong RFC-response filling with characters '#'

    Hi all,
    we have an XI scenario in which a Report use a synchronous RFC call to run a query on a DB table and return the resultset to the calling Report.
    Sync RFC call -> PI 7.0 -> JDBC Query (Select u2026 with ResultSet) -> PI 7.0 -> RFC Adapter
    Weu2019ve some troubles on the data returning from the resultset of the query, thatu2019s rightly filled, and the RFC-response structure because there are some '#' characters as values of the response fields.
    Weu2019ve loaded into the Message Mapping the instance of the resultset (rightly filled) and the test has run successfully, so perhaps the issue itu2019s regarding the RFC Adapter side.
    Now the mapping mapping is set up with constant values but not all the RFC-response fields are filled, infact there are some u2018#u2019 characters that break the values in more lines.
    Weu2019ve already run the full cache refresh on XI on the ABAP and Java side, also weu2019ve restarted the XI instances without results.
    Any ideas?
    Thanks in advance,
    GB

    If its due to the special characters that are popping in the result of query which does not seem to be valid for RFC response,
    1) try to make the RFC Destination Communication Setting as "Unicode"
    2) Check the data type of RFC Response structure could be the fields for which the data is mapped are of date/numeric, in that case RFC data type has to be changed.
    (you would have to reimport the RFC into PI i guess)
    3) If you feel you would not require these special character, you can filter the same in mapping.
    4) After all these if you are still struck and data types are rightly defined and rfc destination is rightly maintained for Unicode, then it i feel the problem resides in the RFC Adapter to convert the xml message into ABAP RFC Format using its metadata, in that case i recomend to change the scenario to Proxy from RFC where by the messages are routed by ABAP stack not by Java.

  • Synchronous RFC Response Not getting Mapped

    Hi,
    I am making an RFC call from XI to SAP R/3 system.
    Scenario: File -> XI -> RFC (SAP R/3)
    The request message is picked from the File Adapter, routed through XI, and an RFC call is made on the SAP R/3. The RFC Response has to be obtained in XI, transformed and persisted using the FileAdapter.
    I have created the request and response message types and message interface in the repository. The message interface is denoted as Outbound Synchronous. The Request and Response mappings have also been made against the RFC message structure.
    I also created the business process in the repository showing the interface as Synchronous between the two actions.
    However, in the Integration Builder, when I import and configure the Business Process, the wizard does not show me the response message type or the response mappings.
    After completing the configuration, the final configuration is still one-way, and only shows the request scenario.
    I am unable to configure the response scenario in the Integration Builder.
    During runtime, the request does get invoked and the RFC gets called from XI. However, the response is lost.
    What do I need to configure to capture the RFC response into XI ?
    thanks,
    Manish

    I would guess that synchronous response is the collaboration agreement between business systems, and not related to the transports available between them.
    My scenario is as follows:
    BusinessSystem1 -> XI -> SAP R/3
    The inbound document is being sent by the FileAdapter where the SenderService is BusinessSystem1.
    I have also configured another file adapter as a receiver, and this has been configured as a channel for the BusinessSystem1.
    Even in this scenario, I am unable to configure the response in the Integration Directory.
    I am able to configure the response structures and mappings in the Integration Repository.
    Any help appreciated.
    thanks,
    Manish

Maybe you are looking for