I_WorkPermitBasic
Work Permit
I_WorkPermitBasic is a Basic CDS View that provides data about "Work Permit" in SAP S/4HANA. It reads from 1 data source (wcaap) and exposes 38 fields with key field WorkPermit. It is exposed through 1 OData service (UI_WORKPERMIT). It is used in 1 Fiori application: Manage Work Permits. Part of development package VDM_EAM_WCM_PERMIT_TO_WORK.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wcaap | wcaap | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IWRKPMTBASIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | WorkPermit | view | |
| EndUserText.label | Work Permit | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_WORKPERMIT | UI_WORKPERMIT | V2 | C1 | NOT_RELEASED |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F6579 | Manage Work Permits | Transactional | Work Permit is initiated during the planning of a maintenance activity and typically created from a predesigned template, together with the work order associated with the maintenance task. You can use this to search and maintain Work Permits. |
Manage Work Permits
Business Role: Maintenance Planner
The Manage Work Permits app allows you to create, manage, and monitor work permits and gain valuable insights about the progress of your maintenance operations. Using the app, new work permits can be created with reference to an existing maintenance order, a predesigned work permit template, or independently. It provides the following capabilities:Allows to create and process new work permit using the optimized work permit management solutionProvides the ability to assign multiple functional locations, equipment, maintenance orders, partners, and attachments to enhance work permit with details related to the work activityAllows the configuration of the nature of work, personal protective equipment, and safety precautions to enhance work permit with safety protocols.Offers easy data validation and a simplified approval process that adheres to a four-eyes principleSupports the printing of work permit in the output form maintained by the userProvides the ability to extend the validity even after the creation of work permitSupports all operations relevant to work permit management such as approval, print, issue, return, close, deactivate, cancel, and mark for deletion.Provides the ability to view the records of data transfers using application logs
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkPermit | wapinr | ||
| WorkPermitInternalID | objnr | |||
| WrkPmtMgmtObjSubType | wapityp | |||
| WorkPermitType | wapiuse | |||
| WrkPermitDesc | stxt | |||
| WorkPermitHasLongText | lflg | |||
| WrkPermitIsDeleted | delflg | |||
| MaintenancePlannerGroup | ingrp | |||
| MaintenancePlanningPlant | iwerk | |||
| ObjectTypeCode | wkcrtyp | |||
| OperationWorkCenterInternalID | wkcrid | |||
| TechObjAuthorizationGroup | begru | |||
| WrkPermitValidFrmDate | datefr | |||
| WrkPermitValidFrmTime | timefr | |||
| WrkPermitValidToDate | dateto | |||
| WrkPermitValidToTime | timeto | |||
| WrkPmtMgmtPriority | priok | |||
| FunctionalLocation | ||||
| Equipment | equnr | |||
| WrkPermitHasObjectList | lnkflg | |||
| CreatedByUser | crname | |||
| CreationDate | crdate | |||
| CreationTime | crtime | |||
| clientNULLastimestampasCreationDateTime | ||||
| LastChangedByUser | chname | |||
| VersionLastChangedByUser | chname | |||
| LastChangeDate | chdate | |||
| LastChangeTime | chtime | |||
| clientNULLastimestampasValidFromDateTime | ||||
| PlantTimeZone | ||||
| clientNULLastimestampasValidToDateTime | ||||
| WrkPermitIsLinkdToDoc | docflg | |||
| StatusProfile | wapistsma | |||
| WorkPermitTmplID | refobj | |||
| WrkPermitHasMaintRemark | remarkflg1 | |||
| WrkPermitHasOpRemark | remarkflg2 | |||
| objnrLTXTastdobnameelseendasLongTextKey | ||||
| WorkPermitProcessingStatus | workpermitprocessingstatus |
@AbapCatalog.sqlViewName: 'IWRKPMTBASIC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #MANDATORY
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@ObjectModel.usageType: { serviceQuality: #C, sizeCategory:#L , dataClass:#TRANSACTIONAL }
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'WorkPermit'
@ObjectModel.semanticKey: ['WorkPermit']
@EndUserText.label: 'Work Permit'
define view I_WorkPermitBasic
as select from wcaap
{
key wapinr as WorkPermit,
objnr as WorkPermitInternalID,
wapityp as WrkPmtMgmtObjSubType,
wapiuse as WorkPermitType,
@Semantics.text :true
stxt as WrkPermitDesc,
lflg as WorkPermitHasLongText,
delflg as WrkPermitIsDeleted,
ingrp as MaintenancePlannerGroup,
iwerk as MaintenancePlanningPlant,
wkcrtyp as ObjectTypeCode,
wkcrid as OperationWorkCenterInternalID,
begru as TechObjAuthorizationGroup,
datefr as WrkPermitValidFrmDate,
timefr as WrkPermitValidFrmTime,
dateto as WrkPermitValidToDate,
timeto as WrkPermitValidToTime,
priok as WrkPmtMgmtPriority,
cast ( tplnr as eams_ui_oid_name preserving type ) as FunctionalLocation,
equnr as Equipment,
lnkflg as WrkPermitHasObjectList,
@Semantics.user.createdBy: true
crname as CreatedByUser,
crdate as CreationDate,
crtime as CreationTime,
@Semantics.systemDateTime.createdAt: true
cast( dats_tims_to_tstmp( wcaap.crdate,
wcaap.crtime,
abap_system_timezone( $session.client,'NULL' ),
$session.client,
'NULL' ) as timestamp ) as CreationDateTime,
@Semantics.user.lastChangedBy: true
chname as LastChangedByUser,
chname as VersionLastChangedByUser,
chdate as LastChangeDate,
chtime as LastChangeTime,
@Semantics.systemDateTime.lastChangedAt: true
cast( dats_tims_to_tstmp( wcaap.chdate,
wcaap.chtime,
abap_system_timezone( $session.client,'NULL' ),
$session.client,
'NULL' ) as timestamp ) as LastChangeDateTime,
cast( dats_tims_to_tstmp( wcaap.datefr,
wcaap.timefr,
abap_system_timezone( $session.client,'NULL' ),
$session.client,
'NULL' ) as timestamp ) as ValidFromDateTime,
cast($session.user_timezone as tznzone) as PlantTimeZone,
cast( dats_tims_to_tstmp( wcaap.dateto,
wcaap.timeto,
abap_system_timezone( $session.client,'NULL' ),
$session.client,
'NULL' ) as timestamp ) as ValidToDateTime,
docflg as WrkPermitIsLinkdToDoc,
wapistsma as StatusProfile,
refobj as WorkPermitTmplID,
remarkflg1 as WrkPermitHasMaintRemark,
remarkflg2 as WrkPermitHasOpRemark,
case wcaap.remarkflg2
when 'X' then cast(concat(wcaap.objnr, 'REM2') as tdobname)
else '' end as WorkPermitOperationLongTextKey,
case wcaap.remarkflg1
when 'X' then cast( concat( wcaap.objnr,'REM1') as tdobname)
else '' end as WrkPmtMaintenanceLongTextKey,
case wcaap.lflg
when 'X' then cast(concat(wcaap.objnr, 'LTXT' ) as tdobname)
else '' end as LongTextKey,
workpermitprocessingstatus as WorkPermitProcessingStatus
}
where
wapityp = 'P'
or wapityp = 'M'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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