C_CndnContrWorkItem

DDL: C_CNDNCONTRWORKITEM Type: view CONSUMPTION

Condition Contract Work Item

C_CndnContrWorkItem is a Consumption CDS View that provides data about "Condition Contract Work Item" in SAP S/4HANA. It reads from 3 data sources (C_CndnContrWrkflwRel, I_WorkflowTask, I_WorkflowTaskApplObject) and exposes 40 fields with key field WorkflowTaskInternalID.

Data Sources (3)

SourceAliasJoin Type
C_CndnContrWrkflwRel _CndnContrWrkflwRel inner
I_WorkflowTask _WorkflowTask from
I_WorkflowTaskApplObject _WorkflowTaskApplObject inner

Annotations (14)

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

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY WorkflowTaskInternalID I_WorkflowTask WorkflowTaskInternalID
ConditionContract C_CndnContrWrkflwRel ConditionContract
CndnContrType C_CndnContrWrkflwRel CndnContrType
CndnContrTypeDesc C_CndnContrWrkflwRel DataPoint03
Customer C_CndnContrWrkflwRel Customer
CustomerName C_CndnContrWrkflwRel CustomerName
Supplier C_CndnContrWrkflwRel Supplier
SupplierName C_CndnContrWrkflwRel SupplierName
CndnContrValidFrom C_CndnContrWrkflwRel CndnContrValidFrom
CndnContrValidTo C_CndnContrWrkflwRel CndnContrValidTo
ExternalDocumentReferenceID C_CndnContrWrkflwRel ExternalDocumentReferenceID
CndnContrIsInactive C_CndnContrWrkflwRel CndnContrIsInactive
CndnContrIsInactiveName C_CndnContrWrkflwRel CndnContrIsInactiveName
CreatedByUser C_CndnContrWrkflwRel CreatedByUser
UserFullName C_CndnContrWrkflwRel UserFullName
CreationDate C_CndnContrWrkflwRel CreationDate
LastChangedByUser C_CndnContrWrkflwRel LastChangedByUser
SalesOrganization C_CndnContrWrkflwRel SalesOrganization
DistributionChannel C_CndnContrWrkflwRel DistributionChannel
DistributionChannelName C_CndnContrWrkflwRel DistributionChannelName
Division C_CndnContrWrkflwRel Division
DivisionName C_CndnContrWrkflwRel DivisionName
PurchasingGroup C_CndnContrWrkflwRel PurchasingGroup
PurchasingGroupName C_CndnContrWrkflwRel PurchasingGroupName
PurchasingOrganization C_CndnContrWrkflwRel PurchasingOrganization
PurchasingOrganizationName C_CndnContrWrkflwRel PurchasingOrganizationName
CompanyCode C_CndnContrWrkflwRel CompanyCode
CompanyCodeName C_CndnContrWrkflwRel CompanyCodeName
PriorSupplier C_CndnContrWrkflwRel PriorSupplier
PersonWorkAgreement C_CndnContrWrkflwRel PersonWorkAgreement
CndnContrWorkerCostCenter C_CndnContrWrkflwRel CndnContrWorkerCostCenter
_Customer C_CndnContrWrkflwRel _Customer
_Supplier C_CndnContrWrkflwRel _Supplier
_SalesOrganization C_CndnContrWrkflwRel _SalesOrganization
_DistributionChannel C_CndnContrWrkflwRel _DistributionChannel
_Division C_CndnContrWrkflwRel _Division
_PurchasingOrganization C_CndnContrWrkflwRel _PurchasingOrganization
_PurchasingGroup C_CndnContrWrkflwRel _PurchasingGroup
_PriorSupplier C_CndnContrWrkflwRel _PriorSupplier
_PersonWorkAgreement C_CndnContrWrkflwRel _PersonWorkAgreement
@AbapCatalog: {
  sqlViewName: 'CCONDCNTRWI',
  compiler.compareFilter: true,
  preserveKey: true
}
@AccessControl: {
    authorizationCheck: #MANDATORY,
    personalData.blocking:  #BLOCKED_DATA_EXCLUDED
}
@ObjectModel:{
   usageType: {
      dataClass: #MIXED,
      serviceQuality: #D,
      sizeCategory:  #XL
   },
   semanticKey: [ 'WorkflowTaskInternalID' ],
   representativeKey: 'WorkflowTaskInternalID'
}
@ClientHandling: {
    algorithm: #SESSION_VARIABLE,
    type: #INHERITED
}
@VDM.viewType: #CONSUMPTION
@Consumption.semanticObject: 'WorkflowTaskInternalID'
@EndUserText.label: 'Condition Contract Work Item'

define view C_CndnContrWorkItem
  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 = 'BO'
                                                                     and _WorkflowTaskApplObject.SAPObjectNodeRepresentation   = 'ConditionContract'
    inner join   C_CndnContrWrkflwRel     as _CndnContrWrkflwRel     on _CndnContrWrkflwRel.ConditionContract = _WorkflowTaskApplObject.TechnicalWrkflwObject
{
  key _WorkflowTask.WorkflowTaskInternalID,

      _CndnContrWrkflwRel.ConditionContract,
      _CndnContrWrkflwRel.CndnContrType,
      _CndnContrWrkflwRel.DataPoint03 as CndnContrTypeDesc,
      @ObjectModel.foreignKey.association: '_Customer'
      _CndnContrWrkflwRel.Customer,
      _CndnContrWrkflwRel.CustomerName,
      @ObjectModel.foreignKey.association: '_Supplier'
      _CndnContrWrkflwRel.Supplier,
      _CndnContrWrkflwRel.SupplierName,
      _CndnContrWrkflwRel.CndnContrValidFrom,
      _CndnContrWrkflwRel.CndnContrValidTo,
      _CndnContrWrkflwRel.ExternalDocumentReferenceID,
      _CndnContrWrkflwRel.CndnContrIsInactive,
      _CndnContrWrkflwRel.CndnContrIsInactiveName,
      _CndnContrWrkflwRel.CreatedByUser,
      @Semantics.text: true
      _CndnContrWrkflwRel.UserFullName,
      _CndnContrWrkflwRel.CreationDate,
      _CndnContrWrkflwRel.LastChangedByUser,
      @ObjectModel.foreignKey.association: '_SalesOrganization'
      _CndnContrWrkflwRel.SalesOrganization,
      @ObjectModel.foreignKey.association: '_DistributionChannel'
      _CndnContrWrkflwRel.DistributionChannel,
      _CndnContrWrkflwRel.DistributionChannelName,
      @ObjectModel.foreignKey.association: '_Division'
      _CndnContrWrkflwRel.Division,
      _CndnContrWrkflwRel.DivisionName,
      @ObjectModel.foreignKey.association: '_PurchasingGroup'
      _CndnContrWrkflwRel.PurchasingGroup,
      _CndnContrWrkflwRel.PurchasingGroupName,
      @ObjectModel.foreignKey.association: '_PurchasingOrganization'
      _CndnContrWrkflwRel.PurchasingOrganization,
      _CndnContrWrkflwRel.PurchasingOrganizationName,
      _CndnContrWrkflwRel.CompanyCode,
      _CndnContrWrkflwRel.CompanyCodeName,
      @ObjectModel.foreignKey.association: '_PriorSupplier'
      _CndnContrWrkflwRel.PriorSupplier,

      /* Worker related fields */
      @Consumption.hidden: true
      _CndnContrWrkflwRel.PersonWorkAgreement,
      @Consumption.hidden: true
      _CndnContrWrkflwRel.CndnContrWorkerCostCenter,

      //Associations

      _CndnContrWrkflwRel._Customer,
      _CndnContrWrkflwRel._Supplier,
      _CndnContrWrkflwRel._SalesOrganization,
      _CndnContrWrkflwRel._DistributionChannel,
      _CndnContrWrkflwRel._Division,
      _CndnContrWrkflwRel._PurchasingOrganization,
      _CndnContrWrkflwRel._PurchasingGroup,
      _CndnContrWrkflwRel._PriorSupplier,
      @Consumption.hidden: true
      _CndnContrWrkflwRel._PersonWorkAgreement

}