Advertisement
jhonatanwestphal

DAFT3020 - First Foreach of cria-tt-filha

May 21st, 2015
3,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  da-ext-ord-prod:
  2.         FOR EACH da-ext-ord-prod USE-INDEX ch-plano NO-LOCK
  3.            WHERE da-ext-ord-prod.cod-projeto   = da-projeto.cod-projeto
  4.              AND (    da-ext-ord-prod.nr-ord-prod  < 1000000
  5.                   OR (da-ext-ord-prod.nr-ord-prod >= param-cp.prim-ord-aut-cp AND
  6.                       da-ext-ord-prod.nr-ord-prod <= param-cp.ult-ord-aut-cp) )
  7.              AND da-ext-ord-prod.it-codigo     = da-plano-montagem.it-codigo
  8.              AND da-ext-ord-prod.seq-etapa     = da-plano-montagem.seq-etapa
  9.              AND da-ext-ord-prod.nr-pedcli     = da-plano-montagem.nr-pedcli
  10.              AND da-ext-ord-prod.nr-sequencia  = da-plano-montagem.nr-sequencia:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement