Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTUnder review

FA200FIL

User Function FA200FIL()

Replaces lookup and positioning of the return-file title in SE1.

FA200FILFINA200
01 · OVERVIEW

Overview

The historical Protheus 10/11 page documents replacement of standard IDCNAB/key lookup and species validation in table 17. Its note requires lHelp=.F. when title and species are found, although the variables table marks modification as disallowed: inspect the release caller. The GitHub example uses indexes 30/31, adapts a six-position invoice key to nine and changes controls and MV_PAR11; those indexes and lengths are not universal. (Refs. 1–3)

02 · SYNTAX

Syntax

User Function FA200FIL()

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

The operational requirement is to position the SE1 record. URET/any does not specify a useful return type; do not replace positioning with Return Recno().

03 · PRACTICAL EXAMPLE

Observed call and context

// P12.2210 caller excerpt (EURAI, ref. 2); not an entry point implementation.
// FINA200.PRX - FA200GER() -> EXECBLOCK("FA200FIL", .F., .F., AVALORES)
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
  • P12.2210 passes aValores directly, unlike {aValores} in FA200POS. Preserve auxiliary workareas without undoing the required SE1 positioning. Verify indexes, branch, species and accounting effects; do not copy the entire source into arbitrary installations.
  • 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. FA200FIL - Substitui pesquisa. 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. DanielPitthan/Exemplos-Protheus-para-IA. Protheus/Fontes/uni_repo/Financeiro/FA200FIL.PRW. GitHub, commit 2e916160c23d301a60c3ed1ab5b31de2e0d07dc2. Fonte completo analisado, sem reprodução integral. Accessed on 2026-10-24.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR

Was this content helpful?

👍 Like 0👎 Dislike 0

Sign in to rate this article.

0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha