I_MfgOrderSystemStatusText is a Composite CDS View that provides data about "Manufacturing Order System Status - Text" in SAP S/4HANA. It reads from 1 data source (P_MfgOrderSystemStatusText) and exposes 7 fields with key fields ManufacturingOrder, Language. It has 1 association to related views.
@AccessControl.authorizationCheck: #MANDATORY@Analytics.technicalName: 'IMFGORDSYSTSTXT'
@Metadata.ignorePropagatedAnnotations: true@ObjectModel.dataCategory: #TEXT@ObjectModel.modelingPattern: #LANGUAGE_DEPENDENT_TEXT@ObjectModel.supportedCapabilities: [#LANGUAGE_DEPENDENT_TEXT, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API@VDM.viewType: #COMPOSITE@EndUserText.label: 'Manufacturing Order System Status - Text'
// Concatenates the language-dependent order header system status names to one CHAR40 element (similar to CAUFVD-STTXT)
// according to TJ04-LINEP and -STATP of SAP's standard delivery (asin client 100). Only statuses listed in that table
// with positions (LINEP) 1 up to 10 are considered for this CDS view.
// Statuses which are not listed in standard TJ04 content are NOT considered here!
defineviewentity I_MfgOrderSystemStatusText
withparameters@Environment.systemField : #SYSTEM_LANGUAGE
P_Language : sylangu
asselectfrom P_MfgOrderSystemStatusText(P_Language : $parameters.P_Language)
association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
{
// Key@ObjectModel.text.element: ['MfgOrderSystemStatusText']key ManufacturingOrder,
@ObjectModel.foreignKey.association: '_Language'
@Semantics.language: truekeycast($parameters.P_Language as spras preserving type) as Language,
@ObjectModel.text.element: ['MfgOrderSystemStatusText']
ObjectInternalID,
-- for DCLS
@Consumption.hidden : true
ManufacturingOrderCategory,
@Consumption.hidden : true
ManufacturingOrderType,
@Consumption.hidden : true
ProductionPlant,
// System status
@Semantics.text: truecast( concat_with_space( Text1, concat_with_space( Text2, concat_with_space( Text3, concat_with_space( Text4, concat_with_space( Text5, concat_with_space( Text6,
concat_with_space( Text7, concat_with_space( Text8, concat_with_space( Text9, Text10, 1), 1), 1) ,1) ,1), 1), 1) , 1) ,1 )
as co_sttxt) as MfgOrderSystemStatusText,
// Associations
_Language
};