A_ProductClass
Class Assignments
A_ProductClass is a Composite CDS View that provides data about "Class Assignments" in SAP S/4HANA. It reads from 1 data source (I_ClfnObjectClassForKeyDate) and exposes 8 fields with key fields Product, ClassInternalID. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ClfnObjectClassForKeyDate | I_ClfnObjectClassForKeyDate | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_ProductClassCharc | _Characteristics | $projection.Product = _Characteristics.Product and $projection.ClassInternalID = _Characteristics.ClassInternalID |
| [1..1] | A_ClfnProductClassHeader | _ClassDetails | $projection.ClassInternalID = _ClassDetails.ClassInternalID |
| [1..1] | A_ClfnProduct | _Product | $projection.Product = _Product.Product |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | ANGCPRODCLFN4 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Class Assignments | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Consumption.filter.businessDate.at | true | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | ClfnObjectID | ||
| KEY | ClassInternalID | ClassInternalID | ||
| KeyDate | ||||
| ChangeNumber | ChangeNumber | |||
| ClassType | ClassType | |||
| _Characteristics | _Characteristics | |||
| _ClassDetails | _ClassDetails | |||
| _Product | _Product |
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'ANGCPRODCLFN4'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Class Assignments'
@VDM.viewType: #COMPOSITE
@VDM.lifecycle.contract.type: #PUBLIC_REMOTE_API
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MIXED
@Consumption.filter.businessDate.at: true
define view A_ProductClass
with parameters
@Consumption.hidden: true
@Semantics.businessDate.at: true
P_KeyDate:sydate
as select from I_ClfnObjectClassForKeyDate(P_KeyDate: $parameters.P_KeyDate) as Classification
association [0..*] to A_ProductClassCharc as _Characteristics on
$projection.Product = _Characteristics.Product and
$projection.ClassInternalID = _Characteristics.ClassInternalID
association [1..1] to A_ClfnProductClassHeader as _ClassDetails on
$projection.ClassInternalID = _ClassDetails.ClassInternalID
association [1..1] to A_ClfnProduct as _Product on
$projection.Product = _Product.Product
{
key ClfnObjectID as Product,
key ClassInternalID,
$parameters.P_KeyDate as KeyDate,
ChangeNumber,
ClassType,
_Characteristics,
_ClassDetails,
_Product
}
where
ClfnObjectTable = 'MARA' or
ClfnObjectTable = 'MARAT'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CLFNOBJECTCLASSFORKEYDATE"
],
"ASSOCIATED":
[
"A_CLFNPRODUCT",
"A_CLFNPRODUCTCLASSHEADER",
"A_PRODUCTCLASSCHARC"
],
"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