Páginas filhas
  • DT A251GRSN4 Handling of Saved SN4

01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Microsiga Protheus Line

Industry:

Services

Module:

Fixed Assets - SIGAATF

Function:

Acquisition by Transfer - ATFA251

Country:

Brazil

Ticket:

Internal

Requirement/Story/Issue:

DSERCTR1-32177


02. STATUS/REQUISITION

This technical document clarifies the purpose of entry point A251GRSN4.


03. SOLUTION

The Entry Point aims to allow the handling of results saved after the activation of saving to table SN4, following these criteria:

Important

It is observed that the use of the PE and its impacts on the system are the responsibility of the customer.

Parameter

Use 

nOpca

Option selected

SN4->N4_TIPO

Type of asset in SN4

Type for control 1 or 2

You may use it to book the number of times a given asset type has entered the EP, considering N4_OCORR as an example and the value of this parameter:

It returns 1 or 2 and the segments of occurrence of which types are used before calling the EP.


With Value 1:
15, 07, 08, 01.

With Value 2:
16, 07, 08, 06, 16, 20


SN4->N4_OCORR

Occurrence SN4

SN4->N4_TIPOCNT

Account Type in SN4



Handling of EP in the System
IF lA251GRSN4
	ExecBlock("A251GRSN4",.F.,.F.,{nOpca,SN4->N4_TIPO,"1",SN4->N4_OCORR, SN4->N4_TIPOCNT})
ENDIF


//Or 

IF lA251GRSN4
	ExecBlock("A251GRSN4",.F.,.F.,{nOpca,SN4->N4_TIPO,"2",SN4->N4_OCORR, SN4->N4_TIPOCNT})
ENDIF

EP Example
Static Function A251GRSN4()

Local cParam1   := PARAMIXB[1]
Local cParam2   := PARAMIXB[2]
Local cParam3   := PARAMIXB[3]
Local cParam4   := PARAMIXB[4]
Local cParam5   := PARAMIXB[5]


If cParam2 == "01"
    //Perform desired operation
Endif

Return



04. OTHER INFORMATION

Not Applicable.


05. RELATED SUBJECTS

  • Not Applicable.