I_WorkPermitPartner

DDL: I_WORKPERMITPARTNER SQL: IPERMITPARTNER Type: view BASIC

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.

Data Sources (2)

SourceAliasJoin Type
ihpa _Partner from
wcaap _WorkPermit inner

Associations (4)

CardinalityTargetAliasCondition
[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)

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

KeyFieldSource TableSource FieldDescription
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]
;