01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Industry:

Services

Module:

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

Function:

ATFA251

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46030

02. DESCRIPTION

You can use entry point A251GRN3 to execute custom logic while saving aCols array data pertaining to fixed assets. It is called for each item before it finishes saving asset records in table SN4, allowing data adjustments or the application of specific business rules as needed.

03. OTHER INFORMATION


Handling of EP in the system
If ExistBlock("A251GRN3")
	Execblock("A251GRN3",.F.,.F.,{Acols[nX],nX})
Endif
EP Example
User Function A251GRN3()

    Local aCols := PARAMIXB[1]
    Local nX := PARAMIXB[2]

    // Adjustment example: Check whether item type is "01" and adjust the description.
    If aCols[nX][3] == "01" // Supposing field 3 is the item type.
        aCols[nX][5] := "Asset updated via A251GRN3" // Adjustment to item description.
    EndIf

Return

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.