I_MfgOrderComponentLongText
Manufacturing Order Component - Text
I_MfgOrderComponentLongText is a Composite CDS View that provides data about "Manufacturing Order Component - Text" in SAP S/4HANA. It reads from 2 data sources (I_OrderComponent, I_OrderComponentLongText) and exposes 14 fields with key fields Reservation, ReservationItem, RecordType, LongTextLanguage. It has 3 associations to related views. Part of development package VDM_PP_SFC.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderComponent | comp | inner |
| I_OrderComponentLongText | text | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Language | _LongTextLanguage | $projection.LongTextLanguage = _LongTextLanguage.Language -- to root: Header |
| [1..1] | I_ManufacturingOrder | _MfgOrder | $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder -- to parent: Operation |
| [1..1] | I_ManufacturingOrderComponent | _MfgOrderComponent | $projection.Reservation = _MfgOrderComponent.Reservation and $projection.ReservationItem = _MfgOrderComponent.ReservationItem and $projection.RecordType = _MfgOrderComponent.ReservationRecordType |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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.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 | Manufacturing Order Component - Text | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | I_OrderComponent | Reservation | |
| KEY | ReservationItem | I_OrderComponent | ReservationItem | |
| KEY | RecordType | I_OrderComponent | RecordType | |
| KEY | LongTextLanguage | |||
| ManufacturingOrder | ||||
| ManufacturingOrderSequence | I_OrderComponent | Sequence | ||
| ManufacturingOrderOperation | I_OrderComponent | OrderOperation | ||
| ManufacturingOrderComponent | ||||
| MaterialComponentText | I_OrderComponent | MaterialComponentText | ||
| MaterialComponentSecondText | I_OrderComponent | MaterialComponentSecondText | ||
| OrderComponentLongText | I_OrderComponentLongText | OrderComponentLongText | ||
| _MfgOrder | _MfgOrder | |||
| _MfgOrderComponent | _MfgOrderComponent | |||
| _LongTextLanguage | _LongTextLanguage |
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@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 Component - Text'
define view entity I_MfgOrderComponentLongText
as select from I_OrderComponentLongText as text
inner join I_OrderComponent as comp on comp.Reservation = text.Reservation
and comp.ReservationItem = text.ReservationItem
and comp.RecordType = text.RecordType
association [1..1] to I_Language as _LongTextLanguage on $projection.LongTextLanguage = _LongTextLanguage.Language
-- to root: Header
association [1..1] to I_ManufacturingOrder as _MfgOrder on $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder
-- to parent: Operation
association [1..1] to I_ManufacturingOrderComponent as _MfgOrderComponent on $projection.Reservation = _MfgOrderComponent.Reservation
and $projection.ReservationItem = _MfgOrderComponent.ReservationItem
and $projection.RecordType = _MfgOrderComponent.ReservationRecordType
{
// Key
key comp.Reservation,
@ObjectModel.text.element: ['MaterialComponentText', 'MaterialComponentSecondText', 'OrderComponentLongText']
key comp.ReservationItem,
key comp.RecordType,
@Semantics.language: true
key cast(comp.LongTextLanguage as pph_longtextlang preserving type) as LongTextLanguage,
// Semantic keys
cast(comp.OrderID as co_aufnr preserving type) as ManufacturingOrder,
comp.Sequence as ManufacturingOrderSequence,
comp.OrderOperation as ManufacturingOrderOperation,
@ObjectModel.text.element: ['MaterialComponentText', 'MaterialComponentSecondText', 'OrderComponentLongText']
cast(comp.BillOfMaterialItemNumber as eam_order_component preserving type) as ManufacturingOrderComponent,
// Text
@Semantics.text: true
comp.MaterialComponentText,
@Semantics.text: true
comp.MaterialComponentSecondText,
@Semantics.text: true
text.OrderComponentLongText,
// Associations
@ObjectModel.association.type: [#TO_COMPOSITION_ROOT]
_MfgOrder,
@ObjectModel.association.type: [#TO_COMPOSITION_PARENT]
_MfgOrderComponent,
_LongTextLanguage
}
where
( comp.OrderCategory = '10' or
comp.OrderCategory = '40' ) and
comp.MaterialComponentHasLongText = 'X';
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA