I_WorkPermitStatus
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)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkPermitBasic | I_WorkPermitBasic | inner |
| jest | jest | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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