F241MPCC
User Function F241MPCC() as logicalControls cancellation confirmation for a payment batch with withholding in another settlement.
Overview
In FINA241, controls the standard cancellation message when the payable has taxes withheld in another settlement. No parameters; logical return. (TOTVS, 2025, ref. 1) GitHub searches found no implementation. Below is a commented adaptation of the official example.
Syntax
User Function F241MPCC() as logicalReturn value
Logical: indicates whether the standard confirmation is displayed. (TOTVS, 2025, ref. 1)
Adapted and commented official example
#INCLUDE "TOTVS.CH"
// Adapted from TOTVS, F241MPCC, usage example (ref. 1).
// This question selects whether to display the standard confirmation.
User Function F241MPCC() as logical
Local lPERet := .T. as logical
lPERet := FWAlertYesNo("Display the message about tax withheld in another settlement?", "F241MPCC")
Return lPERetThe example opens its own question. The choice controls the standard message; it does not remove all dialogs.
- Do not treat the return as cancellation authorization: the documentation describes message control.
- Editorial test plan: test Yes and No, observing the example question and standard confirmation separately. Record the cancellation outcome too.
- Compare scenarios with and without withholding in another settlement without assuming this entry point runs in every case.
- Check release, patch and function availability before deployment. This research did not establish a minimum version.
- Do not add PARAMIXB access or direct table writes without a demonstrated need in the caller.
- Under review: code has not been compiled or run in Protheus; test environment behavior remains unverified.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.