01. GENERAL DATA

Product:

Product Line:

Protheus Line

Segment:

Services

Module:

TOTVS Backoffice (Protheus Line) - Managerial Accounting (SIGAFIS)

Function:

CTBA280

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46748

02. DESCRIPTION

The entry point CT280FILP is used to apply a filter and skip during processing in the Off-Line Apportionment routine. It allows the customer to customize the processing flow by defining specific criteria to filter the records that must be processed and performing the 'skip' of those that do not meet the established conditions.

With CT280FILP, it is possible to optimize the apportionment process, ensuring that only relevant records are considered, resulting in a more efficient execution that aligns with business needs, and guaranteeing that the allocation criteria are applied in a consistent and accurate manner.

03. OTHER INFORMATION


If !ExecBlock("CT280FILP",.f.,.f.,{"CQ3"})
	dbSelectArea("CQ3")
	dbSkip()
	Loop
EndIf

If !ExecBlock("CT280FILP",.f.,.f.,{"CQ5"})
	dbSelectArea("CQ5")
	dbSkip()
	Loop
EndIf
									
If !ExecBlock("CT280FILP",.f.,.f.,{"CQ7"})
	dbSelectArea("CQ7")
	dbSkip()
	Loop
EndIf
#INCLUDE "PROTHEUS.ch"
#INCLUDE "rwmake.ch"

User Function CT280FILP

	Local lRet := .F.
	MsgAlert("ENTRY POINT CALL: CT280FILP")
	
Return lRet

For the correct execution of this Entry Point (PE), it is important to note that there are some validations that are executed or deviate from the flow where it is called in the system.

Therefore, it is important to pay attention to the following points:

  • The CTQ_CTPAR field must be empty.
  • At least one of the entity fields needs to be filled (CTQ_CCPAR, CTQ_ITPAR, and CTQ_CLPAR), according to the need for using Cost Center, Item, and/or Class.
  • The balance must be filled in at least one of the tables CQ3, CQ5, or CQ7, depending on the respective configured apportionment origin.
  • It should be noted that the use of the Entry Point (PE) and its impacts on the system are the customer's responsibility.
  • The examples used in this documentation are for demonstration purposes only; each customer must determine the behavior they wish to implement according to the scope of the entry point.

04. RELATED ISSUES