Skip to Content
0

XML to file scenario.

Feb 15, 2017 at 07:53 AM

43

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Raghuraman S Feb 15, 2017 at 08:50 AM
1

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

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

Share
10 |10000 characters needed characters left characters exceeded
Ravi N Feb 15, 2017 at 10:16 AM
0

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


receiver.png (1.3 kB)
fcc.png (4.0 kB)
Share
10 |10000 characters needed characters left characters exceeded
Raghuraman S Feb 15, 2017 at 01:12 PM
0

Hello Ravi,

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

Please post input and output xmls with mapping.

Share
10 |10000 characters needed characters left characters exceeded