P_SubstanceVariantsCt
P_SubstanceVariantsCt is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_ListedSubstanceVariant) and exposes 2 fields with key field ListedSubstanceUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ListedSubstanceVariant | I_ListedSubstanceVariant | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSUBVARCNT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ListedSubstanceUUID | I_ListedSubstanceVariant | ListedSubstanceUUID | |
| VariantCount |
@AbapCatalog:
{
sqlViewName: 'PSUBVARCNT',
compiler.compareFilter: true
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl:
{
authorizationCheck: #NOT_REQUIRED
}
@VDM.viewType: #CONSUMPTION
@VDM.private: true
/*----------------------------------------------------------------------------------------------------------------------
Private composite view to determine the available listed substance variants for a listed substance.
------------------------------------------------------------------------------------------------------------------------*/
define view P_SubstanceVariantsCt
as select from I_ListedSubstanceVariant
{
key I_ListedSubstanceVariant.ListedSubstanceUUID,
count(*) as VariantCount
}
group by
I_ListedSubstanceVariant.ListedSubstanceUUID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LISTEDSUBSTANCEVARIANT"
],
"ASSOCIATED":
[],
"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