A_WorkPermitTemplate
Work Permit Template
A_WorkPermitTemplate is a Consumption CDS View that provides data about "Work Permit Template" in SAP S/4HANA. It reads from 1 data source (R_WorkPermitTemplateTP) and exposes 48 fields with key field WorkPermit. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_WorkPermitTemplateTP | R_WorkPermitTemplateTP | projection |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [*] | A_WorkPermitTemplateStatus | _WorkPermitTemplateStatus | _WorkPermitTemplateStatus.WorkPermit = $projection.WorkPermit and _WorkPermitTemplateStatus.WorkPermitInternalID = $projection.WorkPermitInternalID |
| [*] | A_WrkPmtTmplApplicationLog | _WrkPmtTmplApplicationLog | _WrkPmtTmplApplicationLog.ApplicationLogObject = $projection.WorkPermit |
| [*] | A_WorkPermitTemplateAttachment | _WorkPermitTemplateAttachment | _WorkPermitTemplateAttachment.AttachmentObjectType1 = $projection.WorkPermit |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Work Permit Template | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| OData.entityType.name | WorkPermitTemplate_Type | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkPermit | WorkPermit | Application | |
| WorkPermitInternalID | WorkPermitInternalID | Object number | ||
| WorkPermitType | WorkPermitType | Work Permit Type | ||
| WrkPermitDesc | WrkPermitDesc | Short Text | ||
| MaintenancePlanningPlant | MaintenancePlanningPlant | Planning Plant | ||
| IsApproved | IsApproved | Checkbox | ||
| TechnicalObject | TechnicalObject | Technical Object | ||
| TechObjIsEquipOrFuncnlLoc | TechObjIsEquipOrFuncnlLoc | Tech. Obj. Type | ||
| TechnicalObjectDescription | TechnicalObjectDescription | Tech. Obj. Desc | ||
| MaintenancePlant | MaintenancePlant | Plant | ||
| WorkCenterPlant | WorkCenterPlant | Plant | ||
| WorkPermitHasLongText | WorkPermitHasLongText | Long Text | ||
| MaintenancePlannerGroup | MaintenancePlannerGroup | Planner Group | ||
| ObjectTypeCode | ObjectTypeCode | Object Type | ||
| OperationWorkCenterInternalID | OperationWorkCenterInternalID | Object ID | ||
| WrkPermitValidFrmDate | WrkPermitValidFrmDate | Valid from | ||
| WrkPermitValidFrmTime | WrkPermitValidFrmTime | ValidFrm Time | ||
| WrkPermitValidToDate | WrkPermitValidToDate | Valid to | ||
| WrkPermitValidToTime | WrkPermitValidToTime | Valid-To Time | ||
| WorkPermitLongText | WorkPermitLongText | Long Text | ||
| FunctionalLocation | FunctionalLocation | Object ID | ||
| WrkPermitHasMaintRemark | WrkPermitHasMaintRemark | Remarks Mt | ||
| WrkPermitHasOpRemark | WrkPermitHasOpRemark | Remarks Op | ||
| WorkCenter | WorkCenter | Work Center | ||
| MaintenanceOrder | MaintenanceOrder | Order | ||
| TechObjAuthorizationGroup | TechObjAuthorizationGroup | AuthorizGroup | ||
| WorkPermitOperationRemarkText | WorkPermitOperationRemarkText | Long Text | ||
| WrkPmtMaintenanceRemarkText | WrkPmtMaintenanceRemarkText | Long Text | ||
| WorkPermitCancellationText | WorkPermitCancellationText | Long Text | ||
| WorkPermitReferenceObjectType | WorkPermitReferenceObjectType | Create with Referenc | ||
| WorkPermitReferenceObjTypeDesc | ||||
| WorkPermitTypeDescription | WorkPermitTypeDescription | Work Permit Usg Desc | ||
| WrkPmtCnctntdActvSystStsTxt | WrkPmtCnctntdActvSystStsTxt | Concatenated System Status | ||
| PlantSection | PlantSection | Plant Section | ||
| PlantSectionDesc | PlantSectionDesc | |||
| AssetLocation | AssetLocation | Location | ||
| LocationName | LocationName | Location Name | ||
| AssetRoom | AssetRoom | Room | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| WrkPmtMgmtObjSubType | WrkPmtMgmtObjSubType | Object Type | ||
| ValidFromDateTime | ValidFromDateTime | Time Stamp | ||
| ValidToDateTime | ValidToDateTime | Time Stamp | ||
| _WorkPermitTemplateStatus | _WorkPermitTemplateStatus | |||
| _WrkPmtTmplApplicationLog | _WrkPmtTmplApplicationLog | |||
| _WorkPermitTemplateAttachment | _WorkPermitTemplateAttachment |
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 A_WorkPermitTemplate.
-- 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 A_WorkPermitTemplate AS
SELECT
WorkPermit,
WorkPermitInternalID,
WorkPermitType,
WrkPermitDesc,
MaintenancePlanningPlant,
IsApproved,
TechnicalObject,
TechObjIsEquipOrFuncnlLoc,
TechnicalObjectDescription,
MaintenancePlant,
WorkCenterPlant,
WorkPermitHasLongText,
MaintenancePlannerGroup,
ObjectTypeCode,
OperationWorkCenterInternalID,
WrkPermitValidFrmDate,
WrkPermitValidFrmTime,
WrkPermitValidToDate,
WrkPermitValidToTime,
WorkPermitLongText,
FunctionalLocation,
WrkPermitHasMaintRemark,
WrkPermitHasOpRemark,
WorkCenter,
MaintenanceOrder,
TechObjAuthorizationGroup,
WorkPermitOperationRemarkText,
WrkPmtMaintenanceRemarkText,
WorkPermitCancellationText,
WorkPermitReferenceObjectType,
_WorkPermitReferenceObject._Text.WorkPermitReferenceObjTypeDesc AS WorkPermitReferenceObjTypeDesc,
WorkPermitTypeDescription,
WrkPmtCnctntdActvSystStsTxt,
PlantSection,
PlantSectionDesc,
AssetLocation,
LocationName,
AssetRoom,
CreatedByUser,
CreationDateTime,
LastChangedByUser,
LastChangeDateTime,
WrkPmtMgmtObjSubType,
ValidFromDateTime,
ValidToDateTime
FROM R_WorkPermitTemplateTP
LEFT OUTER JOIN A_WorkPermitTemplateStatus AS _WorkPermitTemplateStatus ON _WorkPermitTemplateStatus.WorkPermit = WorkPermit AND _WorkPermitTemplateStatus.WorkPermitInternalID = WorkPermitInternalID -- association [*]
LEFT OUTER JOIN A_WrkPmtTmplApplicationLog AS _WrkPmtTmplApplicationLog ON _WrkPmtTmplApplicationLog.ApplicationLogObject = WorkPermit -- association [*]
LEFT OUTER JOIN A_WorkPermitTemplateAttachment AS _WorkPermitTemplateAttachment ON _WorkPermitTemplateAttachment.AttachmentObjectType1 = WorkPermit -- association [*]
;
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