← AdvPL Guide
PROTHEUS · MATA261 · EXECBLOCK · MSEXECAUTO

MATA261 — Entry Point map

Visual map of MATA261 Entry Points, highlighting MA261LIN and the automatic execution path.

The goal is to show where each Entry Point sits in the Multiple Transfer flow. The diagram separates interactive and automatic entry paths and places the PEs in their documented functional regions.

Map prepared from the flow analyzed using the available official documentation. PE positions and behavior may vary across releases, patches and customizations.
Page created on Last reviewed on

Execution map

INTERFACEMATA261 MSExecAutoaAutoItens PREPARAÇÃOacesso / memos / browse GRID / DADOSheader / carga / botões VALIDAÇÃO POR ITEM ↻A261LinOk / validações GRAVAÇÃO / TRANSAÇÃOloop dos movimentos PÓStransação MT261ACSMT261MEMM261FILBMA261CPOMA261INM261BCHOIMT261CABMTA261DOCA261TOKMA261LINA261PRODMT261UMA261LOCMT260NLOTMA260NFQM261D3OMA261D3MT261TDOKMA261TRD3MT261TRVMA261EXCMA261ESTMTA261CANMTA261MNU

MA261LIN in practice

MA261LIN — validação por linha

O fluxo documentado posiciona MA261LIN na validação de cada item da transferência. Por isso, o mapa o classifica como um PE por linha/item e o relaciona tanto ao caminho interativo quanto ao fluxo automático quando a validação de linha é executada.

User Function MA261LIN()
    Local lRet   := .T.
    Local nLinha := PARAMIXB[1]

    // Executado na validação da linha da MATA261.
    // Mantenha aqui apenas regras necessárias para aceitar ou rejeitar o item.

Return lRet

Entry Points identified

MT261ACS

Where it runs
Entrada da MATA261
Role in the flow
Controle de acesso
Documented behavior
Pode interromper a rotina quando retorna falso.

MT261MEM

Where it runs
Inicialização
Role in the flow
Campos memo adicionais
Documented behavior
Retorno array é incorporado à lista de memos da rotina.

M261FILB

Where it runs
Browse
Role in the flow
Filtro do browse
Documented behavior
Retorno caractere é usado como filtro da consulta.

MA261CPO

Where it runs
Montagem do grid
Role in the flow
Campos adicionais
Documented behavior
Inclui campos no aHeader em visualização, inclusão e estorno.

MA261IN

Where it runs
Carga do grid
Role in the flow
Valores de campos de usuário
Documented behavior
Executado durante o preenchimento das linhas do grid.

M261BCHOI

Where it runs
Interface
Role in the flow
Botões adicionais
Documented behavior
Retorna array de botões apresentados na tela.

MT261CAB

Where it runs
Interface
Role in the flow
Objeto da janela
Documented behavior
Recebe painel, posição e opção da operação.

MTA261DOC

Where it runs
Inclusão
Role in the flow
Edição do documento
Documented behavior
Controla se o documento pode ser editado.

A261TOK

Where it runs
Validação final
Role in the flow
TudoOk
Documented behavior
Retorno lógico participa da validação final antes da gravação.

MA261LIN

Where it runs
Validação de linha
Role in the flow
Transferência por item
Documented behavior
Chamado no fim de A261LinOk, recebe nLinha e só executa se as validações anteriores mantiverem lRet verdadeiro.

A261PROD

Where it runs
Validação de produto
Role in the flow
Produto origem/destino
Documented behavior
Chamado em A261VldCod após validação do código do produto.

MT261UM

Where it runs
Validação de quantidade
Role in the flow
Unidades de medida
Documented behavior
Pode substituir o resultado lógico da validação das quantidades.

A261LOC

Where it runs
Validação de armazém/local
Role in the flow
Origem ou destino
Documented behavior
Chamado na validação do local para produto de origem ou destino.

MT260NLOT

Where it runs
Loop de gravação
Role in the flow
Tratamento de lote
Documented behavior
Executado por item durante a gravação quando há validação de lote.

MA260NFQ

Where it runs
Loop de gravação
Role in the flow
Tratamento CQ
Documented behavior
PE compartilhado usado na lógica de controle de qualidade.

M261D3O

Where it runs
Loop de gravação
Role in the flow
Antes de processamento complementar do SD3
Documented behavior
Chamado durante a gravação para a linha corrente.

MA261D3

Where it runs
Loop de gravação
Role in the flow
Após gravação do SD3
Documented behavior
Chamado por item depois da gravação do movimento SD3.

MT261TDOK

Where it runs
Pós-gravação
Role in the flow
Após transferência
Documented behavior
Chamado depois da gravação da transferência.

MA261TRD3

Where it runs
Pós-transação de inclusão
Role in the flow
Registros SD3 gravados
Documented behavior
Recebe aRecSD3 após a transação de inclusão.

MT261TRV

Where it runs
Estorno / transação
Role in the flow
Controle de lock
Documented behavior
Recebe arrays de locks de SB2 e SD3 durante o estorno.

MA261EXC

Where it runs
Estorno
Role in the flow
Após gravação do estorno
Documented behavior
Chamado depois da gravação do movimento de estorno.

MA261EST

Where it runs
Estorno
Role in the flow
Validação de estorno
Documented behavior
Ponto de Entrada associado às validações ligadas ao estorno.

MTA261CAN

Where it runs
Saída sem gravar
Role in the flow
Cancelamento
Documented behavior
Recebe nOpcx quando o fluxo encerra sem gravar.

MTA261MNU

Where it runs
MenuDef
Role in the flow
Menu da rotina
Documented behavior
Permite alterar o array aRotina na montagem do menu.

References

TOTVS TDN — MA261LIN

TOTVS TDN — MsExecAuto / MATA261

Representação didática do fluxo documentado. Confirme parâmetros e comportamento conforme a versão do Protheus em uso.

0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha