Histórico da Página
...
Persistente:
Run enp/enapi205.p persistente persistent set h-enapi205 (input table tt-param,
input table tt-digita,
Output table tt-estrutura).
Detalhe da execução dos modos, serão descritos abaixo.
Existem 3 formas para realizar a consulta de estruturas.
...
Nos atributos das tabelas temporárias de entrada e saída:
Parâmetros de Entrada
TT-PARAM – Temp-table utilizada para seleção e filtro | |||
Atributo | Tipo | Formato |
|
tipo | Integer |
|
|
nível | Integer |
| INITIAL 19 |
quant-itens | Decimal |
| INITIAL 1 |
validade | Date | 99/99/9999 | INITIAL 12/31/9999 |
item-compon | Logical | Sim/Não |
|
lista | Logical | Sim/Não |
|
item-folha | Logical | Sim/Não |
|
ge-codigo-ini | Integer | >9 |
|
ge-codigo-fim | Integer | >9 |
|
fm-codigo-ini | Char | x(8) |
|
fm-codigo-fim | Char | x(8) |
|
it-codigo-ini | Char | x(16) |
|
it-codigo-fim | Char | x(16) |
|
descricao-ini | Char | x(60) |
|
descricao-fim | Char | x(60) |
|
ref-ini | Char | x(8) |
|
ref-fim | Char | x(8) |
|
ativo | Logical |
|
|
ordem-aut | Logical |
|
|
tod-ordens | Logical |
|
|
obsol-tot | Logical |
|
|
lista-compon | Logical |
|
|
desc-item | Logical | Sim/Não |
|
parâmetro | Logical |
|
|
cod-unid-negoc-ini | Char | x(3) |
|
cod-unid-negoc-fim | Char | x(3) |
|
comprado | Logical |
|
|
fabricado | Logical |
|
|
processo | Char | x(18) |
|
cod-estabel | Char | x(5) |
|
nr-linha | Integer | >>9 |
|
cod-unid-negoc | Char | x(3) |
|
c-processo | Char | x(18) |
|
c-cod-estabel | Char | x(5) |
|
i-nr-linha | Integer | >>9 |
|
c-cod-unid-negoc | Char | x(3) |
|
TT-DIGITA – Temp-table que receberá os itens que serão consultados | ||||
Atributo | Tipo | Formato | Evolução | |
it-codigo | Char | x(16) |
| |
descricao | Char | x(60) |
| |
un | Char | x(2) |
| |
cod-refer | Char | x(8) |
| |
data-corte | Date | 99/99/9999 |
| |
Parâmetros de Saída
...
TT-Estrutura – Temp-table gerada pela api | |||
Atributo | Tipo | Formato | Evolução |
i-sequen | Int |
|
|
it-codigo | Char | “x(16)” |
|
es-codigo | Char | “x(16)” |
|
sequencia | Int | >>>>9 |
|
row-estrutura | Rowid |
|
|
nivel | Int | >>9 |
|
nivel-inv | Int | >>9 |
|
c-nivel | Char | “x(20)” |
|
chave | Char | “x(40)” |
|
chave-pai | Char | “x(40)” |
|
quant-usada | Decimal | ->>>,>>>,>>9.9999999999 |
|
quant-liquid | Decimal | ->>>,>>>,>>9.9999999999 |
|
quant-sumariz | Decimal | ->>>,>>>,>>9.9999999999 |
|
quant-liq-sum | Decimal | ->>>,>>>,>>9.9999999999 |
|
fator-perda | Decimal | >9.99 |
|
cod-lista-compon | Char | “x(16)” |
|
cod-ref-it | Char | “x(10)” |
|
cod-ref-es | Char | “x(10)” |
|
fantasma | Char |
|
|
data-valid | Char |
|
|
alternativo | Char |
|
|
...