Script SUBDTE : SUBDTE: Process: DATEV export
MODDATEVENT: Modify journal entries
The MODDATEVENT entry point can be used to set or change field values when exporting journal entries with the DATEV export function.
Context and operating mode
Transaction
No transaction opened.
Log file
There is one log file opened.
Call cases
The entry point is called before writing the required data as a line to the DATEV export file.
Available variables and masks
The [M:DTE] mask is available.
Variable or mask | Definition |
Mask [M:DTE] | DATEV export |
[L]JOURNALENTRIES(100)(120) | Array containing journal entry data for a line to be exported |
Example
When the entry point is called, all required values for the export of a journal entry line to the DATEV export file are stored in the char array JOURNALENTRIES()(). This array is zero based. It is possible to modify every field of this array. Please be aware that the values must respect the DATEV interface specifications.
$ACTION
Case ACTION
When "MODDATEVENT" : Gosub MODDATEVENT
When Default
Endcase
Return
$MODDATEVENT
#add leading zeros
JOURNALENTRIES(6) = "0000" + JOURNALENTRIES(6)
RETURN
Open tables
Table |
Significant content |
Table Title |
COMPANY |
Yes |
Company |
GTYPACCENT |
||
FACILITY |
No |
Sites |
GACM |
Yes |
Account core model |
GLED |
Yes |
Ledger codes |
FISCALYEAR |
No |
Fiscal years |
GACCOUNT |
Yes |
Accounts |
BPARTNER |
No |
Business partner |
BPCUSTOMER |
No |
Customers |
BPSUPPLIER |
No |
Suppliers |
BPADDRESS |
No |
Addresses |
BID |
No |
Bank ID statement |
TABCOUNTRY |
No |
Country table |
GACCENTRYD |
Yes |
Accounting entry lines |
GACCENTRY |
Yes |
Accounting entries |
GCOA |
Yes |
Chart of accounts |
MODDATEVBP: Modify BP account data
The MODDATEVBP entry point can be used to set or change field values when exporting BP account data with the DATEV export function.
Context and operating mode
Transaction
No transaction opened.
Log file
There is one log file opened.
Call cases
The entry point is called before writing the required BP account data as a line to the DATEV export file.
Available variables and masks
The [M:DTE] mask is available.
Variable or mask | Definition |
Mask [M:DTE] | DATEV export |
[L]BPACCOUNTS(100)(243) | Array containing BP account data for a line to be exported |
Example
When the entry point is called, all required values for the export of a BP account line to the DATEV export file are stored in the char array BPACCOUNTS()(). This array is zero based. It is possible to modify every field of this array. Please be aware that the values must respect the DATEV interface specifications.
$ACTION
Case ACTION
When "MODDATEVBP" : Gosub MODDATEVBP
When Default
Endcase
Return
$MODDATEVBP
#add leading zeros
BPACCOUNTS(0) = "0000" + BPACCOUNTS(0)
RETURN
Open tables
Table |
Significant content |
Table Title |
COMPANY |
No |
Company |
FACILITY |
No |
Sites |
GACM |
No |
Account core model |
GLED |
No |
Ledger codes |
FISCALYEAR |
No |
Fiscal years |
GACCOUNT |
No |
Accounts |
BPARTNER |
Yes |
Business partner |
BPCUSTOMER |
Yes |
Customers |
BPSUPPLIER |
Yes |
Suppliers |
BPADDRESS |
Yes |
Addresses |
BID |
No |
Bank ID statement |
TABCOUNTRY |
No |
Country table |
GACCENTRYD |
No |
Accounting entry lines |
GACCENTRY |
No |
Accounting entries |
GCOA |
No |
Chart of accounts |
MODDATEVACC: Modify GL account data
The MODDATEVACC entry point can be used to set or change field values when exporting GL account data with the DATEV export function.
Context and operating mode
Transaction
No transaction opened.
Log file
There is one log file opened.
Call cases
The entry point is called before writing the required GL account data as a line to the DATEV export file.
Available variables and masks
The [M:DTE] mask is available.
Variable or mask | Definition |
Mask [M:DTE] | DATEV export |
[L]GLACCOUNTS(40)(3) | Array containing GL account data for a line to be exported |
Example
When the entry point is called, all required values for the export of a GL account line to the DATEV export file are stored in the char array GLACCOUNTS()(). This array is zero based. It is possible to modify every field of this array. Please be aware that the values must respect the DATEV interface specifications.
$ACTION
Case ACTION
When "MODDATEVACC" : Gosub MODDATEVACC
When Default
Endcase
Return
$MODDATEVACC
#add leading zeros
GLACCOUNTS(0) = "0000" + GLACCOUNTS(0)
RETURN
Open tables
Table |
Significant content |
Table Title |
COMPANY |
No |
Company |
FACILITY |
No |
Sites |
GACM |
No |
Account core model |
GLED |
No |
Ledger codes |
FISCALYEAR |
No |
Fiscal years |
GACCOUNT |
Yes |
Accounts |
BPARTNER |
No |
Business partner |
BPCUSTOMER |
No |
Customers |
BPSUPPLIER |
No |
Suppliers |
BPADDRESS |
No |
Addresses |
BID |
No |
Bank ID statement |
TABCOUNTRY |
No |
Country table |
GACCENTRYD |
No |
Accounting entry lines |
GACCENTRY |
No |
Accounting entries |
GCOA |
No |
Chart of accounts |