Skip to Content
0
Former Member
Aug 17, 2005 at 07:31 AM

Problems with file content conversion

24 Views

Hi,

in my scenario (Z-IDOC - XI - File) I send 2 segments to the XI.

L061 18000 DE 0101 23236318 050605 EUR

L061 87000 DE 0101 050605 EUR

In the second segment there is no XBLNR !!

IDOC: ZFIBUCH

Segment: L061

Fields:

IDENTIF

KZ

LAND

BUKRS

XBLNR

BLDAT

WAERS

Data typ: L061

Message type: MT_ZFIBUCH_FILE

My XML-message looks like this:

<?xml version="1.0" encoding="UTF-8" ?>

<ns1:MT_ZFIBUCH_FILE xmlns:ns1="http://xxx">

<L061>

<IDENTIF>L061</IDENTIF>

<KZ>18000</KZ>

<LAND>DE</LAND>

<BUKRS>0101</BUKRS>

<XBLNR>AG1236318</XBLNR>

<BLDAT>050605</BLDAT>

<WAERS>EUR</WAERS>

</L061>

<L061>

<IDENTIF>L061</IDENTIF>

<KZ>87000</KZ>

<LAND>DE</LAND>

<BUKRS>0101</BUKRS>

<BLDAT>050605</BLDAT>

<WAERS>EUR</WAERS>

</L061>

</ns1:MT_ZFIBUCH_FILE>

I use content conversion in the receiver-file-adapter

RECORDSET: L061

L061.fieldFixedLengths 4,6,3,4,10,3

L061.headerLine 0

L061.fixedLengthTooShortHandling Ignore

L061.endSeparator 'nl'

The result is:

L06118000 DE 0101AG1236318 050605EUR

L06187000 DE 0101050605EUR

But I will use fixed lengths for getting this:

L06118000 DE 0101AG1236318 050605EUR

L06187000 DE 0101 __________050605EUR

(instead of the underline there should be blanks)

Did I something wrong?

Christoph