PARAMIXB[1] / aChaveLbnThe call wraps aChaveLbn in an outer array; its type and internal structure are unconfirmed. (Ref. 2)
AdvPL GuideUser Function F290VAL()Allows intervention when selecting records in FINA290 payable aggregation.
The specific page instructs using TRBSE2 to identify the selected record and shows examples locating SE2 and changing E2_HIST. Their headers mention 12.1.2310 and 2023-11-14, which does not certify every release. (TOTVS, ref. 1) The community listing passes {aChaveLbn} in FA290BAVAL. (Ref. 2) The support article describes a marked-title array return, whereas the specific examples end without an array and the caller excerpt does not assign the result. This disagreement remains explicit; an array contract is not presented as confirmed. (Ref. 3)
User Function F290VAL()PARAMIXB[1] / aChaveLbnThe call wraps aChaveLbn in an outer array; its type and internal structure are unconfirmed. (Ref. 2)
Inconclusive across sources: specific examples use Return without a value; the grouped support article mentions a marked-title array. The editorial diagnostic uses NIL without promising selection or amount changes. (Refs. 1–3)
#Include "Protheus.ch"
User Function F290VAL()
// Editorial example based on the TDN alias and field (ref. 1).
// Does not repeat a partial-key DbSeek or change E2_HIST.
If Select("TRBSE2") > 0
If !TRBSE2->(Eof())
// Does not log payable number, supplier or amount.
ConOut("F290VAL: payable type = " + TRBSE2->E2_TIPO)
EndIf
EndIf
Return NilProposes observing E2_TIPO in the selected temporary record. Does not change amounts, history or marks. Example not compiled or run in Protheus.
© 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.