DATEV Nuclet – data sources. |
Language: Deutsch · English
Data sources – part of the DATEV Nuclet documentation (export of CSV files for further processing in DATEV (accounting)).
On this page |
This page was machine-translated from German as a first draft and is currently under review. The authoritative source remains the German original (see the language switch above). |
4.4.1 Report data sources for the individual DATEV exports
For each DATEV export type ("invoice export", "customer export", "turnover export") a report data source template ("DATEV Client Billing Export", "DATEV Client Export", "DATEV Turnover Export") is provided in the DATEV Nuclet.
These data sources must be adapted per application:
Please note
The marking mentioned in point 4 is performed by the DATEV Nuclet by default. This uses the export date ("Export Date DATEV") in the respective reference objects (see the prerequisites in section 3). |
/**
* Anmerkungen:
*
* - "intid_reference" ist ein Pflichtfeld, das der Zuordnung der Referenzobjekte zum DATEV-Export dient
* - "date_from" und "date_until" sind Pflichtparameter zur Kennzeichnung des zu exportierenden Zeitraumes
* - "datexportdatumdatev" ist das Export-Datum zur Kennzeichnung bereits exportierter Datensätze (s.o.)
*
*/
SELECT
buchungsposition.intid "intid_reference",
buchungsposition.datdatum "Datum",
buchungsposition.strgegenkonto "Gegenkonto",
buchungsposition.strkonto "Konto",
buchungsposition.strbelegfeld "Belegfeld 1",
buchungsposition.dblumsatz "Umsatz",
buchungsposition.strwaehrung "Währung",
buchungsposition.strbuchungstext "Buchungstext"
FROM
em65_buchungsposition buchungsposition
WHERE
buchungsposition.datdatum BETWEEN '$date_from' AND '$date_until'
AND buchungsposition.datexportdatumdatev IS NULL |
Source code 4.4.1.1: Example adjustment for the data source "DATEV Turnover"
SELECT -- Diese Kopfzeile wurde folgendem offiziellen Beispiel nachgestellt: -- -- https://developer.datev.de/de/file-format/details/datev-format/getting-started -- -- Die Datenquelle ist den projekt- bzw. kundenspezifischen Anforderungen -- entsprechend anzupassen. -- -- Bearbeiter- oder mitarbeiterbezogene Informationen lasseb sich über einen -- entsprechenden JOIN hinzufügen (siehe Kommentarzeilen im SQL unten). -- 0 "intid_reference", 'EXTF' "A", 700 "B", 21 "C", 'Buchungsstapel' "D", 13 "E", to_char(current_timestamp, 'yyyymmddhh24missms') "F", null "G", 'RE' "H", '' "I", '' "J", 29098 "K", 55003 "L", to_char(export.datdatefrom, 'yyyymmdd') "M", 4 "O", to_char(export.datdatefrom, 'yyyymmdd') "P", to_char(export.datdateuntil, 'yyyymmdd') "Q", 'Buchungsstapel' "R", 'WD' "S", 1 "T", 0 "U", 0 "V", 'EUR' "W", null "X", '' "Y", null "Z", null "AA", '03' "AB", null "AC", null "AD", '' "AE", '' "AF" FROM YY7M_DATEVEXPORT export--, --SD2M_MITARBEITER mitarbeiter --INNER JOIN T_MD_USER benutzer ON mitarbeiter.struid_strbenutzer = benutzer.struid WHERE export.intid = $intidDatevExport --AND benutzer.struser = '$username' |
The layouts for the DATEV exports are configured per export type. The layouts differ in the dependent subform "References", in which the reference objects contained in an export (e.g. invoices, turnover, customers) can be displayed.
For each DATEV export type ("invoice export", "customer export", "turnover export") a dynamic business object ("DATEV Client Billing References", "DATEV Client References", "DATEV Turnover References") is provided for this purpose in the DATEV Nuclet.
These data sources must be adapted per application:
Please note
the context menu function "Show details..." is to be used for the references in DATEV exports, then the respective reference business object used must be selected in the dynamic entity. |
/**
* Anmerkungen:
*
* - "INTID_T_UD_GENERICOBJECT" und "INTID" sind Pflichtfelder für Dynamische Entitäten (s.o.)
* - Join zwischen Referenzobjekt "Buchungsposition" und "DATEV Information" erfolgt über Pflichtfeld "DATEV Information" (siehe Abschnitt 3)
*
*/
SELECT
datevinformation.intid "INTID_T_UD_GENERICOBJECT",
buchungsposition.intid "INTID",
'Umsatz' "Typ",
buchungsposition.datdatum "Datum",
buchungsposition.strbelegfeld "Referenz",
buchungsposition.dblumsatz "Betrag",
buchungsposition.strwaehrung "Währung"
FROM
def_buchungsposition buchungsposition,
def_datevinformation datevinformation
WHERE
datevinformation.intid = buchungsposition.intid_strdatevinformation |