I_PSDProduct
PSD Product
I_PSDProduct is a Basic CDS View that provides data about "PSD Product" in SAP S/4HANA. It reads from 2 data sources (/sapapo/psdpro, mara) and exposes 21 fields with key fields ProductStorageDefinition, PSDProduct.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| /sapapo/psdpro | /sapapo/psdpro | from |
| mara | mara | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPSDPRODUCT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | PSD Product | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductStorageDefinition | /sapapo/psdpro | def_set_id | |
| KEY | PSDProduct | /sapapo/psdpro | storprod_id | |
| ProductInternalUUID | /sapapo/psdpro | matid | ||
| LocationUUID | /sapapo/psdpro | locid | ||
| PSDInputOutputHandling | /sapapo/psdpro | io_indicator | ||
| PSDProductBaseQuantity | /sapapo/psdpro | base_qty | ||
| GoodsReceiptDurationIsApplied | /sapapo/psdpro | is_gr_dur_applied | ||
| PSDConsumptionType | /sapapo/psdpro | consumption_type | ||
| PSDComponentUUID | /sapapo/psdpro | compid | ||
| PSDIsSetByExternalSystem | /sapapo/psdpro | is_set_by_extsys | ||
| CreatedByUserName | /sapapo/psdpro | user_created | ||
| CreationDateTime | /sapapo/psdpro | time_stamp_cre | ||
| LastChangedByUser | /sapapo/psdpro | user_modified | ||
| LastChangeDateTime | /sapapo/psdpro | time_stamp_mod | ||
| PSDProductBaseUnit | /sapapo/psdpro | base_uom | ||
| PSDIsTDPPDurationApplied | /sapapo/psdpro | is_tdpp_dur_applied | ||
| PSDActivityDurationOffset | /sapapo/psdpro | duration_offset | ||
| PSDActivityDurationOffsetUnit | /sapapo/psdpro | duration_offset_unit | ||
| PSDCompIsBlockedForPlanning | /sapapo/psdpro | is_comp_blocked_for_planning | ||
| AdvancedPlanningProductName | mara | matnr | ||
| Location | /sapapo/loc | locno |
@AbapCatalog:{ sqlViewName: 'IPSDPRODUCT',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'PSD Product'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM:{ viewType: #BASIC,
lifecycle.contract.type: #NONE }
@ObjectModel:{ usageType.serviceQuality: #A,
usageType.sizeCategory: #M,
usageType.dataClass: #MASTER }
define view I_PSDProduct
as select from /sapapo/psdpro
-- Join with Mara table enables search based on Material number
inner join mara as mara on /sapapo/psdpro.matid = mara.scm_matid_guid22
-- Join with Location table enables search based on Location : Location is not mandatory
left outer to one join /sapapo/loc as /sapapo/loc on /sapapo/psdpro.locid = /sapapo/loc.locid
{
key /sapapo/psdpro.def_set_id as ProductStorageDefinition,
key /sapapo/psdpro.storprod_id as PSDProduct,
@Semantics.uuid: true
/sapapo/psdpro.matid as ProductInternalUUID,
@Semantics.uuid: true
/sapapo/psdpro.locid as LocationUUID,
/sapapo/psdpro.io_indicator as PSDInputOutputHandling,
@Semantics.quantity.unitOfMeasure: 'PSDProductBaseUnit'
/sapapo/psdpro.base_qty as PSDProductBaseQuantity,
/sapapo/psdpro.is_gr_dur_applied as GoodsReceiptDurationIsApplied,
/sapapo/psdpro.consumption_type as PSDConsumptionType,
@Semantics.uuid: true
/sapapo/psdpro.compid as PSDComponentUUID,
/sapapo/psdpro.is_set_by_extsys as PSDIsSetByExternalSystem,
@Semantics.user.createdBy: true
/sapapo/psdpro.user_created as CreatedByUserName,
@Semantics.systemDate.createdAt: true
/sapapo/psdpro.time_stamp_cre as CreationDateTime,
@Semantics.user.lastChangedBy: true
/sapapo/psdpro.user_modified as LastChangedByUser,
@Semantics.systemDate.lastChangedAt: true
/sapapo/psdpro.time_stamp_mod as LastChangeDateTime,
@Semantics.unitOfMeasure: true
/sapapo/psdpro.base_uom as PSDProductBaseUnit,
/sapapo/psdpro.is_tdpp_dur_applied as PSDIsTDPPDurationApplied,
@Semantics.quantity.unitOfMeasure: 'PSDActivityDurationOffsetUnit'
/sapapo/psdpro.duration_offset as PSDActivityDurationOffset,
/sapapo/psdpro.duration_offset_unit as PSDActivityDurationOffsetUnit,
/sapapo/psdpro.is_comp_blocked_for_planning as PSDCompIsBlockedForPlanning,
mara.matnr as AdvancedPlanningProductName,
/sapapo/loc.locno as Location
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"/SAPAPO/LOC",
"/SAPAPO/PSDPRO",
"MARA"
],
"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