Http- XI- rfc message mapping question

Hi!
I want to map the 3 fields (type: xsd:string) of xml message to the 3 fields of the table parameter (type: xsd:anyType)of the remote function.
But I can't see the fields of the table parameter just only the name of it, and that is why I can't match 3 fields with this one in the graphical mapping editor.
Can you help how to solve this problem?
I import the metadata of the function modul from the R/3 backend system properly.
Thanks.

Gerg,
I have imported this RFC into XI.  When you open it there is the <b>RESULT_TAB</b> and the <b>SELOPT_TAB</b>
Both of these have the subelement named <b>item</b>
Expand item to see the available elements, each of which you can map to
I do not know what your initial three fields represent but lets say that you want to map them to the SELOPT_TAB component
Your XI design will then pass this information via RFC to an R3 system to retrieve Customer data
You could also simulate your mapping and send steps by testing BAPI_CUSTOMER_FIND in your R3 system
Enter your initial three fields and then execute
You will see the results in the table RESULT_TAB
I hope this helps,
Mike

Similar Messages

  • Message Mapping Question

    Hello,
    I need some help for a message mapping.
    In the source message is one element named options.
    The value of this field is semicolon and bracket/comma separated value. e.g. skip;ignore;retry(1,2,3).
    Each one of the semicolon separated values should be a own element in the target message. If one option has values in the brackets, this options should get some child's. For example:
    <options>skip;ignore;retry(1,2,3)</options>
    should be
    <options>
    <option value='skip'/>
    <option value='ignore'/>
    <option value='retry'>
       <choices>
         <choice>1</choice>
         <choice>2</choice>
         <choice>3</choice>
       <choices>
    </option>
    </options>
    Is it possible, to produce such message with the message editor?
    Thanks and regards,
    Daniel

    Hi Daniel,
    Yes, its possible to produce such a message.But Have you defined message interface for the target structure described in your post?
    You may need to write some user-defined functions / use susbstring operation to achieve what you need.
    Regards,
    Sridhar

  • Challenging Message Mapping Question

    Hi,
    I have a source XML:
    <root>
       <record>
          <itemA>
             <id>1</id>
          </itemA>
          <itemB>
          </itemB>
          <itemA>
             <id>2</id>
          </itemA>
          <itemA>
             <id>3</id>
          </itemA>
          <itemB>
          </itemB>
       </record>
    </root>
    And, the target needs to look like:
    <root>
       <record>
          <itemA>
             <id>1</id>
          </itemA>
          <itemB>
             <id>1</id>
          </itemB>
          <itemA>
             <id>2</id>
          </itemA>
          <itemA>
             <id>3</id>
          </itemA>
          <itemB>
             <id>3</id>
          </itemB>
    </root>
    In summary:
    1.  (easy) an element "itemB/id" needs to be created only when "itemB" exists.  In the target XSD, "itemB/id" is optional.
    2.  (hard or impossible) the value of "itemB/id" is equal to the "itemA/id" right before it in the source XML.
    Is this possible?
    Thanks in advance for any help,
    Bill

    Hi William ,
    Please confirm your data types .
    If you have data types like this-
    Source Data type
    =================
    <recordSet>1..1
    <record> 1..unbounded
      <itemA> 0..1
        <id> 0..1
      <itemB>0..1
         <id> 0..1
    Target Data type
    ==================
    <recordSet>1..1
    <record> 1..unbounded
      <itemA> 0..1
        <id> 0..1
      <itemB>0..1
         <id> 0..1
    Then you can attain the target structure mapping you expected ..
    Sample test data with source and target message types..
    Please confirm this ..
    Source Structure -
    =================
    <root>
    <recordSet>
    <record>
    <itemA>
    <id>1</id>
    </itemA>
    <itemB>
    </itemB>
    </record>
    <record>
    <itemA>
    <id>2</id>
    </itemA>
    </record>
    <record>
    <itemA>
    <id>3</id>
    </itemA>
    <itemB>
    </itemB>
    </record>
    </recordSet>
    </root>
    Target Structure -
    =================
    <root>
    <recordSet>
    <record>
    <itemA>
    <id>1</id>
    </itemA>
    <itemB>
    <id>1</id>
    </itemB>
    </record>
    <record>
    <itemA>
    <id>2</id>
    </itemA>
    </record>
    <record>
    <itemA>
    <id>3</id>
    </itemA>
    <itemB>
    <id>3</id>
    </itemB>
    </record>
    </recordSet>
    </root>
    Please let me know if you need any further information
    Nanda

  • Message mapping RFC lookup

    Hi.
    I'm trying to do a RFC inside a message mapping with java code. I have to send a field (id) and return the vendor code (lifnr).
    I'm searching michal Krawczyk's weblog to see how can i do that but the link is broken.
    Does anybody has that document that can send me to [email protected]?
    Regards.
    Inigo.

    hi Inigo,
    please look at the following blogs,
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/michal.krawczyk2/blog/2005/09/15/xi-rfc-mapping-lookups-from-bc-to-xi
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/801376c6-0501-0010-af8c-cb69aa29941c
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/801376c6-0501-0010-af8c-cb69aa29941c
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    Regards
    Sreeram.G.Reddy
    Message was edited by:
            Sreeram Reddy

  • Message Mapping RFC structure to deep XML structure

    Hello,
    I have a message mapping I am struggling with. The outbound interface is an RFC with structure like this:
    RFC_send_material
    -material (1..unbounded)
    --matnr
    --meins
    --brgew
    -description (1..unbounded)
    --matnr
    --vkorg
    --text
    The inbound interface should look like this:
    Materials_from_SAP
    -material (1..unbounded)
    --matnr
    --meins
    --brgew
    --description (0..unbounded)
    ---vkorg
    ---text
    My problem is to get all the description connected to the matnr together.
    Examples with data:
    Outbound rfc:
    <RFC_send_material>
       <material>
          <matnr>100</matnr>
          <meins>c1</code1>
          <brgew>c2</code2>
       </material>
       <material>
          <matnr>101</matnr>
          <meins>c1a</code1>
          <brgew>c2a</code2>
       </material>
       <material>
          <matnr>102</matnr>
          <meins>bv102</code1>
          <brgew>addd102</code2>
       </material>
       <description>
          <matnr>100</matnr>
          <vkorg>NO10</sales_org>
          <text>testing100</text>
       </description>
       <description>
          <matnr>102</matnr>
          <vkorg>SE10</sales_org>
          <text>testing102</text>
       </description>
       <description>
          <matnr>102</matnr>
          <vkorg>DK10</sales_org>
          <text>testing103</text>
       </description>
    </RFC_send_material>
    The inbound file structure should then look like this:
    <Materials_from_SAP>
       <material>
          <matnr>100</matnr>
          <meins>c1</meins>
          <brgew>c2</brgew>
          <description>
             <vkorg>NO10</vkorg>
             <text>testing100</text>
          </description>
       </material>
       <material>
          <matnr>101</matnr>
          <meins>c1a</meins>
          <brgew>c2a</brgew>
       </material>
       <material>
          <matnr>102</matnr>
          <meins>bv102</meins>
          <brgew>addd102</brgew>
          <description>
             <vkorg>SE10</vkorg>
             <text>testing102</text>
          </description>
          <description>
             <vkorg>DK10</sales_org>
             <text>testing103</text>
          </description>
       </material>
    </Materials_from_SAP>
    So as you see, my problem is to get the correct description belonging to the material. Hope anybody can help with doing this in Message Mapping.
    Regards,
    Per

    Hi PRW,
    As Michal said correctly, it is hard to describe in words, so here are some pictures which I think is the solution of your problem.
    Description mapping  : http://www.flickr.com/photos/23639237@N02/3220030016/sizes/o/
    VKORG mapping      : http://www.flickr.com/photos/23639237@N02/3219181675/sizes/o/
    Text  mapping           : http://www.flickr.com/photos/23639237@N02/3219182919/sizes/o/
    UDF  CODE             : http://www.flickr.com/photos/23639237@N02/3219184005/sizes/o/
    And the Final Reslut : http://www.flickr.com/photos/23639237@N02/3220035356/sizes/o/
    Regards,
    Sarvesh

  • RFC to SOAP Interface - Problem in Request Message Mapping

    Dear All,
    We are working on RFC to SOAP Scenario i.e. pulling out data from an WebService from SAP via PI.
    In Request Message Mapping, when the wsdl file is uploaded as Target Message, the wsdl request shows the nested elements like below.
    <Request>
       <Request_New>
          <PAR1>xyz</PAR1>
          <PAR2>123</PAR2>
       </Request_New>
    </Request>
    But the desired Request should go like below.
    <Request>
       <PAR1>xyz</PAR1>
       <PAR2>123</PAR2>
    </Request>
    Hence it gives an error saying that the tag Request_New does not exist.

    Dear All,
    Our target webservice cotains multiple methods.
    The every method contains its corresponding request, response and SQL ecxeption as messages.
    In case of request structures, every method (except crmPaymentReceived) contains more than 1 root element.
    So while calling those methods having more than 1 root element, the additional header tag will always appear(not avoidable) in the request coming from SAP PI.
    For Example,
    Request Structure for method u2018isLoginIdExistu2019 (having more than 1 root element)
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <ns1:isLoginIdExistRequest xmlns:ns1="http://netpricing">      -
    >>>>>  u201CThis Header tag will always appear u201D
    <isLoginIdExistin0>asp</isLoginIdExistin0>
    <isLoginIdExistin1>1</isLoginIdExistin1>
    </ns1:isLoginIdExistRequest>
    </soap:Body>
    </soap:Envelope>
    For this method, we get the error(saying that ns1:isLoginIdExistRequest xmlns:ns1="http://netpricing" does not exists).
    Request Structure for method u2018crmPaymentReceivedu2019 (having only 1 root element)
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=http://www.w3.org/2001/XMLSchema-instance xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soap:Body>
    <ns1:crmPaymentReceivedin0 xmlns:ns1="http://netpricing">false</ns1:crmPaymentReceivedin0>
    </soap:Body>
    </soap:Envelope>
    For this method, we get the success response.
    I tested their wsdl URL in XMLspy and wizdal(a wsdl testing tool), it shows request in the format having only root elements and not the header tags.
    But header tags will always appear when header tag contains more than 1 root element.
    Can anybody suggest me how do I tackle this?
    Thanks in Advance.

  • Message Mapping fails because of RFC

    Guys,
    1) I have some messages failed in SXMB_MONI because message mapping for those interfaces was not executed successfully. In trace I can see the following:
    "com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=121.12.2.15 SYSNR=02 GWHOST=121.12.2.15 GWSERV=sapgw02 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner not reached (host ?, service ?) TIME Wed Jul 11 07:20:27 2007 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 COUNTER 1024</Trace>"
    I realize it is a network connection problem, but..
    Any ideas?
    2) Actually, in my mapping programs I have to perform many RFC's to both XI and target/source SAP systems, in order to get some information. The techique that I am using for RFC's is through Java's com.sap.mw.jco.* package. And I connect to systems by giving the IP address, system number, username and password of the systems and then I execute the remote enabled function modules.
    However. when I have many RFC's some of them fail, maybe because the maximum number is reached. And then I have to manually restart them from SXMB_MONI and they are successfully processed.
    Any ideas?

    But you said you call many RFCs inside XI, right?
    The proper way of doing it is not using JCo directly, but using Mapping Lookup API instead. In this way, you won't need to maintain the connection details inside the code, but in the communication channels.
    Check this out: https://help.sap.com/javadocs/NW04S/current/pi/index.html (lookup api).
    There are some code examples within the classes (for example, RfcAcessor).
    I think there is also a SDN documentation by Michal Krawczyk regarding RFC Lookups.
    Just search for it.
    Regards,
    Henrique.

  • 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!!

  • HTTP to RFC Mapping error:com.sap.aii.utilxi.misc.api.BaseRuntimeException:

    hi all,
              I am doin a http to rfc scenario.In moni it is showing a mapping error in the request mapping and showing this error.In IR my mapping is working fine but in payload runtime i found the error is because it is showing <?xml version="1.0" encoding="UTF-8" ?> twice.Below is the payload message
    <i><?xml version="1.0" encoding="UTF-8" ?>
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Lspm_Request_SampledueGrid_MT xmlns:ns0="http://satyam.com/xi/LSPM">
      <KUNNR>100000</KUNNR>
      <FROM_DATE>15.11.2006</FROM_DATE>
      <TO_DATE>10.12.2006</TO_DATE>
    - <EQUIPMENTID>
    - <item>
      <EQUIPID>wb</EQUIPID>
      </item>
      </EQUIPMENTID>
    + <LOCATIONID>
    - <item>
      <LOCID>1</LOCID>
      </item>
      </LOCATIONID>
    - <OILID>
    - <item>
      <OILID>BP260</OILID>
      </item>
      BP260
      </OILID>
      </ns0:Lspm_Request_SampledueGrid_MT></i>
    I tested using view source code and removing the extra ]<?xml version="1.0" encoding="UTF-8" ?> in IR and it is working fine.
    Now my problem is how to rectify this error can anyone help me out please??
    thanks,
    Nisheeta

    hi,
         I tried to post the XML in the http page without the header and now it it showing a new error
    Result:
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon)</SAP:AdditionalText></SAP:Error>
    http://cgnsap27:8000/sap/xi/adapter_plain?namespace=http%3A//satyam.com/xi/LSPM&interface=Lspm_SampledueGrid_Syn_MI&service=SATYAM_LSPM_BS&party=&agency=&scheme=&QOS=BE&sap-user=shailesh&sap-password=shailesh&sap-client=100&sap-language=EN
    wat does this mean??
    nisheeta

  • Graphical message mapping examples for JDBC and RFC lookup

    hi, can any body provide me graphical message mapping examples for the "JDBC Lookup" function and "RFC Lookup" function?
    I'm now studying the graphical message mapping and want to try those 2 functions. thank you.
    I expect the examples to be simple enoung, not need to set up much.

    >
    Madhu_1980 wrote:
    > can u check this link:
    >
    > PI 7.0 & 7.1 Mapping - Blogs,Articles,Wiki,Code Samples and Videos Collections https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=79955426  
    >
    > it contains a link : SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    May be I'm too foolish to follow those links, I got issues of each links.
    What I really want is an example from step0
    Swarup:
    Refer the Lookup document - Easy Lookup in Process Integration 7.1
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20befc9a-aa72-2b10-ae9b-b0988791d457
    The first step is "Create an RFC Enabled Function Module for look up", but where can I create the function module? Should I use ESB, IB? or use transaction 'SE11' ?
    Kulkarni:
    Very good links for RFC lookup with 7.0/3.0
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c3231&overridelayout=true
    At page6 "PI Development/Configuration", it saies "You are on the design maintenance screen in the Integration Builder.Expand the subnodes for the software component version for which you want to import interfaces".
    What is "design maintenance screen" ? My IB version is: Service Pack:08 Release:NW07_08_REL.
    When I open IB, it display a screen titled with "Configuration: Intergation Builder", I did not find "software component version" node on the left tree.
    Madhu_1980 :
    it contains a link : SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    The Prerequisites state:
    The JDBC channel to be used for the lookup must be configured and activated in the Integration Directory.
    The definition of the table used for the lookup must already be imported into the ES Repository as an external definition
    But I don't know how to create a JDBC channel and define the table.

  • I can not find the messages in sxmb_moni in http to rfc scenarion

    hi i'm using http client tool when i send the message its working fine i'm getting the response, but i can not find that message in sxmb_moni in http to rfc scenario
    can anyone help me

    Hi lnaki vila
    I'm using pi 7.0 version
    i can see the other scenarios like SOAP to RFC, SOAP to IDOC,FILEto IDOC
    in sender side i'm not using any communication channel and adapter engine i'm just using http client tool for testing purpose
    i'm getting the response that's fine because its a synchronous communication
    i checked sxmb_adm in that -->integration configuration LOGGING parameter of category RUNTIME is set to  ENGINE_TYPE and current value is HUB(Integration server)
    thanks in advance
    regards
    Satish

  • Logon Error Message ( HTTP to RFC )

    Hi all,
    While  I am practicing HTTP to RFC Scenario..
    When I  SEND data from test client ..It is asking for SAP Web Application Server (SID)
    User ID and Password..
    When I am giving my XI ID and Password ( and also i tried BASIS ID ,J2ee_admin, Even i assinged ROLE SAP_XI_APPL_SERV_USER ) it is giving Error like this
    -->Logon Error Message
    -->Error Code: ICF-LE-http-c:001-l:E-T:1-C:3-U:35-P:35-L:3
    -->HTTP 401 - Unauthorized  Your SAP Internet Communication Framework Team
    -->Call of URL http://serverhost:8000/sap/xi/adapter_plain terminated due to error in logon data
    -->Logon performed in system OPD. </li><li> Logon performed for client 001, user xiappluser, and language EN.
    -->HTTP 407 Proxy Authentication Required - The ISA Server requires authorization to fulfill the request. -->Access to the Web Proxy service is denied. (12209)<BR>Internet Security and Acceleration Server
    -->The gateway could not retrieve the requested page
    These errors I am getting..
    please guide me to complete this scenario.
    Thanks in advance,
    Ramesh.
    ( I am unable to search SDN ,due to some upgradation is going on )

    Hi Sreeramoju,
    1. HTTP-401 :
            If the Integration Server is accessed by means of an HTTP proxy server,the  credentials must match those that you made in transaction SICF in the Integration Engine. If you do not specify a user and password combination, or the combination is invalid, the system will terminate each attempt to access the Integration Engine with the message Transport Exception:  http-Error 401 – Unauthorized.
    The user must have the authorizations of group SAP_XI_APPL_SERV_USER on the Integration Server.
    If you want to use a different client or language to the default setting in the Integration Engine when logging on, you can also set the following parameters:
    &#9675;     XI.Client=<client-no>
    &#9675;     XI.Language=<language-id>
    2.HTTP 407: Proxy Authentication Required" in SAP XI J2EE AE: check the SAP note: 992690
        Make sure that you have specified the proper host and port values, in the text box that appears when you check the configure proxy check box(in receiver adapter).
    Looks like the webservice requires a proxy authentication.
    Select the check box "configure proxy user authentication"(in receiver adapter) and provide the correct username and password.
    *Pls: Reward points if helpful*
    Regards,
    Jyoti

  • Request Message mapping in SXMB_MONI for File - RFC - File without BPM

    Hi ,
    In my File-RFC-File scenario, the messages are processed successfully.
    but when i look into the SXMB_MONI for File to RFC step, the records are present only till the  Message split According to Receiver List and not able to see the records from Request Message mapping step onwards.it contains
    <?xml version="1.0" encoding="UTF-8" ?>
      <ns1:Z_PI_LOTUSNOTES_UNIFORM xmlns:ns1="urn:sap-com:document:sap:rfc:functions" />
    in my mapping for the receiver RFC i have not done the mapping for all the fields. few fields i have disabled. whether this could create a problem in message mapping. pls let me know what needs to be done.

    Is it only for this scenario that the above display issue is occuring or is it for all scenarios?
    If onlt a particular Pipeline steps are displayed then you can check what is the TRACE level set in SXMB_ADM --> Integration Engine Configuration --> and check if the TRACE parameter is set to at least 2 (max is 3 which will ensure that your DB will get full quickly)
    For more information refer: /people/michal.krawczyk2/blog/2005/05/10/xi-i-cannot-see-some-of-my-messages-in-the-sxmbmoni
    Regards,
    Abhishek.

  • RFC Call in Message Mapping

    Hi there
    I am trying to do a table lookup from XI in my message mapping by calling an remote RFC. The return values must return ALL the value for a specific column. The code I have here returns a blank value. Can someone see what my problem may be?
    My variables for my UDF is:
    public String UDF_RFC(String DBTABLE,String MATNR,String FIELDS,String businessSystem,String communicationChannel,Container container)
    And my Code:
    "My code appears to mess up my message structure, I will attach it in a responce..
    Thanks,
    Jan
    Edited by: Jan de Lange on Sep 16, 2009 11:09 AM
    Edited by: Jan de Lange on Sep 16, 2009 11:09 AM

    // declare parameters
    String returnValue = "";
    String rfcXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:ZINT_XI_GET_SITES xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"><LT_SITES><item><WERKS></WERKS></item></LT_SITES></ns0:ZINT_XI_GET_SITES>";
    AbstractTrace trace = container.getTrace();
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    // 1. Determine a communication channel (Business system + Communication channel)
    Channel channel = LookupService.getChannel(businessSystem,communicationChannel);
    // 2. Get a RFC accessor for the channel.
    accessor = LookupService.getRfcAccessor(channel);
    // 3. Create an XML input stream that represents the RFC request message.
    InputStream inputStream = new ByteArrayInputStream(rfcXML.getBytes());
    // 4. Create the XML Payload
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    // 5. Execute the lookup.
    Payload result = null;
    result = accessor.call(payload);
    InputStream in = result.getContent();
    // 6. Create a DOM structure from the input XML
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(in);
    NodeList      nodelist = document.getElementsByTagName("*");
    Node          node;
    Element       element;
    NamedNodeMap  nnm = null;
    String attrname;
    String attrval;
    int    i, len;
    len = nodelist.getLength();
    for (int j=0; j < len; j++) {
                element = (Element)nodelist.item(j);
                System.out.println(element.getTagName() + ":");
                nnm = element.getAttributes();
            if (nnm != null) {
                for (i=0; i<nnm.getLength(); i++) {
                    node = nnm.item(i);
                    attrname = node.getNodeName();
                    attrval  = node.getNodeValue();
                    returnValue += attrname + " = " + attrval + "##";
    // 7. To free resources, close the accessor..
    if (accessor!=null) {
    try {
    accessor.close();
    } catch (LookupException e) {
    trace.addWarning("Error while closing accessor " + e.getMessage() );
    } catch (Exception e) {
    trace.addWarning("Error" + e);
    // 8. return a single id value to the message mapping
    return returnValue;

  • RFC lookUp during Message mapping

    All
       I want to get soem values from SAP table during message mapping.After getting the values am going  to do 2:1 mapping by using BPM.
      Could you please let me know the basic and fundamental things about RFC look up during mapping and RFC settings in XI as well in R3?
    Please explain

    Hi Rajesh,
    Pl post this in XI Forums to get quick replies.
    Regards
    Ayyapparaj

Maybe you are looking for