cancel
Showing results for 
Search instead for 
Did you mean: 

XML to file scenario.

former_member290264
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member186851
Active Contributor

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

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

former_member186851
Active Contributor
0 Kudos

Hello Ravi,

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

Please post input and output xmls with mapping.

former_member290264
Participant
0 Kudos

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 <local> 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