01. GENERAL DATA

Product:

Product Line:

Protheus Line

Segment:

Technology

Module:

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

Function:

CTBA105

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

The entry point CTB105OUTM is triggered at the end of the validation process for the add of an accounting document, covering both documents entered manually and those generated by the integration booking process.
 This entry point allows for the execution of additional logic that must occur after the final document validation, offering flexibility to validate supplementary information in accordance with company requirements.

The entry point will only be executed if the standard validations of the CT105TOK() function are met, including the validation of the document lines.

Relevant Characteristics:


  1. Warning messages will not be displayed if the entry point returns a logical .F. (False) value.
    1. Message handling must be performed by the entry point itself, using the HELP() function.
    2. The use of the HELP() function for warning messages is recommended due to the possibility of the CTBA102() function being executed via MsExecAuto().


  1. A logical return type is mandatory because the routine does not have a consistency check for the returned variable type.


  1. The use of the CTB105OUTM entry point in the integration entries process is subject to the following complementary parameter settings:


  1. If the Show posting parameter in the entries routine is set to “S” (Yes), the system will block the accounting document when the user attempts to confirm the screen.


  1. If the Show Posting parameter in the entries routine is set to “N” (No) and we have the system parameters MV_CT105MS defined as .T. (True) and MV_ALTLCPO defined as “N” (No), the accounting document will be recorded but as a pre-entries, provided that the system parameter MV_PRELAN is defined as “D” (inconsistent document).

03. OTHER INFORMATION


lRet := ExecBlock("CTB105OUTM",.F.,.F.,{dDataLanc,cLote,cSubLote,cDoc})
User Function CTB105OUTM()

	Local dDataLanc := PARAMIXB[1]
	Local cLote     := PARAMIXB[2]
	Local cSubLote  := PARAMIXB[3]
	Local cDoc      := PARAMIXB[4]
	Local lRet      := .F.
	Local cMensagem := ""

	If dDataLanc != dDatabase   
		lRet := .F.   
		cMensagem := "An accounting document cannot be included   "+CRLF   
		cMensagem += "with a date different "+CRLF   
		cMensagem += "from the system database date."   
		Help("CTBA102",1,"HELP","CTB_INCL",cMensagem,1,0)
	EndIf

Return lRet


  • It is noteworthy that the customer is responsible for EP utilization and its impacts on the system.
  • 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