I_WorkPermitPartner
Work Permit Partner
I_WorkPermitPartner is a Basic CDS View that provides data about "Work Permit Partner" in SAP S/4HANA. It reads from 2 data sources (ihpa, wcaap) and exposes 19 fields with key fields MaintObjectInternalID, PartnerFunction, MaintenancePartnerObjectNumber. It has 4 associations to related views.
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Customer | _Customer | _Customer.Customer = $projection.Partner or _Customer.Customer = $projection.MaintenancePartner |
| [1..1] | I_PartnerFunction | _PartnerFunction | _PartnerFunction.PartnerFunction = $projection.PartnerFunction |
| [1..1] | I_BusinessPartner | _BusinessPartner | _BusinessPartner.BusinessPartner = $projection.Partner |
| [0..1] | I_Supplier | _Supplier | _Supplier.Supplier = $projection.MaintenancePartner or _Supplier.Supplier = $projection.Partner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPERMITPARTNER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Work Permit Partner | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #META | view | |
| VDM.viewType | #BASIC | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintObjectInternalID | ihpa | objnr | Val. Obj. No. |
| KEY | PartnerFunction | |||
| KEY | MaintenancePartnerObjectNumber | ihpa | counter | Version |
| MaintObjectCategory | ihpa | obtyp | Picking area | |
| MaintenancePartner | ihpa | parnr | Responsible | |
| WorkPermit | wcaap | wapinr | Application | |
| MaintenancePlanningPlant | wcaap | iwerk | Planning Plant | |
| WorkPermitType | wcaap | wapiuse | Usage | |
| CreatedByUser | ihpa | ernam | User Name | |
| CreationDate | ihpa | erdat | Entered On | |
| CreationTime | ihpa | erzeit | Time created | |
| LastChangedByUser | ihpa | aenam | User Name | |
| LastChangeTime | ihpa | aezeit | Time changed | |
| LastChangeDate | ihpa | aedat | Obsolete | |
| Partner | ||||
| _PartnerFunction | _PartnerFunction | |||
| _Customer | _Customer | |||
| _BusinessPartner | _BusinessPartner | |||
| _Supplier | _Supplier |
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_WorkPermitPartner.
-- 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: IPERMITPARTNER
CREATE VIEW I_WorkPermitPartner AS
SELECT
_Partner.objnr AS MaintObjectInternalID,
cast(_Partner.parvw as parvw_unv) AS PartnerFunction,
_Partner.counter AS MaintenancePartnerObjectNumber,
_Partner.obtyp AS MaintObjectCategory,
_Partner.parnr AS MaintenancePartner,
_WorkPermit.wapinr AS WorkPermit,
_WorkPermit.iwerk AS MaintenancePlanningPlant,
_WorkPermit.wapiuse AS WorkPermitType,
_Partner.ernam AS CreatedByUser,
_Partner.erdat AS CreationDate,
_Partner.erzeit AS CreationTime,
_Partner.aenam AS LastChangedByUser,
_Partner.aezeit AS LastChangeTime,
_Partner.aedat AS LastChangeDate,
lpad(ltrim(_Partner.parnr,'0'),10,'0') AS Partner
FROM ihpa AS _Partner
INNER JOIN wcaap AS _WorkPermit ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = Partner OR _Customer.Customer = MaintenancePartner -- association [0..1]
LEFT OUTER JOIN I_PartnerFunction AS _PartnerFunction ON _PartnerFunction.PartnerFunction = PartnerFunction -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON _BusinessPartner.BusinessPartner = Partner -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = MaintenancePartner OR _Supplier.Supplier = Partner -- 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