cancel
Showing results for 
Search instead for 
Did you mean: 

Question about J2SE-File-Adapter

Former Member
0 Kudos

Hallo,

i would send with the J2SE-File-Adapter a *.CSV to SAP XI.

The structure in the SAP XI is:

PlaintMaintenanceMessagetype

......Datasource..................string

......Data

..........item

..............EquipmentID.............string

..............FunktionalLocation......string

..............Data....................string

..............Time....................string

The *.csv File structure is:

6ATESTDEMOYVES,

1234,

Limo,

20060105,

122030,

The configuration of the J2SE-File-Adapter is:

classname=com.sap.aii.messaging.adapter.ModuleFile2XMB

version=30

mode=FILE2XMBWITHROWCONVERSION

##File Adapter specific parameters (example, see docu)

##file.type=BIN

file.type=TXT

file.encoding=UTF-8

xml.documentName=ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender"

xml.structureTitle=6ATESTDEMOYVES

xml.processFieldNames=fromConfiguration

xml.fieldSeparator=;

xml.fieldNames=Datasource,EpuipmentID,FunctionalLocation,Data,Time

But it not runing! Can anybody help me? Are any How to guide to send a *.csv with the J2SE-File-Adapter.

Thanks laura

With the XML File it works. But there are ofer 40000 records in the *.csv, and i will not create this in *.xml!

The structure of the XML.File are:

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

<ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender">

<Datasource>6ATESTDEMOYVES</Datasource>

<Data>

<item>

<EpuipmentID>1234</EpuipmentID>

<FunctionalLocation>Limo</FunctionalLocation>

<Data>20060105</Data>

<Time>122030</Time>

</item>

<item>

<EpuipmentID>1235</EpuipmentID>

<FunctionalLocation>Bier</FunctionalLocation>

<Data>20060106</Data>

<Time>122031</Time>

</item>

</Data>

</ns:PlaintMaintenanceMessagetype>

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member91687
Active Contributor
0 Kudos