I_WorkPermitStatus

DDL: I_WORKPERMITSTATUS SQL: IWRKPMTSTATUS Type: view BASIC

Work Permit Status

I_WorkPermitStatus is a Basic CDS View that provides data about "Work Permit Status" in SAP S/4HANA. It reads from 2 data sources (I_WorkPermitBasic, jest) and exposes 10 fields with key fields WorkPermit, WorkPermitInternalID, StatusCode. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_WorkPermitBasic I_WorkPermitBasic inner
jest jest from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_StatusObjectStatusChange _StatusChange $projection.WorkPermitInternalID = _StatusChange.StatusObject and $projection.StatusCode = _StatusChange.StatusCode and $projection.StatusObjectStatusChangeNumber = _StatusChange.StatusObjectStatusChangeNumber
[0..1] I_SystemStatus _SystemStatus $projection.StatusCode = _SystemStatus.SystemStatus

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IWRKPMTSTATUS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Work Permit Status view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
UI.headerInfo.typeName SystemStatus view
UI.headerInfo.typeNamePlural System Status view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.label System Status view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY WorkPermit I_WorkPermitBasic WorkPermit Application
KEY WorkPermitInternalID jest objnr Val. Obj. No.
KEY StatusCode jest stat Status of Time-Dependent Document Linkage
StatusObjectStatusChangeNumber jest chgnr Change Number
LastChangeDate _StatusChange LastChangeDate Time Stamp
LastChangeTime _StatusChange LastChangeTime Time changed
StatusIsInactive jest inact TRUE
StatusShortName
SystemStatusName
_SystemStatus _SystemStatus

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_WorkPermitStatus.
-- 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.
-- SQL view name: IWRKPMTSTATUS

CREATE VIEW I_WorkPermitStatus AS
SELECT
  I_WorkPermitBasic.WorkPermit AS WorkPermit,
  jest.objnr AS WorkPermitInternalID,
  jest.stat AS StatusCode,
  jest.chgnr AS StatusObjectStatusChangeNumber,
  _StatusChange.LastChangeDate AS LastChangeDate,
  _StatusChange.LastChangeTime AS LastChangeTime,
  jest.inact AS StatusIsInactive,
  _SystemStatus._SystemStatusText[ 1: Language = $session.system_language ].SystemStatusShortName AS StatusShortName,
  _SystemStatus._SystemStatusText[ 1: Language = $session.system_language ].SystemStatusName AS SystemStatusName
FROM jest
INNER JOIN I_WorkPermitBasic ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_StatusObjectStatusChange AS _StatusChange ON WorkPermitInternalID = _StatusChange.StatusObject AND StatusCode = _StatusChange.StatusCode AND StatusObjectStatusChangeNumber = _StatusChange.StatusObjectStatusChangeNumber  -- association [0..1]
LEFT OUTER JOIN I_SystemStatus AS _SystemStatus ON StatusCode = _SystemStatus.SystemStatus  -- association [0..1]
;