All configuration files required for extraction and the output file can be specified together in a data source file. The XML file is specified by the -datasource parameter on the console. This parameter is used instead of the -systemconfig, -tableconfig, -csvconfig, -i, -calcconfig, -outfile and -nozip parameters.
The format of the XML file is specified by the datasource.dtd DTD:
XML element |
XML attribute |
Description |
---|---|---|
datasource |
name |
A data source has a unique name, is of exactly one of the EVENT, GRAPH, MYSAP, JDBC or CSV types and contains the last time of extraction. |
dataextraction |
|
Specifies the XML output file(s). The file extension (.zip or .xml) must be explicitly specified. Either a zipped or unzipped XML file is generated depending on the file extension. |
systemconfig |
|
Specifies the system configuration file. The file may only contain one system access configuration. |
eventspec |
|
Specifies the table configuration file (event specification). The file may contain only one table configuration (configuration XML element). |
attribute |
|
Specifies the attribute transformation file |
If you transfer the data source file to the command line program with the -datasource parameter, the last time of extraction (lastreaddate, lastreadtime) is used and updated only in this file. The time in the system configuration used is no longer adjusted.
Example
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE datasource SYSTEM "datasource.dtd">
<datasource name="BILLING" type="MYSAP"
lastreaddate="19700101" lastreadtime="000000">
<description name="desc_de" language="de">
(Cancelation) invoice,
(Cancelation) credit memo,
Internal credit memo,
Internal allocation,
Debit memo, pro forma invoice
</description>
<description name="desc_en" language="en">
(Cancelation) invoice,
(Cancelation) credit memo,
Internal credit memo,
Internal allocation,
Debit memo, pro forma invoice
</description>
<dataextraction> see chapter
Configuration of multiple output files
</dataextraction>
<systemconfig>C:\Programs\sap2ppm\xml\Systemconfig.xml
</systemconfig>
<eventspec>C:\Programs\sap2ppm\xml\TableConfiguration.xml
</eventspec>
<attributetransformation>C:\Programs\sap2ppm\xml\
attributecalculation.xml
</attributetransformation>
</datasource>