UPDATE TIPOOPERAC
SET IDOPERDEVONF = 'S',
    IDNFORIGOBRI = 'S',
    IDUTLLISTORI = 'N'
WHERE IDENTRSAIDOP = 'S' AND
      CDTIPOOPER   = '06'
/

UPDATE TIPOOPERAC
SET IDOPERDEVONF = 'S',
    IDNFORIGOBRI = 'N',
    IDUTLLISTORI = 'N'
WHERE IDENTRSAIDOP = 'E' AND
      CDTIPOOPER   = '13'
/

UPDATE TIPOOPERAC
SET IDATUESTTPOP = 'N'
WHERE CDTIPOOPER IN ('05','11','12','13') AND
      IDENTRSAIDOP = 'S'
/

UPDATE TIPOOPERAC
SET IDATUESTTPOP = 'N'
WHERE CDTIPOOPER IN ('05','11','14','15') AND
      IDENTRSAIDOP = 'E'
/

COMMIT
/

