About the FEC file export
The FEC export extracts data from ledger records and generates a FEC file for each period in the specified fiscal year where the status is closed. Period 0 is used for the SB journal.
File naming
Files are named using the format 123456789FECYYYYMMDD[_TRIAL] _99.txt where:
- 123456789 is the first 9 characters of the company's Business Identification Number, or SIRET. This ID is specified on the General Parameters form.
- FEC is standard text.
- YYYYMMDD is the closing date of the fiscal year.
- _TRIAL is added to the file name if the Final check box is not selected
- 99 is the accounting period
For example, this FEC audit file name contains the accounting entries for the January accounting period of the fiscal year that ended on December 31, 2019, for the company with Business Identification Number 73282932000074:
732829320FEC20191231_01.txt
File contents
Files produced by the export process are delimited files, using the “|” character as the delimiter. This table shows the columns and their data sources:
Column number | Column description | Data source | Form, field source |
---|---|---|---|
1 | JournalCode | ledger.from_id | Posted From field on G/L Posted Transactions |
2 | JournalLib | When the journal was generated by system, then dbo.GetLabel('@!JournalDesc' +
jh.id) When the journal was add by a user, then jour_hdr.description |
Description field on Journals, or Message Text field on Maintain Application Message Objects |
3 | EcritureNum | Concatenation of five columns value of table ledger: control_prefix, control_site,control_year,control_period,control_number | Control number on G/L Posted Transactions |
4 | EcritureDate | ledger.trans_date | Date on G/L Posted Transactions |
5 | CompteNum | ledger.acct | Account on G/L Posted Transactions |
6 | CompteLib | chart.description | Chart description on G/L Posted Transactions |
7 | CompAuxNum | ledger.vend_num | Customer or Vendor number on G/L Posted Transactions |
8 | CompAuxLib | When the ledger is related to a customer, then custaddr.name When the ledger is related to a vendor, then vendaddr.name |
Customer or Vendor name on G/L Posted Transactions |
9 | PieceRef | ledger.voucher | G/L voucher on G/L Posted Transactions |
10 | PieceDate | When 'AR Dist' then artran.inv_date When 'AP Dist' then aptrxp.inv_date For others, ledger.trans_date |
Invoice Date on A/P Posted Transactions Detail or A/R Posted Transactions Detail, or Date on G/L Posted Transactions |
11 | EcritureLib | ledger.ref | Reference on G/L Posted Transactions |
12 | Montant | ledger.dom_amount | Domestic Debit or Credit on G/L Posted Transactions |
13 | Sens | When dom_amount>0, then 'D' When dom_amount<0, then 'C' |
Domestic Debit or Credit on on G/L Posted Transactions |
14 | EcritureLet | blank | |
15 | DateLet | blank | |
16 | ValidDate | ledger.trans_date | Date on G/L Posted Transactions |
17 | Montantdevise | ledger.for_amount | Foreign Debit or Credit on G/L Posted Transactions |
18 | Idevise | ledger.curr_code | Currency on G/L Posted Transactions |
19 | SeqNum | ledger.trans_num | Sequence on G/L Posted Transactions |