I_ChangeRecordStatusAccess

DDL: I_CHANGERECORDSTATUSACCESS Type: view_entity BASIC Package: PLM_SAM

Accessability of CR Based on the Status

I_ChangeRecordStatusAccess is a Basic CDS View that provides data about "Accessability of CR Based on the Status" in SAP S/4HANA. It reads from 2 data sources (plm_stprf_actn, plm_stprf_cond) and exposes 7 fields with key fields ChangeRecordType, ChangeRecordStatus, ChangeRecordStatusNext. It has 1 association to related views. Part of development package PLM_SAM.

Data Sources (2)

SourceAliasJoin Type
plm_stprf_actn StatusAction inner
plm_stprf_cond StatusActionCondition from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_ChangeRecordType_2 ChangeRecordType StatusActionCondition.status_profile = ChangeRecordType.ChangeRecordUserStatusProfile or StatusActionCondition.status_profile = ChangeRecordType.ChangeRecdLifeCycleStsProfile

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Accessability of CR Based on the Status view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #S view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ChangeRecordType ChangeRecordType ChangeRecordType Record Type
KEY ChangeRecordStatus plm_stprf_cond status Workflow Status
KEY ChangeRecordStatusNext plm_stprf_actn next_status Status
ChangeRecordActionBehavior plm_stprf_actn action_behavior
ChangeRecordStatusAction plm_stprf_cond action User action
ChangeRecordStatusProfile plm_stprf_cond status_profile User Status Profile
ChangeRecordStatusField2 plm_stprf_cond status_field UsrStatusField

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_ChangeRecordStatusAccess.
-- 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_ChangeRecordStatusAccess AS
SELECT
  ChangeRecordType.ChangeRecordType AS ChangeRecordType,
  StatusActionCondition.status AS ChangeRecordStatus,
  StatusAction.next_status AS ChangeRecordStatusNext,
  StatusAction.action_behavior AS ChangeRecordActionBehavior,
  StatusActionCondition.action AS ChangeRecordStatusAction,
  StatusActionCondition.status_profile AS ChangeRecordStatusProfile,
  StatusActionCondition.status_field AS ChangeRecordStatusField2
FROM plm_stprf_cond AS StatusActionCondition
INNER JOIN plm_stprf_actn AS StatusAction ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ChangeRecordType_2 AS ChangeRecordType ON StatusActionCondition.status_profile = ChangeRecordType.ChangeRecordUserStatusProfile OR StatusActionCondition.status_profile = ChangeRecordType.ChangeRecdLifeCycleStsProfile  -- association [0..*]
;