Skip to Content

SAP PI issue with adapter module MessageTransformBean

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • 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.

    Add comment
    10|10000 characters needed characters exceeded

  • 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="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

    Add comment
    10|10000 characters needed characters exceeded