I_WorkCenterActivityTexts is a Composite CDS View that provides data about "Work Center Activity Descriptions" in SAP S/4HANA. It reads from 1 data source (P_WorkCenterActivity2) and exposes 9 fields with key fields WorkCenterInternalID, WorkCenterTypeCode.
//@AbapCatalog.sqlViewName: 'IWRKCNTRACTDESCR'
//@AbapCatalog.compiler.compareFilter: true//@AbapCatalog.preserveKey: true@AccessControl.authorizationCheck: #CHECK@AccessControl.personalData.blocking: #NOT_REQUIRED//@ClientHandling.algorithm: #SESSION_VARIABLE@ObjectModel.modelingPattern: #NONE@ObjectModel.supportedCapabilities: [#SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE]@ObjectModel.representativeKey: 'WorkCenterInternalID'
@ObjectModel.usageType: {serviceQuality: #D, sizeCategory: #M, dataClass: #MIXED}@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API@VDM.viewType: #COMPOSITE@EndUserText.label: 'Work Center Activity Descriptions'
//defineview I_WorkCenterActivityTexts
defineviewentity I_WorkCenterActivityTexts
asselectfrom P_WorkCenterActivity2 as wrkctract
{
// Technical keykey WorkCenterInternalID,
@ObjectModel.foreignKey.association: '_WorkCenterType'
key WorkCenterTypeCode,
// Semantic key@ObjectModel.foreignKey.association: '_WorkCenterCategory'
WorkCenterCategoryCode,
@ObjectModel.foreignKey.association: '_WorkCenter'
WorkCenter,
@ObjectModel.foreignKey.association: '_Plant'
Plant,
// Determination activity texts
@Semantics.text: truecase coalesce( ActivityDescOriginType1, '' )
when '' then// description of parameter from standard value key
ParamName1
when '0' then// no description
''
when '1' then// description of activity type
CostCtrActivityTypeName1
when '2' then// description of activity from customizing
CostCenterActivityAltvDesc1
else ''
endas WorkCenterActivityText1,
@Semantics.text: truecase coalesce( ActivityDescOriginType2, '' )
when '' then// description of parameter from standard value key
ParamName2
when '0' then// no description
''
when '1' then// description of activity type
CostCtrActivityTypeName2
when '2' then// description of activity from customizing
CostCenterActivityAltvDesc2
else ''
endas WorkCenterActivityText2,
@Semantics.text: truecase coalesce( ActivityDescOriginType3, '' )
when '' then// description of parameter from standard value key
ParamName3
when '0' then// no description
''
when '1' then// description of activity type
CostCtrActivityTypeName3
when '2' then// description of activity from customizing
CostCenterActivityAltvDesc3
else ''
endas WorkCenterActivityText3,
@Semantics.text: truecase coalesce( ActivityDescOriginType4, '' )
when '' then// description of parameter from standard value key
ParamName4
when '0' then// no description
''
when '1' then// description of activity type
CostCtrActivityTypeName4
when '2' then// description of activity from customizing
CostCenterActivityAltvDesc4
else ''
endas WorkCenterActivityText4,
@Semantics.text: truecase coalesce( ActivityDescOriginType5, '' )
when '' then// description of parameter from standard value key
ParamName5
when '0' then// no description
''
when '1' then// description of activity type
CostCtrActivityTypeName5
when '2' then// description of activity from customizing
CostCenterActivityAltvDesc5
else ''
endas WorkCenterActivityText5,
@Semantics.text: truecase coalesce( ActivityDescOriginType6, '' )
when '' then// description of parameter from standard value key
ParamName6
when '0' then// no description
''
when '1' then// description of activity type
CostCtrActivityTypeName6
when '2' then// description of activity from customizing
CostCenterActivityAltvDesc6
else ''
endas WorkCenterActivityText6,
// Associations
_WorkCenter,
_WorkCenterType,
_WorkCenterCategory,
_Plant
};