Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

File adapter sender content Convertion

Hi all,

I need to read a flat file and convert it,

The file structure is a long row with different types of segments:

For example:

AA111222333BB4455

where AA - the first segment and BB the second segemnt,

I want to convert this string to -

<AA>

<first>111<first/>

<second>222<second/>

<third>333<third/>

<AA/>

<BB>

<first>44<first/>

<second>55<second/>

<BB/>

I tried impliment this by using endSeparator and beginSeparator as AA,BB, but I get an error -

Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 1: missing structure(s) in last recordse

anyone????????

Thanks,

Naama

Not what you were looking for? View more on this topic or Ask a question