I_BR_Ctenfrefannotations_C

DDL: I_BR_CTENFREFANNOTATIONS_C SQL: IBRCTENFREFANNOC Type: view COMPOSITE Package: GLO_LOG_BR

Brazil Referenced Notas Fiscais in CT-e

I_BR_Ctenfrefannotations_C is a Composite CDS View that provides data about "Brazil Referenced Notas Fiscais in CT-e" in SAP S/4HANA. It reads from 1 data source (I_BR_Ctenotafiscalreference_C) and exposes 9 fields with key fields BR_CTe, BR_CTeReferencedNFSequenceNmbr. It has 1 association to related views. Part of development package GLO_LOG_BR.

Data Sources (1)

SourceAliasJoin Type
I_BR_Ctenotafiscalreference_C ReferencedNotaFiscal from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_BR_NFDocument _BR_NotaFiscal _BR_NotaFiscal.BR_NotaFiscal = ReferencedNotaFiscal.BR_NotaFiscal

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IBRCTENFREFANNOC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Brazil Referenced Notas Fiscais in CT-e view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.preserveKey true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY BR_CTe I_BR_Ctenotafiscalreference_C BR_CTe
KEY BR_CTeReferencedNFSequenceNmbr I_BR_Ctenotafiscalreference_C BR_CTeReferencedNFSequenceNmbr
BR_NFNumber I_BR_Ctenotafiscalreference_C BR_NFNumber
BR_NFeNumber I_BR_Ctenotafiscalreference_C BR_NFeNumber
BR_NFFiscalYear I_BR_Ctenotafiscalreference_C BR_NFFiscalYear
PartnerFirstName
BR_NFIssueDateendasBR_NFIssueDate
BR_NFPostingDate _BR_NotaFiscal BR_NFPostingDate
SalesDocumentCurrency I_BR_Ctenotafiscalreference_C SalesDocumentCurrency 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_Ctenfrefannotations_C.
-- 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: IBRCTENFREFANNOC

CREATE VIEW I_BR_Ctenfrefannotations_C AS
SELECT
  ReferencedNotaFiscal.BR_CTe AS BR_CTe,
  ReferencedNotaFiscal.BR_CTeReferencedNFSequenceNmbr AS BR_CTeReferencedNFSequenceNmbr,
  ReferencedNotaFiscal.BR_NFNumber AS BR_NFNumber,
  ReferencedNotaFiscal.BR_NFeNumber AS BR_NFeNumber,
  ReferencedNotaFiscal.BR_NFFiscalYear AS BR_NFFiscalYear,
  cast( _BR_NotaFiscal.BR_NFPartnerName1 as logbr_partner_name_cte) AS PartnerFirstName,
  case _BR_NotaFiscal.BR_NFIssueDate when '' then ReferencedNotaFiscal.BR_NFIssueDate else _BR_NotaFiscal.BR_NFIssueDate end as BR_NFIssueDate AS BR_NFIssueDateendasBR_NFIssueDate,
  _BR_NotaFiscal.BR_NFPostingDate AS BR_NFPostingDate,
  ReferencedNotaFiscal.SalesDocumentCurrency AS SalesDocumentCurrency
FROM I_BR_Ctenotafiscalreference_C AS ReferencedNotaFiscal
LEFT OUTER JOIN I_BR_NFDocument AS _BR_NotaFiscal ON _BR_NotaFiscal.BR_NotaFiscal = ReferencedNotaFiscal.BR_NotaFiscal  -- association [1..1]
;