01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Industry:

Services

Module:

TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF)

Function:

ATFA010/ATFA012

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46748

02. DESCRIPTION

Entry point AF10DESC is used during the recording of an asset to automatically load the extended description in routine ATFA010/ATFA012 (Asset Register). It allows the customer to make sure the asset's extended description is automatically filled in, avoiding the need to manually enter it and ensuring data consistency.

With AF10DESC, you can make sure the asset's description is appropriate and complete, contributing to the standardization and quality of records in the asset register, making it easier to manage and search data later.

03. OTHER INFORMATION

Handling of EP in the system
//ATFA010
If ExistBlock("AF10DESC")
      cTexto := ExecBlock("AF10DESC",.F.,.F.)
Endif
//ATFA012
If ExistBlock("AF10DESC")
      cDesc := ExecBlock("AF10DESC",.F.,.F., {cDesc})
Endif
EP Example
User Function AF10DESC()
    Local cDesc := ParamIXB[1]

    If Empty(cDesc)
        cDesc := "New default text"
    Else
        cDesc := StrTran(cDesc, "o", "z")
    EndIf
Return cDesc

Important

  • 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 check what behavior they want to perform according to the scope of the entry point.

04. RELATED SUBJECTS

  • Not Applicable.