XML file to RFC

Hi,
i have scenario (XML file to RFC), it's by BPM, I can see XML content by file sender adapter but can't get detail field data into my data type of interface. what's wrong, please advise! Thanks!
my data type as follows,
    EXPORT Complex type
      SHIP       element
      INVOICE element
and file content as follow
  <?xml version="1.0" ?>
- <EXPORT>
  <SHIP>A</SHIP>
  <INVOICE>ZZ12387379</INVOICE>
  <?xml version="1.0" ?>
</EXPORT>

>
robert yu wrote:
> I still can't understand, Could you give me more information? Thanks!
when you receive/ process an XML....this XML has a namespace associated to it.....which in your case should be http://aaa.bbb.com/SVRFIS/Forwarder_File.....
However looking at your Payload ther is no namespace in it....so what you do is...open the Interface/Message mapping--- go to the Test tab and click on the SRC tab and then check what/ how the namespace should be or rather how the XML should be while testing...it would be something like:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Name xmlns:ns0="http://aaa.bbb.com/SVRFIS/Forwarder_File">

Similar Messages

  • XML file to RFC (BAPI)

    hi
    can you please give the configuration steps that i have to follow while doing xml file to RFC,
    1)configurations in XI part
    2)configurations in R/3 part
    and i am using bpm in this scenario, is there any need of  "program id " while doing configurations in ID part, from where we get this programid. if you have some screnshots of this scenario, can you please forward it to me.
    mailid:[email protected]
    regards
    Pradeep P N

    hi pradeep,
       no need of defining programid here...because u r using RFC as receiver...
    dont define the RFC as sender....if u do so it will ask u the programid..
    in u r case RFC is a receiver,so no need to define programid....
    watch this
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    thanx,
    krish..

  • Creation of XML file from RFC

    Hi Experts,
    Iam getting input parameters to my RFC from JAVA.
    With that data i have to create XML file from my RFC, and i have to send that file to third party.
    Could you please tell me the total procedure.
    I know how to create RFC, i need how to create XML and how to send to third party.
    Thanks and regards,
    Kumar.

    HI,
    Follow the procedure :
    1.Get the schema by using add generated items according to particular RFC.
    2.Then  create the target schema.
    3.Create the map file and mapp both the schemas.
    After deployement follow the below steps
    1.In BizTalk administration console  create the send port to send the resulted XML to particular location.
    2.Then configure the receive port with values(pipeline=xmlreceive;clientid,userid,pwd,sap gateway host;sap gateway service to connect the sap.
    Now  start the application !
    Let me know if u still have a problem ?

  • Generate XML file from RFC using Web Services

    Hi,
      I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
    I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
    Any FM available?
    Thanks,
    Ram Sanjeev

    which version of WAS you are on .
    if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    lower version of WAS use class cl_http_client.
    if this case you have to manually build the soap message.
    /people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
    Regards
    Raja

  • Maping of an XML file to RFC

    Hi
    I have a scenario where the PI receives an XML response (the interface is of a predefined xsd type) from an HTTP destination; I need to pass the same  to the ABAP system using an RFC. Can I use any standard mapping function to map the XML file of type xsd to a string parameter of the RFC ? How should I do the mapping ?
    Just to elaborate:
    The source message is of type xsd ; the target message is of datatype string. Can I pass the file as such to the string using any mapping function available?
    Helpful answers will be rewarded ; thanks.

    The source message is of type xsd.Can I pass the file as such to the string using any mapping function available
    You can create and External definition out of the source xsd.Use it in the mapping as source and use the RFC as the target.
    Now in the graphical mapping, if you want to send an xml to a single string parameter at target you could refer to the blog already been suggested above.

  • Xml validation in File to RFC Sync Scenario with Validation fails message

    Hi All,
    We are using PI 7.4 (Dual Stack) the Requirement is File to RFC Sync Scenario(File <---> RFC).and need to do XML validation against XSD Schema. if any Validations fails Response message should send back to sender.RequestResponseBean standard module is using for File to RFC Sync scenario but how to send the response message to sender if any validation fails. adapter level XML validation is not helpful for this requirement. please help out me how to achieve the requirement with graphical mapping.
    Thanks in advance.

    to validate schema you cannot solve it with graphical mapping but validating the schema in the AAE or the integration engine.
    y recomend you to use the AAE validation at sender side, coz the sender system will be notified in case of schema errors.
    The response will be validated at Integration Server level.
    you can search in the forum, you will get many document about how to configure it.
    take a look to my blog: PI 7.3  - XML Validation

  • Output XML file problem (in FILE to RFC scenario)

    hi,
       my problem is that in the export parameter i have 3 variables but my output xml file shows only 2 parameters . I have checked my mapping all 3 parameters are mapped properly in output mapping .
    Initially when i started the scenario there were only 2 parameters in my export list .
    i completed this suuccesfully and then as per new requirement one more parameter was needed to be added i added a new parameter and reimported my rfc .
    the response tab of the reimported RFC shows me the newly added parameter but my final xml file only shows me the previous 2 it doesnt show me the newly added one is there any seeting which i need to change like in idoc where we have to readd the idoc in IDX2
    With regards
    Bhawarlal Choudhary

    Hi,
    2 Introduction
    Configuring IDoc adapter in Exchange Infrastructure 3.0 requires some configuration on the SAP
    systems, for both XI and the backend system where the IDoc message is to be sent. These steps, although
    simple, are many times missed or mis-configured, causing the delivery of messages to fail.
    Since IDoc adapter uses the ABAP stack, instead of J2EE, the configuration requirements are mainly in
    ABAP.
    Setting up IDoc adapters requires the XI integration server to be able to communicate with the backend
    SAP system, and also to make sure that the Logical System Name used when posting IDoc exists on the
    backend SAP system.
    3 The Step By Step Solution
    The basic steps for the IDoc configuration are outline below:
    1. Configure SM59 on XI to communicate to SAP backend system.
    2. Configure port on XI for IDoc communication.
    3. Create or verify the Logical System Name on the SAP backend system.
    4. Create or verify business system in XI’s System Landscape Directory.
    5. Verify the Logical System Name of the business system.
    6. Verify or add the Logical System Name for the sender business system.
    7. Create/configure the Communication Channel for the IDoc receiver adapter
    3.1 Configure SM59 on XI to communicate to SAP backend system.
    1. Using transaction SM59, create an RFC destination with Connection Type = “3”.
    In this example, the RFC destination name is “NDVCLNT510”.
    2. Enter the logon information:
    3. Test the connection by clicking on “Testing connection” and “Remote logon”.
    Both must be successful.
    3.2 Configure port on XI for IDoc communication.
    4. Go to transaction IDX1 on XI, and create a port. In this example, the Port name is “SAPNDV”.
    •     &#61472;The Port name must be in the form of “SAPxxx”, where xxx is the system ID of the backend SAP
    system.
    •     The Client must be the client number of the backend SAP system.
    •     Select the RFC Destination which was created in the previous step.
    3.3 Create or verify the Logical System Name on the SAP backend system.
    5. Enter transaction SALE on the SAP backend system.
    6. Create or verify the Logical System Name. In our example, NDVCLNT510 is verified.
    3.4 Create or verify business system in XI’s System Landscape Directory.
    The business system name for the SAP backend system must contain a valid Logical System Name. This Logical System Name is the one verified or created in the previous step.
    7. In the System Landscape Directory,  select the SAP backend business system. If one does not exist, then create the business system. Verify the Logical  System Name.
    3.5 Verify the Logical System Name of the business system.
    8. In the Integration Directory, doubleclick on the business system (in our example, it is NDVCLNT510).
    Navigate the menu:
    Service • Adapter Specific Identifiers.
    If information is empty or incorrect, then it will have to be synchronized with the content of the System Landscape Directory. Follow the steps below for synchronization.
    9. (Optional) Synchronization of the business system in Integration Directory to the business system in System
    Landscape Directory.
    •     &#61472;Double-click on the business system in the Integration Directory.
    •     &#61472;Switch to Edit mode.
    •     &#61472;Select menu: Service • Adapter-Specific Identifiers 
    10. (Optional) Within the dialog box, click on the button as indicated below to resynchronize.
    11. (Optional) If the expected data from the System Landscape Directory is not updated, then the SLD cache may need to be cleared first.
    3.7 Create/configure the Communication Channel for the IDoc receiver adapter.
    15. In the Integration Directory, create an IDoc receiver communication channel.
    •     &#61472;The RFC Destination is from step 3.1.
    •     &#61472;The Port is from step 3.2.
    NOTE:
    There is no need to create an IDoc sender Communication Channel for XI. Instead, the backend SAP system must be configure to send the IDoc to XI.
    4 Appendix
    Transaction: IDX2
    There are a couple of situation where IDX2 can be useful on the XI system.
    1. When we want to test connection between the XI and SAP backend system.
    2. When an IDoc has changed, and the meta data stored in XI needs to be update. When an IDoc is sent from the SAP backend system to XI, XI will first check to see if the meta data for the IDoc is already in its persistent cache. If not, then XI will use the configuration in IDX1 to retrieve the IDoc meta data from the backend system. If the
    meta is already in cache, then it will NOT do so. Therefore, when an IDoc has changed, it is necessary to manually update the new meta data on XI, or delete it from the cache, so that the latest version can be retrieved. IDX2 is used for this purpose.
    Go to transaction IDX2 and click on “Create”.
    Enter the IDoc Type and the Source Port as defined in step #2. Click “Continue”.If successful, the following will show up. If error occurs, then the IDX1 configurations will need to be re-checked.
    Regards
    Hemant
    If find helpful plz award points

  • How to loop through single XML File and send multiple RFC calls?

    I am looking for the best approach to use for making multiple RFC calls (can be sequential) using a single XML file of data.  I have been attempting to get a BPM loop working, but to no avail.  My RFC only accepts a single set of delivery input and I have been told to try to work with it as is.
    input xml sample:
    <?xml version="1.0" encoding="UTF-8"?>
    <ProofOfDelivery>
       <POD>
          <delivery_number>1</delivery_number>
          <carrier_name>UPS</carrier_name>
       </POD>
       <POD>
          <delivery_number>2</delivery_number>
          <carrier_name>UPS</carrier_name>
       </POD>
    </ProofOfDelivery>
    I need to make a synchronous RFC call for each set of POD data.
    Thanks in advance!

    Thanks for the inputs.
    I tried with a BPM and multi-mapping transformation before a ForEach block.  I am getting this error:
    Work item 000000028028: Object FLOWITEM method EXECUTE cannot be executed
    Error during result processing of work item 000000028029
    com/sap/xi/tf/_ProofOfDeliveryMultiMapping_com.sap.aii.utilxi.misc.api.BaseRuntimeExceptionRuntim
    Error: Exception CX_MERGE_SPLIT occurred (program: CL_MERGE_SPLIT_SERVICE========CP, include: CL_
    Probably because I am not making/using the container objects properly.  Here is a screenshot of my BPM.  Can anyone spot my issue or point me to an example on this sort of container use?
    [http://kdwendel.brinkster.net/images/bpm.jpg|http://kdwendel.brinkster.net/images/bpm.jpg]
    Thanks

  • Multiple records of table from RFC to XI in single XML file

    Hi
    My Scenario is as following -->
    <b>RFC ---> Sender RFC Adapter ---> XI -
    > Rec SOAP adapter ---> Web Service</b>
    Now we need multiple records from RFC which can be put in single XML file & XI can transport the whole XML file to Web Service. All the configuration in XI, Web Service is complete & I tested my mapping which is able to accept multiple records.
    But when ABAPer is sending the records I am not getting it in XI, I checked that in message payload from RFC.
    He put the table name in TABLE tab of RFC. But not under Import Tab, as whatever he is providing under Import parameter & exporting it through report I am getting in message payload but not the table data.
    Did anyone try such scenario, can you tell me how can we achieve this.
    Pls. provide me your mail ID in case you need an attachment of the current RFC & report code & my mapping snapshot.
    Regards
    - lalit -

    Hi
    We have created the BAPI in which we are just describing the structure of the payload & which I am importing in Integration Repository.
    And we are calling this BAPI from another program using " Call function ... " command & also provinding the data in that program.
    Actually ethically ABAPers are against the idea of provinding the data into program they would like to provide it in BAPI but that won't work, you have to provide data in program which in turn populate the fields of BAPI.
    Let me know with your mail ID in case you need snapshot of function & programs.
    Regards
    - Lalit -

  • How to map XML file to various of object in the RFC

    hello
    I recieve XML file (not devided to elements, but XML file)'
    and I would like to map it to a RFC that has various object.
    I there a way to do it?
    if it involve a java code, does any one has a written code example?
    THX
    Kfir

    thanks for the reply
    my source XML response will be looking something like this (it will be reponsed in a long string):
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
    <SOAP-ENV:Header>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <status>
    <retCode>00</retCode>
    <retCodeDesc>OK</retCodeDesc>
    <rRobjectId>09002347802d2981</rRobjectId>
    <rFileSize>7</rFileSize>
    <rTotalPages>1</rTotalPages>
    </status>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    my RFC is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    <xsd:element name="ZRFC_SET_DOCUMENT.Response">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="RETCODE" type="xsd:string" minOccurs="0" />
    <xsd:element name="RETCODEDESC" type="xsd:string" minOccurs="0" />
    <xsd:element name="RFILESIZE" type="xsd:string" minOccurs="0" />
    <xsd:element name="RROJECTID" type="xsd:string" minOccurs="0" />
    <xsd:element name="RTOTALPAGES" type="xsd:string" minOccurs="0" />
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>

  • Reg:Integrate third party xml file into sap in RFC without using XI

    Hai Experts,
                        i have a third party web page which is converted to IDOC XML file .i have to get the file and integrate to sap .
    Can u suggest ways of doing it.
    Regards,
    Vikram

    Hai Experts,
                        i have a third party web page which is converted to IDOC XML file .i have to get the file and integrate to sap .
    Can u suggest ways of doing it.
    Regards,
    Vikram

  • RFC to ISO 20022 xml file scenario

    Hello Experts,
    I have a scenario in which i need to pull data from SAP and create ISO 20022 xml file.
    I have no idea about ISO 20022 xml file format.
    Can anybody send me the links which have examples of how to achive that through XI?
    Thanks,
    Hetal

    Hi,
    ISO20022 is just a standard for XML messages you can obtain informations here:
    http://www.iso20022.org         and
    http://www.iso20022.org/catalogue_of_unifi_messages.page
    Hope this brings some light in.
    Kai

  • Reading XMl file from ABAP

    Hi friends,
    I am working in SAP 4.6c. Please help me in the following scenario.
    I have to read the xml whixjh in the application server.
    I have to Make sure each XML only contains 1 IDOC.  If 10 idocs are pushed out , there should be 10 XML messages.  1 idoc per XML.
    So if the FM receives a message that contains 10 idocs, the routine just needs to split the XML into 10 separate XML's using YYYYMMDDHHMMSS_IDOCNUMBER.XML as the new of each XML.
    Convert the XML into UTF-8 compliant
    above is my requirement.
    Can you guide me how to read a XMl file and findout how many idocs are present in that...
    Please guide me...
    Thanks in advance,
    Sudha

    Hi Sudha,
    Refer this blog and thread to get more information on how to process XML documents.
    /people/thomas.jung3/blog/2004/06/24/bsp-150-a-developer146s-journal-part-v-xml-for-rfcs
    redaing an XML file to an internal table
    Regards,
    Uma
    Message was edited by: Uma Maheswari

  • XML File to SAP R/3 using SAP XI

    Hello Everyone,
    I'm hoping someone has done this scenario and can provide a step by step example for me.  The scenario I have is as follows:
    -- An XML file is placed manually on a UNIX SAP Server
    -- SAP XI should, once the file is placed on the server, go to a specific directory, pick the file up, and then send it to an RFC of which I've already mapped.
    -- Once the file is placed in the SAP R3 system, then the processing is over and no further processing should take place.
    -- This is an inbound message to SAP XI and also to SAP R/3
    I was thinking of using a File adapter as a "Sender", and poll every 60 seconds on a directory mentioned above.  Once the file is there, then I would call the RFC and then the mapping of the XML would put the data into R/3.
    Any help anyone can provide would be most appreciated.  Thanks in advance for your help!
    Regards,
    John

    John,
    You are looking for File -XI-RFC scenario right, please follow the below weblog
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    If you need more details, reply!!!!
    Best regards,
    raj.

  • File to RFC/BAPI - Async- How to capture response field value

    Hi,
    I am doing File to RFC/BAPI Scenario. I have Two BAPI's. THe same source xml file is mapped to the Two Target BAPI's.
    For the first flow i.e File to BAPI1, I need to capture BAPI Response, field value and pass this value as Input to the BAPI2.
    How do I proceed with the Mapping. I am working on PI 7.1
    Any input would be Appreciated.
    Thanks & Regards,
    Varun

    Hi Varun,
    apparently you need a Business Process:
    XML -> BP (asynchronous), Map to Bapi1 request structure
    BP -> BAPI 1 (synchronous)
    Transformations step with multi mapping merging XML and Bapi1 response to Bapi2 request structure
    BP-> BAPI2
    Regards,
    Udo

Maybe you are looking for

  • Laptop Toshiba P50-A-K9M often freezes due to unknown reason

    Hi, My Toshiba P50-A-K9M constantly freezes due to unknown reason. My OS is Windows 7 64-bit. Initially I thought that it was due to overheating. However, when I enabled CPU temperature monitor I noticed that freezes happen even if the temperature is

  • Add 2 container variables in control step BPM

    Hi All, I have a scenario where I need to add 2 container variables in control step under AlertMessage and I am using under exception branch Control Step StepName: XXXX Action      : XXXX AlertCategory: XXXX AlertMessage: ? I am successful putting on

  • Oracle Discoverer 4.1 to Oracle Discoverer11g  EUL migration steps

    Hi WE SUCCESSFULLY upgraded Discoverer 3.1 to 4.1 EUL against Oracle 8i DB. Also  exported all EUL4 objects and imported the same to 11gr2 Db. But when we try to upgrade from Oracle BI 11g Discoverer Admin by connecting against the imported EUL4 sche

  • SSIS package configurations

    Hi Experts, I am trying to configure my SSIS packages. I have a master package to call child packages for Dimernsions and Facts. Below are my two main approaches for configuration 1. Configuring all packages to read a single XML file for database con

  • No MPEG preview or playback in Bridge CS5

    After doing a clean install of CS5, everything seems to work well except for Bridge. HDV mpeg clips will not display a visual thumbnail or playback in preview window of Bridge.  When double-click ing icon, I get an error "Windows cannot find '%Progra