I_PlantMaintenancePartner

DDL: I_PLANTMAINTENANCEPARTNER Type: view BASIC

Plant Maintenance Partner

I_PlantMaintenancePartner is a Basic CDS View (Dimension) that provides data about "Plant Maintenance Partner" in SAP S/4HANA. It reads from 1 data source (ihpa) and exposes 22 fields with key fields MaintObjectInternalID, PartnerFunction, MaintenancePartnerObjectNumber. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ihpa ihpa from

Associations (10)

CardinalityTargetAliasCondition
[0..1] I_PartnerFunction _PartnerFunction _PartnerFunction.PartnerFunction = $projection.PartnerFunction
[0..1] I_ContactPerson _ContactPerson _ContactPerson.ContactPerson = $projection.Partner
[0..1] I_Customer _Customer _Customer.Customer = $projection.Partner
[0..1] I_WorkforcePerson _Employee _Employee.PersonExternalID = $projection.Partner
[0..1] I_OrganizationalUnitText _OrganizationalUnitText _OrganizationalUnitText.OrganizationalUnit = $projection.Partner and _OrganizationalUnitText.Language = $session.system_language and _OrganizationalUnitText.StartDate <= $session.system_date and _OrganizationalUnitText.EndDate >= $session.system_date
[0..1] I_PMPositionText _PositionText _PositionText.PositionID = $projection.Partner and _PositionText.Language = $session.system_language and _PositionText.StartDate <= $session.system_date and _PositionText.EndDate >= $session.system_date
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.Partner
[0..1] I_User _User _User.UserID = $projection.Partner
[0..1] I_PMContactCardEmployee _PersonResponsible $projection.Partner = _PersonResponsible.PersonnelNumber
[0..1] I_PersonWorkAgreement_1 _PersonWorkAgreement $projection.Partner = _PersonWorkAgreement.PersonWorkAgreement

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPLANTMAINTPARTN view
Analytics.dataCategory #DIMENSION view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Plant Maintenance Partner view
ObjectModel.representativeKey MaintObjectInternalID view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #BASIC view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY MaintObjectInternalID objnr
KEY PartnerFunction parvw
KEY MaintenancePartnerObjectNumber counter
MaintObjectCategory obtyp
Partner parnr
CreatedByUser ernam
CreationDate erdat
CreationTime erzeit
LastChangedByUser aenam
LastChangeTime aezeit
LastChangeDate aedat
MaintenancePartner parnr
_PartnerFunction _PartnerFunction
_ContactPerson _ContactPerson
_Customer _Customer
_Employee _Employee
_OrganizationalUnitText _OrganizationalUnitText
_PositionText _PositionText
_Supplier _Supplier
_User _User
_PersonResponsible _PersonResponsible
_PersonWorkAgreement _PersonWorkAgreement
@AbapCatalog: { sqlViewName: 'IPLANTMAINTPARTN', preserveKey }
--@Analytics: { dataCategory: #DIMENSION }
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Plant Maintenance Partner'
@ObjectModel.representativeKey: 'MaintObjectInternalID'
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #XL
@VDM.viewType: #BASIC

define view I_PlantMaintenancePartner
  as select from ihpa
  association [0..1] to I_PartnerFunction        as _PartnerFunction        on  _PartnerFunction.PartnerFunction = $projection.PartnerFunction

  /* Associations - DPP */
  association [0..1] to I_ContactPerson          as _ContactPerson          on  _ContactPerson.ContactPerson = $projection.Partner
  association [0..1] to I_Customer               as _Customer               on  _Customer.Customer = $projection.Partner
  association [0..1] to I_WorkforcePerson        as _Employee               on  _Employee.PersonExternalID = $projection.Partner
  association [0..1] to I_OrganizationalUnitText as _OrganizationalUnitText on  _OrganizationalUnitText.OrganizationalUnit = $projection.Partner
                                                                            and _OrganizationalUnitText.Language           = $session.system_language
                                                                            and _OrganizationalUnitText.StartDate          <= $session.system_date
                                                                            and _OrganizationalUnitText.EndDate            >= $session.system_date
  association [0..1] to I_PMPositionText         as _PositionText           on  _PositionText.PositionID = $projection.Partner
                                                                            and _PositionText.Language   = $session.system_language
                                                                            and _PositionText.StartDate  <= $session.system_date
                                                                            and _PositionText.EndDate    >= $session.system_date
  association [0..1] to I_Supplier               as _Supplier               on  _Supplier.Supplier = $projection.Partner
  association [0..1] to I_User                   as _User                   on  _User.UserID = $projection.Partner
  association [0..1] to I_PMContactCardEmployee  as _PersonResponsible      on  $projection.Partner = _PersonResponsible.PersonnelNumber
  association [0..1] to I_PersonWorkAgreement_1  as _PersonWorkAgreement    on  $projection.Partner = _PersonWorkAgreement.PersonWorkAgreement  
{
      /* Fields */
  key objnr                                  as  MaintObjectInternalID,

      @ObjectModel.foreignKey.association: '_PartnerFunction'
  key parvw                                  as  PartnerFunction,
  
  key counter                                as  MaintenancePartnerObjectNumber,

      obtyp                                  as  MaintObjectCategory,
      @API.element.successor: 'MaintenancePartner'
      @API.element.releaseState: #DEPRECATED
      parnr                                  as  Partner,

      ernam                                  as  CreatedByUser,
      erdat                                  as  CreationDate,
      erzeit                                 as  CreationTime,
      aenam                                  as  LastChangedByUser,
      aezeit                                 as  LastChangeTime,
      aedat                                  as  LastChangeDate,
      
      parnr                                  as  MaintenancePartner,

      /* Associations */
      _PartnerFunction,

      /* Associations - DPP */
      _ContactPerson,
      _Customer,
      _Employee,
      _OrganizationalUnitText,
      _PositionText,
      _Supplier,
      _User,
      _PersonResponsible,
      _PersonWorkAgreement
}
where
  ihpa.kzloesch = ' '
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"IHPA"
],
"ASSOCIATED":
[
"I_CONTACTPERSON",
"I_CUSTOMER",
"I_ORGANIZATIONALUNITTEXT",
"I_PARTNERFUNCTION",
"I_PERSONWORKAGREEMENT_1",
"I_PMCONTACTCARDEMPLOYEE",
"I_PMPOSITIONTEXT",
"I_SUPPLIER",
"I_USER",
"I_WORKFORCEPERSON"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/