Skip to Content

SAP PI issue with adapter module MessageTransformBean

Nov 23, 2016 at 02:20 PM


avatar image


we are in SAP PI 7.40

In a sender File adapter, I want to use the adapter module MEssageTransformBean to trnsform a flat file into xml.

The content of the ftest file is




I use the following parameters

Transform.Class :

Transform.ContentType :text/xml;charset=utf-8

xml.conversionType : SimplePlain2XML

xml.documentName : MT0032_SABA_input

xml.documentNamespace :

xml.encoding : utf8

xml.endSeparator : '0x00'

xml.fieldNames : CHAMPS

xml.fieldSeparator : ;

xml.processFieldNames : fromConfiguration

xml.recoordsetStructure : LIGNE,*

xml.recordsetName : LIGNE

and I have the following xml as result:">

It only contains the root element.

Can somebody help me?

Thanks in advance


Eric Koralewski

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Evgeniy Kolmakov Nov 24, 2016 at 03:34 AM

Hi Eric!

Since you use "SimplePlain2XML" conversion mode, you don't need to use xml.recordset* parameters.

xml.encoding should be set to "UTF-8".

If your source file data is splitted line by line than I guess you should use 'nl' as xml.endSeparator.

Regards, Evgeniy.

10 |10000 characters needed characters left characters exceeded
Eric Koralewski Nov 24, 2016 at 10:32 AM

Hi Evgeniy,

I replaced xml.recordset* parameter by xml.structureTitle : LIGNE

I set the value UTF-8 for parameter xml.encoding

for the parameter xml.endSeparator , if I set the value with 'nl' , there is an error during runtime and when I set the value with nl, at runtime I have only root element as previously <ns:MT0032_SABA_input xmlns:ns=""></ns:MT0032_SABA_input>.

I don't see were is the error.

Can you help me?


Eric Koralewski

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Eric!

Wouldn't you please provide some information about error you're getting when using 'nl' as end separator?

Regards, Evgeniy.