I_PSDAlternativeResource
PSD Alternative Resource
I_PSDAlternativeResource is a Basic CDS View that provides data about "PSD Alternative Resource" in SAP S/4HANA. It reads from 3 data sources (/sapapo/loc, /sapapo/psdres, /sapapo/res_head) and exposes 26 fields with key fields ProductStorageDefinition, PSDProduct, PSDAlternativeResource.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| /sapapo/loc | /sapapo/loc | inner |
| /sapapo/psdres | /sapapo/psdres | from |
| /sapapo/res_head | /sapapo/res_head | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | PSD Alternative Resource | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductStorageDefinition | /sapapo/psdres | def_set_id | Defn Set GUID |
| KEY | PSDProduct | /sapapo/psdres | storprod_id | Product Identifier |
| KEY | PSDAlternativeResource | /sapapo/psdres | storres_id | Resource ID |
| ResourceUUID | /sapapo/psdres | resid | Internal Resrce | |
| ResourceValidToDateTime | ||||
| ResourceValidFromDateTime | ||||
| PSDIsSetByExternalSystem | /sapapo/psdres | is_set_by_extsys | Created by System | |
| PSDResourcePriority | /sapapo/psdres | priority | Workflow priority | |
| CreatedByUserName | /sapapo/psdres | user_created | Created By | |
| CreationDateTime | /sapapo/psdres | time_stamp_cre | Created On/At | |
| LastChangedByUser | /sapapo/psdres | user_modified | Changed By | |
| LastChangeDateTime | /sapapo/psdres | time_stamp_mod | Last Changed On | |
| PSDAltvRsceVariableDuration | /sapapo/psdres | var_duration | Variable Dur. | |
| PSDAltvRsceVarblDurnUnit | /sapapo/psdres | var_dur_unit | Duration UoM | |
| PSDAltvRsceFixedDuration | /sapapo/psdres | fixed_duration | Fixed Duration | |
| PSDAltvRsceFxdDurnUnit | /sapapo/psdres | fixed_dur_unit | Duration UoM | |
| TimeDepdntProcParamUUID | /sapapo/psdres | tdpp_lnk | GUID to link PSD with TDPP | |
| PSDAltvRsceMaxShortBreak | /sapapo/psdres | max_short_break | Short Break (Sec) | |
| AdvncdPlngResourceName | /sapapo/res_head | name | Zone name | |
| AdvncdPlngResourceText | /sapapo/res_txt | text | User Group | |
| locnoendasLocation | ||||
| descr40endasLocationDescription | ||||
| loctypeendasLocationType | ||||
| locidendasAdvncdPlngLocationID | ||||
| StorageLocation | /sapapo/ressubl | subloc | Storage Loc. | |
| StorageLocationDesc | t001l | lgobe | Description |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_PSDAlternativeResource.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW I_PSDAlternativeResource AS
SELECT
/sapapo/psdres.def_set_id AS ProductStorageDefinition,
/sapapo/psdres.storprod_id AS PSDProduct,
/sapapo/psdres.storres_id AS PSDAlternativeResource,
/sapapo/psdres.resid AS ResourceUUID,
cast( /sapapo/psdres.valid_to as /sapapo/psd_res_validto preserving type ) AS ResourceValidToDateTime,
cast( /sapapo/psdres.valid_from as /sapapo/psd_res_validfrom preserving type ) AS ResourceValidFromDateTime,
/sapapo/psdres.is_set_by_extsys AS PSDIsSetByExternalSystem,
/sapapo/psdres.priority AS PSDResourcePriority,
/sapapo/psdres.user_created AS CreatedByUserName,
/sapapo/psdres.time_stamp_cre AS CreationDateTime,
/sapapo/psdres.user_modified AS LastChangedByUser,
/sapapo/psdres.time_stamp_mod AS LastChangeDateTime,
/sapapo/psdres.var_duration AS PSDAltvRsceVariableDuration,
/sapapo/psdres.var_dur_unit AS PSDAltvRsceVarblDurnUnit,
/sapapo/psdres.fixed_duration AS PSDAltvRsceFixedDuration,
/sapapo/psdres.fixed_dur_unit AS PSDAltvRsceFxdDurnUnit,
/sapapo/psdres.tdpp_lnk AS TimeDepdntProcParamUUID,
/sapapo/psdres.max_short_break AS PSDAltvRsceMaxShortBreak,
/sapapo/res_head.name AS AdvncdPlngResourceName,
/sapapo/res_txt.text AS AdvncdPlngResourceText,
case when /sapapo/mrploc.locid is not initial then /sapapo/mrploc.locno else /sapapo/loc.locno end as Location AS locnoendasLocation,
case when /sapapo/mrploct.descr40 is not initial then /sapapo/mrploct.descr40 else /sapapo/loct.descr40 end as LocationDescription AS descr40endasLocationDescription,
case when /sapapo/mrploc.loctype is not initial then /sapapo/mrploc.loctype else /sapapo/loc.loctype end as LocationType AS loctypeendasLocationType,
case when /sapapo/loc_sub.locid is not initial then /sapapo/loc_sub.locid else /sapapo/loc.locid end as AdvncdPlngLocationID AS locidendasAdvncdPlngLocationID,
/sapapo/ressubl.subloc AS StorageLocation,
t001l.lgobe AS StorageLocationDesc
FROM /sapapo/psdres
INNER JOIN /sapapo/res_head ON /* join condition not captured in parsed metadata */
INNER JOIN /sapapo/loc ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA