I_ProductionOrderLongText

DDL: I_PRODUCTIONORDERLONGTEXT Type: view_entity COMPOSITE Package: VDM_PP_SFC

Production Order - Text

I_ProductionOrderLongText is a Composite CDS View that provides data about "Production Order - Text" in SAP S/4HANA. It reads from 2 data sources (I_OrderBasic, I_OrderLongText) and exposes 6 fields with key fields ProductionOrder, LongTextLanguage. It has 1 association to related views. Part of development package VDM_PP_SFC.

Data Sources (2)

SourceAliasJoin Type
I_OrderBasic head inner
I_OrderLongText text from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Language _LongTextLanguage $projection.LongTextLanguage = _LongTextLanguage.Language

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #TEXT view
ObjectModel.modelingPattern #LANGUAGE_DEPENDENT_TEXT view
ObjectModel.representativeKey ProductionOrder view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Production Order - Text view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY ProductionOrder
KEY LongTextLanguage I_OrderBasic LongTextLanguage
ProductionOrderText I_OrderBasic OrderDescription
ProductionOrderLongText I_OrderLongText PlainLongText
_ProductionOrder _ProductionOrder
_LongTextLanguage _LongTextLanguage
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.dataCategory: #TEXT
@ObjectModel.modelingPattern: #LANGUAGE_DEPENDENT_TEXT
@ObjectModel.representativeKey: 'ProductionOrder'
@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: 'Production Order - Text'

define view entity I_ProductionOrderLongText
    as select from I_OrderLongText as text
        inner join I_OrderBasic    as head on head.OrderID = text.OrderID

    association [1..1] to I_Language        as _LongTextLanguage on $projection.LongTextLanguage = _LongTextLanguage.Language
  // SOT relations

    association to parent I_ProductionOrder as _ProductionOrder  on $projection.ProductionOrder = _ProductionOrder.ProductionOrder
{
      // Key

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProductionOrderStdVH', element: 'ProductionOrder' } } ]    
      @ObjectModel.text.element: ['ProductionOrderText', 'ProductionOrderLongText']
  key cast(text.OrderID as vdm_manufacturingorder preserving type) as ProductionOrder,
      @ObjectModel.foreignKey.association: '_LongTextLanguage'
      @Semantics.language: true
  key head.LongTextLanguage                                        as LongTextLanguage,

      //Text

      @Semantics.text: true
      head.OrderDescription                                        as ProductionOrderText,
      @Semantics.text: true
      text.PlainLongText                                           as ProductionOrderLongText,

      // Associations

      _ProductionOrder,
      _LongTextLanguage
}
where 
  head.OrderCategory = '10' and
  head.OrderHasLongText = 'X';