Encoding in RFC Receiver

Hello,
I have trouble with the following scenario:
Data from an R3 system is obtained by an RFC call and then send via SOAP to a 3rd party system.
On the R3 system the data is encoded in different codepages which need to be converted to UTF-8 before sending them via SOAP.
So I want to use an adapter module in the RFC receiver channel to make this conversion.
Unfortunatelly it seems like the data I am receiving in the adapter module is already converted to UTF-8, but from the wrong codepage.
For example I am expecting data to be sent to me in ISO-8859-9 and there should be the letter I with a dot above it in the payload which equals hex "c4 b0" in UTF-8. But instead I am finding "c3 9d" which is is the letter Y with acute. When I now look into the ISO-8859-9 code table, I find that my c4 b0 letter has the code DD. The letter I am getting instead is not in the ISO-8859-9 table, but it is in the ISO-8859-1 table.. and guess where, it also has code DD. The same goes for other letters.
So it seems the payload I am getting is already in UTF-8, but got converted to UTF-8 from the wrong codepage (In this case it seems like it was converted to UTF-8 from ISO-8859-1 instead of ISO-8859-9).
What can I do to receive the payload in the right encoding?

> When its unicode, you should receive it in UTF-8.
Unicode or not, the RFC adapter always converts the payload into UTF-8, so there is nothing left to do here.
Regards
Stefan

Similar Messages

  • RFC Receiver Adapter (Problem)

    Hi All,
    I have configured RFC Receiver Adapter : Here i have imported a Z FM for example
    "" Z_API_DOCUMENT_CREATE_TEST ""  having below import paramaters:
    LF_DOCNUMBER     TYPE     BAPI_DOC_DRAW-DOCUMENTNUMBER
    IV_PF_HTTP_DEST     TYPE     RFCDES-RFCDEST
    IV_PF_FTP_DEST     TYPE     RFCDES-RFCDEST
    LF_FILENAME     TYPE     BAPI_DOC_DRAW-DOCUMENTNUMBER
    1) Now i use MM to fill in two parameters : LF_DOCNUMBER , LF_FILENAME
    If my FIle is of kind : test55.pdf     --> LF_DOCNUMBER  = test55
                                                           LF_FILENAME       = test55.pdf
    For this i have checked in Sender File Adapter "Adapter Specific Message Attributes"
    So i write UDF to capture Filename and Filename with extension to fill above shown parameters.
    Now i saw target xml after mapping in CC monitor of RWB is as below
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Z_API_DOCUMENT_CREATE_TEST xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
      <IV_PF_FTP_DEST>SAPFTPA</IV_PF_FTP_DEST>
      <IV_PF_HTTP_DEST>SAPHTTPA</IV_PF_HTTP_DEST>
      <LF_DOCNUMBER>xierror</LF_DOCNUMBER>
      <LF_FILENAME>xierror.doc</LF_FILENAME>
      </ns0:Z_API_DOCUMENT_CREATE_TEST>
    But LF_FILENAME is getting populated to my Z FM at runtime but LF_DOCNUMBER works fine filling up with value.
    But when i run the FM using F8 it works , what could be the problem.
    Any advice
    regards
    Srinivas

    Hi,
    The problem is with the Data types used for LF_DOCNUMBER.
    Make this as Char or Numeric in FM and then try. If its of any packed values then conversion will create the problem
    Thanks
    Swarup

  • RFC receiver channel, message not reflecting in Receiver ECC system

    Hi All,
    We are using Receiver RFC adapter to call a custom RFC (ASynchronous call). It was working fine, But now after we made a few changes in the mapping. The message is successful in PI, but it is not visible in ECC. When I check in RWB, I think the payload is not going correctly to ECC.  I have re-imported the RFC and tried as well. It still does not work.
    Kindlhy let me know what to do.
    Rgds,
    Mithun

    Hi Rajhan,
    My abaper is doing that,  By that time, i just saw the payload in the message display tool(MDT) in RWB...
    it looks like some junk data
    "QT00010101000120120119201201202012012020121231USD38130511T-F399000110000010001585030512T-F299000110000010001210SP0000001002"
    where as in sxmb_moni of PI system the payload after mapping is
    "<?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:BAPI_QUOTATION_CREATEFROMDATA2 xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
    - <QUOTATION_HEADER_IN>
      <DOC_TYPE>QT</DOC_TYPE>
      <SALES_ORG>0001</SALES_ORG>
      <DISTR_CHAN>01</DISTR_CHAN>
      <DIVISION>01</DIVISION>
      <PMNTTRMS>0001</PMNTTRMS>
      <QT_VALID_F>20120119</QT_VALID_F>
      <QT_VALID_T>20120120</QT_VALID_T>
      <CT_VALID_F>20120120</CT_VALID_F>
      <CT_VALID_T>20121231</CT_VALID_T>
      <CURRENCY>USD</CURRENCY>
      </QUOTATION_HEADER_IN>
      <SALESDOCUMENTIN>381</SALESDOCUMENTIN>
    - <QUOTATION_ITEMS_IN>
    - <item>
      <ITM_NUMBER>30511</ITM_NUMBER>
      <MATERIAL>T-F399</MATERIAL>
      <PLANT>0001</PLANT>
      <TARGET_QTY>100</TARGET_QTY>
      <SHORT_TEXT />
      <MATL_GROUP />
      <CUST_GROUP />
      <PMNTTRMS>0001</PMNTTRMS>
      <PRICE_DATE />
      <SHIP_POINT>0001</SHIP_POINT>
      <TARGET_VAL>5850</TARGET_VAL>
      </item>
    - <item>
      <ITM_NUMBER>30512</ITM_NUMBER>
      <MATERIAL>T-F299</MATERIAL>
      <PLANT>0001</PLANT>
      <TARGET_QTY>100</TARGET_QTY>
      <SHORT_TEXT />
      <MATL_GROUP />
      <CUST_GROUP />
      <PMNTTRMS>0001</PMNTTRMS>
      <PRICE_DATE />
      <SHIP_POINT>0001</SHIP_POINT>
      <TARGET_VAL>210</TARGET_VAL>
      </item>
      </QUOTATION_ITEMS_IN>
    - <QUOTATION_PARTNERS>
    - <item>
      <PARTN_ROLE>SP</PARTN_ROLE>
      <PARTN_NUMB>0000001002</PARTN_NUMB>
      <NAME />
      <REGION />
      </item>
      </QUOTATION_PARTNERS>
      </ns1:BAPI_QUOTATION_CREATEFROMDATA2>"
    ANY SUGGESTIONS... This is PI 7.1 so its auto commit for the RFC receiver adapter rite. should i tick some option or what else can we do
    Rgds,
    Mithun

  • RFC Receiver adpater Connection problem , Help us to solve ?

    Hi  Friends ,
                          Our scenarilo is Mail to RFC. It was running fine. In RFC Receiver adapter i have given <b>Maximium connection property to 1</b> .
                      While multiple set data passed to rfc will connection problem will come ?
                     Most data not uploaded . I am getting the following error.
                     <b>   If i set max connection to 5 . It is 5 times or more than that it is pusing the data .</b>
                    i am getting the following error <b>while i set the Max   connection to 1 .</b> . <b>Any other place i need to change configuration ?</b>
                   <i><b> - Error: 2007-09-24 10:51:22 GMT-05:30: Message processed for interface YRFC_EXT_WARR: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[CC_EXTE_WAREN_2W_RFC_RECEIVER]e7fa21f86ec535e883636c0beffc0f0c is exhausted. The current pool size limit (max connections) is 1 connections.</b></i>
                            Please give the description . I have referred many likns . Help us to solve this problem .
    Regards.,
    V.Rangarajan<b></b>
    Message was edited by:
            ranga rajan

    Hi,
    Have a look at this.This will help you.
    1.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2
    2. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1
    Regards,
    Akshay Jamgaonkar.
    Reward points if find useful.
    Message was edited by:
            Akshay Jamgaonkar

  • RFC Receiver Adapter and RFC Destination -- Help

    Hi,
    I would like to configure the RFC Receiver Adapter for the invokation of a RFC on SAP System (Name: ALPHA) using a RFC destination provided by another system named BETA.
    I have set External Server as server type.
    My first question is: I have to quote an application server gateway and a gateway service. Is this information related to a service on ALPHA or BETA?
    My second question is:
    It is also necessary to provide a Programm-ID. The destination on BETA is a R/3 connection and doesn't have a programm id. Where do I get this from?
    And my last question is:
    Is at all possible to use the RFC destination on BETA?
    Any help is really appreciated...
    Kind regards,
    Heiko

    Hi Heiko,
    I don't fully understand your need but:)
    since both of your systems are SAP systems
    why are you trying to use external server?
    can't you just call RFC on BETA
    and inside this RFC on beta call RFC on ALPHA?
    in a sync or async way?
    can you tell a little more about your requirement ?
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Java.lang.NullPointerException in RFC Receiver Adapter

    Hi Experts,
    i have configured SQL Sender Adapter and this works fine, i can see the payload. and at the receiver adapter i have configured RFC Receiver Adapter this is throwing NullPointerException as mentioned below.. can someone help me out to fix this issue..
    Error Description:
    Error     Exception caught by adapter framework: null
    Success     MP: Processing local module localejbs/AF_Modules/RequestResponseBean
    Error     MP: Exception caught with cause java.lang.NullPointerException
    Error     Delivery of the message to the application using connection   
                    RFC_http://sap.com/xi/XI/System failed, due to:
                    com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException.
    Success     The message status set to WAIT.
    Thanks,
    Srikanth

    Hi Srikanth,
    This error Occurs because of incomplete configuration in the reciever communication channel.Please check all the required configurations in the reciever communication channel and then activate the channel.
    Regards,
    Naveen

  • RFC Receiver Adapter Problem- Sending Blank XML Node

    Hi,
    I'm using the RFC receiver adapter to call a RFC in R/3 from XI 3.0
    In the payload XML one node is blank as I want to pass a blank parameter to the RFC. But in R/3 the blank node is getting converted to #
    Can anyone suggest how can I pass a blank node while calling the RFC using RFC receiver adapter in XI 3.0?
    Thanks in advance,
    Dipankar

    Hey
    Please check the outbound payload in sxmb_moni and RWB,if the field is blank there,then it means that PI is passing correct value to ECC.its possible that RFC has been coded in such a way that it converts blank spaces to #.Please look at RFC documentation in that case and see if it helps more.
    If the outbound payload itself in PI is showing as # instead of blank,then check the message mapping in PI.
    Thanx
    Aamir

  • Dynamic Logon Data in RFC receiver adapter?

    Does someone know if and how the logon data (userid) defined in the communication channel for a RFC receiver adapter can be dynamic overwritten? For example using  information from the payload?
    Scenario: A request for getting HR data is send from a legacy system to XI, mapped to a RFC and routed to R3.
    The audit people want to see a real user login into the R3 system to execute the function module and not the technical user defined in the communication channel.

    That's exactly what principal propagation is.
    You just have to make some (quite a lot, actually) configurations to enable it.
    Check these links:
    Online documentation: http://help.sap.com/saphelp_nw70/helpdata/en/45/0f16bef65c7249e10000000a155369/frameset.htm
    Weblog: /people/alexander.bundschuh/blog/2007/01/16/principal-propagation-in-sap-xi
    Regards,
    Henrique.

  • How to configure RFC receiver adapter

    HI,
    I have a Proxy-to-RFC scenario. But I have no knowledge in RFC receiver adapter. Could you please provide me the step-by-step guideline or sample about how to configure RFC receiver adapter.
    Thanks in advance.
    Best regards, Johnney.

    Hi,
    Refer these links which will help you understand the concept and configure the Scenario.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
    The specified item was not found.
    Refer this blog for synchronous scenario
    RFC Scenario using BPM --Starter Kit
    Sender RFC Adapter:
    The specified item was not found.
    Troubleshooting - RFC and SOAP scenarios *** Updated on 20/04/2009 ***
    RFC -> file scenario: application stopped
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rfctofile&cat=sdn_all
    RFC to file
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    Send RFC to SAP XI – Asynchronous
    The specified item was not found.
    ABAP Proxies in XI(Client Proxy)
    Regards,
    Nithiyanandam

  • RFC Receiver adapter issue. Pls advice

    Hi All,
    When XI is sending data back to R/3 system though RFC Receiver Adapter  I am getting the below error. Any suggestions
    Error Category   XI_J2EE_ADAPTER_RFC
    Error Code  RECEIVER_GENERAL_ERROR
    Pls advice.

    Rick, your question is very unspecific, so anyone trying to help can only guess very roughly.
    So I only have a very rough hint for you, which is the FAQ for RFC adapter.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_xi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373330383730%7d

  • RFC Receiver Adapter Issue

    Hi all,
          I'm sending a sales order from my ftp server to my R/3 system through RFC. I want this sales order to be created in the R/3 system, For this i'm using BAPI_SALESORDER_CREATEFROMDAT2. Now when i'm configuring my RFC Receiver adapter using the help given on the help.sap.com under "adapters"->"rfc adapter"-> "configuring the rfc adapter", i'm not able to find the parameters mentioned under " Advanced Mode" Heading. In this page, it says that after checking the Advanced mode checkbox, one should get the additional parameters and then we need to set the indicater for the parameter "Commit Control for Individual BAPI Calls". Since i'm not able to find these parameters even after checking the chekbox, i'm stuck. I understand that if i don't get this parameter, my BAPI will not commint and hence the sales order will not be created in R/3.
    Kindly suggest.
    Regards.
    Naveen

    Hi Naveen -
    >>><i>In this page, it says that after checking the Advanced mode checkbox, one should get the additional parameters and then we need to set the indicater for the parameter "Commit Control for Individual BAPI Calls". Since i'm not able to find these parameters even after checking the chekbox, i'm stuck.</i>
    For this I agree with Sameer.  It's probably an adapter metadata issue.  As mentioned your XI system needs to be at least on SP14.  Also, in the Int. Repository, check SAP BASIS 6.40 SWC SP Level by right clicking on the SAP BASIS 6.40 SWCV, then Display Support Package - this is where the adapter metatdata is delivered.  By default, the highest one displayed is wha'ts current on the system.  You should see at least SP14 here.  Incidentally, this does not confirm the SP level that the rest of the XI components are on, just this SWC.
    >>><i>When i checked in the integration engine, transaction sxmb_moni, i found that the message was processed successfully ! But when i checked in my R/3 system, i didn't find any sales order ! Kindly give me some inputs for this issue.</i>
    It probably failed in the adapter engine.  Check the adapter engine monitor via the RWB - so once in RWB, goto Message Monitoring, select Adapter Engine (important), then look for your message.
    Regards,
    Jin
    Message was edited by: Jin Shin

  • Error in RFC Receiver Adapter: functiontemplate from repository was null

    Hi Friends,
    i am working on JDBC -> RFC Scenario, JDBC Sender Adapter is working fine, but RFC Receiver Adapter is throwing this error message... can some one help me to solve this issue...
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
    Thanks
    Srikanth

    Hi,
    I think the logon details what you are giving in Receiver CC may be wrong. Check all those details like Application Server,System Number,User,Password and client.
    Thanks.

  • Error in RFC Receiver Adapter: functiontemplate from repository

    Hi Experts,
    i am working on JDBC -> RFC Scenario, JDBC Sender Adapter is working fine, but RFC Receiver Adapter is throwing this error message... can some one help me to solve this issue...
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
    Thanks
    Srikanth

    Possible reasons are
    The XML document, which was send to the RfcAdapter, 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 transaction code SE37.
    Here my suggestion is, if you are using Java/xslt mapping, write your code in line with result structure of your mapping instead source pay load structure. May be helpful.
    Cheers
    Madhu

  • RFC receiver asynchronous

    Hi,  i’ve got a problem with an Asynchronous message. The operation goes from an FTP to a RFC. The file adapter converts a flat file into a XML, and the XML is sent to a Remote RFC.
    Everything is ok in XI. In the SXMB_MONI and in the RFC adapter monitor we see that the message is correctly sent to the RFC, but the RFC receive nothing.
    We have written a short routine in the RFC that just insert an ‘X’ in a testing table, but nothing happen.
    Thanks.

    Hi Eduardo,
    look as well to XI: SM58 and R/3: ST22 to find out the reason.
    Regards,
    Udo

  • RFC Sender and RFC Receiver Sync Scenario . Help required.

    Hi,
    I need to make RFC Sender and RFC Receiver Sync Scenario.
    Any docs/links for it.
    Regards

    Hi,
    I have CRM (r/3) and DM (r/3)system.
    Data from differnent tables of CRM system needs to go to
    DM system different tables , data will be saved there and then return response back to CRM system.
    For this I have given one RFC for CRM system
    For this I have given one RFC for DM system
    So I have to make Sync Outbound Interface
    and Sync Inbound Interface.
    So I think so no BPM is required.I am correct?
    Adapter -- RFC Sender and RFC Receiver Adapter.
    Regards
    Edited by: Henry H on Jan 29, 2008 11:20 AM

Maybe you are looking for

  • Is there a way to not have to map all attributes

    Is there a way to have a attribute in a class not have to be mapped to a db column? I have a base class that has a property that is used for convience but doesn't map to any DB column. I am currently getting a No mapping information was found error.

  • How do I bring an element layer to the front

    I want to use code to bring elements to the front. The same way I would do in flash by using addChild where it brings that symbol on top of others? How would I do that with codes?

  • Photo not filling up window anymore

    I must have done something by accident while looking at some recent photos, because the photo no longer fills up the entire photo window. There is some white space on the top and on the bottom of the window. I have iPhoto 4 that came with my Mac OSX

  • Where Can I find a Flash 8 demo

    I have Flash FX 2004/Flash 7. I am working on a demo project and template which requires Flash 8 or later. Is there somewhere that I can download a trial version of Flash 8 so that I can try out the demo template? I have seen the trial versions of th

  • Another classpath problem

    im using ubuntu. i wrote a program called FlickrScreensaver in eclipse and got a .class file. now when i navigate to the .class file's directory and type java FlickrScreensaver i get this Exception in thread "main" java.lang.NoClassDefFoundError: Fli