I_WorkPermitBasic

DDL: I_WORKPERMITBASIC SQL: IWRKPMTBASIC Type: view BASIC Package: VDM_EAM_WCM_PERMIT_TO_WORK

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)

SourceAliasJoin Type
wcaap wcaap from

Annotations (12)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
UI_WORKPERMIT UI_WORKPERMIT V2 C1 NOT_RELEASED

Fiori Apps (1)

App IDApp NameTypeDescription
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)

KeyFieldSource TableSource FieldDescription
KEY WorkPermit wapinr Application
WorkPermitInternalID objnr Val. Obj. No.
WrkPmtMgmtObjSubType wapityp Object Type
WorkPermitType wapiuse Usage
WrkPermitDesc stxt Short Text
WorkPermitHasLongText lflg Long Text
WrkPermitIsDeleted delflg DID
MaintenancePlannerGroup ingrp Planner Group
MaintenancePlanningPlant iwerk Planning Plant
ObjectTypeCode wkcrtyp Object Type
OperationWorkCenterInternalID wkcrid Object ID
TechObjAuthorizationGroup begru AuthorizGroup
WrkPermitValidFrmDate datefr Valid-From Date
WrkPermitValidFrmTime timefr ValidFrm Time
WrkPermitValidToDate dateto Valid-To Date
WrkPermitValidToTime timeto Valid-To Time
WrkPmtMgmtPriority priok Priority
FunctionalLocation Functional loc.
Equipment equnr Equipment
WrkPermitHasObjectList lnkflg Obj.List Exists
CreatedByUser crname Last Changed By
CreationDate crdate Sizing Date
CreationTime crtime Time Created
clientNULLastimestampasCreationDateTime
LastChangedByUser chname Changed By
VersionLastChangedByUser chname Changed By
LastChangeDate chdate Date Changed
LastChangeTime chtime Time Changed
clientNULLastimestampasValidFromDateTime
PlantTimeZone
clientNULLastimestampasValidToDateTime
WrkPermitIsLinkdToDoc docflg Document Link
StatusProfile wapistsma Status Profile
WorkPermitTmplID refobj Template
WrkPermitHasMaintRemark remarkflg1 Remarks Mt
WrkPermitHasOpRemark remarkflg2 Remarks Op
objnrLTXTastdobnameelseendasLongTextKey
WorkPermitProcessingStatus workpermitprocessingstatus Processing State

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_WorkPermitBasic.
-- 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: IWRKPMTBASIC

CREATE VIEW I_WorkPermitBasic AS
SELECT
  wapinr AS WorkPermit,
  objnr AS WorkPermitInternalID,
  wapityp AS WrkPmtMgmtObjSubType,
  wapiuse AS WorkPermitType,
  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,
  crname AS CreatedByUser,
  crdate AS CreationDate,
  crtime AS CreationTime,
  cast( dats_tims_to_tstmp( wcaap.crdate, wcaap.crtime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as timestamp ) as CreationDateTime AS clientNULLastimestampasCreationDateTime,
  chname AS LastChangedByUser,
  chname AS VersionLastChangedByUser,
  chdate AS LastChangeDate,
  chtime AS LastChangeTime,
  cast( dats_tims_to_tstmp( wcaap.datefr, wcaap.timefr, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as timestamp ) as ValidFromDateTime AS clientNULLastimestampasValidFromDateTime,
  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 AS clientNULLastimestampasValidToDateTime,
  docflg AS WrkPermitIsLinkdToDoc,
  wapistsma AS StatusProfile,
  refobj AS WorkPermitTmplID,
  remarkflg1 AS WrkPermitHasMaintRemark,
  remarkflg2 AS WrkPermitHasOpRemark,
  case wcaap.lflg when 'X' then cast(concat(wcaap.objnr, 'LTXT' ) as tdobname) else '' end as LongTextKey AS objnrLTXTastdobnameelseendasLongTextKey,
  WorkPermitProcessingStatus
FROM wcaap
;