Páginas filhas
  • CTB0084_ Filling in the Field_CT2_KEY

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Filling the Field CT2_KEY

Produto

Product:

Microsiga Protheus

Ocorrência

Occurrence:

Como deve ser preenchido o campo

How should the CT2_KEY

(responsável pela origem do registro na contabilidade gerencial)?

Passo a passo:

Este campo deve ser configurado por meio da rotina (CTBA090 – Relacionamentos) em: Contabilidade Gerencial/ Atualizações/ Cadastros/ Relacionamentos.

field (responsible for the origin of the record in managerial accounting) be filled?)

Step by step:

This field must be configured through the  in: (CTBA090 – Relationships)  routine in: Managerial Accounting / Updates / Registrations / Relationships.

From this routine, it is possible to specify the ‘search key’ that the respective LP will use to record the information.

Pay attention to the fields:


CTL_KEY
: Specifies the search key in the index of the main table involved.

Example

A partir dessa rotina é possível informar a ‘chave de busca’ que o respectivo LP fará para gravar as informações.

Atente-se para os campos:

CTL_KEY: Informa a chave de busca no Índice da tabela principal envolvida.Exemplo

SE5: E5_FILIAL+E5_TIPODOC+E5_PREFIXO+E5_NUMERO+E5_PARCELA+E5_TIPO+DTOS(E5_DATA)+E5_CLIFOR+E5_LOJA+E5_SEQ 

 


CTL_ORDER:

Informa a ordem da chave de busca conforme o ‘Índice da respectiva tabela’

Exemplo SE5: Ordem: 2

Specifies the order of the search key according to the 'Index of the respective table'.

Example SE5: Order: 2

Remarks:

To find out the key and its respective order for a given table, simply access the routine: Database (via configuration), option: Indexes

Observações:Para saber qual é a chave e a respectiva ordem de uma determinada tabela, basta acessar a rotina: Base de Dados (via configurador), opção: Índices