Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

P_BR_RptgNFDataAggregation

DDL: P_BR_RPTGNFDATAAGGREGATION SQL: PBRRPTGNFDATAAG Type: view CONSUMPTION

EFD - Nota Fiscal Data - Aggregation

P_BR_RptgNFDataAggregation is a Consumption CDS View that provides data about "EFD - Nota Fiscal Data - Aggregation" in SAP S/4HANA. It reads from 1 data source (P_BR_ReportingNFData) and exposes 177 fields with key fields CompanyCode, BusinessPlace, BR_NotaFiscal.

Data Sources (1)

SourceAliasJoin Type
P_BR_ReportingNFData P_BR_ReportingNFData from

Annotations (14)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName PBRRPTGNFDATAAG view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label EFD - Nota Fiscal Data - Aggregation view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
VDM.private true view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor view

Fields (177)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY BusinessPlace BusinessPlace Business place
KEY BR_NotaFiscal BR_NotaFiscal Nota Fiscal
BR_NotaFiscalItem BR_NotaFiscalItem NF Item Number
BR_PaymentForm BR_PaymentForm
BR_NFIssueDate BR_NFIssueDate
BR_NFPostingDate BR_NFPostingDate
BR_NFSeries BR_NFSeries
BR_NFPartnerType BR_NFPartnerType
BR_NFPartner BR_NFPartner
LicensePlate LicensePlate
BR_NFeNumber BR_NFeNumber
BR_NFeAccessKeyCNPJOrCPF BR_NFeAccessKeyCNPJOrCPF
BR_NFIssuedBy BR_NFIssuedBy
BR_NFSituationCode BR_NFSituationCode
BR_NFDirection BR_NFDirection
SupplierInvoice SupplierInvoice
BR_NFModel BR_NFModel
BR_NFeAccessKey BR_NFeAccessKey
BR_NFPartnerRegionCode BR_NFPartnerRegionCode
BR_NFIsCanceled BR_NFIsCanceled
BR_CTeAccessKey BR_CTeAccessKey
BR_CTeOriginalDocumentType BR_CTeOriginalDocumentType
BR_CTeDocumentType BR_CTeDocumentType
BR_CTeJurisdictionCodeOrigin BR_CTeJurisdictionCodeOrigin
BR_CTeJurisdictionCodeDest BR_CTeJurisdictionCodeDest
FreightPayer FreightPayer Freight Payer
BR_NFPartnerTaxJurisdiction BR_NFPartnerTaxJurisdiction
Material Material Vehicle Model
MaterialName MaterialName Material Description
BaseUnit BaseUnit Unit of Measure
BR_NFIsPhysicalMvtOfMaterial BR_NFIsPhysicalMvtOfMaterial
BR_ICMSIsOriginalTaxSituation BR_ICMSIsOriginalTaxSituation
BR_ICMSTaxSituation BR_ICMSTaxSituation
BR_CFOPCode BR_CFOPCode
NFOperationNature NFOperationNature
BR_IPITaxSituation BR_IPITaxSituation
BR_PISTaxSituation BR_PISTaxSituation
BR_COFINSTaxSituation BR_COFINSTaxSituation
GLAccount GLAccount General Ledger
BR_MaterialUsage BR_MaterialUsage Material Usage
ValuationArea ValuationArea Valuation Area
ValuationType ValuationType Valuation Type
BR_NFExternalItemNumber BR_NFExternalItemNumber
BR_SUFRAMACode BR_SUFRAMACode
BR_ICMSTaxLaw BR_ICMSTaxLaw
BR_IPITaxLaw BR_IPITaxLaw
BR_MaterialOrigin BR_MaterialOrigin Material Origin
BR_COFINSTaxLaw BR_COFINSTaxLaw
BR_PISTaxLaw BR_PISTaxLaw
BR_NFCancellationDate BR_NFCancellationDate
BR_NFShippingUnitBrand BR_NFShippingUnitBrand
BR_NFSVerificationCode BR_NFSVerificationCode
BR_NFType BR_NFType
BR_NFSubSeries BR_NFSubSeries
BR_NFSNumber BR_NFSNumber
BR_NFPartnerStateTaxNumber BR_NFPartnerStateTaxNumber
QuantityInBaseUnit QuantityInBaseUnit Quantity
BR_PISSTTaxBaseAmount
BR_PISSTTaxRate
BR_PISSTTaxAmount
BR_PISSTTaxExcludedBaseAmount
BR_IPITaxBaseAmount
BR_IPITaxRate
BR_IPITaxAmount
BR_IPITaxExcludedBaseAmount
BR_IPITaxOtherBaseAmount
BR_ISSQNTaxBaseAmount
BR_ISSQNTaxRate
BR_ISSQNTaxAmount
BR_ISSQNTaxExcludedBaseAmount
BR_ISSQNTaxOtherBaseAmount
BR_PISTaxBaseAmount
BR_AppliedPISTaxAmount
BR_PISTaxAmount
BR_PISTaxExcludedBaseAmount
BR_PISTaxOtherBaseAmount
BR_PISTxFiscalTariffBaseAmount
BR_ICMSTaxBaseAmount
BR_ICMSTaxRate
BR_ICMSTaxAmount
BR_ICMSTaxExcludedBaseAmount
BR_ICMSTaxOtherBaseAmount
BR_ICMSSTTaxBaseAmount
BR_ICMSSTTaxRate
BR_ICMSSTTaxAmount
BR_ICMSSTTaxExcludedBaseAmount
BR_ICMSSTTaxOtherBaseAmount
BR_COFINSTaxBaseAmount
BR_AppliedCOFINSTaxAmount
BR_COFINSTaxAmount
BR_COFINSTaxExcludedBaseAmount
BR_COFINSTaxOtherBaseAmount
BR_COFINSTxFsclTrifBaseAmount
BR_COFINSSTTaxBaseAmount
BR_COFINSSTTaxRate
BR_COFINSSTTaxAmount
BR_COFINSSTTaxExcldBaseAmount
BR_COFINSSTTaxOtherBaseAmount
NFHeaderTotalAmount NFHeaderTotalAmount
BR_ICMSReductionTaxAmount
BR_IPIReductionTaxAmount
BR_DIFALTaxBaseAmount
BR_DIFALTaxRate
BR_DIFALTaxAmount
BR_DIFALTaxExcludedBaseAmount
BR_DIFALTaxOtherBaseAmount
BR_NFItemType BR_NFItemType
BR_IPIControlSealCode BR_IPIControlSealCode
BR_IPIControlSealQuantity BR_IPIControlSealQuantity
PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
NetPriceAmount NetPriceAmount Net Price
BR_OutgoingNFOperationAmount
BR_IncomingNFOperationAmount
NCMCode NCMCode
BR_NFIsMunicipal BR_NFIsMunicipal
BR_NFTotalAmount BR_NFTotalAmount
BR_OriginalICMSSTTaxAmount
BR_OriginalIPITaxAmount
BR_OriginalICMSTaxAmount
BR_OriginalFCPOnICMSTaxAmount
BR_OriglFCPOnICMSSTTaxAmount
MaterialType MaterialType Material Type
BR_NFHasServiceItem BR_NFHasServiceItem
SalesDocumentCurrency SalesDocumentCurrency Currency
HeaderWeightUnit HeaderWeightUnit
IncotermsClassification IncotermsClassification Incoterms
BR_NFPartnerMunicipalTaxNumber BR_NFPartnerMunicipalTaxNumber
BR_NFSourceDocumentNumber BR_NFSourceDocumentNumber
BR_NFSourceDocumentType BR_NFSourceDocumentType
BR_NFSourceDocumentItem BR_NFSourceDocumentItem
Plant Plant Valuation Area
Batch Batch Lot No.
BR_ISSTaxSituation BR_ISSTaxSituation
BR_ISSTaxLaw BR_ISSTaxLaw
BR_NFItemIsStatistical BR_NFItemIsStatistical
BR_ReferenceNFNumber BR_ReferenceNFNumber
BR_ReferenceNFItem BR_ReferenceNFItem
BR_NFPriceAmountWithTaxes BR_NFPriceAmountWithTaxes
BR_NFReferenceDocument BR_NFReferenceDocument
BR_NFPartnerFunction BR_NFPartnerFunction
AccountingDocument AccountingDocument Journal Entry
BR_NFIsContingency BR_NFIsContingency
BR_CTeServiceType BR_CTeServiceType
PaymentTerms PaymentTerms Pyt Terms
BR_NFIsCreatedManually BR_NFIsCreatedManually Manually Created NF
BR_ICMSOriginTaxRate
BR_ICMSOriginTaxAmount
BR_ICMSOriginTaxBaseAmount
BR_ICMSDestinationTaxRate
BR_ICMSDestinationTaxAmount
BR_FCPOnICMSTaxRate
BR_FCPOnICMSTaxAmount
BR_FCPOnICMSTaxBaseAmount
BR_FCPOnICMSSTTaxRate
BR_FCPOnICMSSTTaxAmount
BR_FCPOnICMSSTTaxBaseAmount
BR_NFArrivalOrDepartureDate BR_NFArrivalOrDepartureDate
BR_NFPartnerName1 BR_NFPartnerName1
BR_NFPartnerStreetName BR_NFPartnerStreetName
BusinessPartnerHouseNumber BusinessPartnerHouseNumber
BPHsNmbrSuplmntTxt BPHsNmbrSuplmntTxt
BR_NFPartnerDistrictName BR_NFPartnerDistrictName
BR_NFPartnerCityName BR_NFPartnerCityName
BR_NFPartnerPostalCode BR_NFPartnerPostalCode
CostCenter CostCenter Cost Center
BR_NBSCode BR_NBSCode
BR_NCMCode BR_NCMCode
PhoneNumber PhoneNumber Telephone no.
NetValueAmount NetValueAmount
BR_NFDiscountAmountWithTaxes BR_NFDiscountAmountWithTaxes
BR_NFValueAmountWithTaxes BR_NFValueAmountWithTaxes
BR_NFFreightAmountWithTaxes BR_NFFreightAmountWithTaxes
BR_NFInsuranceAmountWithTaxes BR_NFInsuranceAmountWithTaxes
BR_NFNetOtherExpensesAmount BR_NFNetOtherExpensesAmount
BR_NFReductionBaseAmount BR_NFReductionBaseAmount

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 P_BR_RptgNFDataAggregation.
-- 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: PBRRPTGNFDATAAG

CREATE VIEW P_BR_RptgNFDataAggregation AS
SELECT
  CompanyCode,
  BusinessPlace,
  BR_NotaFiscal,
  BR_NotaFiscalItem,
  BR_PaymentForm,
  BR_NFIssueDate,
  BR_NFPostingDate,
  BR_NFSeries,
  BR_NFPartnerType,
  BR_NFPartner,
  LicensePlate,
  BR_NFeNumber,
  BR_NFeAccessKeyCNPJOrCPF,
  BR_NFIssuedBy,
  BR_NFSituationCode,
  BR_NFDirection,
  SupplierInvoice,
  BR_NFModel,
  BR_NFeAccessKey,
  BR_NFPartnerRegionCode,
  BR_NFIsCanceled,
  BR_CTeAccessKey,
  BR_CTeOriginalDocumentType,
  BR_CTeDocumentType,
  BR_CTeJurisdictionCodeOrigin,
  BR_CTeJurisdictionCodeDest,
  FreightPayer,
  BR_NFPartnerTaxJurisdiction,
  Material,
  MaterialName,
  BaseUnit,
  BR_NFIsPhysicalMvtOfMaterial,
  BR_ICMSIsOriginalTaxSituation,
  BR_ICMSTaxSituation,
  BR_CFOPCode,
  NFOperationNature,
  BR_IPITaxSituation,
  BR_PISTaxSituation,
  BR_COFINSTaxSituation,
  GLAccount,
  BR_MaterialUsage,
  ValuationArea,
  ValuationType,
  BR_NFExternalItemNumber,
  BR_SUFRAMACode,
  BR_ICMSTaxLaw,
  BR_IPITaxLaw,
  BR_MaterialOrigin,
  BR_COFINSTaxLaw,
  BR_PISTaxLaw,
  BR_NFCancellationDate,
  BR_NFShippingUnitBrand,
  BR_NFSVerificationCode,
  BR_NFType,
  BR_NFSubSeries,
  BR_NFSNumber,
  BR_NFPartnerStateTaxNumber,
  QuantityInBaseUnit,
  sum( BR_PISSTTaxBaseAmount ) AS BR_PISSTTaxBaseAmount,
  sum( BR_PISSTTaxRate ) AS BR_PISSTTaxRate,
  sum( BR_PISSTTaxAmount ) AS BR_PISSTTaxAmount,
  sum( BR_PISSTTaxExcludedBaseAmount ) AS BR_PISSTTaxExcludedBaseAmount,
  sum( BR_IPITaxBaseAmount ) AS BR_IPITaxBaseAmount,
  sum( BR_IPITaxRate ) AS BR_IPITaxRate,
  sum( BR_IPITaxAmount ) AS BR_IPITaxAmount,
  sum( BR_IPITaxExcludedBaseAmount ) AS BR_IPITaxExcludedBaseAmount,
  sum( BR_IPITaxOtherBaseAmount ) AS BR_IPITaxOtherBaseAmount,
  sum( BR_ISSQNTaxBaseAmount ) AS BR_ISSQNTaxBaseAmount,
  sum( BR_ISSQNTaxRate ) AS BR_ISSQNTaxRate,
  sum( BR_ISSQNTaxAmount ) AS BR_ISSQNTaxAmount,
  sum( BR_ISSQNTaxExcludedBaseAmount ) AS BR_ISSQNTaxExcludedBaseAmount,
  sum( BR_ISSQNTaxOtherBaseAmount ) AS BR_ISSQNTaxOtherBaseAmount,
  sum( BR_PISTaxBaseAmount ) AS BR_PISTaxBaseAmount,
  sum( BR_AppliedPISTaxAmount ) AS BR_AppliedPISTaxAmount,
  sum( BR_PISTaxAmount ) AS BR_PISTaxAmount,
  sum( BR_PISTaxExcludedBaseAmount ) AS BR_PISTaxExcludedBaseAmount,
  sum( BR_PISTaxOtherBaseAmount ) AS BR_PISTaxOtherBaseAmount,
  sum( BR_PISTxFiscalTariffBaseAmount ) AS BR_PISTxFiscalTariffBaseAmount,
  sum( BR_ICMSTaxBaseAmount ) AS BR_ICMSTaxBaseAmount,
  sum( BR_ICMSTaxRate ) AS BR_ICMSTaxRate,
  sum( BR_ICMSTaxAmount ) AS BR_ICMSTaxAmount,
  sum( BR_ICMSTaxExcludedBaseAmount ) AS BR_ICMSTaxExcludedBaseAmount,
  sum( BR_ICMSTaxOtherBaseAmount ) AS BR_ICMSTaxOtherBaseAmount,
  sum( BR_ICMSSTTaxBaseAmount ) AS BR_ICMSSTTaxBaseAmount,
  sum( BR_ICMSSTTaxRate ) AS BR_ICMSSTTaxRate,
  sum( BR_ICMSSTTaxAmount ) AS BR_ICMSSTTaxAmount,
  sum( BR_ICMSSTTaxExcludedBaseAmount ) AS BR_ICMSSTTaxExcludedBaseAmount,
  sum( BR_ICMSSTTaxOtherBaseAmount ) AS BR_ICMSSTTaxOtherBaseAmount,
  sum( BR_COFINSTaxBaseAmount ) AS BR_COFINSTaxBaseAmount,
  sum( BR_AppliedCOFINSTaxAmount ) AS BR_AppliedCOFINSTaxAmount,
  sum( BR_COFINSTaxAmount ) AS BR_COFINSTaxAmount,
  sum( BR_COFINSTaxExcludedBaseAmount ) AS BR_COFINSTaxExcludedBaseAmount,
  sum( BR_COFINSTaxOtherBaseAmount ) AS BR_COFINSTaxOtherBaseAmount,
  sum( BR_COFINSTxFsclTrifBaseAmount ) AS BR_COFINSTxFsclTrifBaseAmount,
  sum( BR_COFINSSTTaxBaseAmount ) AS BR_COFINSSTTaxBaseAmount,
  sum( BR_COFINSSTTaxRate ) AS BR_COFINSSTTaxRate,
  sum( BR_COFINSSTTaxAmount ) AS BR_COFINSSTTaxAmount,
  sum( BR_COFINSSTTaxExcldBaseAmount ) AS BR_COFINSSTTaxExcldBaseAmount,
  sum( BR_COFINSSTTaxOtherBaseAmount ) AS BR_COFINSSTTaxOtherBaseAmount,
  NFHeaderTotalAmount,
  sum( BR_ICMSReductionTaxAmount ) AS BR_ICMSReductionTaxAmount,
  sum( BR_IPIReductionTaxAmount ) AS BR_IPIReductionTaxAmount,
  sum( BR_DIFALTaxBaseAmount ) AS BR_DIFALTaxBaseAmount,
  sum( BR_DIFALTaxRate ) AS BR_DIFALTaxRate,
  sum( BR_DIFALTaxAmount ) AS BR_DIFALTaxAmount,
  sum( BR_DIFALTaxExcludedBaseAmount ) AS BR_DIFALTaxExcludedBaseAmount,
  sum( BR_DIFALTaxOtherBaseAmount ) AS BR_DIFALTaxOtherBaseAmount,
  BR_NFItemType,
  BR_IPIControlSealCode,
  BR_IPIControlSealQuantity,
  PurchaseOrder,
  PurchaseOrderItem,
  NetPriceAmount,
  sum( BR_OutgoingNFOperationAmount ) AS BR_OutgoingNFOperationAmount,
  sum( BR_IncomingNFOperationAmount ) AS BR_IncomingNFOperationAmount,
  NCMCode,
  BR_NFIsMunicipal,
  BR_NFTotalAmount,
  sum( BR_OriginalICMSSTTaxAmount ) AS BR_OriginalICMSSTTaxAmount,
  sum( BR_OriginalIPITaxAmount ) AS BR_OriginalIPITaxAmount,
  sum( BR_OriginalICMSTaxAmount ) AS BR_OriginalICMSTaxAmount,
  sum( BR_OriginalFCPOnICMSTaxAmount ) AS BR_OriginalFCPOnICMSTaxAmount,
  sum( BR_OriglFCPOnICMSSTTaxAmount ) AS BR_OriglFCPOnICMSSTTaxAmount,
  MaterialType,
  BR_NFHasServiceItem,
  SalesDocumentCurrency,
  HeaderWeightUnit,
  IncotermsClassification,
  BR_NFPartnerMunicipalTaxNumber,
  BR_NFSourceDocumentNumber,
  BR_NFSourceDocumentType,
  BR_NFSourceDocumentItem,
  Plant,
  Batch,
  BR_ISSTaxSituation,
  BR_ISSTaxLaw,
  BR_NFItemIsStatistical,
  BR_ReferenceNFNumber,
  BR_ReferenceNFItem,
  BR_NFPriceAmountWithTaxes,
  BR_NFReferenceDocument,
  BR_NFPartnerFunction,
  AccountingDocument,
  BR_NFIsContingency,
  BR_CTeServiceType,
  PaymentTerms,
  BR_NFIsCreatedManually,
  sum( BR_ICMSOriginTaxRate ) AS BR_ICMSOriginTaxRate,
  sum( BR_ICMSOriginTaxAmount ) AS BR_ICMSOriginTaxAmount,
  sum( BR_ICMSOriginTaxBaseAmount ) AS BR_ICMSOriginTaxBaseAmount,
  sum( BR_ICMSDestinationTaxRate ) AS BR_ICMSDestinationTaxRate,
  sum( BR_ICMSDestinationTaxAmount ) AS BR_ICMSDestinationTaxAmount,
  sum( BR_FCPOnICMSTaxRate ) AS BR_FCPOnICMSTaxRate,
  sum( BR_FCPOnICMSTaxAmount ) AS BR_FCPOnICMSTaxAmount,
  sum( BR_FCPOnICMSTaxBaseAmount ) AS BR_FCPOnICMSTaxBaseAmount,
  sum( BR_FCPOnICMSSTTaxRate ) AS BR_FCPOnICMSSTTaxRate,
  sum( BR_FCPOnICMSSTTaxAmount ) AS BR_FCPOnICMSSTTaxAmount,
  sum( BR_FCPOnICMSSTTaxBaseAmount ) AS BR_FCPOnICMSSTTaxBaseAmount,
  BR_NFArrivalOrDepartureDate,
  BR_NFPartnerName1,
  BR_NFPartnerStreetName,
  BusinessPartnerHouseNumber,
  BPHsNmbrSuplmntTxt,
  BR_NFPartnerDistrictName,
  BR_NFPartnerCityName,
  BR_NFPartnerPostalCode,
  CostCenter,
  BR_NBSCode,
  BR_NCMCode,
  PhoneNumber,
  NetValueAmount,
  BR_NFDiscountAmountWithTaxes,
  BR_NFValueAmountWithTaxes,
  BR_NFFreightAmountWithTaxes,
  BR_NFInsuranceAmountWithTaxes,
  BR_NFNetOtherExpensesAmount,
  BR_NFReductionBaseAmount
FROM P_BR_ReportingNFData
;