← AdvPL Guide
PROTHEUS · SIGAFIN · FINA565 · EXECBLOCK · AUTOMATIC ROUTINE

FINA565 — Entry Point map

Functional map of Accounts Payable Settlement (FINA565), with 31 Entry Points identified in the analyzed flow and the automatic-execution path documented by TOTVS.

The map shows the relative position of Entry Points in the routine: menu and preparation, title selection, loading and save loops, validations, accounting, and cancellation.

Map prepared from the analyzed flow and cross-checked against the available official documentation. Patches, releases, and localizations may change behavior details.

Execution map

Entry / menu

FILEMOTFA565ROT

Selection and preparation

FA565OWNFA565FILFA565ADDCPOA565COLF565OK1

Title loading ↻

F565JURF565DESCFA565GRVTRB

Validation

FA565LOKA565VALLINF565TOKF565NUM

Terms / exit

A565PARCFA565OUTF565SAIDF565GRV

Save loop ↻

F565GerNDFF565NDFF565SE2SE5FI565F565SE5F565TPliqF565VAL

Post-save

F565CTBF565CANF565CON

Cancellation ↻

F565CANCF565E5FIN565E2

Automatic execution

FINA565 accepts direct execution through parameters and TOTVS documents an automatic-routine example. The analyzed flow contains no internal MSExecAuto/ExecAuto call; the automatic path enters through FINA565 itself with nPosArotina > 0 and lAutomato.

FINA565(nPosArotina, aGetAut1, aChvAut, aGetAut2, aColItens, aEdit, lAutomato)

TOTVS states that aChvAut and lAutomato are for internal use and should not be passed in the automatic-routine call. For cancellation, the documentation shows nPosArotina := 4 and CLIQCAN with the settlement number.

Entry Points

FILEMOT

Stage: Entry / menu

Receives the reason-file name and may return another file name to be used.

ExecBlock("FILEMOT", .F., .F., {cFile})
Access →

FA565ROT

Stage: Entry / menu

Receives aRotina and returns the menu option array, allowing FINA565 actions to be added or changed.

ExecBlock("FA565ROT", .F., .F., aRotina)
Access →

FA565OWN

Stage: Selection and preparation

Replaces the base filter used to select titles; it appears in both the traditional filter path and the query-based path.

ExecBlock("FA565OWN", .F., .F.)
Access →

FA565FIL

Stage: Selection and preparation

Adds a complementary fragment to the title-selection filter/query.

ExecBlock("FA565FIL", .F., .F.)
Access →

FA565ADDCPO

Stage: Selection and preparation

Adds fields to the settlement/markbrowse display before the rest of the interface is assembled.

ExecBlock("FA565ADDCPO", .F., .F.)
Access →

A565COL

Stage: Selection and preparation

Allows the column structure to be changed before the editable-field list for the grid is assembled.

ExecBlock("A565COL", .F., .F.)
Access →

F565OK1

Stage: Selection and preparation

Custom validation for the first screen; its logical return controls whether subsequent validations continue.

ExecBlock("F565OK1", .F., .F.)
Access →

F565JUR

Stage: Title loading ↻

Inside the selected-title loop, replaces the standard interest calculation and returns the interest amount.

ExecBlock("F565JUR", .F., .F.)
Access →

F565DESC

Stage: Title loading ↻

Inside the selected-title loop, returns the custom discount amount.

ExecBlock("F565DESC", .F., .F.)
Access →

FA565GRVTRB

Stage: Title loading ↻

Runs for each title after the TRB temporary record is filled, allowing displayed/processed content to be complemented.

ExecBlock("FA565GRVTRB", .F., .F.)
Access →

FA565LOK

Stage: Validation

Can replace/disable numbering validation. Its logical return participates in line validation and TudoOk.

ExecBlock("FA565LOK", .F., .F.)
Access →

A565VALLIN

Stage: Validation

Custom line validation; when it returns a logical value, that value is returned by the line-validation routine.

ExecBlock("A565VALLIN", .F., .F.)
Access →

F565TOK

Stage: Validation

Runs in TudoOk after value validations; its logical return defines the final validation result.

ExecBlock("F565TOK", .F., .F.)
Access →

F565NUM

Stage: Validation

Allows the settlement number to be replaced; the return value is assigned to cLiquid inside a loop until an available number is obtained.

ExecBlock("F565NUM", .F., .F.)
Access →

A565PARC

Stage: Terms / exit

When CMC7 control is enabled, replaces the default F565CMC7 processing while installments/checks are assembled.

ExecBlock("A565PARC", .F., .F.)
Access →

FA565OUT

Stage: Terms / exit

Runs when inclusion is abandoned before processing continues, immediately before leaving the flow.

ExecBlock("FA565OUT", .F., .F.)
Access →

F565SAID

Stage: Terms / exit

Runs when the user exits or cancels the settlement step, before resources and locks are released.

ExecBlock("F565SAID", .F., .F.)
Access →

F565GRV

Stage: Terms / exit

Runs after the initial selection/validation and before the settlement save routine is called.

ExecBlock("F565GRV", .F., .F.)
Access →

F565GerNDF

Stage: Save loop ↻

During title saving, its logical return decides whether an NDF should be generated for the evaluated scenario.

ExecBlock("F565GerNDF", .F., .F.)
Access →

F565NDF

Stage: Save loop ↻

Runs after the NDF title is created and receives the original SE2 RecNo through PARAMIXB.

ExecBlock("F565NDF", .F., .F., {nSE2Rec})
Access →

F565SE2

Stage: Save loop ↻

Allows complementary data associated with SE2 processing to be adjusted; the return value replaces aComplem.

ExecBlock("F565SE2", .F., .F., aComplem)
Access →

SE5FI565

Stage: Save loop ↻

Runs while financial movements are being assembled, inside the loop that prepares SE5/FK6-related data.

ExecBlock("SE5FI565", .F., .F.)
Access →

F565SE5

Stage: Save loop ↻

Runs after the movement loop when lRet remains true and receives the aRecSe5 list.

ExecBlock("F565SE5", .F., .F., {aRecSe5})
Access →

F565TPliq

Stage: Save loop ↻

Runs immediately after MsUnlock() of the title generated by settlement, allowing the new title to be treated.

ExecBlock("F565TPliq", .F., .F.)
Access →

F565VAL

Stage: Save loop ↻

Runs after the total value of the generated title is updated and receives aComplem.

ExecBlock("F565VAL", .F., .F., aComplem)
Access →

F565CTB

Stage: Post-save

Runs after accounting entries are posted and before tracking information is recorded.

ExecBlock("F565CTB", .F., .F.)
Access →

F565CAN

Stage: Post-save

Entry Point used by the flow for cancellation logging/treatment at the end of the interaction.

ExecBlock("F565CAN", .F., .F.)
Access →

F565CON

Stage: Post-save

Entry Point used by the flow for confirmation logging/treatment at the end of the interaction.

ExecBlock("F565CON", .F., .F.)
Access →

F565CANC

Stage: Cancellation ↻

Runs before the main cancellation loop; its return is compared with 1 to decide whether cancellation continues.

ExecBlock("F565CANC", .F., .F.)
Access →

F565E5

Stage: Cancellation ↻

Runs inside the title loop before SE5 movements for the title being cancelled are searched/processed.

ExecBlock("F565E5", .F., .F.)
Access →

FIN565E2

Stage: Cancellation ↻

Runs after accounting treatment of the SE2 title during cancellation and before later updates.

ExecBlock("FIN565E2", .F., .F.)
Access →

References

  1. TOTVS — Pontos de Entrada - Linha Microsiga Protheus
  2. TOTVS — FINA565 - Pontos de Entrada
  3. TOTVS — Liquidação a pagar automática - FINA565
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha