Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTPublished

FILEMOT

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

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

FINA565FinancialSettlementExecBlockEntry point
01 · OVERVIEW

Overview

Located in Fa565MotBx, in the Initialization / reasons stage of the analyzed FINA565 flow. Receives the reason-file name and may return another file name to be used.

02 · SYNTAX

Syntax

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

Return value

Character. Exact return-value usage follows the call site described on this page.

03 · PRACTICAL EXAMPLE

Didactic skeleton

User Function FILEMOT()
    // Extension point located in the FINA565 flow.
    // Preserve routine context and return only the type expected by the call site.
Return ""
Expected result

Use it as a starting point and confirm context variables, parameters, and return behavior in the target release.

BEST PRACTICES
  • The analyzed flow passes {cFile} as the fourth ExecBlock argument; validate PARAMIXB in the target release.
  • The position is classified from the actual call site in the analyzed flow; patches and releases may change details.
COMMON PITFALLS
  • Do not assume PRIVATE/STATIC variables or internal arrays have the same structure in every release.
  • Do not rename field identifiers, aliases, or technical names when adapting examples.

Related content

REFERENCES
  1. TOTVS. Pontos de Entrada - Linha Microsiga Protheus.
  2. TOTVS. SIGAFIN - FINA565 - Pontos de Entrada. Central de Atendimento.
Status
Published
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha