Skip to Content

XML to file scenario.

Hello Experts,

I am developing xml to File scenario.

I have confusion in FCC, I am using multiple fields in FCC @ receiver side, my structure is like:

and my fcc is like:

is it correct???

Thanks,

Ravi

fcc.png (5.5 kB)
receiver.png (2.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 15, 2017 at 08:50 AM

    change your recordset structure to Name,Address and fieldname is not required.

    https://help.sap.com/saphelp_nwpi71/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 15, 2017 at 10:16 AM

    Hi Raghuraman,

    I have done some changes in my receiver side, my new receiver is like:

    and my fcc is

    but in message mapping it gives me status : WAITING and the error is : "Transmitting the message to endpoint using connection File_http:// sap.com/xi/XI/System failed, due to: com.sap.aii.af.service.mapping.MappingException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_xml_to_file_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Invalid byte 1 of 1-byte UTF-8 sequence."

    here is my xml code :

    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_xml_input xmlns:ns0="http://xmltofile_2.com">
       <Record>
          <FullName>Ravi Nagar</FullName>
          <Address>India</Address>
       </Record>
       <Record>
          <FullName>Bhai Nagar</FullName>
          <Address>Bharat</Address>
       </Record>
    </ns0:MT_xml_input>
    

    I want my out as :

    Ravi,Nagar,India

    Bhai, Nagar, Bharat

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 15, 2017 at 01:12 PM

    Hello Ravi,

    Check ur recordset structure as per XML it should be record.

    Please post input and output xmls with mapping.

    Add comment
    10|10000 characters needed characters exceeded