A_CustProjSlsOrdText
Sales Order Header Text
A_CustProjSlsOrdText is a Composite CDS View that provides data about "Sales Order Header Text" in SAP S/4HANA. It reads from 2 data sources (I_CustProjSlsOrd, P_SalesDocumentText) and exposes 10 fields with key fields CustomerProject, Language, LongTextID. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CustProjSlsOrd | CustProjSlsOrd | inner |
| P_SalesDocumentText | P_SalesDocumentText | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | A_CustProjSlsOrd | _CustProjSlsOrd | _CustProjSlsOrd.CustomerProject = $projection.CustomerProject |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ACUSTPROJSOTXT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Sales Order Header Text | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerProject | I_CustProjSlsOrd | CustomerProject | |
| KEY | Language | Language | ||
| KEY | LongTextID | LongTextID | ||
| LongText | LongText | |||
| SalesOrder | ||||
| SalesOrderType | I_CustProjSlsOrd | SalesOrderType | ||
| OrganizationDivision | I_CustProjSlsOrd | OrganizationDivision | ||
| SalesOrganization | I_CustProjSlsOrd | SalesOrganization | ||
| DistributionChannel | I_CustProjSlsOrd | DistributionChannel | ||
| _CustProjSlsOrd | _CustProjSlsOrd |
@AbapCatalog.sqlViewName: 'ACUSTPROJSOTXT'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm:#SESSION_VARIABLE
@EndUserText.label: 'Sales Order Header Text'
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
createEnabled: true,
updateEnabled: true,
deleteEnabled: true,
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L
}
}
@Metadata.ignorePropagatedAnnotations: true
define view A_CustProjSlsOrdText
as select from P_SalesDocumentText( P_SAPClient : $session.client ) as CustProjSalesOrderText
inner join I_CustProjSlsOrd as CustProjSlsOrd on CustProjSlsOrd.SalesOrder = CustProjSalesOrderText.SalesDocument
association [1..1] to A_CustProjSlsOrd as _CustProjSlsOrd on _CustProjSlsOrd.CustomerProject = $projection.CustomerProject
{
@ObjectModel.readOnly: true
key CustProjSlsOrd.CustomerProject as CustomerProject,
key Language,
key LongTextID,
@ObjectModel.virtualElement
@ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_SD_S4H_STXL_SALESORDER'
LongText,
@ObjectModel.readOnly: true
cast(CustProjSalesOrderText.SalesDocument as vdm_sales_order preserving type) as SalesOrder,
// For Access control
@Consumption.hidden: true
CustProjSlsOrd.SalesOrderType,
//_SalesOrder.SalesOrderType,
@Consumption.hidden: true
CustProjSlsOrd.OrganizationDivision,
@Consumption.hidden: true
CustProjSlsOrd.SalesOrganization,
@Consumption.hidden: true
CustProjSlsOrd.DistributionChannel,
// Expose own associations
_CustProjSlsOrd
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CUSTPROJSLSORD"
],
"ASSOCIATED":
[
"A_CUSTPROJSLSORD"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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