I_BR_SINFPosted

DDL: I_BR_SINFPOSTED Type: view_entity COMPOSITE

List Posted Shipment NF

I_BR_SINFPosted is a Composite CDS View that provides data about "List Posted Shipment NF" in SAP S/4HANA. It reads from 1 data source (I_BR_NFDocument) and exposes 13 fields with key fields BR_NotaFiscal, BR_NFReferenceDocument. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BR_NFDocument Document from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_BR_SINFDocument _BR_SINFDocument $projection.BR_NFReferenceDocument = _BR_SINFDocument.BR_NotaFiscal
[1..1] I_BR_NFeActive _BR_NFeActive $projection.BR_NotaFiscal = _BR_NFeActive.BR_NotaFiscal
[0..1] I_BR_BusinessPlace_C _BR_BusinessPlace _BR_BusinessPlace.Branch = $projection.BusinessPlace and _BR_BusinessPlace.CompanyCode = Document.CompanyCode

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label List Posted Shipment NF view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #C view
VDM.viewType #COMPOSITE view
VDM.lifecycle.status #DECOMMISSIONED view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY BR_NotaFiscal I_BR_NFDocument BR_NotaFiscal Nota Fiscal
KEY BR_NFReferenceDocument
BR_NFReceiverID
BusinessPlaceName _BR_BusinessPlace BusinessPlaceName
BusinessPlace I_BR_NFDocument BusinessPlace Business place
SalesDocumentCurrency I_BR_NFDocument SalesDocumentCurrency Currency
BR_NFTotalAmount
CompanyCode I_BR_NFDocument CompanyCode Receiver Company Code
CompanyCodeName I_BR_NFDocument CompanyCodeName Company Name
CompanyCodeDescription
IsBusinessPurposeCompleted I_BR_NFDocument IsBusinessPurposeCompleted Purpose Completed
_BR_SINFPostedHeader _BR_SINFPostedHeader
_BR_SINFDocument _BR_SINFDocument

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_SINFPosted.
-- 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.

CREATE VIEW I_BR_SINFPosted AS
SELECT
  Document.BR_NotaFiscal AS BR_NotaFiscal,
  cast( lpad( Document.BR_NFReferenceDocument, 10, '0' ) as logbr_docnum ) AS BR_NFReferenceDocument,
  cast( Document.BusinessPlace as logbr_nfreceivercode) AS BR_NFReceiverID,
  _BR_BusinessPlace.BusinessPlaceName AS BusinessPlaceName,
  Document.BusinessPlace AS BusinessPlace,
  Document.SalesDocumentCurrency AS SalesDocumentCurrency,
  cast(Document.BR_NFTotalAmount as logbr_nftotalamount preserving type) AS BR_NFTotalAmount,
  Document.CompanyCode AS CompanyCode,
  Document.CompanyCodeName AS CompanyCodeName,
  cast(concat_with_space(Document.CompanyCodeName, concat( concat('(', Document.CompanyCode), ')') , 1) as logbr_companycode ) AS CompanyCodeDescription,
  Document.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_BR_NFDocument AS Document
LEFT OUTER JOIN I_BR_SINFDocument AS _BR_SINFDocument ON BR_NFReferenceDocument = _BR_SINFDocument.BR_NotaFiscal  -- association [1..1]
LEFT OUTER JOIN I_BR_NFeActive AS _BR_NFeActive ON BR_NotaFiscal = _BR_NFeActive.BR_NotaFiscal  -- association [1..1]
LEFT OUTER JOIN I_BR_BusinessPlace_C AS _BR_BusinessPlace ON _BR_BusinessPlace.Branch = BusinessPlace AND _BR_BusinessPlace.CompanyCode = Document.CompanyCode  -- association [0..1]
;