A_BR_NFDocument

DDL: A_BR_NFDOCUMENT SQL: ABRNFDOCUMENT Type: view BASIC

Brazil Nota Fiscal

A_BR_NFDocument is a Basic CDS View that provides data about "Brazil Nota Fiscal" in SAP S/4HANA. It reads from 1 data source (I_BR_NFDocument) and exposes 177 fields with key field BR_NotaFiscal. It has 16 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BR_NFDocument Root from

Associations (16)

CardinalityTargetAliasCondition
[0..*] A_BR_NFItem _BR_NFItem
[0..*] A_BR_NFPartner _BR_NFPartner
[0..*] A_BR_OneTimePartner _BR_OneTimePartner
[0..*] A_BR_NFImportDocument _BR_NFImportDocument
[0..*] A_BR_NFTransportedVolume _BR_NFTransportedVolume
[0..*] A_BR_NFTrailer _BR_NFTrailer
[0..*] A_BR_NFTradeNote _BR_NFTradeNote
[0..*] A_BR_NFAdditionalInformation _BR_NFAdditionalInformation
[0..*] A_BR_NFReferencedProcess _BR_NFReferencedProcess
[0..*] A_BR_NFSugarCaneSupply _BR_NFSugarCaneSupply
[0..*] A_BR_NFSugarCaneDeductible _BR_NFSugarCaneDeductible
[0..*] A_BR_NFePayment _BR_NFePayment
[0..1] A_BR_TechnicalResponsible _BR_TechnicalResponsible
[0..*] A_BR_NFHeaderText _BR_NFHeaderText
[0..1] A_BR_NFExportDeclaration _BR_NFExportDeclaration
[0..*] A_BR_NFDocumentReference _BR_NFDocumentReference

Annotations (19)

NameValueLevelField
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #BASIC view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName ABRNFDOCUMENT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Brazil Nota Fiscal view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
OData.entitySet.name A_BR_NFDocument view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.representativeKey BR_NotaFiscal view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled false view

Fields (177)

KeyFieldSource TableSource FieldDescription
KEY BR_NotaFiscal BR_NotaFiscal Nota Fiscal
BR_NFPartnerFunction BR_NFPartnerFunction Task Processor
BR_NFPartner BR_NFPartner Partner ID
BR_NFPartnerName1 BR_NFPartnerName1 PA text
BR_NFPartnerName2 BR_NFPartnerName2 Name2/First nme
BR_NFPartnerName3 BR_NFPartnerName3 Name 3
BR_NFPartnerName4 BR_NFPartnerName4 Name 4
PartnerIsOneTimeAccount PartnerIsOneTimeAccount One-time acct
BR_NFPartnerType BR_NFPartnerType
BR_NFPartnerStreetName BR_NFPartnerStreetName Street/House
BusinessPartnerHouseNumber BusinessPartnerHouseNumber House Number
BPHsNmbrSuplmntTxt BPHsNmbrSuplmntTxt Supplement
BR_NFPartnerCityName BR_NFPartnerCityName Province
BR_NFPartnerRegionCode BR_NFPartnerRegionCode Resident Region
BR_NFPartnerDistrictName BR_NFPartnerDistrictName District
BR_NFPartnerCountryCode BR_NFPartnerCountryCode Trip Ctry/Reg
BR_NFPartnerPostalCode BR_NFPartnerPostalCode Postal Code
BR_NFPartnerIsNaturalPerson BR_NFPartnerIsNaturalPerson
BR_NFPartnerCNPJ BR_NFPartnerCNPJ
BR_NFPartnerCPF BR_NFPartnerCPF
PhoneNumber PhoneNumber Telephone no.
BR_NFPartnerStateTaxNumber BR_NFPartnerStateTaxNumber State Tax No.
BR_NFPartnerMunicipalTaxNumber BR_NFPartnerMunicipalTaxNumber Munic. Tax No.
BR_NFPartnerStateTaxNumberST BR_NFPartnerStateTaxNumberST IE SubTrib
BR_NFPartnerCNAE BR_NFPartnerCNAE CNAE
BR_NFPartnerTaxRegimenCode BR_NFPartnerTaxRegimenCode Tax. Code
BR_PartnerCFOPCategory BR_PartnerCFOPCategory CFOP Category
BR_SUFRAMACode BR_SUFRAMACode SUFRAMA
BR_SPEDTaxCategory BR_SPEDTaxCategory Category
ReportingIncgOrOutgDate ReportingIncgOrOutgDate TMF Reporting Date
BR_NFPartnerTaxJurisdiction BR_NFPartnerTaxJurisdiction Tax Jurisdict.
BR_NFObservationText BR_NFObservationText Observations
MeansOfTransportType MeansOfTransportType
MeansOfTransport MeansOfTransport
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
ShippingPoint ShippingPoint Shipping Point
BR_NFShippingUnitBrand BR_NFShippingUnitBrand
BR_NFShippingUnitNumber BR_NFShippingUnitNumber
BR_NFNumberOfPackages BR_NFNumberOfPackages
BR_NFShippingUnit BR_NFShippingUnit
BR_NFArrivalOrDepartureDate BR_NFArrivalOrDepartureDate Dep./Arr. Date
HeaderWeightUnit HeaderWeightUnit Weight Unit
HeaderNetWeight HeaderNetWeight
HeaderGrossWeight HeaderGrossWeight
BR_NFArrivalOrDepartureTime BR_NFArrivalOrDepartureTime
BR_WhldgICMSForTranspCFOP BR_WhldgICMSForTranspCFOP
BR_WhldgICMSForTranspCity BR_WhldgICMSForTranspCity City Code
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LogicalSystem LogicalSystem Logical System
LastChangedByUser LastChangedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangeTime LastChangeTime Time changed
PaymentTerms PaymentTerms Pyt Terms
BR_NFIsPrinted BR_NFIsPrinted
BR_NFIsCreatedManually BR_NFIsCreatedManually Manually Created NF
BR_NFIsIncomingIssdByCust BR_NFIsIncomingIssdByCust NF Entrada
BR_NFIsCanceled BR_NFIsCanceled
BR_NFIsChargingInvoice BR_NFIsChargingInvoice
BR_NFDirection BR_NFDirection
BR_NFType BR_NFType
BR_NFDocumentType BR_NFDocumentType
BR_NFModel BR_NFModel
BR_NFNumber BR_NFNumber
BR_NFSeries BR_NFSeries
BR_NFSubSeries BR_NFSubSeries Sub series
BR_NFSituationCode BR_NFSituationCode Status
BR_NFIssuedBy BR_NFIssuedBy
BR_NFIsContingency BR_NFIsContingency
BR_NFAuthznProtocolNumber BR_NFAuthznProtocolNumber Protocol No.
BR_NFAuthenticationDate BR_NFAuthenticationDate
BR_NFAuthenticationTime BR_NFAuthenticationTime
BR_NFeXMLVersion BR_NFeXMLVersion XML Version
SupplierInvoice SupplierInvoice Number
BR_NFOriginalAmount BR_NFOriginalAmount
BR_NFDiscountAmount BR_NFDiscountAmount
BR_NFNetAmount BR_NFNetAmount
BR_NFCommitmentNote BR_NFCommitmentNote Commt. Nt.
SugarcaneHarvest SugarcaneHarvest
SugarcaneRefMonthYear SugarcaneRefMonthYear
SugarcaneCurMnthQtyUnit SugarcaneCurMnthQtyUnit
SugarcaneCurrentMonthQty SugarcaneCurrentMonthQty
SugarcaneLastMnthQtyUnit SugarcaneLastMnthQtyUnit
SugarcaneLastMnthQuantity SugarcaneLastMnthQuantity
SugarcaneSumBothMnthsQtyUnit SugarcaneSumBothMnthsQtyUnit
SugarcaneSumBothMonthsQty SugarcaneSumBothMonthsQty
SugarcaneSuppliesAmount SugarcaneSuppliesAmount
SugarcaneTotalDeductionAmount SugarcaneTotalDeductionAmount
SugarcaneSuppliesNetAmt SugarcaneSuppliesNetAmt
BR_NFeDocumentStatus BR_NFeDocumentStatus
BR_NFIsFinalConsumer BR_NFIsFinalConsumer Final Consumer
BR_NFeCustomerPresence BR_NFeCustomerPresence
BR_NFeDestination BR_NFeDestination
CompanyCode CompanyCode Receiver Company Code
BR_NFPostingDate BR_NFPostingDate
BusinessPlace BusinessPlace Business place
BR_BusinessPlaceCNPJ BR_BusinessPlaceCNPJ
BusinessPlaceStateTaxNumber BusinessPlaceStateTaxNumber
BR_BusPlaceStateTaxNumberST BR_BusPlaceStateTaxNumberST
BusPlaceMunicipalTaxNumber BusPlaceMunicipalTaxNumber
BR_BusinessPlaceCNAE BR_BusinessPlaceCNAE
BusinessPlaceTaxRegimenCode BusinessPlaceTaxRegimenCode
BR_NFTotalAmount BR_NFTotalAmount Total value
SalesDocumentCurrency SalesDocumentCurrency Currency
AccountingDocument AccountingDocument Journal Entry
BR_NFFiscalYear BR_NFFiscalYear Settlement Year
BR_NFWithholdingAmount BR_NFWithholdingAmount
BR_PaymentForm BR_PaymentForm
FreightPayer FreightPayer Freight Payer
BR_ANTTCarrierRegistration BR_ANTTCarrierRegistration
BR_NFeNumber BR_NFeNumber
WagonID WagonID
FerryBoatID FerryBoatID
BR_NFExportShipmentPlace BR_NFExportShipmentPlace Ship.Place
BR_NFExportShipmentRegion BR_NFExportShipmentRegion
BR_NFExportDispatchLocation BR_NFExportDispatchLocation
BR_NFIssueDate BR_NFIssueDate
BR_NFIsMunicipal BR_NFIsMunicipal
BR_NFOperationTypeDesc BR_NFOperationTypeDesc
BR_IsNFe BR_IsNFe
BR_NFCancellationDate BR_NFCancellationDate
BR_NFHasFollowOnDocument BR_NFHasFollowOnDocument
BR_NFReferenceDocument BR_NFReferenceDocument
LicensePlate LicensePlate License Plate
VehicleRegion VehicleRegion Region
BR_UtilsNFNumber BR_UtilsNFNumber
BR_NFPartnerPlaceType BR_NFPartnerPlaceType
BR_NFIsCalculatedByTaxService BR_NFIsCalculatedByTaxService
ChangeAmount ChangeAmount
BR_NFFiscalCouponDocModel BR_NFFiscalCouponDocModel Fiscal Coupon Model
BR_NFOperationOrderNumber BR_NFOperationOrderNumber Operation Number
BR_NFPartnerForeignIdn BR_NFPartnerForeignIdn
BR_CTeDocumentType BR_CTeDocumentType
BR_CTeMainProductTransported BR_CTeMainProductTransported
BR_CTeTotalGoodsAmount BR_CTeTotalGoodsAmount
BR_CTePartnerServiceTaker BR_CTePartnerServiceTaker CT-e Serv.Taker
BR_CTeFiscalDocumentPartner BR_CTeFiscalDocumentPartner CT-e Partner Doc.
BR_CTeServiceType BR_CTeServiceType Service Type
BR_CTeTransportationMode BR_CTeTransportationMode
BR_CTeEstimatedDeliveryDate BR_CTeEstimatedDeliveryDate Estimated Date
BR_CTeIsTruckFullyLoaded BR_CTeIsTruckFullyLoaded Full Truck Load
BR_CTeJurisdictionCodeOrigin BR_CTeJurisdictionCodeOrigin OrigJurCod
BR_CTeJurisdictionCodeDest BR_CTeJurisdictionCodeDest Final Jur.Code
BR_NFSVerificationCode BR_NFSVerificationCode
BR_NFSNumber BR_NFSNumber NFS-e Number
BR_NFHasServiceItem BR_NFHasServiceItem Service NF
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
CompanyCodeName CompanyCodeName Company Name
BR_NFeIntermediatorTransaction BR_NFeIntermediatorTransaction
BR_NFeIntermediatorRegistry BR_NFeIntermediatorRegistry
BR_NFeIntermediatorCNPJ BR_NFeIntermediatorCNPJ
TaxReformBR_DebitNFType
BR_CreditNFType BR_CreditNFType
BR_GovernmentEntityType BR_GovernmentEntityType
BR_GovPurRateReducnPercent BR_GovPurRateReducnPercent
BR_GvmntEntityOperationType BR_GvmntEntityOperationType
BR_NFMessageText
BR_NFAdditionalFiscalInfoText
BR_NFAdditionalCompanyInfoText
_BR_NFItem _BR_NFItem
_BR_NFPartner _BR_NFPartner
_BR_OneTimePartner _BR_OneTimePartner
_BR_NFImportDocument _BR_NFImportDocument
_BR_NFTransportedVolume _BR_NFTransportedVolume
_BR_NFTrailer _BR_NFTrailer
_BR_NFTradeNote _BR_NFTradeNote
_BR_NFAdditionalInformation _BR_NFAdditionalInformation
_BR_NFReferencedProcess _BR_NFReferencedProcess
_BR_NFSugarCaneSupply _BR_NFSugarCaneSupply
_BR_NFSugarCaneDeductible _BR_NFSugarCaneDeductible
_BR_NFePayment _BR_NFePayment
_BR_TechnicalResponsible _BR_TechnicalResponsible
_BR_NFHeaderText _BR_NFHeaderText
_BR_NFExportDeclaration _BR_NFExportDeclaration
_BR_NFDocumentReference _BR_NFDocumentReference

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 A_BR_NFDocument.
-- 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: ABRNFDOCUMENT

CREATE VIEW A_BR_NFDocument AS
SELECT
  BR_NotaFiscal,
  BR_NFPartnerFunction,
  BR_NFPartner,
  BR_NFPartnerName1,
  BR_NFPartnerName2,
  BR_NFPartnerName3,
  BR_NFPartnerName4,
  PartnerIsOneTimeAccount,
  BR_NFPartnerType,
  BR_NFPartnerStreetName,
  BusinessPartnerHouseNumber,
  BPHsNmbrSuplmntTxt,
  BR_NFPartnerCityName,
  BR_NFPartnerRegionCode,
  BR_NFPartnerDistrictName,
  BR_NFPartnerCountryCode,
  BR_NFPartnerPostalCode,
  BR_NFPartnerIsNaturalPerson,
  BR_NFPartnerCNPJ,
  BR_NFPartnerCPF,
  PhoneNumber,
  BR_NFPartnerStateTaxNumber,
  BR_NFPartnerMunicipalTaxNumber,
  BR_NFPartnerStateTaxNumberST,
  BR_NFPartnerCNAE,
  BR_NFPartnerTaxRegimenCode,
  BR_PartnerCFOPCategory,
  BR_SUFRAMACode,
  BR_SPEDTaxCategory,
  ReportingIncgOrOutgDate,
  BR_NFPartnerTaxJurisdiction,
  BR_NFObservationText,
  MeansOfTransportType,
  MeansOfTransport,
  IncotermsClassification,
  IncotermsTransferLocation,
  ShippingPoint,
  BR_NFShippingUnitBrand,
  BR_NFShippingUnitNumber,
  BR_NFNumberOfPackages,
  BR_NFShippingUnit,
  BR_NFArrivalOrDepartureDate,
  HeaderWeightUnit,
  HeaderNetWeight,
  HeaderGrossWeight,
  BR_NFArrivalOrDepartureTime,
  BR_WhldgICMSForTranspCFOP,
  BR_WhldgICMSForTranspCity,
  CreatedByUser,
  CreationDate,
  CreationTime,
  LogicalSystem,
  LastChangedByUser,
  LastChangeDate,
  LastChangeTime,
  PaymentTerms,
  BR_NFIsPrinted,
  BR_NFIsCreatedManually,
  BR_NFIsIncomingIssdByCust,
  BR_NFIsCanceled,
  BR_NFIsChargingInvoice,
  BR_NFDirection,
  BR_NFType,
  BR_NFDocumentType,
  BR_NFModel,
  BR_NFNumber,
  BR_NFSeries,
  BR_NFSubSeries,
  BR_NFSituationCode,
  BR_NFIssuedBy,
  BR_NFIsContingency,
  BR_NFAuthznProtocolNumber,
  BR_NFAuthenticationDate,
  BR_NFAuthenticationTime,
  BR_NFeXMLVersion,
  SupplierInvoice,
  BR_NFOriginalAmount,
  BR_NFDiscountAmount,
  BR_NFNetAmount,
  BR_NFCommitmentNote,
  SugarcaneHarvest,
  SugarcaneRefMonthYear,
  SugarcaneCurMnthQtyUnit,
  SugarcaneCurrentMonthQty,
  SugarcaneLastMnthQtyUnit,
  SugarcaneLastMnthQuantity,
  SugarcaneSumBothMnthsQtyUnit,
  SugarcaneSumBothMonthsQty,
  SugarcaneSuppliesAmount,
  SugarcaneTotalDeductionAmount,
  SugarcaneSuppliesNetAmt,
  BR_NFeDocumentStatus,
  BR_NFIsFinalConsumer,
  BR_NFeCustomerPresence,
  BR_NFeDestination,
  CompanyCode,
  BR_NFPostingDate,
  BusinessPlace,
  BR_BusinessPlaceCNPJ,
  BusinessPlaceStateTaxNumber,
  BR_BusPlaceStateTaxNumberST,
  BusPlaceMunicipalTaxNumber,
  BR_BusinessPlaceCNAE,
  BusinessPlaceTaxRegimenCode,
  BR_NFTotalAmount,
  SalesDocumentCurrency,
  AccountingDocument,
  BR_NFFiscalYear,
  BR_NFWithholdingAmount,
  BR_PaymentForm,
  FreightPayer,
  BR_ANTTCarrierRegistration,
  BR_NFeNumber,
  WagonID,
  FerryBoatID,
  BR_NFExportShipmentPlace,
  BR_NFExportShipmentRegion,
  BR_NFExportDispatchLocation,
  BR_NFIssueDate,
  BR_NFIsMunicipal,
  BR_NFOperationTypeDesc,
  BR_IsNFe,
  BR_NFCancellationDate,
  BR_NFHasFollowOnDocument,
  BR_NFReferenceDocument,
  LicensePlate,
  VehicleRegion,
  BR_UtilsNFNumber,
  BR_NFPartnerPlaceType,
  BR_NFIsCalculatedByTaxService,
  ChangeAmount,
  BR_NFFiscalCouponDocModel,
  BR_NFOperationOrderNumber,
  BR_NFPartnerForeignIdn,
  BR_CTeDocumentType,
  BR_CTeMainProductTransported,
  BR_CTeTotalGoodsAmount,
  BR_CTePartnerServiceTaker,
  BR_CTeFiscalDocumentPartner,
  BR_CTeServiceType,
  BR_CTeTransportationMode,
  BR_CTeEstimatedDeliveryDate,
  BR_CTeIsTruckFullyLoaded,
  BR_CTeJurisdictionCodeOrigin,
  BR_CTeJurisdictionCodeDest,
  BR_NFSVerificationCode,
  BR_NFSNumber,
  BR_NFHasServiceItem,
  IsBusinessPurposeCompleted,
  CompanyCodeName,
  BR_NFeIntermediatorTransaction,
  BR_NFeIntermediatorRegistry,
  BR_NFeIntermediatorCNPJ,
  BR_CreditNFType,
  BR_GovernmentEntityType,
  BR_GovPurRateReducnPercent,
  BR_GvmntEntityOperationType,
  cast('' as abap.sstring(999)) AS BR_NFMessageText,
  cast('' as abap.sstring(132)) AS BR_NFAdditionalFiscalInfoText,
  cast('' as abap.sstring(132)) AS BR_NFAdditionalCompanyInfoText
FROM I_BR_NFDocument AS Root
LEFT OUTER JOIN A_BR_NFItem AS _BR_NFItem ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFPartner AS _BR_NFPartner ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_OneTimePartner AS _BR_OneTimePartner ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFImportDocument AS _BR_NFImportDocument ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFTransportedVolume AS _BR_NFTransportedVolume ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFTrailer AS _BR_NFTrailer ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFTradeNote AS _BR_NFTradeNote ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFAdditionalInformation AS _BR_NFAdditionalInformation ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFReferencedProcess AS _BR_NFReferencedProcess ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFSugarCaneSupply AS _BR_NFSugarCaneSupply ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFSugarCaneDeductible AS _BR_NFSugarCaneDeductible ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFePayment AS _BR_NFePayment ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_TechnicalResponsible AS _BR_TechnicalResponsible ON /* condition not available in parsed metadata */  -- association [0..1]
LEFT OUTER JOIN A_BR_NFHeaderText AS _BR_NFHeaderText ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN A_BR_NFExportDeclaration AS _BR_NFExportDeclaration ON /* condition not available in parsed metadata */  -- association [0..1]
LEFT OUTER JOIN A_BR_NFDocumentReference AS _BR_NFDocumentReference ON /* condition not available in parsed metadata */  -- association [0..*]
;