Child pages
  • Configuring (CTBA500 - SIGACTB)

The TXT accounting comes from an accounting entry; thus, the numbering of standard entries used in this routine must be between 001 and 499. The numbers higher than 499 refer to automatic entries of other modules. Therefore, they are no used.

The TXT file must have same size of the record configured in the routine parameters. The detail line does not require fixed positions. The only exception refers to the standard entry code associated, which must be saved in the 3 first positions of each line.

To access specific information, the user must use LerStr and LerVal functions in the standardized entries; these functions do the reading of the TXT file, returning character and numeric type data, respectively.

Syntax:

LerStr( ExpN1, ExpN2 ) -> It reads a text file expression and saves it in the accounting file as a character-type expression.

LerStr( ExpN1, ExpN2 ) -> It reads a text file expression and saves it in the accounting file as a numeric-type expression.

LerData( ExpN1, ExpN2 ) -> It reads a text file expression and enables edition of the accounting entry date. This function may be used in any field with character-type return in the Standard Entry, since it only edits the Accounting Entry Date, from a date saved in the text file.

The ExpN1 parameter refers to the initial position of the field in the record; the ExpN2 is about the field size.


Important:

When using the function LerData() to change the system reference date, which is used as the entry date, parameter 5 - Line Break in Doc. must be set to Yes, because each line can be a different date, then after running the function LerData() the system displays the accounting screen.

If the parameter is set to No, the system considers the date of the last line processed.

Configuring

1. Creating the following SE in the Standardized Entry register:


Field

Content

Cod Stand Entry

001

Sequential

001

Description

TXT Entry

Entry Type

Double entry

Debt Account

LERSTR(10,20)

Credit Account

LERSTR(50,20)

Vl Currency 1

LERVAL(80,17)

History

LERSTR(100,40)

Entry Origin

LERDATA(140,10)


2. Configure Text file in order to:

  • The Code of SE 001 to be in the 3 first positions of each file line.
  • Debt Accounts to start in column 10 of each line.
  • Credit Accounts to start in column 50 of each line.
  • The entry Value to start in column 80.
  • The entry History to start in column 100.
  • In this case, the Accounting Entry Date is manipulated by the function LERDATA, which reads a valid date starting at column 140. Note that the field Entry Origin has no association with this command.