P_SubscriptionProductPurpose
P_SubscriptionProductPurpose is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (mara, t134) and exposes 2 fields with key field Product.
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSPRURPOSE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
@AbapCatalog.sqlViewName: 'PSPRURPOSE'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Subscription Product Purpose'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #BASIC
define view P_SubscriptionProductPurpose
as select from mara as Product
inner join t134 as ProductType on Product.mtart = ProductType.mtart
left outer to one join crms4c_som_prcat as SubscriptionProductPurpose on Product.mtart = SubscriptionProductPurpose.producttype
{
key Product.matnr as Product,
Product.mtart as ProductType,
case SubscriptionProductPurpose.prod_class
when 'B' then SubscriptionProductPurpose.prod_class
when 'P' then SubscriptionProductPurpose.prod_class
when 'A' then SubscriptionProductPurpose.prod_class
else ''
end as SubscriptionProductPurpose
}
where
ProductType.prod_type_code = '3';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"CRMS4C_SOM_PRCAT",
"MARA",
"T134"
],
"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