P_CollectionsInvoiceNote

DDL: P_COLLECTIONSINVOICENOTE Type: view COMPOSITE

P_CollectionsInvoiceNote is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 6 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Associations (1)

CardinalityTargetAliasCondition
[0..*] Sgbt_Nte_Cds_Cont _NoteContent $projection.ObjectKey = _NoteContent.objectid and _NoteContent.objectnodetype = 'CollectionsManagementAccount' and _NoteContent.notetype = 'COLL_PR_INVOICE'

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PCOLLSINVNOTE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey AccountingDocumentItem view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
ObjectKey
_NoteContent _NoteContent

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_CollectionsInvoiceNote.
-- 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 P_CollectionsInvoiceNote AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentItem,
  concat( CompanyCode, concat( AccountingDocument, concat( FiscalYear, AccountingDocumentItem ) ) ) AS ObjectKey
FROM I_OperationalAcctgDocItem
LEFT OUTER JOIN Sgbt_Nte_Cds_Cont AS _NoteContent ON ObjectKey = _NoteContent.objectid AND _NoteContent.objectnodetype = 'CollectionsManagementAccount' AND _NoteContent.notetype = 'COLL_PR_INVOICE'  -- association [0..*]
;