C_PersSettlmtDocWorkItem

DDL: C_PERSSETTLMTDOCWORKITEM Type: view CONSUMPTION

Personnel Settlement Document Work Item

C_PersSettlmtDocWorkItem is a Consumption CDS View that provides data about "Personnel Settlement Document Work Item" in SAP S/4HANA. It reads from 3 data sources (C_PersSettlmtDocWrkflwDet, I_WorkflowTask, I_WorkflowTaskApplObject) and exposes 24 fields with key field WorkflowTaskInternalID.

Data Sources (3)

SourceAliasJoin Type
C_PersSettlmtDocWrkflwDet _PersSettlmtDocWrkflwDet inner
I_WorkflowTask _WorkflowTask from
I_WorkflowTaskApplObject _WorkflowTaskApplObject inner

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CWLFPERSSMTDOCWI view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.representativeKey WorkflowTaskInternalID view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #INHERITED view
VDM.viewType #CONSUMPTION view
Consumption.semanticObject WorkflowTaskInternalID view
EndUserText.label Personnel Settlement Document Work Item view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY WorkflowTaskInternalID I_WorkflowTask WorkflowTaskInternalID
PersonnelSettlementDocument C_PersSettlmtDocWrkflwDet PersonnelSettlementDocument
CreatedByUser C_PersSettlmtDocWrkflwDet CreatedByUser
UserFullName C_PersSettlmtDocWrkflwDet UserFullName
PersSettlmtDocCurrency C_PersSettlmtDocWrkflwDet PersSettlmtDocCurrency
TotalNetAmount C_PersSettlmtDocWrkflwDet TotalNetAmount
CompanyCode C_PersSettlmtDocWrkflwDet CompanyCode
PersonWorkAgreement C_PersSettlmtDocWrkflwDet PersonWorkAgreement
SettlmtDate C_PersSettlmtDocWrkflwDet SettlmtDate
DocumentDate C_PersSettlmtDocWrkflwDet DocumentDate
PersonnelCostCenter C_PersSettlmtDocWrkflwDet PersonnelCostCenter
SettlmtCompensationReason C_PersSettlmtDocWrkflwDet SettlmtCompensationReason
SettlmtCompnVar C_PersSettlmtDocWrkflwDet SettlmtCompnVar
DocumentTitle C_PersSettlmtDocWrkflwDet DocumentTitle
SalesOrganization C_PersSettlmtDocWrkflwDet SalesOrganization
DistributionChannel C_PersSettlmtDocWrkflwDet DistributionChannel
Division C_PersSettlmtDocWrkflwDet Division
SettlmtDocType C_PersSettlmtDocWrkflwDet SettlmtDocType
_CreatedByUser C_PersSettlmtDocWrkflwDet _CreatedByUser
_PersSettlmtDocCurrency C_PersSettlmtDocWrkflwDet _PersSettlmtDocCurrency
_CompanyCode C_PersSettlmtDocWrkflwDet _CompanyCode
_PersonWorkAgreement C_PersSettlmtDocWrkflwDet _PersonWorkAgreement
_SettlmtCompnRsn C_PersSettlmtDocWrkflwDet _SettlmtCompnRsn
_SettlmtCompnVar C_PersSettlmtDocWrkflwDet _SettlmtCompnVar
@AbapCatalog:{
    sqlViewName: 'CWLFPERSSMTDOCWI',
    compiler.compareFilter: true,
    preserveKey: true
}
@AccessControl: {
    authorizationCheck: #MANDATORY,
    personalData.blocking:  #BLOCKED_DATA_EXCLUDED
}
@ObjectModel:{
   usageType: {
       serviceQuality: #D,
       dataClass: #MIXED,
       sizeCategory:  #XXL
   },
   semanticKey: [ 'WorkflowTaskInternalID' ],
   representativeKey: 'WorkflowTaskInternalID'
}
@ClientHandling: {
    algorithm: #SESSION_VARIABLE,
    type: #INHERITED
}
@VDM.viewType: #CONSUMPTION
@Consumption.semanticObject: 'WorkflowTaskInternalID'
@EndUserText.label: 'Personnel Settlement Document Work Item'

define view C_PersSettlmtDocWorkItem
  as select from I_WorkflowTask            as _WorkflowTask
    inner join   I_WorkflowTaskApplObject  as _WorkflowTaskApplObject  on  _WorkflowTaskApplObject.WorkflowTaskInternalID        = _WorkflowTask.WorkflowTaskInternalID
                                                                       and _WorkflowTaskApplObject.WorkflowObjectRole            = '01'
                                                                       and _WorkflowTaskApplObject.TechnicalWrkflwObjectCategory = 'CL'
                                                                       and _WorkflowTaskApplObject.SAPObjectNodeRepresentation   = 'PersonnelSettlementDocument'
    inner join   C_PersSettlmtDocWrkflwDet as _PersSettlmtDocWrkflwDet on _PersSettlmtDocWrkflwDet.PersonnelSettlementDocument = _WorkflowTaskApplObject.TechnicalWrkflwObject
{
  key _WorkflowTask.WorkflowTaskInternalID,
      _PersSettlmtDocWrkflwDet.PersonnelSettlementDocument,
      @ObjectModel: { foreignKey.association: '_CreatedByUser', mandatory: true}
      @ObjectModel.text.element:  [ 'UserFullName' ]
      _PersSettlmtDocWrkflwDet.CreatedByUser,
      @Semantics.text: true
      _PersSettlmtDocWrkflwDet.UserFullName,
      @Semantics.currencyCode: true
      @ObjectModel.foreignKey.association: '_PersSettlmtDocCurrency'
      _PersSettlmtDocWrkflwDet.PersSettlmtDocCurrency,
      @Semantics.amount.currencyCode: 'PersSettlmtDocCurrency'
      _PersSettlmtDocWrkflwDet.TotalNetAmount,
      @ObjectModel.foreignKey.association: '_CompanyCode'
      _PersSettlmtDocWrkflwDet.CompanyCode,
      @ObjectModel.foreignKey.association: '_PersonWorkAgreement'
      _PersSettlmtDocWrkflwDet.PersonWorkAgreement,
      _PersSettlmtDocWrkflwDet.SettlmtDate,
      _PersSettlmtDocWrkflwDet.DocumentDate,
      _PersSettlmtDocWrkflwDet.PersonnelCostCenter,
      @ObjectModel.foreignKey.association: '_SettlmtCompnRsn'
      _PersSettlmtDocWrkflwDet.SettlmtCompensationReason,
      @ObjectModel.foreignKey.association: '_SettlmtCompnVar'
      _PersSettlmtDocWrkflwDet.SettlmtCompnVar,
      _PersSettlmtDocWrkflwDet.DocumentTitle,
      _PersSettlmtDocWrkflwDet.SalesOrganization,
      _PersSettlmtDocWrkflwDet.DistributionChannel,
      _PersSettlmtDocWrkflwDet.Division,
      _PersSettlmtDocWrkflwDet.SettlmtDocType,

      //Associations

      _PersSettlmtDocWrkflwDet._CreatedByUser,
      _PersSettlmtDocWrkflwDet._PersSettlmtDocCurrency,
      _PersSettlmtDocWrkflwDet._CompanyCode,
      _PersSettlmtDocWrkflwDet._PersonWorkAgreement,
      _PersSettlmtDocWrkflwDet._SettlmtCompnRsn,
      _PersSettlmtDocWrkflwDet._SettlmtCompnVar
}