on 07-22-2011 6:54 PM
Prezados, boa tarde.
Estou com um problema na Interface NFESC. Quando executo a mesma para NF-e's emitidas funciona normalmente, porém quando executo para NF-e's Canceladas ocorre erro na transação SXI_MONITOR:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Inbound Proxy
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIProxy</SAP:Category>
<SAP:Code area="ABAP">PARSE_APPLICATION_DATA</SAP:Code>
<SAP:P1>Request Message</SAP:P1>
<SAP:P2>CX_ST_DESERIALIZATION_ERROR</SAP:P2>
<SAP:P3>/1SAI/TXS00F819C43B0D1052D908 Line 996</SAP:P3>
<SAP:P4>Ocorreu um erro na deserialização em o programa ST /1SAI/TXS00F819C43B0D1052D908. Kernel ErrorId: UNCAUGHT_EXCEPTION (O valor 2011-07-07T20:23:23 não é uma data válida com hora de acordo com o formato XML para ABAP Kernel ErrorId: CONVT_NO_DATETIME) XML Bytepos.: 1241 XML Path: ns1:nfeConsultaNFResponse2(1)ns1:nfeConsultaNF2Result(1)ns2:retConsSitNFe(1)ns2:retCancNFe(8)ns2:infCanc(1)ns2:dhRecbto(7)</SAP:P4>
<SAP:AdditionalText></SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
<SAP:Stack>Error during XML => ABAP conversion: Request Message; CX_ST_DESERIALIZATION_ERROR in /1SAI/TXS00F819C43B0D1052D908 Line 996 Ocorreu um erro na deserialização em o programa ST /1SAI/TXS00F819C43B0D1052D908. Kernel ErrorId: UNCAUGHT_EXCEPTION (O valor 2011-07-07T20:23:23 não é uma data válida com hora de acordo com o formato XML para ABAP Kernel ErrorId: CONVT_NO_DATETIME) XML B Ocorreu um erro na deserialização em o programa ST /1SAI/TXS00F819C43B0D1052D908. O valor 2011-07-07T20:23:23 não é uma data válida com hora de acordo com o formato XML para ABAP</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Alguém já teve este problema?
Abs.
Pedro Baroni
Bom dia Pedro,
Este erro aconteceu na camada ABAP Proxy, por favor poste aqui o payload com a resposta da Sefaz.
Atenciosamente, Fernando Da Ró
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oi Fernando,
Segue Response do SEFAZ:
<?xml version="1.0" encoding="utf-8"?>
<ns1:nfeConsultaNFResponse2 xmlns:ns1="http://sap.com/xi/NFE/006">
<ns1:nfeConsultaNF2Result>
<ns2:retConsSitNFe versao="2.00" xmlns:ns2="http://www.portalfiscal.inf.br/nfe">
<ns2:tpAmb>2</ns2:tpAmb>
<ns2:verAplic>SVRS20110429163610</ns2:verAplic>
<ns2:cStat>101</ns2:cStat>
<ns2:xMotivo>Cancelamento de NF-e homologado</ns2:xMotivo>
<ns2:cUF>42</ns2:cUF>
<ns2:chNFe>99999999999999999999999999999999999999999999</ns2:chNFe>
<ns2:protNFe versao="2.00">
<ns2:infProt Id="ID999999999999999">
<ns2:tpAmb>2</ns2:tpAmb>
<ns2:verAplic>SVRS20110701203917</ns2:verAplic>
<ns2:chNFe>99999999999999999999999999999999999999999999</ns2:chNFe>
<ns2:dhRecbto>2011-07-07T20:15:23</ns2:dhRecbto>
<ns2:nProt>999999999999999</ns2:nProt>
<ns2:digVal>xxxxxxxxxxxxxxxxxxxxxxx</ns2:digVal>
<ns2:cStat>100</ns2:cStat>
<ns2:xMotivo>Autorizado o uso da NF-e</ns2:xMotivo>
</ns2:infProt>
</ns2:protNFe>
<ns2:retCancNFe versao="2.00">
<ns2:infCanc Id="ID999999999999999">
<ns2:tpAmb>2</ns2:tpAmb>
<ns2:verAplic>SVRS20100210111705</ns2:verAplic>
<ns2:cStat>101</ns2:cStat>
<ns2:xMotivo>Cancelamento de NF-e homologado</ns2:xMotivo>
<ns2:cUF>42</ns2:cUF>
<ns2:chNFe>99999999999999999999999999999999999999999999</ns2:chNFe>
<ns2:dhRecbto>2011-07-07T20:23:23</ns2:dhRecbto>
<ns2:nProt>999999999999999</ns2:nProt>
</ns2:infCanc>
</ns2:retCancNFe>
</ns2:retConsSitNFe>
</ns1:nfeConsultaNF2Result>
<ns1:type>2</ns1:type>
<ns1:versNum>001</ns1:versNum>
<ns1:mode>I</ns1:mode>
</ns1:nfeConsultaNFResponse2>
Abs.
Pedro Baroni
Oi Fernando,
Conforme você comentou a respeito do ABAP Proxy, dei uma olhada e acredito que possa ter um problema nele mesmo:
O campo "dhRecbto" da estrutura "retCancNFe" está com o tipo XSDDATETIME_Z ao invés de STRING, problema semelhante ao da SAP Note 1527893 - Adjust Service Status Check - Field dhRetorno.
Conferi o ambiente PRD (que está no SP 18) e está diferente (STRING).
Vou providenciar o chamado.
Muito Obrigado.
Pedro Baroni
Bom dia Pedro,
SAP Note 1614922 NFe Status Check for cancelled NF-es - Field dhRecbto liberada corrigindo esta issue.
**********************************************************************
@Todos,
A atenção de vocês é requerida aqui, para correto funcionamento do SP19,
esta nota deve ser aplicada manualmente.
**********************************************************************
Atenciosamente, Fernando Da Ró
User | Count |
---|---|
13 | |
2 | |
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.