I_WORKCENTERCOSTCENTER
Work Center Cost Center
I_WORKCENTERCOSTCENTER is a CDS View in S/4HANA. Work Center Cost Center. It contains 9 fields. 6 CDS views read from this table.
CDS Views using this table (6)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| A_WorkCenterCostCenter | view | from | COMPOSITE | Cost Center Allocation |
| C_WorkCenterCostCenter | view_entity | from | CONSUMPTION | WorkCenter to Costcenter assignment |
| I_ActyTypeProdnWrkCtr | view | from | COMPOSITE | Production Work Centers |
| I_MaintOrderConfActivityTypeVH | view | inner | COMPOSITE | Activity types for Order confirmation |
| I_WorkCenterCostCenterCount | view_entity | from | COMPOSITE | Count of CostCenters per Work Center |
| R_WorkCenterCostCenterTP | view_entity | from | TRANSACTIONAL | Work Center Cost Center |
Fields (9)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | CostCenterAllocation | CostCenterAllocation | 1 |
| KEY | ValidityEndDate | ValidityEndDate | 1 |
| KEY | WorkCenterInternalID | WorkCenterInternalID | 1 |
| KEY | WorkCenterTypeCode | WorkCenterTypeCode | 1 |
| ControllingArea | ControllingArea | 1 | |
| CostCenter | CostCenter | 1 | |
| Plant | Plant | 1 | |
| ValidityStartDate | ValidityStartDate | 1 | |
| WorkCenterCategoryCode | WorkCenterCategoryCode | 1 |
@AbapCatalog.sqlViewName: 'IPPWRKCNTRCOSTC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.privilegedAssociations: ['_LastChangedByUser']
@Analytics.dataCategory: #DIMENSION
@Analytics.dataExtraction.enabled: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #EXTRACTION_DATA_SOURCE]
@ObjectModel.representativeKey: 'CostCenterAllocation'
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #S, dataClass: #MASTER}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Work Center Cost Center'
/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ] } */
define view I_WorkCenterCostCenter
as select from crco as crco
association [1..1] to I_WorkCenter as _WorkCenter on $projection.WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode
and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
association [1..1] to I_WorkCenterType as _WorkCenterTypeCode on $projection.WorkCenterTypeCode = _WorkCenterTypeCode.WorkCenterTypeCode
association [1..1] to I_WorkCenterCategory as _WorkCenterCategory on $projection.workcentercategorycode = _WorkCenterCategory.WorkCenterCategoryCode
association [1..1] to I_Plant as _Plant on $projection.plant = _Plant.Plant
association [0..1] to I_CalendarDate as _StartDate on $projection.ValidityStartDate = _StartDate.CalendarDate
association [1..1] to I_CalendarDate as _EndDate on $projection.ValidityEndDate = _EndDate.CalendarDate
association [0..1] to I_User as _LastChangedByUser on $projection.LastChangedByUser = _LastChangedByUser.UserID
association [1..1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
association [1..1] to I_CostCenter as _CostCenter on $projection.ControllingArea = _CostCenter.ControllingArea
and $projection.CostCenter = _CostCenter.CostCenter
and $projection.ValidityEndDate = _CostCenter.ValidityEndDate
association [0..1] to I_CostCenterActivityType as _ActivityType on $projection.ControllingArea = _ActivityType.ControllingArea
and $projection.CostCtrActivityType = _ActivityType.CostCtrActivityType
and $projection.ValidityEndDate = _ActivityType.ValidityEndDate
association [0..1] to I_UnitOfMeasure as _UnitOfMeasure on $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure
association [0..1] to I_BusinessProcess as _BusinessProcess on $projection.ControllingArea = _BusinessProcess.ControllingArea
and $projection.BusinessProcess = _BusinessProcess.BusinessProcess
association [0..1] to I_ActivityDescOriginType as _ActivityDescOriginType on $projection.ActivityDescOriginType = _ActivityDescOriginType.ActivityDescOriginType
association [0..*] to I_ActivityAlternativeText as _ActivityAlternativeText on $projection.CostCenterActivityAltvDescID = _ActivityAlternativeText.CostCenterActivityAltvDescID
association [0..*] to I_CostCenterText as _CostCenterText on $projection.CostCenter = _CostCenterText.CostCenter
and $projection.ControllingArea = _CostCenterText.ControllingArea
and $projection.ValidityEndDate = _CostCenterText.ValidityEndDate
association [0..1] to I_ProdnRsceToolQtyCalcFormula as _CostCtrActivityTypeFormula on $projection.CostCenterActivityTypeFormula = _CostCtrActivityTypeFormula.ProdnRsceToolQtyCalcFormula
{
// Key
@ObjectModel.foreignKey.association: '_WorkCenter'
key crco.objid as WorkCenterInternalID,
@ObjectModel.foreignKey.association: '_WorkCenterTypeCode'
key crco.objty as WorkCenterTypeCode,
key cast(crco.lanum as pph_lanum preserving type) as CostCenterAllocation,
@ObjectModel.foreignKey.association: '_EndDate'
key crco.endda as ValidityEndDate,
@ObjectModel.foreignKey.association: '_StartDate'
crco.begda as ValidityStartDate,
// Admin
@Semantics.systemDate.lastChangedAt: true
crco.aedat_kost as LastChangeDate,
@Semantics.user.lastChangedBy: true
crco.aenam_kost as LastChangedByUser,
// Plant and Category for DCLS
@ObjectModel.foreignKey.association: '_Plant'
_WorkCenter.Plant,
@ObjectModel.foreignKey.association: '_WorkCenterCategory'
_WorkCenter.WorkCenterCategoryCode,
//CO Data
@ObjectModel.foreignKey.association: '_ControllingArea'
cast(crco.kokrs as fis_kokrs preserving type) as ControllingArea,
@ObjectModel.foreignKey.association: '_CostCenter'
crco.kostl as CostCenter,
@ObjectModel.foreignKey.association: '_ActivityType'
crco.lstar as CostCtrActivityType,
@Semantics.unitOfMeasure: true
crco.leinh as CostCtrActivityTypeQtyUnit,
@ObjectModel.foreignKey.association: '_BusinessProcess'
crco.prz as BusinessProcess,
// Alternative description
@ObjectModel.foreignKey.association: '_ActivityDescOriginType'
cast(crco.actxy as pph_actxy preserving type) as ActivityDescOriginType,
cast(crco.actxk as pph_actxk preserving type) as CostCenterActivityAltvDescID,
@ObjectModel.foreignKey.association: '_CostCtrActivityTypeFormula'
cast(crco.forml as ap_form_c1 preserving type) as CostCenterActivityTypeFormula,
crco.lstar_ref as CostCtrActyTypeIsReferenced,
crco.bde as CostCtrActyTypeIncntvWageCode,
crco.sakl as CostCtrActyTypeRecdTypeGrpCode,
// Associations
_WorkCenter,
_WorkCenterTypeCode,
_WorkCenterCategory,
_Plant,
_EndDate,
_StartDate,
_LastChangedByUser,
_ControllingArea,
_CostCenter,
_CostCenterText,
_ActivityType,
_UnitOfMeasure,
_BusinessProcess,
_ActivityDescOriginType,
_ActivityAlternativeText,
_CostCtrActivityTypeFormula
}
where
( crco.objty = 'A'
and crco.laset = ' 1'
);
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_WORKCENTER",
"CRCO"
],
"ASSOCIATED":
[
"I_ACTIVITYALTERNATIVETEXT",
"I_ACTIVITYDESCORIGINTYPE",
"I_BUSINESSPROCESS",
"I_CALENDARDATE",
"I_CONTROLLINGAREA",
"I_COSTCENTER",
"I_COSTCENTERACTIVITYTYPE",
"I_COSTCENTERTEXT",
"I_PLANT",
"I_PRODNRSCETOOLQTYCALCFORMULA",
"I_UNITOFMEASURE",
"I_USER",
"I_WORKCENTER",
"I_WORKCENTERCATEGORY",
"I_WORKCENTERTYPE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/