to use the Data Exchange Definition framework some configuration is needed. details you'll find on msdn.
a more simple way to export data to a CSV file is the usage of the "data exports" from the financial module. also no coding needed.
to use it you'll need a (simple) dtd file. for that follow
msdn.microsoft.com/.../hh934654(v=nav.80).aspx
blogs.msdn.microsoft.com/.../gdpdu-dtd-datei
you can use that dtd file or any other dtd file. in that case does not matter.
to export e.g. sales orders do the following:
- goto "data exports" in the windows client
- view record definitions
- add new rec. def. S-ORDER: set description, export path, add dtd file (Import in Menu DTD File)
- view reccord source
- add table no. 36, period field no. 99, set table filter to document type=ORDER
- add fields document type, no. to the field list. they are the primary key and must be the first fields.
- add additional fields you want to export
- click validate to check
- optional: add new header record table no.=37 (sales line), add indent, add relationship
- close page
- select S-ORDER record, click Export in Process Menu
- set the needed filter values in the request page, click ok to run the export
- goto export folder, check export file SalesHeader.txt (and optional SalesLine.txt)
it's a nice option to export data. this example shows that it's also usable for sales/purchase data to export.