I_CollectionsAccount
Collections Management Account
I_CollectionsAccount is a Composite CDS View that provides data about "Collections Management Account" in SAP S/4HANA. It reads from 2 data sources (P_CollsAccountCollsSegment, P_CollsAccountCompanyCode) and exposes 15 fields with key fields Customer, CollectionSegment, CompanyCode, BusinessPartner, CollectionSegment. It has 4 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_CollsAccountCollsSegment | P_CollsAccountCollsSegment | union_all |
| P_CollsAccountCompanyCode | P_CollsAccountCompanyCode | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_CollectionSegment | _CollectionSegment | $projection.CollectionSegment = _CollectionSegment.CollectionSegment |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICOLLSACC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Collections Management Account | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | Customer | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | Customer | ||
| KEY | CollectionSegment | |||
| KEY | CompanyCode | CompanyCode | ||
| KEY | BusinessPartner | BusinessPartner | ||
| _Customer | _Customer | |||
| _BusinessPartner | _BusinessPartner | |||
| _CompanyCode | _CompanyCode | |||
| CollectionSegmentkeyCustomer | ||||
| KEY | CollectionSegment | CollectionSegment | ||
| KEY | CompanyCode | CompanyCode | ||
| KEY | BusinessPartner | BusinessPartner | ||
| _Customer | _Customer | |||
| _BusinessPartner | _BusinessPartner | |||
| _CompanyCode | _CompanyCode | |||
| _CollectionSegment | _CollectionSegment |
@AbapCatalog: { sqlViewName: 'ICOLLSACC',
compiler: { compareFilter: true },
preserveKey: true }
@AccessControl: { authorizationCheck: #CHECK,
personalData: { blocking: #BLOCKED_DATA_EXCLUDED } }
@EndUserText: { label: 'Collections Management Account' }
@VDM: { viewType: #COMPOSITE,
lifecycle: { contract: { type: #SAP_INTERNAL_API } } }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #D,
sizeCategory: #L,
dataClass: #TRANSACTIONAL },
semanticKey: [ 'Customer', 'CompanyCode' ],
representativeKey: 'Customer' }
define view I_CollectionsAccount
as select from P_CollsAccountCompanyCode
// VDM Associations
// Customer
association [0..1] to I_Customer as _Customer on $projection.Customer = _Customer.Customer
// Business Partner
association [0..1] to I_BusinessPartner as _BusinessPartner on $projection.BusinessPartner = _BusinessPartner.BusinessPartner
// Company Code
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
// Collection Segment
association [0..1] to I_CollectionSegment as _CollectionSegment on $projection.CollectionSegment = _CollectionSegment.CollectionSegment
{
// VDM Fields
@ObjectModel: { foreignKey: { association: '_Customer' } }
key Customer,
@ObjectModel: { foreignKey: { association: '_CollectionSegment' } }
key cast( CollectionSegment as farp_collection_segment preserving type ) as CollectionSegment,
@ObjectModel: { foreignKey: { association: '_CompanyCode' } }
key CompanyCode,
@ObjectModel: { foreignKey: { association: '_BusinessPartner' } }
key BusinessPartner,
// Exposed Associations
_Customer,
_BusinessPartner,
_CompanyCode,
_CollectionSegment
}
union all select from P_CollsAccountCollsSegment
// VDM Associations
// Customer
association [0..1] to I_Customer as _Customer on $projection.Customer = _Customer.Customer
// Business Partner
association [0..1] to I_BusinessPartner as _BusinessPartner on $projection.BusinessPartner = _BusinessPartner.BusinessPartner
// Company Code
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
// Collection Segment
association [0..1] to I_CollectionSegment as _CollectionSegment on $projection.CollectionSegment = _CollectionSegment.CollectionSegment
{
// VDM Fields
@ObjectModel: { foreignKey: { association: '_Customer' } }
key Customer,
@ObjectModel: { foreignKey: { association: '_CollectionSegment' } }
key CollectionSegment,
@ObjectModel: { foreignKey: { association: '_CompanyCode' } }
key CompanyCode,
@ObjectModel: { foreignKey: { association: '_BusinessPartner' } }
key BusinessPartner,
// Exposed Associations
_Customer,
_BusinessPartner,
_CompanyCode,
_CollectionSegment
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_COLLSACCOUNTCOLLSSEGMENT",
"P_COLLSACCOUNTCOMPANYCODE"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_COLLECTIONSEGMENT",
"I_COMPANYCODE",
"I_CUSTOMER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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