on 03-18-2013 7:13 PM
Boa tarde pessoal,
Preciso da string do XML de CTe Aprovado pela SEFAZ e não estou encontrando.
Saberiam me dizer em qual tabela encontrá-lo ?
Abraços e obrigada,
Luciana
Bom dia Luciana,
A resposta já foi data, fica na tabela /xnfe/outctexml.
Como o XML é armazenado binário você verá o conteúdo pela SE16 (NF-e é a mesma coisa). Uma diferença é que você precisa primeiro pegar o GUID na tabela header (/xnfe/outctehd) entrando pelo docnum ou chave de acesso.
Um outro filtro é o TYPE (1=NFe, 2=Cancelamento, 3=Inutilização).
O campo é o /xnfe/outctexml-XMLSTRING
O standard faz esta leitura através da função /XNFE/OUTCTE_READ_CTE_WO_LOCK.
Exemplo: Na classe /xnfe/cl_cte_out, method /XNFE/IF_DOCUMENT~GET_XML tem um exemplo dele manipulando.
Com o XML em XString em mãos, não fica nada diferente do que você já faz para NF-e.
Atenciosamente, Fernando Da Rós
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oi Luciana boa tarde,
Você chegou a ver essas duas tabelas ?
/xnfe/event_hist e /XNFE/EVENT_XML ?
/xnfe/event_hist possue uma coluna guid, e na tabela /xnfe/event_xml possue o guid linkado a uma string de XML.
Atenciosamente,
Ricardo Viana.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.