Skip to Content
0
May 06, 2010 at 01:26 PM

Problemas com assinatura digital parada ( status 2 ) - URGENTE

53 Views

Srs

Estou tendo um problema singular com a assinatura digital da minha Nfe

estamos usando o SAP PI 7.0 e estamos com o sp 13 no GRC.

O que esta ocorrendo é que a nota é enviada pelo WAS_ABAP para o assinador digital Java, o status da Nfe fica com status 2, o formato do payload que é enviado está correto e tudo mais, mas quando é processado o retorno do Java para o WAS_ABAP está dando erro de mapping referenciando que o campo NFEid não pode ser gerado porque não está preenchido, isso relamente ocorre porque como demonstrado no payload abaixo esse tag do xml que deveria estar presente realmetne está nulo. Notem que o xml com a assinatura digital está correto, tanto que já validei esse XML gerado com o sefaz do RS e está tudo ok.

Payload do erro de mapping:

<Trace level="1" type="T">
Interface Mapping http://sap.com/xi/NFE/005a SIGNN_SignNfe_TO_signIn_doc 
</Trace>
u2212
<Trace level="1" type="T">
RuntimeException during appliction Java mapping com/sap/xi/tf/_SIGN_signOut_doc_TO_SignedNFe_ 
</Trace>
u2212
<Trace level="1" type="T">
com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: *Cannot produce target element /ns2:SignedNFe/ns2:NFeID*. Queue does not have enougth values in context. Target xsd requires a value for this element but target field mapping does not produce one. XML instance is not invalid for source xsd, or the target field mapping does not fulfill the requirement of the target xsd.

	at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:428)
	at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142)
	at

Payload da msg enviada pelo Java para o WAS_ABAP

<

!-- Request Message Mapping -->
u2212
<rpl:signResponse>
u2212
<rpl:Response>
<pns:description>Successful XML Signature.</pns:description>
<pns:status>0</pns:status>
u2212
<pns:xml>
<NFe xmlns="http://www.portalfiscal.inf.br/nfe"><infNFe versao="1.10" Id="NFe35100503439316000334550010000000370640029338"><ide><cUF>35</cUF><cNF>064002933</cNF><natOp>Venda merc.adq.receb.de terceiros /</natOp><indPag>0</indPag><mod>55</mod><serie>1</serie><nNF>37</nNF><dEmi>2010-05-04</dEmi><tpNF>1</tpNF><cMunFG>3550308</cMunFG><tpImp>1</tpImp><tpEmis>1</tpEmis><cDV>8</cDV><tpAmb>2</tpAmb><finNFe>1</finNFe><procEmi>0</procEmi><verProc>6.0</verProc></ide><emit><CNPJ>03439316000334</CNPJ><xNome>Construdecor S/A - Ipiranga</xNome><enderEmit><xLgr>Rua dos Patriotas</xLgr><nro>1211</nro><xBairro>Ipiranga</xBairro><cMun>3550308</cMun><xMun>Sao Paulo</xMun><UF>SP</UF><CEP>04207040</CEP><xPais>Brasil</xPais><fone>1161652500</fone></enderEmit><IE>115347651112</IE></emit><dest><CPF>11661270875</CPF><xNome>ELIAS NASCIMEMTO DO SANTOS</xNome><enderDest><xLgr>MINISTRO CARLOS MAXIMILIANO</xLgr><nro>666</nro><xBairro>JARDIM MARINGA</xBairro><cMun>3550308</cMun><xMun>SAO PAULO</xMun><UF>SP</UF><CEP>03523010</CEP><xPais>Brasil</xPais><fone>1167835288</fone></enderDest><IE></IE></dest><det nItem="1"><prod><cProd>000000000000033064</cProd><cEAN>2022000963633</cEAN><xProd>TABUA BRUTA EUCALIPTO</xProd><genero>44</genero><CFOP>5102</CFOP><uCom>PEC</uCom><qCom>6.0000</qCom><vUnCom>200.0000</vUnCom><vProd>1200.00</vProd><cEANTrib></cEANTrib><uTrib>PEC</uTrib><qTrib>6.0000</qTrib><vUnTrib>0.0000</vUnTrib></prod><imposto><ICMS><ICMS00><orig>0</orig><CST>00</CST><modBC>3</modBC><vBC>1320.00</vBC><pICMS>18.00</pICMS><vICMS>237.60</vICMS></ICMS00></ICMS><PIS><PISAliq><CST>01</CST><vBC>1320.00</vBC><pPIS>1.65</pPIS><vPIS>21.78</vPIS></PISAliq></PIS><COFINS><COFINSAliq><CST>01</CST><vBC>1320.00</vBC><pCOFINS>7.60</pCOFINS><vCOFINS>100.32</vCOFINS></COFINSAliq></COFINS></imposto><infAdProd>Sujeito a ICMS (sem mensagem) Isento ou nao sujeito a IPI OPERACAO TRIBUTAVEL COM ALIQUOTA BASICA OPERACAO TRIBUTAVEL COM ALIQUOTA BASICA</infAdProd></det><total><ICMSTot><vBC>1320.00</vBC><vICMS>237.60</vICMS><vBCST>0.00</vBCST><vST>0.00</vST><vProd>1200.00</vProd><vFrete>0.00</vFrete><vSeg>0.00</vSeg><vDesc>0.00</vDesc><vII>0.00</vII><vIPI>120.00</vIPI><vPIS>21.78</vPIS><vCOFINS>100.32</vCOFINS><vOutro>0.00</vOutro><vNF>1320.00</vNF></ICMSTot></total><transp><modFrete>1</modFrete></transp></infNFe><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMethod><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></SignatureMethod><Reference URI="#NFe35100503439316000334550010000000370640029338"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></Transform><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></Transform></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod><DigestValue>vrsZ5poMdchsSmP9mMQO57cGS+U=</DigestValue></Reference></SignedInfo><SignatureValue>qOL7BAuPbTVKuJs56KZOyWJAUg8bK9wyV2W1zbJjYn0e/5KMIKZi5aWLqxx6noHFlQn5K9plKegJ
UJaw0Oiwsy9LgcYXdfOEPvvEnTxQ72ER8N8pyccv7oZKeqxnuUHiIqHKD35pDyzR2Sm73URkeXVJ
1n+d/n5ZajKX0HdfQeI=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIGETCCBPmgAwIBAgIIY7qu/yqSWLkwDQYJKoZIhvcNAQEFBQAwTDELMAkGA1UEBhMCQlIxEzAR
BgNVBAoTCklDUC1CcmFzaWwxKDAmBgNVBAMTH1NFUkFTQSBDZXJ0aWZpY2Fkb3JhIERpZ2l0YWwg
djE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