Skip to Content
0

SAP PI issue with adapter module MessageTransformBean

Nov 23, 2016 at 02:20 PM

103

avatar image

Hi,

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

Line1

Line2

Line3

I use the following parameters

Transform.Class : com.sap.aii.af.sdk.xi.adapter.Conversion

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

xml.conversionType : SimplePlain2XML

xml.documentName : MT0032_SABA_input

xml.documentNamespace : http://zzzz.be/xi/zzz/SABA

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:

http://toyota.be/xi/TME/SABA">

It only contains the root element.

Can somebody help me?

Thanks in advance

Regards

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
0

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.

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

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="http://zzzz.be/xi/zzz/SABA"></ns:MT0032_SABA_input>.

I don't see were is the error.

Can you help me?

Regards.

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.

0