cancel
Showing results for 
Search instead for 
Did you mean: 

File sender content conversion problem.

0 Kudos

Hi,

I am Working on File to RFC scenario .

Source file is zipped and has next structure:

HEADER1 FIELD1 FIELD2...

HEADER2 FIELD1 FIELD2...

DETAIL FIELD1 FIELD2...

TXT DESCRIPTION1

TXT DESCRIPTION2

DETAIL FIELD1 FIELD2...

TXT DESCRIPTION1

TXT DESCRIPTION2

HEADER1 FIELD1 FIELD2...

HEADER2 FIELD1 FIELD2...

DETAIL FIELD1 FIELD2...

TXT DESCRIPTION1

TXT DESCRIPTION2

DETAIL FIELD1 FIELD2...

TXT DESCRIPTION1

TXT DESCRIPTION2

I've tryed with

zip.mode --> unzip

Transform.Class --> com.sap.aii.messaging.adapter.Conversion

xml.HEADER1.fieldFixedLengths --> 3,3,17,8,4

xml.HEADER1.fieldNames --> ID,NODO,REDO,FEDO,HODO

xml.HEADER2.fieldFixedLengths --> 3,13,17,13

xml.HEADER2.fieldNames --> ID,QFAC,REDO,AQSP

xml.DETAIL.fieldFixedLengths --> 3,13,30,5,10,16,3,16,3,16,3,16,5,16,3,1,17,3

xml.DETAIL.fieldNames --> ID,QFAC,NOMPRO,NUMPLA,TIPRAP,CONIND,TIPCON,RAPPTS,MONRAP,BASERP,MONEDA,CUOTA,TIPIVA,TOTRAP,PERLIQ,NOCOB,NUFA,TIPLIQ

xml.DETAIL.keyFieldValue --> DETAIL

xml.TXT.fieldFixedLengths --> 3,70

xml.TXTfieldNames --> ID,TEXTO

xml.TXT.keyFieldValue --> TXT

xml.conversionType --> StructPlain2XML

xml.documentName --> MT_I4303_LIQRAP

xml.keyFieldName --> ID

xml.recordsetsPerMessage -->1

But error:

Exception: ERROR in structure conversion plain->xml configuration: message split not allowed here'; nested exception caused by: java.lang.Exception: ERROR in structure conversion plain->xml configuration: message split not allowed here

Thanks,

Carme

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member187339
Active Contributor
0 Kudos

Hi,

Try removing this

>>xml.recordsetsPerMessage -->1

Also as I read your structure you are having the depth of more than 3 level, (Test is having fields ID and TEXTDESC) if that is so the File Content Conversion will not work

Regards

Suraj

0 Kudos

thanks, Suraj

problem solved with parameter xml.recordsetStructureOrder = var.

CArme.

Former Member
0 Kudos

Dear Carme

I am also trying to use parameter xml.recordsetsPerMessage = 1 of Module MessageTransformBean to get one PI message per document (in my case per line) available in text file.

like you I am also facing the error

Attempt to process file failed with com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: ERROR in structure conversion plain->xml configuration: message split not allowed here'; nested exception caused by: java.lang.Exception: ERROR in structure conversion plain->xml configuration: message split not allowed here

but I was not able to solve it by additional parameter xml.recordsetStructureOrder = var

could you please share more details on your solution?

Thanks

best regards

Jochen