I_ChangeRecordNextStatus

DDL: I_CHANGERECORDNEXTSTATUS Type: view_entity BASIC Package: PLM_SAM

Change Record Next Status

I_ChangeRecordNextStatus is a Basic CDS View that provides data about "Change Record Next Status" in SAP S/4HANA. It reads from 4 data sources (plm_actiont, plm_statust, plm_stprf_actn, plm_stprf_cond) and exposes 8 fields with key fields ChangeRecordType, ChangeRecordActionConditionCtr, ChangeRecordStatus, ChangeRecordStatusNext. It has 1 association to related views. Part of development package PLM_SAM.

Data Sources (4)

SourceAliasJoin Type
plm_actiont Action_txt inner
plm_statust Status_txt inner
plm_stprf_actn StatusAction inner
plm_stprf_cond StatusActionCondition from

Associations (1)

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

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Change Record Next Status view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
VDM.viewType #BASIC view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ChangeRecordType ChangeRecordType ChangeRecordType Record Type
KEY ChangeRecordActionConditionCtr plm_stprf_cond counter Version
KEY ChangeRecordStatus plm_stprf_cond status Workflow Status
KEY ChangeRecordStatusNext plm_stprf_actn next_status Status
ChangeRecordStatusDescription plm_statust description Well Code Des.
ChangeRecordStatusAction plm_stprf_cond action User action
ChangeRecordStatusActionText plm_actiont description Well Code Des.
ChangeRecordStatusProfile plm_stprf_cond status_profile User Status Profile

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_ChangeRecordNextStatus.
-- 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_ChangeRecordNextStatus AS
SELECT
  ChangeRecordType.ChangeRecordType AS ChangeRecordType,
  StatusActionCondition.counter AS ChangeRecordActionConditionCtr,
  StatusActionCondition.status AS ChangeRecordStatus,
  StatusAction.next_status AS ChangeRecordStatusNext,
  Status_txt.description AS ChangeRecordStatusDescription,
  StatusActionCondition.action AS ChangeRecordStatusAction,
  Action_txt.description AS ChangeRecordStatusActionText,
  StatusActionCondition.status_profile AS ChangeRecordStatusProfile
FROM plm_stprf_cond AS StatusActionCondition
INNER JOIN plm_stprf_actn AS StatusAction ON /* join condition not captured in parsed metadata */
INNER JOIN plm_actiont AS Action_txt ON /* join condition not captured in parsed metadata */
INNER JOIN plm_statust AS Status_txt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ChangeRecordType_2 AS ChangeRecordType ON StatusActionCondition.status_profile = ChangeRecordType.ChangeRecordUserStatusProfile  -- association [0..*]
;