P_CollectionsAccountNote

DDL: P_COLLECTIONSACCOUNTNOTE Type: view COMPOSITE

P_CollectionsAccountNote is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_BPCollectionsSegmentAssgmt, I_BusinessPartnerCustomer) and exposes 6 fields with key fields Customer, CollectionSegment. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BPCollectionsSegmentAssgmt I_BPCollectionsSegmentAssgmt inner
I_BusinessPartnerCustomer I_BusinessPartnerCustomer inner

Associations (2)

CardinalityTargetAliasCondition
[0..*] Sgbt_Nte_Cds_Cont _NoteContent $projection.ObjectKey = _NoteContent.objectid and _NoteContent.objectnodetype = 'CollectionsManagementAccount' and _NoteContent.notetype = 'COLL_PR_ACCOUNT'
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PCLLSACCNTE 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 #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey Customer view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Customer I_Customer Customer Sold-to Party
KEY CollectionSegment CollectionSegment Segment
ObjectKey
_NoteContent _NoteContent
_Customer _Customer
_CollectionSegment _CollectionSegment

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_CollectionsAccountNote.
-- 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_CollectionsAccountNote AS
SELECT
  I_Customer.Customer AS Customer,
  CollectionSegment,
  concat(I_Customer.Customer, CollectionSegment) AS ObjectKey
INNER JOIN I_BusinessPartnerCustomer ON /* join condition not captured in parsed metadata */
INNER JOIN I_BPCollectionsSegmentAssgmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN Sgbt_Nte_Cds_Cont AS _NoteContent ON ObjectKey = _NoteContent.objectid AND _NoteContent.objectnodetype = 'CollectionsManagementAccount' AND _NoteContent.notetype = 'COLL_PR_ACCOUNT'  -- association [0..*]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
;