Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTPublished

F040MOV

F040MOV() --> Nil or a return value not consumed by the analyzed flow

F040MOV runs in the Creation save phase of FINA040, in the F040GrvSE5 source section.

Entry pointsFINA040SIGAFINAccounts ReceivableExecBlockCreation save
01 · OVERVIEW

Overview

F040MOV is an Entry Point identified directly in the analyzed FINA040 source flow. Its call is located in F040GrvSE5, during the Creation save phase. Confirm parameters and the expected return value against the release and patch used by the target environment.

02 · SYNTAX

Syntax

F040MOV() --> Nil or a return value not consumed by the analyzed flow

Parameters

PARAMIXB
ContextualOptional

When the ExecBlock call sends parameters, they are exposed according to this release context. Check the call site and validate the source used by the environment.

Return value

Nil or a return value not consumed by the analyzed flow.

03 · PRACTICAL EXAMPLE

Safe structure for starting the analysis

#Include "TOTVS.ch"

User Function F040MOV()
    Local uRet := Nil

    // Confirm PARAMIXB and the expected return type in the target release.
    // Keep only rules that belong to this exact FINA040 execution point.

Return uRet
Expected result

Minimum structure: adjust parameters and the return type only after checking the call site in the release used by the environment.

BEST PRACTICES
  • Preserve the work areas used by the customization.
  • Read PARAMIXB only after confirming its structure at the call site in the target release.
  • Keep the implementation short and record the release that was validated.
  • Test creation, edit, deletion, and automatic processing separately when applicable.
COMMON PITFALLS
  • Do not assume similarly named Entry Points share the same contract.
  • Do not change the return type expected by the calling flow.
  • Do not depend on private variables without validating the call context.

Related content

REFERENCES
  1. Official FINA040 documentation; ExecBlock call recorded in F040GrvSE5.
  2. TOTVS. Finance Entry Points — P12.
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