Skip to Content

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

Conversion of single record with multiple lines to XML

Hi All,

In my scenario, I need to convert a multiple line record (text format) to a single recordset (XML format).

My outbound structure follows

Header

|

-- Data1

-- Data2

Input file:

Fir

st second

-


Output Expected:

<header>

<Data>First second<\Data>

<\header>

But when I tried I got the error "Set the param lastfield optional". The problem is whenever it encounters a new line it assumes that's the end of the record. But my input record comes in multiple lines.

How do I solve it?

Thanks,

Ajay.

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