PARAMIXB[1]Titles selected for reversal/deletion. (Ref. 1)
AdvPL GuideUser Function F330EXCOMP()Validates deletion or reversal of receivable compensation.
TDN documents PARAMIXB[1] as titles, [2] as SE5 records and [3] as operation: 5 for reversal and 4 for deletion. .T. permits the operation and .F. aborts it. The page lists 12 positions per title, including document, E5_SEQ, net amount, compensated amount and branch. This differs from the five F330ESE5 values. (Ref. 1) The community call confirms three arguments. (Ref. 2)
User Function F330EXCOMP()PARAMIXB[1]Titles selected for reversal/deletion. (Ref. 1)
PARAMIXB[2]Records containing SE5 RecNo values linked to compensation. (Ref. 1)
PARAMIXB[3]Operation: 5 reversal; 4 deletion. (Ref. 1)
Logical: .T. permits deletion/reversal; .F. aborts the operation and leaves records intact, as documented.
#Include "Protheus.ch"
User Function F330EXCOMP()
// Adapted from the TOTVS example (ref. 1); interactive confirmation only.
Local nOperation := PARAMIXB[3]
Local lAllow := .F.
If Len(PARAMIXB[1]) > 0 .And. Len(PARAMIXB[2]) > 0
If nOperation == 5
lAllow := MsgYesNo("Confirm compensation reversal?")
ElseIf nOperation == 4
lAllow := MsgYesNo("Confirm compensation deletion?")
EndIf
EndIf
Return lAllowTeaching proposal with behavior described in comments. Verify the context before compiling in a test environment. Under review: example not compiled or run in Protheus. Verify aliases, locks, transaction position and compatibility in the target release and patch.
// P12.2210 caller excerpt (EURAI, ref. 2); not an entry point implementation.
// FINA330.PRX - FA330DESC() -> LF330EXCLUI := (EXECBLOCK( "F330EXCOMP", .F., .F.,{ATITULOS,AREGISTROS,NOPC}))The record shows arguments and immediate return use where present. It omits the full caller body and does not establish commit timing.
© 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.