I_ProductionOrderLongText
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)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderBasic | head | inner |
| I_OrderLongText | text | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Language | _LongTextLanguage | $projection.LongTextLanguage = _LongTextLanguage.Language |
Annotations (12)
| 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.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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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';
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