FILEMOT
Receives the reason-file name and may return another file name to be used.
ExecBlock("FILEMOT", .F., .F., {cFile})Access →
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.
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)Receives the reason-file name and may return another file name to be used.
ExecBlock("FILEMOT", .F., .F., {cFile})Receives aRotina and returns the menu option array, allowing FINA565 actions to be added or changed.
ExecBlock("FA565ROT", .F., .F., aRotina)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.)Adds a complementary fragment to the title-selection filter/query.
ExecBlock("FA565FIL", .F., .F.)Adds fields to the settlement/markbrowse display before the rest of the interface is assembled.
ExecBlock("FA565ADDCPO", .F., .F.)Allows the column structure to be changed before the editable-field list for the grid is assembled.
ExecBlock("A565COL", .F., .F.)Custom validation for the first screen; its logical return controls whether subsequent validations continue.
ExecBlock("F565OK1", .F., .F.)Inside the selected-title loop, replaces the standard interest calculation and returns the interest amount.
ExecBlock("F565JUR", .F., .F.)Inside the selected-title loop, returns the custom discount amount.
ExecBlock("F565DESC", .F., .F.)Runs for each title after the TRB temporary record is filled, allowing displayed/processed content to be complemented.
ExecBlock("FA565GRVTRB", .F., .F.)Can replace/disable numbering validation. Its logical return participates in line validation and TudoOk.
ExecBlock("FA565LOK", .F., .F.)Custom line validation; when it returns a logical value, that value is returned by the line-validation routine.
ExecBlock("A565VALLIN", .F., .F.)Runs in TudoOk after value validations; its logical return defines the final validation result.
ExecBlock("F565TOK", .F., .F.)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.)When CMC7 control is enabled, replaces the default F565CMC7 processing while installments/checks are assembled.
ExecBlock("A565PARC", .F., .F.)Runs when inclusion is abandoned before processing continues, immediately before leaving the flow.
ExecBlock("FA565OUT", .F., .F.)Runs when the user exits or cancels the settlement step, before resources and locks are released.
ExecBlock("F565SAID", .F., .F.)Runs after the initial selection/validation and before the settlement save routine is called.
ExecBlock("F565GRV", .F., .F.)During title saving, its logical return decides whether an NDF should be generated for the evaluated scenario.
ExecBlock("F565GerNDF", .F., .F.)Runs after the NDF title is created and receives the original SE2 RecNo through PARAMIXB.
ExecBlock("F565NDF", .F., .F., {nSE2Rec})Allows complementary data associated with SE2 processing to be adjusted; the return value replaces aComplem.
ExecBlock("F565SE2", .F., .F., aComplem)Runs while financial movements are being assembled, inside the loop that prepares SE5/FK6-related data.
ExecBlock("SE5FI565", .F., .F.)Runs after the movement loop when lRet remains true and receives the aRecSe5 list.
ExecBlock("F565SE5", .F., .F., {aRecSe5})Runs immediately after MsUnlock() of the title generated by settlement, allowing the new title to be treated.
ExecBlock("F565TPliq", .F., .F.)Runs after the total value of the generated title is updated and receives aComplem.
ExecBlock("F565VAL", .F., .F., aComplem)Runs after accounting entries are posted and before tracking information is recorded.
ExecBlock("F565CTB", .F., .F.)Entry Point used by the flow for cancellation logging/treatment at the end of the interaction.
ExecBlock("F565CAN", .F., .F.)Entry Point used by the flow for confirmation logging/treatment at the end of the interaction.
ExecBlock("F565CON", .F., .F.)Runs before the main cancellation loop; its return is compared with 1 to decide whether cancellation continues.
ExecBlock("F565CANC", .F., .F.)Runs inside the title loop before SE5 movements for the title being cancelled are searched/processed.
ExecBlock("F565E5", .F., .F.)Runs after accounting treatment of the SE2 title during cancellation and before later updates.
ExecBlock("FIN565E2", .F., .F.)© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.