Process SUBDTE: 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

There is no transaction in progress.

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 to export a journal entry line to the DATEV export file, are stored in the JOURNALENTRIES()() char array. The array is zero-based, and each field can be modified.

Note - warningThe values must respect the DATEV interface specifications.
Copy
$ACTION
Case ACTION
When "MODDATEVENT"    : Gosub MODDATEVENTWhen Default

    Endcase
Return
$MODDATEVENT
#add leading zerosJOURNALENTRIES(6) = "0000" + JOURNALENTRIES(6) 
RETURN

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context.

Table Significant content Table title

COMPANY

Yes

Company

GTYPACCENT

No

Document types

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 Business Partner account data with the DATEV export function.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is one log file opened.

Call cases

The entry point is called before writing the required Business Partner 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 to export a Business Partner account line to the DATEV export file, are stored in the BPACCOUNTS()() char array. The array is zero-based, and each field can be modified.

Note - warningThe values must respect the DATEV interface specifications.
Copy
$ACTION
Case ACTION
When "MODDATEVBP"    : Gosub MODDATEVBPWhen Default
 Endcase
Return
$MODDATEVBP
#add leading zerosBPACCOUNTS(0) = "0000" + BPACCOUNTS(0) 
RETURN

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context.

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 (general ledger) account data with the DATEV export function.

Context and operating mode

Transaction

There is no transaction in progress.

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 to export a GL account line to the DATEV export file, are stored in the GLACCOUNTS()() char array. The array is zero-based, and each field can be modified.

Note - warningThe values must respect the DATEV interface specifications.
Copy
$ACTION
Case ACTION

When "MODDATEVACC"    : Gosub MODDATEVACC

When Default


 Endcase

Return
$MODDATEVACC
#add leading zeros

GLACCOUNTS(0) = "0000" + GLACCOUNTS(0) 


RETURN

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context.

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

BEFWRITEDATA: Before WRITEDATA

Context and operating method

Transaction

There is no transaction in progress.

Log file

There is no log file opened.

Call cases

The entry point is called before writing the required data. Some variables can be updated like the length of the longest GL account (GLACCOUNTLENGTH).

Available variables and masks

The [M:DTE] mask is available.

Variable or mask Definition

[M:DTE] mask

DATEV export

MAINCOA

Main chart of account for a given company

MAINLED

Main ledger for a given company

MAINCOSTLED

Main analytical ledger for a given company

GLACCOUNTLENGTH

Length of the longest GL account for a given chart of account

Open tables

In the table below, the significant content flag indicates that the content is in phase with the context.

Table Significant content Table title

COMPANY

Yes

Company

FACILITY

No

Sites

GACM

Yes

Account core model

GLED

Yes

Ledger codes

FISCALYEAR

No

Fiscal years

GACCOUNT

No

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

Yes

Chart of accounts