cancel
Showing results for 
Search instead for 
Did you mean: 

Content conversion by using sender JMS channel

former_member460664
Participant
0 Kudos

Hi All,

I have developed a scenario from JMS to Idoc. I need to read flat files by using sender jms adapter. I have configured message transform bean in module tab and respective content conversion parameters as well. My flat files contains different structures. So I need to use conversion type as StructPlain2XML. Based on keyField value I am diffentiating flat file records. My requirement is I have to give two spaces in <xml.keyFieldValue> parameter. fixed Length of keyFieldValue is 6, Actual value getting from source file is DEST. I need to pass two spaces as per fixed length specification. I have passed two spaces, but after activating spaces are removed by system bydefault. Because of this an empty file is processed by PI. Source file contains two spaces after DEST. I need to read two spaces along with DEST value as keyFieldValue. How to achieve this..

Thanks in advance.

Best Regards,

Ashok.

Accepted Solutions (0)

Answers (1)

Answers (1)

engswee
Active Contributor
0 Kudos

Hi Ashok

You can resolve this by splitting the field into two fields - and actual key field and a dummy/temp field.

I've just blogged about this technique, you can refer to it here

Rgds

Eng Swee