cancel
Showing results for 
Search instead for 
Did you mean: 

Jms content conversion problem(urgent)

Former Member
0 Kudos

Hi Experts,

We have to send a flat file to target system using JMS content conversion.

The xml file from PI side is

  XML Structure:

Msg_Type

    Data

       AAA

       BBB

       CCC

        ...

        ...

       ZZZ

   data

To Be Output:

#DATA

AAABBBCCC......ZZZ

#EOF

But the output we are getting is:

#DATAAAABBBCCC......ZZZ#EOF

XML2PlainTransform.Classcom.sap.aii.messaging.adapter.Conversion
XML2PlainTransform.ContentTypetext/plain;charset=utf-8
XML2Plainxml.FileContentFormattingnothing
XML2Plainxml.addHeaderLine0
XML2Plainxml.beginSeparator#DATA'nl'
XML2Plainxml.conversionTypeSimpleXML2Plain
XML2Plainxml.endSeparator'nl'#EOF
XML2Plainxml.fieldFixedLengths
XML2Plainxml.fixedLengthTooShortHandlingCUT
XML2Plainxml.keepIncompleteFieldsYES
XML2Plainxml.missingLastFieldsignore

Can any one help me on this. Its urgent

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

You can try using: '0x0D''0x0A' instead of 'nl', but I'm not sure if it will work.

In general, it isn't really clear whether you can use special PI markers as 'nl' together with normal text. For #DATA line, you have an alternative of adding the header line, but the same is not available for the footer. Is it acceptable for you to change the payload? Since what you require would be easy if you put the #DATA and #EOF in the PI's XML payload and output it in the flat file content from there.

Regards,

Greg

Former Member
0 Kudos

Hi Grzegorz,

Thank you very much. its working with the '0x0D''0x0A' instead of 'nl'

you have solved the problem.

Thanks,

Srinivas.

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos