P_CollsAccountCollsSegment
Collections Account Segment
P_CollsAccountCollsSegment is a Composite CDS View that provides data about "Collections Account Segment" in SAP S/4HANA. It reads from 3 data sources (I_BPCollectionsSegmentAssgmt, I_BusinessPartnerCustomer, I_CustomerCompany) and exposes 4 fields with key fields Customer, CollectionSegment, CompanyCode, BusinessPartner. Part of development package ODATA_PROCESS_RECEIVABLES.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_BPCollectionsSegmentAssgmt | I_BPCollectionsSegmentAssgmt | inner |
| I_BusinessPartnerCustomer | I_BusinessPartnerCustomer | inner |
| I_CustomerCompany | I_CustomerCompany | inner |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCOLLSACCTSGMT | 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 | Customer | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | I_Customer | Customer | |
| KEY | CollectionSegment | I_BPCollectionsSegmentAssgmt | CollectionSegment | |
| KEY | CompanyCode | |||
| KEY | BusinessPartner | I_BusinessPartnerCustomer | BusinessPartner |
@AbapCatalog: { sqlViewName: 'PCOLLSACCTSGMT',
compiler: { compareFilter: true },
preserveKey: true }
@AccessControl: { authorizationCheck: #NOT_REQUIRED,
personalData: { blocking: #BLOCKED_DATA_EXCLUDED } }
@VDM: { viewType: #COMPOSITE,
private: true }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #A,
sizeCategory: #L,
dataClass: #TRANSACTIONAL },
representativeKey: 'Customer' }
define view P_CollsAccountCollsSegment
as select distinct from I_Customer
inner join I_CustomerCompany on I_Customer.Customer = I_CustomerCompany.Customer
inner join I_BusinessPartnerCustomer on I_Customer.Customer = I_BusinessPartnerCustomer.Customer
left outer to many join(
I_CollsSgmtCompanyCodeAssgmt
inner join I_BPCollectionsSegmentAssgmt on I_CollsSgmtCompanyCodeAssgmt.CollectionSegment = I_BPCollectionsSegmentAssgmt.CollectionSegment
and I_BPCollectionsSegmentAssgmt.BPCollSgmtAssignmentValidTo = '99991231'
)
on I_CustomerCompany.CompanyCode = I_CollsSgmtCompanyCodeAssgmt.CompanyCode
and I_BusinessPartnerCustomer.BusinessPartner = I_BPCollectionsSegmentAssgmt.BusinessPartner
{
key I_Customer.Customer as Customer,
key I_BPCollectionsSegmentAssgmt.CollectionSegment as CollectionSegment,
key cast ( '' as bukrs ) as CompanyCode,
key I_BusinessPartnerCustomer.BusinessPartner as BusinessPartner
}
where
I_BPCollectionsSegmentAssgmt.CollectionSegment is not null
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA