cancel
Showing results for 
Search instead for 
Did you mean: 

Content conversion (JMS)

Former Member
0 Kudos

Hi all,

I am using the Content Conversion Module for JMS in order transfer a XML to a FLAT structure.

I am getting this error:

Parameter xml.fieldFixedLengths or xml.fieldSeparator is missing (4409)

xml.fieldFixedLengths is configured under the adapter module-tab, but I havent set up the lenghts for the client and the csysidn fields, since thay are part of the complex type. Is that wrong?

This is my structure:

<nr1:ErrorHandling_MT

<client>xxx</client>

<csysidn>xxx</csysidn>

<error>

<eseq_number>xxx</eseq_number>

<error_text>xxxx</error_text>

<original_message>xxx</original_message>

</error>

</nr1:ErrorHandling_MT>

Could I do a simple conversion with this structure at all?

thanks

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Go through this.

How to use conversion modules (FCC) in JMS - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bf...

Or you can take a help from below mentioned example.

XML2Plain Transform.Class----


com.sap.aii.messaging.adapter.Conversion

XML2Plain Transform.ContentType----


text/plain;charset=utf-8

XML2Plain xml.client.endSeparator----


'nl'

XML2Plain xml.client.fieldFixedLengths-------give the length here

XML2Plain xml.error.endSeparator----


'nl'

XML2Plain xml.error.fieldFixedLengths----


give the length here

XML2Plain xml.addHeaderLine----


0

XML2Plain xml.conversionType----


StructXML2Plain

XML2Plain xml.recordsetStructure----


client,error

Former Member
0 Kudos

thanks

I think my problem is the structure of my message.

is it possible to ignore the header and the first 2 feilds, since they are part of another hierarchy level (comming only once.)

thanks

thomas

Former Member
0 Kudos

No ...You cannot ignore those 2 fields.....If you can change your struture like this and it will work....

<nr1:ErrorHandling_MT>

<Header>

<client>xxx</client>

<csysidn>xxx</csysidn>

</Header>

<error>

<eseq_number>xxx</eseq_number>

<error_text>xxxx</error_text>

<original_message>xxx</original_message>

</error>

</nr1:ErrorHandling_MT>

Former Member
0 Kudos

OK - Is this because i could make it ignore the header field?

(i can only use a simple conversion, since it is the receiver adaptor)

Former Member
0 Kudos

(i can only use a simple conversion, since it is the receiver adaptor)

NO..If you want to get the all the data ...ie header fields and error information ,you have to make it the structure specified in my last post and have to do complex converstion even in receiver side.

Former Member
0 Kudos

ok - but in the conversion manual it says

"For receiver channels, you can only use the simple transformation"

Does this no longer apply?

Thomas

Former Member
0 Kudos

"For receiver channels, you can only use the simple transformation"

Can you plz locate the page or link??

Former Member
0 Kudos

Look at this section...

3.4 Structure Conversion in a Receiver Communication Channel

Former Member
0 Kudos

Bingo -

Thanks

Answers (3)

Answers (3)

pradeep_nellore
Participant
0 Kudos

Hi,

In the FCC parameters you must specify the either length of field, if fixed , or a character which seperated the fields.

Thanks

--Pradeep

Reward points if helpful.

former_member556603
Active Contributor
0 Kudos

Hi,

Ref How To Use the Content Conversion Module in JMS Adapter -

https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000582377&;

Thanks,

Saaty Kumar

Former Member
0 Kudos

We cannot do the content conversion for this kind of structure.

It should be either simple or complex structures.

Compare your structure with below...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bf...