RFC Sender : Mapping Issue

Hello guys : need some info as i am using the following scenario RFC>xi> file ;
In this case, for mapping purpose what souce msg i should use : RFC Request msg / RFC Response msg as i see in imported objects.
as i know that RFC is called in R/3 it will respond , so is it the souce message in mapping is RESPONSE? Please suggest
Reddy

Hi,
use the rfc request
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>

Similar Messages

  • RFC Sender Channel Issue : STFC_CONNECTION

    Hi All,
    There has been an issue with the RFC sender channels. When SAP triggers the data, we see an error in the RFC sender channel as below
    Error in processing caused by: com.sap.aii.af.rfc.afcommunication.RfcAFWException: senderAgreement not found: lookup of binding via CPA-cache failed for AdapterType RFC, AdapterNS http://sap.com/xi/XI/System, direction INBOUND, fromParty '', fromService '<ServiceName>', toParty '', toService '', interface 'STFC_CONNECTION', NS 'urn:sap-com:document:sap:rfc:functions' for channel '<ChannelName>' (channelId 7f84f67e7efe39949dc12a2f569236fb)
    But the data gets processed at the very next moment.
    Program ID used in the channel is same as the ID registered in SAP. Is there some configuration missing either at SAP PI or SAP R/3 system?
    Regards,
    Prajeet

    Hi Prajeet,
    please refer this wiki [link  |https://wiki.sdn.sap.com/wiki/display/XI/RFC+Faqs?showChildren=false]Q19,hope this helps.
    Check if you are using the same program ID in multiple scenarios. May be  if  you keep different the program ID names in different RFC adapters, it should resolve the error.
    also check here :/people/danny.deroovere/blog/2008/02/26/change-client-in-scenarios-with-sap-business-system
    Regards,
    Srinivas

  • RFC Sender Adapter - Java Mapping

    Hello
    i want to make a call from R3 -> XI via the RFC Sender Adapter, process the R3 Call inside a Java Mapping and return to results to R3 (synchronous RFC call)
    how do i setup Interface and Message mappings and the corresponding sender and receiver agreements?
    regards franz

    i've got some java services from a sap business connector application
    these java services where called from R3 -> SAP/BC, BC did some proecessing and filled return parameters (synchronous RFC call from R3 -> SAP BC)
    I now have to convert these SAP BC Services to XI Services because SAP BC won't be supported any more
    any ideas how to do do this?

  • Asynch RFC Sender to File Receiver Szenario (table content)

    Hi,
    I have the following szenario: RFC(R/3) => XI => File
    At the moment I implemented the following:
    1. Z-Report in R/3 calls a function module:
         CALL FUNCTION 'Z_RFC_TO_XML'
            IN BACKGROUND TASK
            DESTINATION xi_dest
            EXPORTING
              it_table = it_table.
          COMMIT WORK.
    2. The RFC Sender Adapter on XI takes the RFC data and convert it to RFC-XML
    3. There is a message mapping from RFC-XML to XML-Structure
    4. The File Receiver Adapter write the XML document to the file system
    The scenario is working without error and the file is created. But on R/3 side the it_table is filled with 20 rows before the function module Z_RFC_TO_XML is called. But on xi side I only receive one row (the header line).
    Is it possible to transmit the whole table content to xi and not only one row? And if yes, how can I do this?
    Thanks,
    manuku

    Hi Tobias,
    Currently am doing this scenarioa RFC to file
    CALL FUNCTION 'Z_RFC_TO_XML'
    >         IN BACKGROUND TASK
    >         DESTINATION xi_dest
    >         EXPORTING
                p_werks = 'Plant no'
               TABLES
    >           it_table = it_table.
    >       COMMIT WORK.
    But here am using Exporting and Tables parameter.. When i debug this FM, the debugger is not going to the FM.
    Can you help me in solving this issue....
    Thanks and Regards,
    Vijay vikram

  • R/3 to PI using RFC Sender Adaptor as Asynchronous scenario

    Hello Folks,
              RFC Adp.           SOAP Adp.
    ECC-->XI--
    >ARIBA
    I am new to PI and doing a scenario mention above. we are using RFC sender adaptor to send the data to XI in asynchronous process.
    I have config the Sender comm. channel as below.
    Appl.  Server(Gateway):  My Ecc Server host name
    Appl. Server Service (Gateway) : My Ecc server
    Program Id : XYZ.
    Note : while creating the the Service interface and Message mapping and Operation mapping I am using the RFCname.respone message type is that ok in asynchronous process?
    And then I went to ECC in Tcode SM59 and created a RFC destination of type TCP/IP
    and put the same information as given above and test the connection which is working fine.
    I have created a FM at ECC end make it remote enabled. and calling the FM in back ground task using destination in a Work flow code.
    When I run the Work flow code It ran successfully but i went to XI side there is no msg in the SXMB_MONI.
    Then i went to the component monitoring->Adatptor engine>Comm. channnel Monitoring and found that under my RFC sender comm. channel there is an error msg saying
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: senderAgreement not found: lookup of binding via CPA-cache failed for AdapterType RFC, AdapterNS http://sap.com/xi/XI/System, direction INBOUND, fromParty '', fromService 'BS_ECC', toParty '', toService '', interface 'YFPS_MM_I_0242_PO_APPROVAL_OUT', NS 'urn:sap-com:document:sap:rfc:functions' for channel 'CC_0242_PO_Approval_RFC_Sender' (channelId 19585252a58335ee871e4c3a771b027f)
    Where as i have checked that in the sxi_cache t-code there is a sender agreement for my scenario under the sender agreement tab.
    Please Help me in this to resolve the above error. I am totally stuck at this point.I would really appreciate a quick answer.

    Appl. Server Service (Gateway) : My Ecc server
    Confused with this statement.....
    it should have the format sapgwXX ....
    XX is the system number which comes from the j2ee port mentioned in the XI homepage URL
    http://<hostName>:5XX00:rep/start/index.jsp
    How to configure sender RFC adapter...check this blog:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1438
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException:
    senderAgreement not found:
    Sender Agreement is Expected in this communication which does not seem to be present in ID....create sender agreement using the RFC communication channel....
    Regards,
    Abhishek.
    Edited by: abhishek salvi on May 2, 2009 1:24 AM

  • Flat file to idoc mapping issue

    Hi Gurus,
    i had a flat file format in sender side as below:
    H_ID     TYP_CODE    line_elemet      Quantity
    5896  STANDARD                       1.transmitter    1
    5896                  STANDARD       2.xxxxxxxxx           1
    5896                   STANDARD      3.yyyyyyyyy  2
    6895                  STANDARD       1.aaaaaaaaa        1
    9436                  STANDARD       1.bbbbbbbbb          4
    9436                  STANDARD       2.ggggggggg          3
    The above file need to be send to an Idoc.
    for which same header_ID values should create only one header segment, under that many a line segments should create as many line items appear on that header_id value.
    Here my query is how to suppress the repetetive header values to create onlyone header segment. And how to create as many line_item segments as the number of line items appear.
    points obvoius for the response
    Thanks in advance,
    Sekhar.

    About map problem I suggest youn to see the following link that are really helpful to improve knowledge about mapping:
    /people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    I suggest you to see the following link to learn more about mapping:
    Mapping functionality in XI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    SAP Exchange Infrastructure - Graphical_Mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6658bd90-0201-0010-fbb6-afe25fb398d3
    SAP Exchange Infrastructure - Graphical Mapping Exercise
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fd5ebd90-0201-0010-d697-91374d5b5190
    SAP Exchange Infrastructure - Graphical Mapping - Advanced
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f9548dd
    SAP Exchange Infrastructure: Mapping Patterns - Understand Context Handling in Message Mapping - Webinar Powerpoint
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
    SAP NetWeaver Exchange Infrastructure Mapping Troubleshooting - Webinar Powerpoint
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e01e9400-9e81-2910-20a5-a862945a5e98
    Mapping Lookups a RFC API
    Mapping lookups - RFC API
    XI 3.0 New Mapping Features
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1dba7
    I hope these links will be usefull.
    Regards,
    Salvatore

  • Mapping issue - if value matches on of several conditions

    Hi champs,
    I have a mapping in PI 7.1 of an invoice-xml  to a INVOIC02-idoc.
    I am mapping the invoice sums to E1EDS01-segments and just want to map five of several qualifiers. So I have set up a mapping for the qualifier field SUMID that just maps those five qualifiers, and map the SUMME-field from inbound message as it is.
    Now it shows that our vendors send more than those five qualifiers I have in my mapping. Since I don´t have any control of the SUMME-field all seven values get mapped into the Idoc (generating seven E1EDS01-segments), but only the five segments with my mapped SUMID get the SUMID-field. So I get in total seven E1EDS01 segments in which I get only the SUMME in two of them.
    So my question is: Are there any pretty ways to handle this kind of mapping issues besides using a lot of equalS, if and or?
    I would like to be able to say (in as simple a function as possible)  that if qualifier in field A is X, Y or Z then map the value in field B to SUMME. How do I do that? BTW I am not a java-programmer so advanced java-codes are not a good way for me to handle it.
    regards,
    Glenn

    Write an UDF with this code:
    public void <UDFNAME>(String <FieldName>,Container container){
    If (<FieldName> == "X" || <FieldName> == "Y" || <FieldName> == "Z"){
    return <FieldName>;
    Edited by: spantaleoni on Mar 16, 2011 4:04 PM

  • How to send data to RFC Destination(RFC SENDER Adapter)

    Hi ,
    Scenario:  R/3 Backendà RFC Sender Adapterà XIàsome other system.
    I have configured the RFC destination (of the type TCP/IP) at R/3 System and have registered the Program ID (specified in the RFC destination) in the XI server and using it in the configuration parameters of the RFC Sender Adapter.
    Problem: I do not know how I can send data to the RFC destination. (Should I use a report program/ ABAP Function Module?) Can anybody provide me with a sample code of Report Program/Function module (whichever is required), how to send data to the RFC Destination, so that it may be picked up by my RFC Sender Adapter.
    Thanks and Regards,
    Siva Maranani

    I have one query for you that
    I am trying to develop a scenario in SAP XI
    SAP R/3 ( RFC function module) sends a synchronous request to the XI and SAP XI will send this request to a third party web application using HTTP receiver adapter.
    I am able to send the data/message and it is successfully received at the third party web application.
    But I am facing one issue that I am unable to receive any message/data in my RFC module back.i have seen in sxmb_moni that the two messages are displayed in successfuly processed but in SAP R/3 side nothing get happedned
    Can you tell me how to use some waiting mechanism in function module to wait for the response from SAP XI.
    Regards
    Gopesh

  • Error in RFC Sender Adapter

    Hello Experts,
    Right now i m working on the scenario SRM -> XI -> 3rd party system.
    Here i want to send data from SRM to XI, and for that i m using Sender RFC Adapter.
    I have configured RFC Sender channel in XI and created RFC Destination into the SRM system, and when i m trying to test the RFC Destination at that time it is giving me error saying that "program POACK_GEE not registered".
    Can anyone help me out in this issue... its very urgent...
    so waiting for your replies...
    Thank you very much,
    hetal

    Hi Michal,
    I already had a look into that... but i didnt find the solution
    The error coming is like this....
    ERROR                program POACK_GEE not registered
    LOCATION             SAP-Gateway on host <host name> / <service name>
    DETAIL               TP POACK_GEE not registered
    COMPONENT            SAP-Gateway
    COUNTER              1270
    MODULE               gwr3cpic.c
    LINE                 1609
    RETURN CODE          679
    SUBRC                    0
    RELEASE              640
    TIME                 Mon May  7 16:45:48 2007
    VERSION              2
    I have followed all the steps then also i dont know y it is not working...

  • RFC sender in PCK

    Hi Experts,
    I have this proposed scenario:
    RFC -> PCK -> PI -> HTTP server
    To do so, I trying to configure the PCK to receive the RFC sender message and forward it to de PI.
    I created in PCK a Party with empty name and two services, one for the ECC sender (RFC) with it's name and other with empty name for the PI receiver.
    The communication channels and its agreements were configurated to only forward the received message to PI.  I don't find any errors on them.
    When I run the RFC, I am receiving this error:
    Error in processing caused by: com.sap.aii.af.mp.module.ModuleException: call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=DE1;TS=;AN=ZTI_RFC_PI;ANS=urn:sap-com:document:sap:rfc:functions; caused by: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=DE1;TS=;AN=ZTI_RFC_PI;ANS=urn:sap-com:document:sap:rfc:functions;
    Do you have any ideia about what can be wrong? Wich component should I check?
    I can simple forward the RFC message to the PI or I should map it to another format? If I have to map, how can I import it's definitions to PCK?
    Thanks anyway,

    Hi Stefan,
    The agreements already had the receiver information.
    Anyway, the party and the service were recreated with diferent names. After that, the sender and receiver agreements were also recreated. But, another error began to occur:
    Error in processing caused by: com.sap.aii.af.rfc.afcommunication.RfcAFWException: senderAgreement not found:
    lookup of binding via CPA-cache failed for AdapterType RFC, AdapterNS http://sap.com/xi/XI/System, direction INBOUND,
    fromParty '', fromService 'DE1', toParty '', toService '', interface 'ZTI_RFC_PI', NS 'urn:sap-com:document:sap:rfc:functions'
    for channel 'CC_Sender_RFC_ECC' (channelId 5aa283a1c598bb6be787eeb6460772f8)
    I think that's related to the RFC message header, that contains the receiver service and party empty, as seen in the error message (toParty '', toService '').
    But if I create a party and service with empty names the previous error occurs again.
    Any ideia about how to deal with RFC sender in PCK?

  • Problems at receiving messages at RFC-Sender

    Hi all,
    i have configured the following scenario in NWDS for testing a message flow in PO:
    SOAP request comes into PI -> map Request to RFC -> send request to ERP Test System -> wait for RFC Response -> send to PI -> map Response to SOAP -> send to File
    Therefore i have, amongst others, created a RFC Channel for sending the RFC response to the mapping operation.When i run the scenario for the first time everything worked pretty well without any error messages. But after testing it the second time the message got stuck in the ERP Test System and couln't be forwarded anymore. It turned out that whenever i deployed the channel with some config changes, the message flow worked for the first time, but crashed after every following.
    In the error log i get the following message:
    java.lang.RuntimeException: Bean Z_PP_PDES_RESPONSE not found on host xxx, ProgId =RFC_HMC100_POD: Object not found in lookup of Z_PP_PDES_RESPONSE.
    at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:121)
    at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:267)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)
    Caused by: com.sap.engine.services.jndi.persistent.exceptions720.NameNotFoundException: Object not found in lookup of Z_PP_PDES_RESPONSE.
    When i look in the message log at the same position of a successful message, the log says...
    MP: processing local module localejbs/RfcAFBean
    ... which is actually the module defined in the channel.
    So for me it looks like that after the first run something in the module config crashes and the channel tries to use Z_PP_PDES_RESPONSE instead of the RfcAFBean.
    Any help very much appreciated!!!
    Thanks,
    Maurice

    Issue has been solved! There has been a running jco server with same program id as the one of the scenario. This led to complications. After stopping the server it worked perfectly...

  • Error in RFC Sender

    Hi,
    We are implementing a BAPI to send data to PI. We have created the following
    IN R\3
    In SM59 create a new RFC connection type T (TCP/IP).
    Technical settings:
    Activation type: registered server program
    PROGRAM_ID: test_program_id
    Gateway options:
    GAteway host: Host of your R\3 system
    Gateway service: Gateway of your R\3 system
    In XI
    In your RFC Sender Communication Channel:
    RFC Server Parameter:
    Application Server: Host of your R\3 system
    Application Server Service: Gateway of your R\3 system
    PROGRAM ID: test_program_id
    RFC Metadata Repository parameter
    Message Serer: Your R/3 host.
    Message Server Service...
    SystemmID...
    Use a user with authorization to do RFC calls.
    Client...
    Language...
    After we finish setting up your CC, save and Activate.
    Now check the RFC in R/3
    When we run the program in SAP( which contains the BAPI ) for the first time, it runs & send the data but for next run it gives error in SAP side(SM58) :  Commit fault: com.sap.aii.adapter.rfc.afcommunicat ion.RfcChannelMismatchE
    Message no. SR053
    Can any one help us to solve the RFC connection issue
    Thanks

    make sure your program id is unique.try changing it.
    Ref:
    RFC adapter - /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    trouble shooting rfc/soap -
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

  • RFC Sender Communication Channel is not Working Properly

    Hi All,
    I had a Small Problem.
    I had configured RFC Sender in Asyn mode as given in Weblog 5398
    The Scenario is working fine for 1 time, after the execution the Communication Channel should be made Active again to make it work for the next time.
    For every time to Execute the Scenario i had to Activate the RFC CC.
    It is some complicated one. So any one please suggest me what can be done to Resolve the issue.
    Thanks in Advance.
    Sriram

    Hi Bhavesh,
    when we test RFC connection it is Failing and giving this error
    Error Details     ERROR: timeout during allocate of registered program
    Error Details     LOCATION: SAP-Gateway on host p162845 / sapgw00
    Error Details     DETAIL: TP Flightdatasender init/busy for more than 60 sec
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 31415
    If I Activate the RFC sender CC.It is working again.
    After 1 Execution.It is throwing this error.
    I even added Name as 'jco.server.max_startup_delay' and Value '1000' in advanced Mode of RFC sender CC.
    Please suggest me.
    Thanks in Advance.
    Sriram

  • RFC Send (Sync) --- XI -- RFC Rec (Sync) scenario. Pls help

    Hello All,
    There is one scenario
    RFC Send (Sync) --- XI -- RFC Rec (Sync)
    Now I want to make it to async as I do not need response
    RFC Send (Async)  ---  XI -- RFC Rec (Async)
    1. I know about Abap Client and Server Proxy that can be
        async but the RFC's are very complex in nature. I am not
        and abaper also
        Can there be a way that Sender and Receiver RFC can be
        made Async. Or any other simple way.
    Regards

    Hi Swarup,
    I have done the same thing.
    I have removed the export parameters of both the RFCs
    In interface mapping I used the request message mapping. and kept the response mapping part blank.
    Now when I run this scenario it works fine but also
    in sxmb_moni I see two messages.
    One for my request mapping. -- ok .
    Second empty message for response mapping.
    I do not want this second message in my sxmb_moni.
    Pls advice
    Regards

  • RFC Sender configuration : RFC - XI - FILE

    Hi All,
    I read the post at RFC Sender Configuration in Asynchronous Mode and I have the same problem for the configuration.
    I want to do a simple asynchronous RFC scenario ( RFC -> XI -> FILE) but I keep getting errors. Do I need to create a BPM to make it work? I'm using XI 3.0
    Thanks

    Hi,
    For RFC to File Scenario, if you will be calling the RFC from any ABAP report then the import parameters will be passed to File.
    Here you can use the Concept of Dummy RFC as below.
    Lets say RFC1 --> Original RFC
    RFC2 ---> Dummy RFC
    1. Create one Function Module (RFC 2) in which take the import parameters similar to the  RFC -1 Output parameters.
    2. Now in ABAP report call the RFC-1 and get the Output in export parameters and pass it to RFC-2 as import parameters.
    3. In XI import RFC-2 and map the import parameters to the Receiver File.
    SO your purpose to pass the Output of RFC-1 to file in async way will be resolved .
    Thanks
    Swarup

Maybe you are looking for

  • Which app is the best for deleting the apps we do not need?

    I am concerned about the fact that when u delet an app, some parts of it still resides within. so what should I do?

  • Should the FW 400 port be sending power to the FW HUB When the Mac is off?

    The title says it all. I am using a refurbished 2007 Aluminium 20 inch IMac and after I shut down the Fire Wire ports still power the FW 400 Hub, is this normal? I have just stopped cutting power supply with surge protector because I was having troub

  • Adding reference list in pages?

    Is there any way to add a reference list in my document in pages? I have used Word before and there they have a integrated reference manager, cant seem to find any similar functionality in pages. If it does not, pages is absolutely worthless in acade

  • Dynamic Routing? how to read files from 2 different directories?

    i need to do that..pick files but from 2 different locations.. any simple idea? yes, the best simple is to have 2 bpels listenening to each directory... can i create only 1 BPEL? i heard about Dynamic Routing...too complex? Thanks! Pablo.

  • IE 11 - Open in new Tab Not Working

    When I click on a link that should open in a new tab (or right-click and select Open in new Tab), IE11 Opens a new tab but the screen is blank, the URL is about:blank and the tab title is 'Blank Page'. Windows 8.1 x64 Internet Explorer 11 (Desktop) T