Breadcrumbs

Como consultar documentos que receberão rejeição de CSTAT 204?

Introdução

Como consultar documentos que receberão rejeição de CSTAT 204 em uma faixa de tempo, há alguma query que realize esta consulta?

Passo a passo

Segue Query que realiza esta consulta:

select distinct TMS.LOGDOCID, * from TBLOGDOCMESSAGE (nolock) AS TMS JOIN TBLOGDOCUMENT AS TL ON TMS.LOGDOCID = TL.LOGDOCID where TMS.MSGCODE = 204 and TMS.KIND = 8 AND substring(cast(TL.DOCUMENTKEY2 as varchar(max)),17,1) = 9 – 1 PARA NORMAL 9 PARA CONTINGÊNCIA, CASO QUEIRA CONSULTAR OS DOIS INSIRA O PARÂMETRO IN ()

Outras informações

Fonte: João Vitor Moretto de Azevedo