Skip to Content

Hi Everybody. Today i finish a Simple Transformation (ST) of XML V2.00 for incoming NF-e (Nota Fiscal) . It takes a lot of work but now its mapped.

Olá Pessoal. Hoje terminei uma transformação de XML v2.00 para mapeamento de NF-e de entrada. Deu bastante trabalho mas esta mapeado. Estou enviando as estruturas e o XLST

Primeiro segue o XLST:

<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
  <tt:root name="nfeProc" type="?"/>
  <tt:root name="NFeItem" type="?"/>
<!--  <tt:root name="NFe" type="?"/>
  <tt:root name="infNFe" type="?"/>
  <tt:root name="ide" type="?"/>-->
  <tt:template>
    <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe">
      <tt:attribute name="versao" value-ref="nfeProc.VERSAO"/>
<!--      <tt:attribute name="xmlns" value-ref="nfeProc.VERSAO"/>-->
      <NFe>
        <infNFe>
          <ide>
            <cUF>
              <tt:value ref="nfeProc.UF"/>
            </cUF>
            <cNF>
              <tt:value ref="nfeProc.NF"/>
            </cNF>
            <natOp>
              <tt:value ref="nfeProc.NATOP"/>
            </natOp>
            <indPag>
              <tt:value ref="nfeProc.INDPAG"/>
            </indPag>
            <mod>
              <tt:value ref="nfeProc.MOD"/>
            </mod>
            <serie>
              <tt:value ref="nfeProc.SERIE"/>
            </serie>
            <nNF>
              <tt:value ref="nfeProc.NNF"/>
            </nNF>
            <dEmi>
              <tt:value ref="nfeProc.DEMI"/>
            </dEmi>
            <tt:cond>
                <dSaiEnt>
                  <tt:value ref="nfeProc.DSAIENT"/>
                </dSaiEnt>
                <hSaiEnt>
                  <tt:value ref="nfeProc.HSAIENT"/>
                </hSaiEnt>
            </tt:cond>
            <tpNF>
              <tt:value ref="nfeProc.TPNF"/>
            </tpNF>
            <cMunFG>
              <tt:value ref="nfeProc.CMUNFG"/>
            </cMunFG>
            <tpImp>
              <tt:value ref="nfeProc.TPIMP"/>
            </tpImp>
            <tpEmis>
              <tt:value ref="nfeProc.TPEMIS"/>
            </tpEmis>
            <cDV>
              <tt:value ref="nfeProc.CDV"/>
            </cDV>
            <tpAmb>
              <tt:value ref="nfeProc.TPAMB"/>
            </tpAmb>
            <finNFe>
              <tt:value ref="nfeProc.FINNFE"/>
            </finNFe>
            <procEmi>
              <tt:value ref="nfeProc.PROCEMI"/>
            </procEmi>
            <verProc>
              <tt:value ref="nfeProc.VERPROC"/>
            </verProc>
          </ide>
          <emit>
            <CNPJ>
              <tt:value ref="nfeProc.EMIT_CNPJ"/>
            </CNPJ>
            <xNome>
              <tt:value ref="nfeProc.EMIT_NOME"/>
            </xNome>
            <tt:cond>
            <xFant>
              <tt:value ref="nfeProc.EMIT_FANT"/>
            </xFant>
            </tt:cond>
              <enderEmit>
                <xLgr>
                  <tt:value ref="nfeProc.EMIT_LOGR"/>
                </xLgr>
                <nro>
                  <tt:value ref="nfeProc.EMIT_NRO"/>
                </nro>
                <xBairro>
                  <tt:value ref="nfeProc.EMIT_BAIRRO"/>
                </xBairro>
                <cMun>
                  <tt:value ref="nfeProc.EMIT_CMUN"/>
                </cMun>
                <xMun>
                  <tt:value ref="nfeProc.EMIT_XMUN"/>
                </xMun>
                <UF>
                  <tt:value ref="nfeProc.EMIT_XUF"/>
                </UF>
                <CEP>
                  <tt:value ref="nfeProc.EMIT_XCEP"/>
                </CEP>
                <cPais>
                  <tt:value ref="nfeProc.EMIT_CPAIS"/>
                </cPais>
                <xPais>
                  <tt:value ref="nfeProc.EMIT_XPAIS"/>
                </xPais>
                <fone>
                  <tt:value ref="nfeProc.EMIT_FONE"/>
                </fone>
              </enderEmit>
            <IE>
              <tt:value ref="nfeProc.EMIT_IE"/>
            </IE>
            <CRT>
              <tt:value ref="nfeProc.EMIT_CRT"/>
            </CRT>
          </emit>
          <dest>
            <CNPJ>
              <tt:value ref="nfeProc.DEST_CNPJ"/>
            </CNPJ>
            <xNome>
              <tt:value ref="nfeProc.DEST_NOME"/>
            </xNome>
            <tt:cond>
            <xFant>
              <tt:value ref="nfeProc.DEST_FANT"/>
            </xFant>
            </tt:cond>
              <enderDest>
                <xLgr>
                  <tt:value ref="nfeProc.DEST_LOGR"/>
                </xLgr>
                <nro>
                  <tt:value ref="nfeProc.DEST_NRO"/>
                </nro>
                <xBairro>
                  <tt:value ref="nfeProc.DEST_BAIRRO"/>
                </xBairro>
                <cMun>
                  <tt:value ref="nfeProc.DEST_CMUN"/>
                </cMun>
                <xMun>
                  <tt:value ref="nfeProc.DEST_XMUN"/>
                </xMun>
                <UF>
                  <tt:value ref="nfeProc.DEST_XUF"/>
                </UF>
                <CEP>
                  <tt:value ref="nfeProc.DEST_XCEP"/>
                </CEP>
                <cPais>
                  <tt:value ref="nfeProc.DEST_CPAIS"/>
                </cPais>
                <xPais>
                  <tt:value ref="nfeProc.DEST_XPAIS"/>
                </xPais>
                <fone>
                  <tt:value ref="nfeProc.DEST_FONE"/>
                </fone>
              </enderDest>
            <IE>
              <tt:value ref="nfeProc.DEST_IE"/>
            </IE>
            <tt:cond>
            <email>
              <tt:value ref="nfeProc.DEST_EMAIL"/>
            </email>
            </tt:cond>
          </dest>
            <tt:loop name="nfeItem" ref="nfeItem">
            <det>
              <tt:attribute name="nItem" value-ref="$nfeItem.NITEM"/>
              <prod>
                <cProd>
                  <tt:value ref="$nfeItem.CPROD"/>
                </cProd>
                <tt:cond>
                <cEAN>
                  <tt:value ref="$nfeItem.CEAN"/>
                </cEAN>
                </tt:cond>
                <xProd>
                  <tt:value ref="$nfeItem.XPROD"/>
                </xProd>
                <NCM>
                  <tt:value ref="$nfeItem.NCM"/>
                </NCM>
                <CFOP>
                  <tt:value ref="$nfeItem.CFOP"/>
                </CFOP>
                <uCom>
                  <tt:value ref="$nfeItem.UCOM"/>
                </uCom>
                <qCom>
                  <tt:value ref="$nfeItem.QCOM"/>
                </qCom>
                <vUnCom>
                  <tt:value ref="$nfeItem.VUNCOM"/>
                </vUnCom>
                <vProd>
                  <tt:value ref="$nfeItem.VPROD"/>
                </vProd>
                <tt:cond>
                <cEANTrib>
                  <tt:value ref="$nfeItem.CEANTRIB"/>
                </cEANTrib>
                </tt:cond>
                <uTrib>
                  <tt:value ref="$nfeItem.UTRIB"/>
                </uTrib>
                <qTrib>
                  <tt:value ref="$nfeItem.QTRIB"/>
                </qTrib>
                <vUnTrib>
                  <tt:value ref="$nfeItem.VUNTRIB"/>
                </vUnTrib>
                <indTot>
                  <tt:value ref="$nfeItem.INDTOT"/>
                </indTot>
                <tt:cond>
                  <xPed>
                    <tt:value ref="$nfeItem.XPED"/>
                  </xPed>
                </tt:cond>
                <tt:cond>
                  <nItemPed>
                    <tt:value ref="$nfeItem.NITEMPED"/>
                  </nItemPed>
                </tt:cond>
              </prod>
              <imposto>
                <ICMS>
                  <tt:cond>
                  <ICMS40>
                    <orig>
                      <tt:value ref="$nfeItem.ICMS40_ORIG"/>
                    </orig>
                    <CST>
                      <tt:value ref="$nfeItem.ICMS40_CST"/>
                    </CST>
                  </ICMS40>
                  </tt:cond>
                  <tt:cond>
                  <ICMS00>
                    <orig>
                      <tt:value ref="$nfeItem.ICMS00_ORIG"/>
                    </orig>
                    <CST>
                      <tt:value ref="$nfeItem.ICMS00_CST"/>
                    </CST>
                    <modBC>
                      <tt:value ref="$nfeItem.ICMS00_MODBC"/>
                    </modBC>
                    <vBC>
                      <tt:value ref="$nfeItem.ICMS00_VBC"/>
                    </vBC>
                    <pICMS>
                      <tt:value ref="$nfeItem.ICMS00_PICMS"/>
                    </pICMS>
                    <vICMS>
                      <tt:value ref="$nfeItem.ICMS00_VICMS"/>
                    </vICMS>
                  </ICMS00>
                  </tt:cond>
                </ICMS>
                <tt:cond>
                <IPI>
                  <tt:skip>
                  <tt:cond>
                  <clEnq>
                  </clEnq>
                  </tt:cond>
                  </tt:skip>
                  <tt:skip>
                  <tt:cond>
                  <CNPJProd>
                  </CNPJProd>
                  </tt:cond>
                  </tt:skip>
                  <tt:skip>
                  <tt:cond>
                  <cSelo>
                  </cSelo>
                  </tt:cond>
                  </tt:skip>
                  <tt:cond>
                  <qSelo>
                    <tt:value ref="$nfeItem.IPI_QSELO"/>
                  </qSelo>
                  <cEnq>
                    <tt:value ref="$nfeItem.IPI_CENQ"/>
                  </cEnq>
                  </tt:cond>
                  <tt:cond>
                  <IPITrib>
                    <CST>
                      <tt:value ref="$nfeItem.IPITRIB_CST"/>
                    </CST>
                    <vBC>
                      <tt:value ref="$nfeItem.IPITRIB_VBC"/>
                    </vBC>
                    <pIPI>
                      <tt:value ref="$nfeItem.IPITRIB_PIPI"/>
                    </pIPI>
                    <vIPI>
                      <tt:value ref="$nfeItem.IPITRIB_VIPI"/>
                    </vIPI>
                  </IPITrib>
                  </tt:cond>
                  <tt:cond>
                    <IPINT>
                      <CST>
                        <tt:value ref="$nfeItem.IPINT_CST"/>
                      </CST>
                    </IPINT>
                  </tt:cond>
                </IPI>
                </tt:cond>
                <tt:cond>
                  <II>
                    <vBC>
                      <tt:value ref="$nfeItem.II_VBC"/>
                    </vBC>
                    <vDespAdu>
                      <tt:value ref="$nfeItem.II_VDESPADU"/>
                    </vDespAdu>
                    <vII>
                      <tt:value ref="$nfeItem.II_VII"/>
                    </vII>
                    <vIOF>
                      <tt:value ref="$nfeItem.II_VIOF"/>
                    </vIOF>
                  </II>
                </tt:cond>
                <PIS>
                  <tt:cond>
                  <PISAliq>
                    <CST>
                      <tt:value ref="$nfeItem.PISALIQ_CST"/>
                    </CST>
                    <vBC>
                      <tt:value ref="$nfeItem.PISALIQ_VBC"/>
                    </vBC>
                    <pPIS>
                      <tt:value ref="$nfeItem.PISALIQ_PPIS"/>
                    </pPIS>
                    <vPIS>
                      <tt:value ref="$nfeItem.PISALIQ_VPIS"/>
                    </vPIS>
                  </PISAliq>
                  </tt:cond>
                  <tt:cond>
                  <PISOutr>
                    <CST>
                      <tt:value ref="$nfeItem.PISOUTR_CST"/>
                    </CST>
                    <vBC>
                      <tt:value ref="$nfeItem.PISOUTR_VBC"/>
                    </vBC>
                    <pPIS>
                      <tt:value ref="$nfeItem.PISOUTR_PPIS"/>
                    </pPIS>
                    <vPIS>
                      <tt:value ref="$nfeItem.PISOUTR_VPIS"/>
                    </vPIS>
                  </PISOutr>
                  </tt:cond>
                  <tt:cond>
                  <PISNT>
                    <CST>
                      <tt:value ref="$nfeItem.PISNT_CST"/>
                    </CST>
                  </PISNT>
                  </tt:cond>
                </PIS>
                <COFINS>
                  <tt:cond>
                    <COFINSAliq>
                      <CST>
                        <tt:value ref="$nfeItem.COFALIQ_CST"/>
                      </CST>
                      <vBC>
                        <tt:value ref="$nfeItem.COFALIQ_VBC"/>
                      </vBC>
                      <pCOFINS>
                        <tt:value ref="$nfeItem.COFALIQ_PCOF"/>
                      </pCOFINS>
                      <vCOFINS>
                        <tt:value ref="$nfeItem.COFALIQ_VCOF"/>
                      </vCOFINS>
                    </COFINSAliq>
                  </tt:cond>
                  <tt:cond>
                  <COFINSOutr>
                    <CST>
                      <tt:value ref="$nfeItem.COFINSOUTR_CST"/>
                    </CST>
                    <vBC>
                      <tt:value ref="$nfeItem.COFINSOUTR_VBC"/>
                    </vBC>
                    <pCOFINS>
                      <tt:value ref="$nfeItem.COFINSOUTR_PCOFI"/>
                    </pCOFINS>
                    <vCOFINS>
                      <tt:value ref="$nfeItem.COFINSOUTR_VCOFI"/>
                    </vCOFINS>
                  </COFINSOutr>
                  </tt:cond>
                  <tt:cond>
                    <COFINSNT>
                      <CST>
                        <tt:value ref="$nfeItem.COFINSNT_CST"/>
                      </CST>
                    </COFINSNT>
                  </tt:cond>
                </COFINS>
              </imposto>
            </det>
            </tt:loop>
            <total>
              <ICMSTot>
                <vBC>
                  <tt:value ref="nfeProc.ICMSTOT_VBC"/>
                </vBC>
                <vICMS>
                  <tt:value ref="nfeProc.ICMSTOT_VICMS"/>
                </vICMS>
                <vBCST>
                  <tt:value ref="nfeProc.ICMSTOT_VBCST"/>
                </vBCST>
                <vST>
                  <tt:value ref="nfeProc.ICMSTOT_VST"/>
                </vST>
                <vProd>
                  <tt:value ref="nfeProc.ICMSTOT_VPROD"/>
                </vProd>
                <vFrete>
                  <tt:value ref="nfeProc.ICMSTOT_VFRETE"/>
                </vFrete>
                <vSeg>
                  <tt:value ref="nfeProc.ICMSTOT_VSEG"/>
                </vSeg>
                <vDesc>
                  <tt:value ref="nfeProc.ICMSTOT_VDESC"/>
                </vDesc>
                <vII>
                  <tt:value ref="nfeProc.ICMSTOT_VII"/>
                </vII>
                <vIPI>
                  <tt:value ref="nfeProc.ICMSTOT_VIPI"/>
                </vIPI>
                <vPIS>
                  <tt:value ref="nfeProc.ICMSTOT_VPIS"/>
                </vPIS>
                <vCOFINS>
                  <tt:value ref="nfeProc.ICMSTOT_VCOFINS"/>
                </vCOFINS>
                <vOutro>
                  <tt:value ref="nfeProc.ICMSTOT_VOUTRO"/>
                </vOutro>
                <vNF>
                  <tt:value ref="nfeProc.ICMSTOT_VNF"/>
                </vNF>
              </ICMSTot>
            </total>
            <transp>
              <modFrete>
                <tt:value ref="nfeProc.TR_MODFRETE"/>
              </modFrete>
              <tt:cond>
                <vol>
                  <qVol>
                    <tt:value ref="nfeProc.TR_QVOL"/>
                  </qVol>
                  <tt:cond>
                  <pesoL>
                  </pesoL>
                  </tt:cond>
                  <pesoB>
                    <tt:value ref="nfeProc.TR_PESOB"/>
                  </pesoB>
                </vol>
              </tt:cond>
              <tt:cond>
              <transporta>
                <CNPJ>
                  <tt:value ref="nfeProc.TR_CNPJ"/>
                </CNPJ>
                <xNome>
                  <tt:value ref="nfeProc.TR_XNOME"/>
                </xNome>
                <IE>
                  <tt:value ref="nfeProc.TR_IE"/>
                </IE>
                <xEnder>
                  <tt:value ref="nfeProc.TR_XENDER"/>
                </xEnder>
                <xMun>
                  <tt:value ref="nfeProc.TR_XMUN"/>
                </xMun>
                <UF>
                  <tt:value ref="nfeProc.TR_UF"/>
                </UF>
              </transporta>
              </tt:cond>
              <tt:cond>
                <vol>
                  <qVol>
                    <tt:value ref="nfeProc.TR_QVOL"/>
                  </qVol>
                  <esp>
                    <tt:skip />
                  </esp>
                  <tt:cond>
                  <pesoL>
                    <tt:skip />
                  </pesoL>
                  </tt:cond>
                  <tt:cond>
                  <pesoB>
                    <tt:value ref="nfeProc.TR_PESOB"/>
                  </pesoB>
                  </tt:cond>
                </vol>
              </tt:cond>
            </transp>
              <tt:cond>
              <cobr>
              <tt:cond>
                <dup>
                  <tt:cond>
                  <nDup>
                    <tt:skip />
                  </nDup>
                  </tt:cond>
                  <tt:cond>
                  <dVenc>
                    <tt:skip />
                  </dVenc>
                  </tt:cond>
                  <tt:cond>
                  <vDup>
                    <tt:skip />
                  </vDup>
                  </tt:cond>
                </dup>
                </tt:cond>
                <tt:cond>
                <fat>
                  <nFat> <tt:skip /> </nFat>
                  <vOrig> <tt:skip /> </vOrig>
                  <vLiq> <tt:skip /> </vLiq>
                </fat>
                </tt:cond>
              </cobr>
              </tt:cond>
            <infAdic>
              <tt:cond>
              <infAdFisco>
                <tt:skip />
              </infAdFisco>
              </tt:cond>
              <infCpl>
                <tt:value ref="nfeProc.INFCPL"/>
              </infCpl>
            </infAdic>
            <tt:cond>
            <compra>
              <xPed>
                <tt:skip />
              </xPed>
            </compra>
            </tt:cond>
        </infNFe>
        <tt:skip>
        <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
          <SignedInfo>
            <CanonicalizationMethod />
            <SignatureMethod />
              <Reference>
                <Transforms>
                  <Transform />
                  <Transform />
                </Transforms>
                <DigestMethod />
                <DigestValue>
                  <tt:value ref="nfeProc.DUMMY"/>
                </DigestValue>
              </Reference>
            </SignedInfo>
            <SignatureValue>
            </SignatureValue>
            <KeyInfo>
              <X509Data>
                <X509Certificate></X509Certificate>
            </X509Data>
          </KeyInfo>
        </Signature>
        </tt:skip>
      </NFe>
      <protNFe versao="2.00">
        <infProt>
          <tpAmb>
            <tt:skip />
          </tpAmb>
          <verAplic>
            <tt:skip />
          </verAplic>
          <chNFe>
            <tt:value ref="nfeProc.CHAVE"/>
          </chNFe>
          <dhRecbto>
            <tt:skip />
          </dhRecbto>
          <nProt>
            <tt:skip />
          </nProt>
          <digVal>
            <tt:skip />
          </digVal>
          <cStat>
            <tt:skip />
          </cStat>
          <xMotivo>
            <tt:skip />
          </xMotivo>
        </infProt>
      </protNFe>
    </nfeProc>
  </tt:template>
</tt:transform>

Estrutura do Header da nota:

MANDT MANDT CLNT 3 0 Client
CHAVE CHAR 44 0 Chave de Acesso
VERSAO CHAR 6 0 Versão XML
UF CHAR 2 0 <cUF>
NF CHAR 12 0 <cNF>
NATOP CHAR 60 0 <natOp>
INDPAG CHAR 2 0 <indPag>
MOD CHAR 2 0 <mod>
SERIE CHAR 2 0 <serie>
NNF CHAR 12 0 <nFF>
DEMI CHAR 10 0 <demi>
DSAIENT CHAR 10 0                                                            
HSAIENT CHAR 8 0                                                            
TPNF CHAR 2 0 <tpnf>
CMUNFG CHAR 10 0 <cMunFG>
TPIMP CHAR 1 0 <tpImp>
TPEMIS CHAR 1 0 <tpEmis>
CDV CHAR 1 0 <cDV>
TPAMB CHAR 1 0 <tpAmb>
FINNFE CHAR 1 0 <finNFe>
PROCEMI CHAR 1 0 <procEmi>
VERPROC CHAR 10 0 <verProc>
EMIT_CNPJ CHAR 14 0 <CNPJ>
EMIT_IE CHAR 14 0 <ie>
EMIT_NOME CHAR 60 0 <xNome>
EMIT_FANT CHAR 60 0 <xFant>
EMIT_LOGR CHAR 60 0 <xLgr>
EMIT_NRO CHAR 10 0 <NRO>
EMIT_BAIRRO CHAR 60 0 <xBairro>
EMIT_CMUN CHAR 7 0 <cMun>
EMIT_XMUN CHAR 60 0 <xMun>
EMIT_XUF CHAR 2 0 <UF>
EMIT_XCEP CHAR 8 0 <CEP>
EMIT_CPAIS CHAR 6 0 <cPais>
EMIT_XPAIS CHAR 60 0 <xPais>
EMIT_FONE CHAR 30 0 <FONE>
EMIT_EMAIL CHAR 60 0 <email>
EMIT_CRT CHAR 2 0 <CRT>
DEST_CNPJ CHAR 14 0 <CNPJ>
DEST_IE CHAR 14 0 <IE>
DEST_NOME CHAR 60 0 <xNome>
DEST_FANT CHAR 60 0 <xFant>
DEST_LOGR CHAR 60 0 <xLgr>
DEST_NRO CHAR 10 0 <NRO>
DEST_BAIRRO CHAR 60 0 <xBairro>
DEST_CMUN CHAR 7 0 <cMun>
DEST_XMUN CHAR 60 0 <xMun>
DEST_XUF CHAR 2 0 <UF>
DEST_XCEP CHAR 8 0 <CEP>
DEST_CPAIS CHAR 6 0 <cPais>
DEST_XPAIS CHAR 60 0 <xPais>
DEST_FONE CHAR 30 0 <FONE>
DEST_EMAIL CHAR 60 0 <email>
ICMSTOT_VBC DEC 10 2                                                            
ICMSTOT_VICMS DEC 10 2                                                            
ICMSTOT_VBCST DEC 10 2                                                            
ICMSTOT_VST DEC 10 2                                                            
ICMSTOT_VPROD DEC 10 2
ICMSTOT_VFRETE DEC 10 2
ICMSTOT_VSEG DEC 10 2
ICMSTOT_VDESC DEC 10 2
ICMSTOT_VII DEC 10 2
ICMSTOT_VIPI DEC 10 2
ICMSTOT_VPIS DEC 10 2
ICMSTOT_VCOFINS DEC 10 2
ICMSTOT_VOUTRO DEC 10 2
ICMSTOT_VNF DEC 10 2
TR_MODFRETE CHAR 1 0
TR_QVOL CHAR 3 0
TR_PESOB DEC 13 3
TR_CNPJ CHAR 14 0
TR_XNOME CHAR 60 0
TR_IE CHAR 14 0
TR_XENDER CHAR 60 0
TR_XMUN CHAR 60 0
TR_UF CHAR 60 0
INFCPL CHAR 1024 0
DH_RECBTO CHAR 40 0
NPROT CHAR 20 0
STATUS CHAR 4 0
XMOTIVO CHAR 254 0

Estrutura do item da nota:

MANDT MANDT CLNT 3 0 Client
CHAVE CHAR 44 0 Chave de Acesso
NITEM NUMC 3 0 Nº Item de NF
CPROD CHAR 30 0 <cProd>
CEAN CHAR 20 0 <cEAN>
XPROD CHAR 60 0 <xProd>
NCM CHAR 12 0 <NCM>
CFOP CHAR 4 0 <CFOP>
UCOM CHAR 4 0 <uCom>
QCOM DEC 14 4 <qCom>
VUNCOM DEC 20 10 <vUnCom>
VPROD DEC 14 4 <vProd>
CEANTRIB CHAR 20 0 <cEANTrib>
UTRIB CHAR 4 0 <uTrib>
QTRIB DEC 14 4 <qTrib>
VUNTRIB DEC 20 10 <vUnTrib>
INDTOT CHAR 2 0 <indTot>
ICMS40_ORIG CHAR 2 0                                                            
ICMS40_CST CHAR 2 0                                                            
ICMS00_ORIG CHAR 2 0                                                            
ICMS00_CST CHAR 2 0                                                            
ICMS00_MODBC CHAR 2 0                                                            
ICMS00_VBC DEC 12 2                                                            
ICMS00_PICMS DEC 12 2                                                            
ICMS00_VICMS DEC 12 2                                                            
IPI_QSELO CHAR 10 0                                                            
IPI_CENQ CHAR 10 0                                                            
IPITRIB_CST CHAR 2 0                                                            
IPITRIB_VBC DEC 12 2                                                            
IPITRIB_PIPI DEC 12 2                                                            
IPITRIB_VIPI DEC 12 2
IPINT_CST CHAR 2 0
II_VBC DEC 12 2
II_VDESPADU DEC 12 2
II_VII DEC 12 2
II_VIOF DEC 12 2
PISALIQ_CST CHAR 2 0
PISALIQ_VBC DEC 10 2
PISALIQ_PPIS DEC 10 2
PISALIQ_VPIS DEC 10 2
PISOUTR_CST CHAR 2 0
PISOUTR_VBC DEC 12 2
PISOUTR_PPIS DEC 12 2
PISOUTR_VPIS DEC 12 2
PISNT_CST CHAR 2 0
COFALIQ_CST CHAR 2 0
COFALIQ_VBC DEC 12 2
COFALIQ_PCOF DEC 12 2
COFALIQ_VCOF DEC 12 2
COFINSOUTR_CST CHAR 2 0
COFINSOUTR_VBC DEC 12 2
COFINSOUTR_PCOFI DEC 12 2
COFINSOUTR_VCOFI DEC 12 2
COFINSNT_CST CHAR 2 0
XPED CHAR 60 0
NITEMPED CHAR 10 0

Espero que seja útil a todos.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply