Documente Academic
Documente Profesional
Documente Cultură
Objectives
After completing this session, you will be able to:
File Adapter
Type File
Exactly one sender
agreement per
Communication
channel
At least interface name
and sender service
must be qualified in the
sender agreement
The file adapter is used to read and write files at the OS level. The OS-level
directory must be accessible by the service user of the Adapter engine, with the
appropriate read/write permissions.
The file adapter can also act as an FTP client, meaning that it can perform GET
and PUT in the sender and receiver case, respectively.
Binary
Best Effort
EO
Poll Interval
Processing Mode
Delete
Test
Processing Sequence
Operating system command
SAP AG 2004, File Adapter, Dennis Kropp, 6
Parameters Continued
File Type
z Text
z Binary
File Encoding
10
Source structure
Source structure of csv file:
11
12
check
13
14
15
Source structure
1London20.04.2004
2DAR
11000000123456,0012345678901111SalesAcc
2WECHS 13000000123456,0012345678901111Collection
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2WECHS 13000000123456,0012345678901111Collection
2KK
20009999999999,9909876543219999DepositMoney
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2WECHS 13000000123456,0012345678901111Collection
2KK
20009999999999,9909876543219999DepositMoney
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2DAR
11000000123456,0012345678901111SalesAcc
2WECHS 13000000123456,0012345678901111Collection
2KK
20009999999999,9909876543219999DepositMoney
2KK
20009999999999,9909876543219999DepositMoney
300000000001234565432,2200000000001234565432,33
SAP AG 2004, File Adapter, Dennis Kropp, 16
16
created
17
In this structure, fields with fixed length are used , the value defines the length of
each field
FieldNames defines the name of each field in structure
A keyfield is needed to identify the start of a new substructure, here the keyfield is
KZ
It means if KZ = 1 then the rules for prefix were used, if KZ=2 then main etc..
keyFieldInStructure defines whether the keyfield occurs in the target structure or
not, ignore means it does not appear
18
<check>
<checkSum1>00000000001234565432,22</checkSum1>
<checkSum2>00000000001234565432,33</checkSum2>
</check>
</Input>
</MT_Input>
SAP AG 2004, File Adapter, Dennis Kropp, 19
19
each recordset Input contains one substructure prefix, multiple substructures main and one
substructure
check
<prefix>
<agency>London</agency>
<date>20.04.2004</date>
</prefix>
<main>
<product>DAR</product>
<contract>1100</contract>
<total>0000123456,00</total>
<GPnum>1234567890</GPnum>
<GPnumAdv>1111</GPnumAdv>
<description>SalesAcc</description>
</main>
<main>
<product>WECHS</product>
<contract>1300</contract>
<total>0000123456,00</total>
<GPnum>1234567890</GPnum>
<GPnumAdv>1111</GPnumAdv>
<description>Collection</description>
</main>
<main>
<product>KK</product>
<contract>2000</contract>
<total>9999999999,99</total>
<GPnum>0987654321</GPnum>
<GPnumAdv>9999</GPnumAdv>
<description>DepositMoney</description>
</main>
<check>
<checkSum1>00000000001234565432,22</checkSum1>
<checkSum2>00000000001234565432,33</checkSum2>
</check>
</Input>
</MT_Input>
20
Summary
21