Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTUnder review

F460CANC

User Function F460CANC()

Allows replacement of nOpct in the legacy cancellation caller.

F460CANCFINA460
01 · OVERVIEW

Overview

P12.2210 records {nOpct} and assigns the result to nOpct in FA460ECAN. The GitHub copy places this call inside Begin Transaction, then compares nOpct with 1. This does not justify returning a logical validation flag. F460CANC is not named in the migration article’s removed-hook list; verify release availability. (Refs. 1–4) Research includes indexed TDN evidence; no complete specific page was recovered.

02 · SYNTAX

Syntax

User Function F460CANC()

Parameters

Entry point context
UnconfirmedContext to confirm

The complete technical contract remains unconfirmed. Do not assume types, PARAMIXB positions or aliases beyond the evidence described.

Return value

Result replaces nOpct; the copy compares it with numeric 1. Other options are not detailed.

03 · PRACTICAL EXAMPLE

Observed call and context

// Analysis of a legacy caller published on GitHub (ref. 3); not a hook implementation.
// Begin Transaction
// If ExistBlock("F460CANC")
//     nOpct := ExecBlock("F460CANC",.F.,.F.,{nOpct})
// EndIf
// If nOpct == 1 .Or. lOpcAuto2
//     // ...
Expected result

The record shows arguments and immediate return use where present. It omits the full caller body and does not establish commit timing.

BEST PRACTICES
  • The GitHub copy does not identify a validated release and is not an official distribution. Check the caller in the target environment; this example analyzes legacy flow rather than providing a deployable function.
  • A call without a fourth argument does not document a PARAMIXB layout. Preserve caller identifiers and do not invent fields or positions.
  • Test plan: compare standard and customized flows, exercise success, rejection and repetition, and inspect balances, movements and accounting as applicable.
  • Under review: example not compiled or run in Protheus. Verify aliases, locks, transaction position and compatibility in the target release and patch.

Related content

REFERENCES
  1. TOTVS. Pontos de Entrada - Financeiro - P12. TDN. Accessed on 2026-10-24.
  2. EURAI. Pontos de Entrada P12.2210 - Parte 2. Universo do Desenvolvedor, 2023. Accessed on 2026-10-24.
  3. cmgalves/advpl. Cópia pública de fina460.prw. GitHub, commit f0f4a0ca2390dc41f7ab9e9a412e3b91350ccb76. Contexto legado sem release validado; não é fonte oficial de distribuição.
  4. TOTVS. Pontos de entrada legado na FINA460. Relação nominal de retirada; não generalizar para todos os F460.
Status
Under review
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