I_BR_NFItem

DDL: I_BR_NFITEM SQL: IBRNFITEM Type: view BASIC

Brazil Nota Fiscal Item

I_BR_NFItem (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Country or Region-Specific Functions for Finance

I_BR_NFItem is a Basic CDS View that provides data about "Brazil Nota Fiscal Item" in SAP S/4HANA. It reads from 1 data source (j_1bnflin) and exposes 155 fields with key fields BR_NotaFiscal, BR_NotaFiscalItem. It has 15 associations to related views.

SAP Help Documentation

CategoryElectronic Documents
StatusReleased
Purpose
This CDS view provides the prerequisites for answering business questions about relevant aspects of nota fiscal item data.

Prerequisites
You have authorizations to access relevant nota fiscal data.

Structure
The key fields are BR_NotaFiscal and BR_NotaFiscalItem .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCountry or Region-Specific Functions for Finance
Application ComponentFI-LOC-LO-BR
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities
PackageCountry or Region-Specific Functions for Finance for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
j_1bnflin NFItem from

Associations (15)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _NFTributaryUnit $projection.BR_NFTributaryUnit = _NFTributaryUnit.UnitOfMeasure
[1..1] I_Currency _SalesDocumentCurrency $projection.SalesDocumentCurrency = _SalesDocumentCurrency.Currency
[1..1] I_BR_NFDocument _BR_NotaFiscal $projection.BR_NotaFiscal = _BR_NotaFiscal.BR_NotaFiscal
[0..1] I_BR_ICMSBaseDetn _BR_ICMSBaseDetn _BR_ICMSBaseDetn.BR_ICMSBaseDetn = $projection.BR_ICMSBaseDetn
[0..1] I_BR_ICMSExemptionReason _BR_ICMSExemptionReason _BR_ICMSExemptionReason.BR_ICMSExemptionReason = $projection.BR_ICMSExemptionReason
[0..1] I_BR_ICMSSTBaseDetn _BR_ICMSSTBaseDetn _BR_ICMSSTBaseDetn.BR_ICMSSTBaseDetermination = $projection.BR_ICMSSTBaseDetermination
[0..1] I_BR_ICMSTaxSituation _BR_ICMSTaxSituation _BR_ICMSTaxSituation.BR_ICMSTaxSituation = $projection.BR_ICMSTaxSituation
[0..1] I_BR_MaterialOrigin _MaterialOrigin _MaterialOrigin.BR_MaterialOrigin = $projection.BR_MaterialOrigin
[0..1] I_BR_MaterialUsage _MaterialUsage _MaterialUsage.BR_MaterialUsage = $projection.BR_MaterialUsage
[0..1] I_BR_CNAE _BR_CNAEPartner _BR_CNAEPartner.BR_CNAE = $projection.BR_NFPartnerCNAE
[0..1] I_BR_CNAE _BR_CNAEBusinessPlace _BR_CNAEBusinessPlace.BR_CNAE = $projection.BR_BusinessPlaceCNAE
[0..1] I_BR_NFFreightNature _BR_NFFreightNature _BR_NFFreightNature.BR_NFFreightNature = $projection.BR_NFFreightNature
[0..1] I_BR_ICMSSTExemptionReason _BR_ICMSSTExemptionReason _BR_ICMSSTExemptionReason.BR_ICMSSTExemptionReason = $projection.BR_ICMSSTExemptionReason
[0..1] I_BR_NFAdRemICMSReducnReason _BR_NFAdRemICMSReducnReason _BR_NFAdRemICMSReducnReason.BR_NFAdRemICMSReductionReason = $projection.BR_NFAdRemICMSReductionReason

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IBRNFITEM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Brazil Nota Fiscal Item view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (155)

KeyFieldSource TableSource FieldDescription
BR_IPITaxSituation IPI Tax Situation
BR_ISSTaxSituation ISS Tax Situation
BR_COFINSTaxSituation COFINS Tax Situation
BR_PISTaxSituation PIS Tax Situation
BR_ICMSBaseDetn ICMS Base Determination
BR_ICMSSTBaseDetermination ICMS ST Base Determination
BR_ICMSSTLegalClassfctn ICMS ST Legal Classification Code
BR_SubstituteICMSAmount Substitute ICMS Amount Charged in Previous Transaction
BR_ICMSExemptionReason Exemption Reason
BR_ICMSDefermentAmount Deferment Amount
BR_ICMSDeferralTaxRate Tax Rate for ICMS Deferral
BR_WithholdingICMSSTBaseAmount Withholding ICMS ST Base
BR_WithholdingICMSSTAmount Withholding ICMS ST Amount
BR_IPILegalClassification IPI Classification Code
BR_TobaccoBeverageIPIClassfctn IPI Tobacco/Beverage
BR_IPIControlSealCode IPI Control Seal Code
BR_IPIControlSealQuantityValue IPI Control Seal Quantity
NetPriceAmount Net Price Including Tax
NetValueAmount Net Amount
BR_NFItemType NF Item Type
BR_NFItemIsStatistical Statistical Item
ValuationType Valuation Type
MaterialGroup Material Group
BR_NFSourceDocumentNumber Source Document Key
BR_ReferenceNFNumber Reference NF
BR_ReferenceNFItem NF Reference Item
BR_NFPercentReturned Quantity Returned
BR_NFNetDiscountAmount Net Discount Amount
BR_ExemptedICMSAmount ICMS Exemption Amount
BR_ICMSStatisticalExemptionAmt Statistical Exemption Value of ICMS
BR_ICMSSTMarginAddedPercent Margin percentage of value Added from ICMS ST
BR_CFOPCode CFOP Code and Extension
BR_MaterialOrigin Material Origin
BR_MaterialUsage Material Usage
IsProducedInhouse Produced in-House
NCMCode Control Code
BR_NBSCode NBS Code
BR_NFApproximateTotalTaxAmount Approximate Tax
BR_FCINumber FCI Number
BR_ICMSTaxLaw Tax Law ICMS
BR_IPITaxLaw Tax Law IPI
BR_PISTaxLaw Tax Law PIS
GLAccount G/L Account Number
PurchaseOrderItem Purchase Order Item
InternationalArticleNumber European Article Number
BR_NFExternalItemNumber External Item Number
BR_RECOPINumber Registro e Controle das Operações com o Papel Imune
BR_ISSSuspensionProcess Process Number
BR_NFTributaryQuantity Tributary Quantity
BR_NFTributaryUnit Tributary Unit of Measure
BR_NFIsPhysicalMvtOfMaterial Material Movement
BR_NFPriceAmountWithTaxes Net Price Including Tax
BR_ReducnPctEffctvCalcBasis Reduction Percentage of Effective Calculation Basis
BR_EffctvCalcBasisAmount Effective Calculation Basis Amount
BR_EffectiveICMSAmount Effective ICMS Amount
ProductionIsInRelevantScale Scale Production Indicator
BR_ManufacturerCNPJ Manufacturer CNPJ
TaxIncentiveCode State Tax Incentive Code
BR_ICMSSTDestTaxBaseAmount ICMS ST Basis Destination State
BR_ICMSSTDestTaxAmount ICMS ST for Destination State
BR_FCPOnICMSSTWithheldBaseAmt Withheld FCP Calculation Basis
BR_FCPonICMSSTWithheldRate Withheld FCP ST
CustomsChargesAmount Customs Expense Amount
BR_FCPOnICMSSTWithheldAmount Withheld FCP ST Amount
BR_IOFTaxAmount IOF Amount
BR_InternalBarcode Internal Barcode
BR_InternalTributaryBarcode Internal Tributary Barcode
BR_NFIsPISSTInTotalAmount Indicator of PIS ST in the Nota Fiscal Total
BR_PISSTInNFTotal Indicator of PIS ST in the Nota Fiscal Total
BR_PISSTTaxAmount PIS ST Value
BR_PISSTTaxIncludedTaxAmount PIS ST Value Including Taxes
BR_NFIsCOFINSSTInTotalAmount Indicator of COFINS ST in the Nota Fiscal Total
BR_COFINSSTInNFTotal Indicator of COFINS ST in the Nota Fiscal Total
BR_COFINSSTTaxAmount COFINS ST Value
BR_COFINSSTTxIncludedTaxAmount COFINS ST Value Including Taxes
BR_ICMSDefermentPercent ICMS Deferral Percentage
BR_FCPOnICMSDefermentAmount Deferred FCP Amount
BR_FCPOnICMSDeferralTaxRate Tax Rate for FCP Deferral
BR_FCPOnICMSDefermentPercent FCP Deferral Percentage
BR_ExemptedICMSSTAmount Exemption Amount of ICMS ST
BR_ICMSSTExemptionReason ICMS ST Exemption Reason
BR_NFMonoICMSDeferredAmount ICMS deferred amount
BR_NFAdRemICMSRetainedTaxRate Ad rem tax rate of ICMS retained established for the product
BR_NFMonoICMSRetainedAmount ICMS retained amount
BR_NFMonoRetainedTaxedQuantity Retained taxed quantity
BR_NFAdRemICMSReductionReason Reason for ad rem reduction
BR_NFAdRemICMSReductionRate ICMS ad rem percentage of reduction
BR_NFMonoICMSOperationAmount ICMS operation amount
BR_NFAdRemICMSDeferralPercent ICMS ad rem deferral percentage
_BR_NotaFiscal _BR_NotaFiscal
_SalesDocumentCurrency _SalesDocumentCurrency
_BaseUnit _BaseUnit
_NFTributaryUnit _NFTributaryUnit
_BR_ICMSBaseDetn _BR_ICMSBaseDetn
_BR_ICMSExemptionReason _BR_ICMSExemptionReason
_BR_ICMSSTBaseDetn _BR_ICMSSTBaseDetn
_BR_ICMSTaxSituation _BR_ICMSTaxSituation
_MaterialOrigin _MaterialOrigin
_MaterialUsage _MaterialUsage
_BR_CNAEPartner _BR_CNAEPartner
_BR_CNAEBusinessPlace _BR_CNAEBusinessPlace
_BR_NFFreightNature _BR_NFFreightNature
_BR_ICMSSTExemptionReason _BR_ICMSSTExemptionReason
_BR_NFAdRemICMSReducnReason _BR_NFAdRemICMSReducnReason
KEY BR_NotaFiscal j_1bnflin docnum Ref. Doc Number
KEY BR_NotaFiscalItem j_1bnflin itmnum Document Item Number
CostCenter j_1bnflin kostl Substitute CC
ProfitCenter j_1bnflin prctr Profit Centers
InternalOrder j_1bnflin aufnr SettlementOrder
ProjectNetwork j_1bnflin nplnr Network Number for Account Assignment
WBSElementInternalID j_1bnflin ps_psp_pnr Work Breakdown Structure Element (WBS Element)
CostObject j_1bnflin kstrg Cost Objects
Segment j_1bnflin segment Segment for Segmental Reporting
BR_NFNetFreightAmount j_1bnflin netfre Net freight value in document currency
BR_NFNetInsuranceAmount j_1bnflin netins Net insurance value in document currency
BR_NFNetOtherExpensesAmount j_1bnflin netoth Net expenses in document currency
BR_ICMSOrISSIsIncludedInPrice j_1bnflin incltx Value and price including ICMS/ISS
BR_NFIsServiceItem j_1bnflin tmiss Service tax - no ICMS/IPI calculation
Material j_1bnflin matnr Material Number
MaterialName j_1bnflin maktx Material Description
ValuationArea j_1bnflin bwkey Valuation Area
BR_CFOPCategory j_1bnflin indus3 Material CFOP Category
QuantityInBaseUnit j_1bnflin menge WarrCountValue
BaseUnit j_1bnflin meins Base unit of measure
Plant j_1bnflin werks Receiving Plant
Batch j_1bnflin charg Chargeable Proc.
BR_NFSourceDocumentType j_1bnflin reftyp Reference type
BR_NFSourceDocumentItem j_1bnflin refitm Reference item to source document
BR_CPRBIsRelevant j_1bnflin cprb CPRB Relevance
BR_NFTotalAmount j_1bnflin netwrt Net value/Freight/Insurance/Expenses/Discount
BR_EFDREINFServiceCode j_1bnflin reinf_service_code EFD-REINF Service Type Code
BR_LC116ServiceCode j_1bnflin lc116_service_code LC 116 Service Type Code
BR_ISSBenefitCode j_1bnflin cbenef_iss Benefit Code for ISS Tax
BR_CSTISSCode j_1bnflin municipal_iss_taxsit CST for ISS Defined by Municipality
BR_ISSTaxLaw j_1bnflin taxlw3 ISS Tax Law
BR_COFINSTaxLaw j_1bnflin taxlw4 COFINS Tax Law
PurchaseOrder j_1bnflin xped Purchase Order Number
BR_NFItemHasTaxIncentive j_1bnflin indincentivo Tax Incentive
BR_NFValueAmountWithTaxes j_1bnflin nfnet Net Value including taxes
BR_NFDiscountAmountWithTaxes j_1bnflin nfdis Discount value including taxes
BR_NFFreightAmountWithTaxes j_1bnflin nffre Freight value including taxes
BR_NFInsuranceAmountWithTaxes j_1bnflin nfins Insurance value including taxes
BR_NFExpensesAmountWithTaxes j_1bnflin nfoth Expenses including taxes
BR_NFExemptedICMSWithTaxes j_1bnflin nficmsdeson Exemption Value of ICMS Including Taxes
BR_NFTotalAmountWithTaxes j_1bnflin nfnett Net value/Freight/Insurance/Expenses/Discount
BR_TaxCode j_1bnflin mwskz Tax on sales/purchases code
ActivityNumber j_1bnflin srvnr Activity number
CreditCalculationBaseCode j_1bnflin nat_bc_cred Credit Basis
BR_EffectiveICMSRate j_1bnflin picmsefet Effective ICMS Rate
BR_ICMSSTRateIncludingFCP j_1bnflin pst Final Consumer Rate
BR_NFeStatisticalAmount j_1bnflin voutro Statistical Amount
BR_NFPartnerCNAE j_1bnflin item_cnae_partner CNAE Code for Partner
BR_BusinessPlaceCNAE j_1bnflin item_cnae_bupla CNAE Business Place Code
BR_NFFreightNature j_1bnflin ind_nat_frt Freight Nature Indicator
SalesDocumentCurrency _BR_NotaFiscal SalesDocumentCurrency SD Document Currency

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_BR_NFItem.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IBRNFITEM

CREATE VIEW I_BR_NFItem AS
SELECT
  cast(NFItem.taxsi2 as logbr_taxsi2 preserving type) AS BR_IPITaxSituation,
  cast(NFItem.taxsi3 as logbr_isstaxsituation) AS BR_ISSTaxSituation,
  cast(NFItem.taxsi4 as logbr_taxsi4 preserving type) AS BR_COFINSTaxSituation,
  cast(NFItem.taxsi5 as logbr_taxsi5 preserving type) AS BR_PISTaxSituation,
  cast(NFItem.modbc as logbr_icms_base_det preserving type) AS BR_ICMSBaseDetn,
  cast(NFItem.modbcst as logbr_icst_base_det preserving type) AS BR_ICMSSTBaseDetermination,
  cast(NFItem.cest as logbr_cest preserving type) AS BR_ICMSSTLegalClassfctn,
  cast(NFItem.vicmssubstituto as logbr_vicmssubstituto preserving type) AS BR_SubstituteICMSAmount,
  cast(NFItem.motdesicms as logbr_icmsexemptionreason preserving type) AS BR_ICMSExemptionReason,
  cast(NFItem.vicmsdif as logbr_nfe_rfc_vicmsdif preserving type) AS BR_ICMSDefermentAmount,
  cast(NFItem.picmsdef as logbr_picmsdef preserving type) AS BR_ICMSDeferralTaxRate,
  cast(NFItem.vbcstret as logbr_nfe_rfc_icmsstretbase preserving type) AS BR_WithholdingICMSSTBaseAmount,
  cast(NFItem.vicmsstret as logbr_nfe_rfc_icmsstrettaxval preserving type) AS BR_WithholdingICMSSTAmount,
  cast(NFItem.cenq as logbr_ipi_legal_class_code preserving type) AS BR_IPILegalClassification,
  cast(NFItem.clenq as logbr_ipi_class_tbc_bev preserving type) AS BR_TobaccoBeverageIPIClassfctn,
  cast(NFItem.cselo as logbr_ipi_contr_seal_code preserving type) AS BR_IPIControlSealCode,
  cast(NFItem.qselo as logbr_ipi_contr_seal_quan preserving type) AS BR_IPIControlSealQuantityValue,
  cast(NFItem.netpr as j_1bnfpri preserving type) AS NetPriceAmount,
  cast(NFItem.netwr as logbr_netamount preserving type) AS NetValueAmount,
  cast(NFItem.itmtyp as logbr_itmtyp preserving type) AS BR_NFItemType,
  cast(NFItem.statit as logbr_statit preserving type) AS BR_NFItemIsStatistical,
  cast(NFItem.bwtar as logbr_bwtar_d preserving type) AS ValuationType,
  cast(NFItem.matkl as logbr_matkl preserving type) AS MaterialGroup,
  cast(NFItem.refkey as logbr_refkey preserving type) AS BR_NFSourceDocumentNumber,
  cast(NFItem.docref as logbr_docref preserving type) AS BR_ReferenceNFNumber,
  cast(NFItem.itmref as logbr_itmref preserving type) AS BR_ReferenceNFItem,
  cast(NFItem.pipidevol as logbr_nfe_pret preserving type) AS BR_NFPercentReturned,
  cast(NFItem.netdis as logbr_nfnetdiscountamount) AS BR_NFNetDiscountAmount,
  cast(NFItem.vicmsdeson as logbr_nfe_vicmsdeson preserving type) AS BR_ExemptedICMSAmount,
  cast(NFItem.ststcl_vicmsdeson as logbr_ststcl_vicmsdeson preserving type) AS BR_ICMSStatisticalExemptionAmt,
  cast(NFItem.p_mvast as logbr_pmvast preserving type) AS BR_ICMSSTMarginAddedPercent,
  cast(NFItem.cfop as logbr_cfopcode preserving type) AS BR_CFOPCode,
  cast(NFItem.matorg as logbr_matorg preserving type) AS BR_MaterialOrigin,
  cast(NFItem.matuse as logbr_matuse preserving type) AS BR_MaterialUsage,
  cast(NFItem.ownpro as logbr_ownpro preserving type) AS IsProducedInhouse,
  cast(NFItem.nbm as logbr_steuc preserving type) AS NCMCode,
  cast(NFItem.nbs as logbr_nbs preserving type) AS BR_NBSCode,
  cast(NFItem.vtottrib as logbr_nf_vtottrib) AS BR_NFApproximateTotalTaxAmount,
  cast(NFItem.nfci as logbr_nfe_nfci preserving type) AS BR_FCINumber,
  cast(NFItem.taxlw1 as logbr_taxlw1 preserving type) AS BR_ICMSTaxLaw,
  cast(NFItem.taxlw2 as logbr_taxlw2 preserving type) AS BR_IPITaxLaw,
  cast(NFItem.taxlw5 as logbr_taxlw5 preserving type) AS BR_PISTaxLaw,
  cast(NFItem.cod_cta as logbr_gl_account preserving type) AS GLAccount,
  cast(NFItem.nitemped as logbr_purch_ord_item_ext preserving type) AS PurchaseOrderItem,
  cast(NFItem.cean as logbr_article_number preserving type) AS InternationalArticleNumber,
  cast(NFItem.num_item as logbr_ext_item_num preserving type) AS BR_NFExternalItemNumber,
  cast(NFItem.nrecopi as logbr_recopi preserving type) AS BR_RECOPINumber,
  cast(NFItem.nprocesso as logbr_nfe_nprocesso preserving type) AS BR_ISSSuspensionProcess,
  cast(NFItem.menge_trib as logbr_qtdtrb preserving type) AS BR_NFTributaryQuantity,
  cast(NFItem.meins_trib as logbr_unttrb preserving type) AS BR_NFTributaryUnit,
  cast(NFItem.ind_mov as logbr_phys_move_mat preserving type) AS BR_NFIsPhysicalMvtOfMaterial,
  cast(NFItem.nfpri as j_1bnfpri preserving type) AS BR_NFPriceAmountWithTaxes,
  cast(NFItem.predbcefet as logbr_predbcefet preserving type) AS BR_ReducnPctEffctvCalcBasis,
  cast(NFItem.vbcefet as logbr_vbcefet preserving type) AS BR_EffctvCalcBasisAmount,
  cast(NFItem.vicmsefet as logbr_vicmsefet preserving type) AS BR_EffectiveICMSAmount,
  cast(NFItem.indescala as logbr_indescala preserving type) AS ProductionIsInRelevantScale,
  cast(NFItem.cnpjfab as logbr_cnpjfab preserving type) AS BR_ManufacturerCNPJ,
  cast(NFItem.cbenef as logbr_cbenef preserving type) AS TaxIncentiveCode,
  cast(NFItem.vbcstdest as logbr_vbcstdest preserving type) AS BR_ICMSSTDestTaxBaseAmount,
  cast(NFItem.vicmsstdest as logbr_vicmsstdest preserving type) AS BR_ICMSSTDestTaxAmount,
  cast(NFItem.vbcfcpstret as logbr_vbcfcpstret preserving type) AS BR_FCPOnICMSSTWithheldBaseAmt,
  cast(NFItem.pfcpstret as logbr_pfcpstret preserving type) AS BR_FCPonICMSSTWithheldRate,
  cast(NFItem.vdespadu as logbr_vdespadu preserving type) AS CustomsChargesAmount,
  cast(NFItem.vfcpstret as logbr_vfcpstret preserving type) AS BR_FCPOnICMSSTWithheldAmount,
  cast(NFItem.viof as logbr_viof preserving type) AS BR_IOFTaxAmount,
  cast(NFItem.cbarra as logbr_cbarra preserving type) AS BR_InternalBarcode,
  cast(NFItem.cbarra_trib as logbr_cbarra_trib preserving type) AS BR_InternalTributaryBarcode,
  cast(NFItem.indsomapisst as logbr_indsomapisst preserving type) AS BR_NFIsPISSTInTotalAmount,
  cast(NFItem.indsomapisst as logbr_indsomapisst preserving type) AS BR_PISSTInNFTotal,
  cast(NFItem.pisst as logbr_pisst preserving type) AS BR_PISSTTaxAmount,
  cast(NFItem.nfpisst as logbr_nfpisst preserving type) AS BR_PISSTTaxIncludedTaxAmount,
  cast(NFItem.indsomacofinsst as logbr_indsomacofinsst preserving type) AS BR_NFIsCOFINSSTInTotalAmount,
  cast(NFItem.indsomacofinsst as logbr_indsomacofinsst preserving type) AS BR_COFINSSTInNFTotal,
  cast(NFItem.cofinsst as logbr_cofinsst preserving type) AS BR_COFINSSTTaxAmount,
  cast(NFItem.nfcofinsst as logbr_nfcofinsst preserving type) AS BR_COFINSSTTxIncludedTaxAmount,
  cast(NFItem.pdif as logbr_pdif preserving type) AS BR_ICMSDefermentPercent,
  cast(NFItem.vfcpdif as logbr_vfcpdif preserving type) AS BR_FCPOnICMSDefermentAmount,
  cast(NFItem.pfcpdef as logbr_pfcpdef preserving type) AS BR_FCPOnICMSDeferralTaxRate,
  cast(NFItem.pfcpdif as logbr_pfcpdif preserving type) AS BR_FCPOnICMSDefermentPercent,
  cast(NFItem.vicmsstdeson as logbr_vicmsstdeson preserving type) AS BR_ExemptedICMSSTAmount,
  cast(NFItem.motdesicmsst as logbr_motdesicmsst preserving type) AS BR_ICMSSTExemptionReason,
  cast(NFItem.vicmsmonodif as logbr_vicmsmonodif preserving type) AS BR_NFMonoICMSDeferredAmount,
  cast(NFItem.adremicmsret as logbr_adremicmsret preserving type) AS BR_NFAdRemICMSRetainedTaxRate,
  cast(NFItem.vicmsmonoret as logbr_vicmsmonoret preserving type) AS BR_NFMonoICMSRetainedAmount,
  cast(NFItem.qbcmonoret as logbr_qbcmonoret preserving type) AS BR_NFMonoRetainedTaxedQuantity,
  cast(NFItem.motredadrem as logbr_motredadrem preserving type) AS BR_NFAdRemICMSReductionReason,
  cast(NFItem.predadrem as logbr_predadrem preserving type) AS BR_NFAdRemICMSReductionRate,
  cast(NFItem.vicmsmonoop as logbr_vicmsmonoop preserving type) AS BR_NFMonoICMSOperationAmount,
  cast(NFItem.adremicmspdif as logbr_adremicmspdif preserving type ) AS BR_NFAdRemICMSDeferralPercent,
  NFItem.docnum AS BR_NotaFiscal,
  NFItem.itmnum AS BR_NotaFiscalItem,
  NFItem.kostl AS CostCenter,
  NFItem.prctr AS ProfitCenter,
  NFItem.aufnr AS InternalOrder,
  NFItem.nplnr AS ProjectNetwork,
  NFItem.ps_psp_pnr AS WBSElementInternalID,
  NFItem.kstrg AS CostObject,
  NFItem.segment AS Segment,
  NFItem.netfre AS BR_NFNetFreightAmount,
  NFItem.netins AS BR_NFNetInsuranceAmount,
  NFItem.netoth AS BR_NFNetOtherExpensesAmount,
  NFItem.incltx AS BR_ICMSOrISSIsIncludedInPrice,
  NFItem.tmiss AS BR_NFIsServiceItem,
  NFItem.matnr AS Material,
  NFItem.maktx AS MaterialName,
  NFItem.bwkey AS ValuationArea,
  NFItem.indus3 AS BR_CFOPCategory,
  NFItem.menge AS QuantityInBaseUnit,
  NFItem.meins AS BaseUnit,
  NFItem.werks AS Plant,
  NFItem.charg AS Batch,
  NFItem.reftyp AS BR_NFSourceDocumentType,
  NFItem.refitm AS BR_NFSourceDocumentItem,
  NFItem.cprb AS BR_CPRBIsRelevant,
  NFItem.netwrt AS BR_NFTotalAmount,
  NFItem.reinf_service_code AS BR_EFDREINFServiceCode,
  NFItem.lc116_service_code AS BR_LC116ServiceCode,
  NFItem.cbenef_iss AS BR_ISSBenefitCode,
  NFItem.municipal_iss_taxsit AS BR_CSTISSCode,
  NFItem.taxlw3 AS BR_ISSTaxLaw,
  NFItem.taxlw4 AS BR_COFINSTaxLaw,
  NFItem.xped AS PurchaseOrder,
  NFItem.indincentivo AS BR_NFItemHasTaxIncentive,
  NFItem.nfnet AS BR_NFValueAmountWithTaxes,
  NFItem.nfdis AS BR_NFDiscountAmountWithTaxes,
  NFItem.nffre AS BR_NFFreightAmountWithTaxes,
  NFItem.nfins AS BR_NFInsuranceAmountWithTaxes,
  NFItem.nfoth AS BR_NFExpensesAmountWithTaxes,
  NFItem.nficmsdeson AS BR_NFExemptedICMSWithTaxes,
  NFItem.nfnett AS BR_NFTotalAmountWithTaxes,
  NFItem.mwskz AS BR_TaxCode,
  NFItem.srvnr AS ActivityNumber,
  NFItem.nat_bc_cred AS CreditCalculationBaseCode,
  NFItem.picmsefet AS BR_EffectiveICMSRate,
  NFItem.pst AS BR_ICMSSTRateIncludingFCP,
  NFItem.voutro AS BR_NFeStatisticalAmount,
  NFItem.item_cnae_partner AS BR_NFPartnerCNAE,
  NFItem.item_cnae_bupla AS BR_BusinessPlaceCNAE,
  NFItem.ind_nat_frt AS BR_NFFreightNature,
  _BR_NotaFiscal.SalesDocumentCurrency AS SalesDocumentCurrency
FROM j_1bnflin AS NFItem
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _NFTributaryUnit ON BR_NFTributaryUnit = _NFTributaryUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _SalesDocumentCurrency ON SalesDocumentCurrency = _SalesDocumentCurrency.Currency  -- association [1..1]
LEFT OUTER JOIN I_BR_NFDocument AS _BR_NotaFiscal ON BR_NotaFiscal = _BR_NotaFiscal.BR_NotaFiscal  -- association [1..1]
LEFT OUTER JOIN I_BR_ICMSBaseDetn AS _BR_ICMSBaseDetn ON _BR_ICMSBaseDetn.BR_ICMSBaseDetn = BR_ICMSBaseDetn  -- association [0..1]
LEFT OUTER JOIN I_BR_ICMSExemptionReason AS _BR_ICMSExemptionReason ON _BR_ICMSExemptionReason.BR_ICMSExemptionReason = BR_ICMSExemptionReason  -- association [0..1]
LEFT OUTER JOIN I_BR_ICMSSTBaseDetn AS _BR_ICMSSTBaseDetn ON _BR_ICMSSTBaseDetn.BR_ICMSSTBaseDetermination = BR_ICMSSTBaseDetermination  -- association [0..1]
LEFT OUTER JOIN I_BR_ICMSTaxSituation AS _BR_ICMSTaxSituation ON _BR_ICMSTaxSituation.BR_ICMSTaxSituation = BR_ICMSTaxSituation  -- association [0..1]
LEFT OUTER JOIN I_BR_MaterialOrigin AS _MaterialOrigin ON _MaterialOrigin.BR_MaterialOrigin = BR_MaterialOrigin  -- association [0..1]
LEFT OUTER JOIN I_BR_MaterialUsage AS _MaterialUsage ON _MaterialUsage.BR_MaterialUsage = BR_MaterialUsage  -- association [0..1]
LEFT OUTER JOIN I_BR_CNAE AS _BR_CNAEPartner ON _BR_CNAEPartner.BR_CNAE = BR_NFPartnerCNAE  -- association [0..1]
LEFT OUTER JOIN I_BR_CNAE AS _BR_CNAEBusinessPlace ON _BR_CNAEBusinessPlace.BR_CNAE = BR_BusinessPlaceCNAE  -- association [0..1]
LEFT OUTER JOIN I_BR_NFFreightNature AS _BR_NFFreightNature ON _BR_NFFreightNature.BR_NFFreightNature = BR_NFFreightNature  -- association [0..1]
LEFT OUTER JOIN I_BR_ICMSSTExemptionReason AS _BR_ICMSSTExemptionReason ON _BR_ICMSSTExemptionReason.BR_ICMSSTExemptionReason = BR_ICMSSTExemptionReason  -- association [0..1]
LEFT OUTER JOIN I_BR_NFAdRemICMSReducnReason AS _BR_NFAdRemICMSReducnReason ON _BR_NFAdRemICMSReducnReason.BR_NFAdRemICMSReductionReason = BR_NFAdRemICMSReductionReason  -- association [0..1]
;