Product: | TOTVS Backoffice |
Product Line: | Protheus Line |
Industry: | Services |
Module: | TOTVS Backoffice (Protheus Line) - Managerial Accounting (SIGAFIS) |
Function: | CTBS011 |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46748 |
You can use entry point ECDCHVCAB to handle the key during the process of exporting the CT6 table to the ECD (Digital Bookkeeping). It offers the customer the option of customizing the export key definition, ensuring that records are prepared in accordance with the specific needs of each accounting operation.
With ECDCHVCAB, you can adjust the key used in exports, making sure the data structure exported is compliant with business rules as well as legal requirements, providing greater flexibility and control on the data submitted to ECD.
Handling of EP in the system
If ExistBlock( "ECDCHVCAB" )
cChave := ExecBlock( "ECDCHVCAB", .F., .F.)
EndIf
EP Example
#INCLUDE "PROTHEUS.ch"
#INCLUDE "rwmake.ch"
User Function ECDCHVCAB()
Local cAliasCTC := Alias()
Local cChavet := " "
Local cLote := (cAliasCTC)->CTC_LOTE
Local cFilMov := (cAliasCTC)→CTC_FILIAL
If cFilMov == '01'
cChavet:= cLote
EndIf
Return cChavet
Important !!