R_SalesOrderTextTP
Sales Order - Text TP
R_SalesOrderTextTP is a Transactional CDS View that provides data about "Sales Order - Text TP" in SAP S/4HANA. It reads from 3 data sources (P_SalesDocumentText, I_SalesDocumentBasic, I_SalesDocumentType) and exposes 15 fields with key fields SalesOrder, Language, LongTextID. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_SalesDocumentText | P_SalesDocumentText | from |
| I_SalesDocumentBasic | SalesDocumentBasic | inner |
| I_SalesDocumentType | SalesDocumentType | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TextDeterminationProcedItem | _TextDeterminationProcedItem | $projection.TextDeterminationProcedure = _TextDeterminationProcedItem.TextDeterminationProcedure and $projection.LongTextID = _TextDeterminationProcedItem.LongTextID and _TextDeterminationProcedItem.TextObjectCategory = 'VBBK' |
| [0..1] | I_Language | _Language | $projection.LanguageForEdit = _Language.Language |
| [0..1] | I_SDDocumentLongTextID | _LongTextID | $projection.LongTextIDForEdit = _LongTextID.LongTextID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Sales Order - Text TP | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | |||
| KEY | Language | SalesOrderText | Language | |
| KEY | LongTextID | SalesOrderText | LongTextID | |
| LongTextIDForEdit | SalesOrderText | LongTextID | ||
| LanguageForEdit | SalesOrderText | Language | ||
| LongText | SalesOrderText | LongText | ||
| TextDeterminationProcedure | I_SalesDocumentType | TextDeterminationProcedure | ||
| TextDeterminationProcedureItem | _TextDeterminationProcedItem | TextDeterminationProcedureItem | ||
| SalesOrderType | _SalesOrder | SalesOrderType | ||
| SalesOrganization | _SalesOrder | SalesOrganization | ||
| DistributionChannel | _SalesOrder | DistributionChannel | ||
| OrganizationDivision | _SalesOrder | OrganizationDivision | ||
| _SalesOrder | _SalesOrder | |||
| _Language | _Language | |||
| _LongTextID | _LongTextID |
@VDM: {
lifecycle.contract.type: #SAP_INTERNAL_API,
viewType: #TRANSACTIONAL
}
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L
}
}
@ObjectModel.semanticKey: ['SalesOrder', 'Language', 'LongTextID']
@Metadata.ignorePropagatedAnnotations: true
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@EndUserText.label: 'Sales Order - Text TP'
define view entity R_SalesOrderTextTP
as select from P_SalesDocumentText( P_SAPClient : $session.client ) as SalesOrderText
inner join I_SalesDocumentBasic as SalesDocumentBasic on SalesDocumentBasic.SalesDocument = SalesOrderText.SalesDocument
and SalesDocumentBasic.SDDocumentCategory = 'C'
inner join I_SalesDocumentType as SalesDocumentType on SalesDocumentBasic.SalesDocumentType = SalesDocumentType.SalesDocumentType
association to parent R_SalesOrderTP as _SalesOrder on $projection.SalesOrder = _SalesOrder.SalesOrder
association [0..*] to I_TextDeterminationProcedItem as _TextDeterminationProcedItem on $projection.TextDeterminationProcedure = _TextDeterminationProcedItem.TextDeterminationProcedure
and $projection.LongTextID = _TextDeterminationProcedItem.LongTextID
and _TextDeterminationProcedItem.TextObjectCategory = 'VBBK'
association [0..1] to I_Language as _Language on $projection.LanguageForEdit = _Language.Language
association [0..1] to I_SDDocumentLongTextID as _LongTextID on $projection.LongTextIDForEdit = _LongTextID.LongTextID
{
key cast(SalesOrderText.SalesDocument as vdm_sales_order preserving type) as SalesOrder,
key SalesOrderText.Language,
key SalesOrderText.LongTextID,
@ObjectModel.foreignKey.association: '_LongTextID'
SalesOrderText.LongTextID as LongTextIDForEdit,
@ObjectModel.foreignKey.association: '_Language'
SalesOrderText.Language as LanguageForEdit,
@ObjectModel.virtualElement: true
SalesOrderText.LongText,
@Consumption.hidden: true
SalesDocumentType.TextDeterminationProcedure,
_TextDeterminationProcedItem.TextDeterminationProcedureItem as TextDeterminationProcedureItem,
// For Access control
@Consumption.hidden: true
_SalesOrder.SalesOrderType,
@Consumption.hidden: true
_SalesOrder.SalesOrganization,
@Consumption.hidden: true
_SalesOrder.DistributionChannel,
@Consumption.hidden: true
_SalesOrder.OrganizationDivision,
// Exposed associations
_SalesOrder,
_Language,
_LongTextID
}
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