on 06-09-2011 9:39 PM
Olá, boa tarde.
Vejam se podem me ajudar.
veja se é ambiente zuado ou se tem outra forma de encontrar esse valor
Quando vou na CA02/03 p/ um determinado grupo tarefa/material/centro eu tenho 3 sequencias 0,1 e 2
- Quando vou nas tabelas PLFL, PLAS e PLPO encontro as 3 sequencias com o mesmo grupo tarefa/material/centro que informei na CA
- Problema:
ex.: na CA, sequencia 0 tenho operação 0010 e sub-operação 0020 e na sequencia 1 tenho apenas operação 0010
quando vou nas tabelas PLFL,PLAS,PLPO ... está invertido na sequencia 0 tenho apenas operação 0010 e na sequencia 1 a operação 0010 e sub-operação 0020
Att,
Marcos Tavares
Bom dia Marcos,
O que é o conteúdo da tabela PLAS (colunas PLNFL e PLNKN) e da tabela PLPO (colunas PLNKN e VORNR)?
O conteúdo é nos seguintes termos?
PLAS PLNFL PLNKN
000000 00000001
000001 00000003
PLPO PLNKN VORNR
00000001 0010
00000002 0020
00000003 0010
Abs,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bom Dia, Thomas.
Consegui descobrir com a ajuda de um amigo. Segue a lógica.
Eu também pensei que poderia ser inconsistência dos dados, mas não.
Existem 3 tipos de sequência (PLFL-FLGAT):
0 Sequência base
1 Sequência paralela
2 Sequência alternativa
No nosso caso, existe 1 base e 2 paralelas.
Se tiver sub-oberações nas paralelas e os campos BEZFL BKNT BKNT2 estiverem preenchidos, vou relacionar da seguinte forma:
PLFL-BEZFL = PLAS-PLNFL
PLFL-BKNT1 = PLAS-PLNKN
PLFL-BKNT2 = PLAS-ZAEHL
Então o registro fica com a operação da sequência 0 (0010) e sub-operação (0020) da sequência 1.
Sequência 0
Oper. Sub-Oper.
0006
0008
0010
0010 0020
0012
0016
0900
Sequência 1
Oper.
0010
Sequência 2
Oper.
0010
Muito obrigado pela Ajuda Thomas,
Abs,
Edited by: Fernando Ros on Jun 16, 2011 3:32 PM - formatado para melhor visualização
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fala Thomas, então....
os VORNRs estão, mas ficou meio bagunçado como eu mandei:
PLPO
VORNR
0010
0900
0006
0008
0012
0016
0020
0010
0010
Mas a sub-operação é mostrado na sequência 1, como relacionar na sequência 0?
obrigado
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bom dia Marcos,
Obrigado ao Fernando pela formatação, agora vejo que os VORNRs não faltaram...
O problema é estranho. Não sei porquê a sub-operação é mostrado na sequência 1. Tanto quanto sei, a lógica é como descrevi. Talvez uma inconsistencia dos dados?
Sinto muito, que não pude ajudar.
Abs.
Thomas
Olá,
Segue os conteúdos:
PLFL
PLNTY PLNNR PLNAL PLNFL ZAEHL LOEKZ PARKZ FLGAT BEZFL BKNT1 BKNT2
N 104729 1 0 1 0
N 104729 1 1 4 1 0 1 1
N 104729 1 2 5 1 0 1 1
PLAS
PLNTY PLNNR PLNAL PLNFL PLNKN ZAEHL LOEKZ PARKZ
N 104729 1 0 1 1
N 104729 1 0 13 13
N 104729 1 0 14 14
N 104729 1 0 16 16
N 104729 1 0 18 18
N 104729 1 0 19 19
N 104729 1 1 23 22
N 104729 1 2 24 23
PLPO
PLNTY PLNNR PLNKN ZAEHL LOEKZ PARKZ VORNR
N 104729 1 1 10
N 104729 13 13 900
N 104729 14 14 6
N 104729 16 16 8
N 104729 18 18 12
N 104729 19 19 16
N 104729 22 22 20
N 104729 23 23 10
N 104729 24 24 10
Edited by: Fernando Ros on Jun 12, 2011 9:53 PM - formatado para melhor visualização
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bom dia Marcos,
faltam os VORNRs na resposta...tanto faz. Os seus sequências contêm:
Seq. 0: 6 operações, 1 sub-operação.
Seq. 1: 1 operação.
Seq. 2: 1 operação.
A lógica é do seguinte modo: PLAS-PLNKN aponta para PLPO-PLNKN. Um PLPO-PLNKN (22 no exemplo) que não é apontado é um sub-operação do predecessor.
Abs,
Thomas
Movendo para o fórum correto.
Abs,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.