I_CustRetCpyCtrlSrceDocType
Source Document Type for Returns Order
I_CustRetCpyCtrlSrceDocType is a Composite CDS View that provides data about "Source Document Type for Returns Order" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentCopyControl, I_SalesDocumentType) and exposes 7 fields with key fields TargetSalesDocumentType, SourceSalesDocumentType, SourceBillingDocumentType, ReferenceScheduleLineCategory, ReferenceItemCategory. Part of development package ODATA_SD_RETURN_V2.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentCopyControl | SalesDocumentCopyControl | from |
| I_SalesDocumentType | SalesDocumentType | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Source Document Type for Returns Order | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TargetSalesDocumentType | I_SalesDocumentCopyControl | TargetSalesDocumentType | |
| KEY | SourceSalesDocumentType | I_SalesDocumentCopyControl | SourceSalesDocumentType | |
| KEY | SourceBillingDocumentType | I_SalesDocumentCopyControl | SourceBillingDocumentType | |
| KEY | ReferenceScheduleLineCategory | I_SalesDocumentCopyControl | ReferenceScheduleLineCategory | |
| KEY | ReferenceItemCategory | I_SalesDocumentCopyControl | ReferenceItemCategory | |
| _SourceSalesDocumentType | I_SalesDocumentCopyControl | _SourceSalesDocumentType | ||
| _SourceBillingDocumentType | I_SalesDocumentCopyControl | _SourceBillingDocumentType |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ObjectModel: {
usageType:{
serviceQuality: #A,
sizeCategory: #S,
dataClass: #CUSTOMIZING
}
}
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Source Document Type for Returns Order'
define view entity I_CustRetCpyCtrlSrceDocType
as select from I_SalesDocumentCopyControl as SalesDocumentCopyControl
inner join I_SalesDocumentType as SalesDocumentType on SalesDocumentCopyControl.TargetSalesDocumentType = SalesDocumentType.SalesDocumentType
{
key SalesDocumentCopyControl.TargetSalesDocumentType,
key SalesDocumentCopyControl.SourceSalesDocumentType,
key SalesDocumentCopyControl.SourceBillingDocumentType,
key SalesDocumentCopyControl.ReferenceScheduleLineCategory,
key SalesDocumentCopyControl.ReferenceItemCategory,
//Associations
SalesDocumentCopyControl._SourceSalesDocumentType,
SalesDocumentCopyControl._SourceBillingDocumentType
}
where SalesDocumentType.RetsMgmtIsActive = 'X'
and SalesDocumentType.SDDocumentCategory = 'H'
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