C_WorkPermitPartnerTP

DDL: C_WORKPERMITPARTNERTP Type: view_entity CONSUMPTION

Work Permit Partner

C_WorkPermitPartnerTP is a Consumption CDS View that provides data about "Work Permit Partner" in SAP S/4HANA. It reads from 1 data source (R_WorkPermitPartnerTP) and exposes 18 fields with key fields MaintObjectInternalID, PartnerFunction, MaintenancePartnerObjectNumber. It is exposed through 1 OData service (UI_WORKPERMIT). It is used in 2 Fiori applications: Create Work Permit Request, Manage Work Permits.

Data Sources (1)

SourceAliasJoin Type
R_WorkPermitPartnerTP R_WorkPermitPartnerTP projection

Annotations (12)

NameValueLevelField
EndUserText.label Work Permit Partner view
Metadata.allowExtensions true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeName Partner view
UI.headerInfo.typeNamePlural Partners view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.label Partners view

OData Services (1)

ServiceBindingVersionContractRelease
UI_WORKPERMIT UI_WORKPERMIT V2 C1 NOT_RELEASED

Fiori Apps (2)

App IDApp NameTypeDescription
F4691 Create Work Permit Request 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 app to create new Work Permit.
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.

Create Work Permit Request

Business Role: Maintenance Planner

The Create Work Permit Request app allows to create new work permit with reference to an existing maintenance order, a predesigned work permit template, or independently. It provides the abilities to perform the following operations: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

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 (18)

KeyFieldSource TableSource FieldDescription
KEY MaintObjectInternalID MaintObjectInternalID
KEY PartnerFunction PartnerFunction
KEY MaintenancePartnerObjectNumber MaintenancePartnerObjectNumber
PartnerFunctionName PartnerFunctionName Description
MaintenancePartner MaintenancePartner Partner Number
WorkPermit WorkPermit
MaintObjectCategory MaintObjectCategory
WorkPermitType WorkPermitType
MaintenancePlanningPlant MaintenancePlanningPlant
CustomerFullName CustomerFullName Partner Name
Country Country
CreatedByUser CreatedByUser
CreationDate CreationDate
CreationTime CreationTime
LastChangedByUser LastChangedByUser
LastChangedDate LastChangedDate
LastChangeTime LastChangeTime
SDDocumentPartnerType _PartnerFunction SDDocumentPartnerType
@EndUserText.label: 'Work Permit Partner'
@Metadata.allowExtensions:true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel.usageType: {serviceQuality: #C,
sizeCategory: #M, dataClass: #TRANSACTIONAL}
@VDM.viewType: #CONSUMPTION

@UI: {
  headerInfo: { typeName: 'Partner',
                typeNamePlural: 'Partners',
                title: { type: #STANDARD,label: 'Partners' }
                } ,
               presentationVariant: [{
                          groupBy: [ 'MaintenancePartner'  ],visualizations: [{ type: #AS_LINEITEM }],
                          requestAtLeast: [ 'SDDocumentPartnerType' ]
                          }]
}

define view entity C_WorkPermitPartnerTP
  as projection on R_WorkPermitPartnerTP
{
      @UI.hidden:true
  key MaintObjectInternalID,
      @UI:{ lineItem:[  {position:15} ] }

  key PartnerFunction,
      @UI.hidden:true
  key MaintenancePartnerObjectNumber,

      @UI:{ lineItem:[  {position:10, label: 'Description'} ] }
      @EndUserText.label: 'Description'
      PartnerFunctionName,

      @UI.lineItem: [{ position:  20, label: 'Partner Number'  }]
      @EndUserText.label: 'Partner Number'
//      @Consumption.valueHelpDefinition: [{entity :{name:'C_PermitToWorkPartnerValueHelp',element: 'Partner'} ,

//        additionalBinding: [{element: 'MaintenancePlanningPlant', localElement: 'MaintenancePlanningPlant',usage: #FILTER},

//                            { element: 'PartnerFunction',localElement: 'PartnerFunction',usage: #FILTER_AND_RESULT},

//                            { localElement: 'CustomerFullName',

//                              element: 'PartnerFullName', usage: #RESULT}

//                              ]

//                              } ]

        @Consumption.valueHelpDefinition: [{qualifier: 'PersonValueHelp',label: 'Person Responsible',entity :{name:'C_EAMPersonWorkAgreementVH',element: 'Person'} ,
        additionalBinding: [ { localElement: 'CustomerFullName',
                              element: 'PersonFullName', usage: #RESULT}
                              ]
                              } ,
                              {qualifier: 'SupplierValueHelp',label: 'Supplier',entity :{name:'I_Supplier_VH',element: 'Supplier'},
        additionalBinding: [ { localElement: 'CustomerFullName', 
                              element: 'SupplierName', usage: #RESULT}
                              ]} , 
                              { qualifier: 'PartnerValueHelp',label: 'Partner' , entity :{name:'C_PermitToWorkPartnerValueHelp',element: 'Partner'} ,
        additionalBinding: [{element: 'MaintenancePlanningPlant', localElement: 'MaintenancePlanningPlant',usage: #FILTER},
                            { element: 'PartnerFunction',localElement: 'PartnerFunction',usage: #FILTER_AND_RESULT},
                            { localElement: 'CustomerFullName',
                              element: 'PartnerFullName', usage: #RESULT}] }
                              ] 
      MaintenancePartner,

      @UI.hidden: true
      WorkPermit,

      @UI.hidden: true
      MaintObjectCategory,

      @UI.hidden: true
      WorkPermitType,

      MaintenancePlanningPlant,

      @UI.lineItem: [{ position:  25, label: 'Partner Name' }]
      @EndUserText.label: 'Partner Name'
      CustomerFullName,

      @UI.hidden: true
      Country,

      @UI.hidden:true
      CreatedByUser,

      @UI.hidden:true
      CreationDate,

      @UI.hidden:true
      CreationTime,

      @UI.hidden: true
      LastChangedByUser,

      @UI.hidden: true
      LastChangedDate,

      @UI.hidden: true
      LastChangeTime,

      @UI.hidden: true
      _PartnerFunction.SDDocumentPartnerType,
      /* Associations */
      _WorkPermit : redirected to parent C_WorkPermitTP
      
}