A_CustRetItemPartnerSimulation
Item Partner Simulation
A_CustRetItemPartnerSimulation is a Composite CDS View that provides data about "Item Partner Simulation" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentBasic, I_SDDocumentItemPartner) and exposes 13 fields with key fields CustomerReturn, CustomerReturnItem, PartnerFunction. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentBasic | CustomerReturn | inner |
| I_SDDocumentItemPartner | Partner | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | A_CustomerReturnSimulation | _CustomerReturn | $projection.CustomerReturn = _CustomerReturn.CustomerReturn |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Item Partner Simulation | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerReturn | I_SDDocumentItemPartner | SDDocument | |
| KEY | CustomerReturnItem | I_SDDocumentItemPartner | SDDocumentItem | |
| KEY | PartnerFunction | |||
| Customer | I_SDDocumentItemPartner | Customer | ||
| Supplier | I_SDDocumentItemPartner | Supplier | ||
| Personnel | I_SDDocumentItemPartner | Personnel | ||
| ContactPerson | I_SDDocumentItemPartner | ContactPerson | ||
| CustomerReturnType | I_SalesDocumentBasic | SalesDocumentType | ||
| OrganizationDivision | I_SalesDocumentBasic | OrganizationDivision | ||
| SalesOrganization | I_SalesDocumentBasic | SalesOrganization | ||
| DistributionChannel | I_SalesDocumentBasic | DistributionChannel | ||
| _CustomerReturn | _CustomerReturn | |||
| _CustomerReturnItem | _CustomerReturnItem |
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AccessControl: {
authorizationCheck: #MANDATORY,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@EndUserText.label: 'Item Partner Simulation'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #XL,
dataClass: #TRANSACTIONAL
}
define view entity A_CustRetItemPartnerSimulation as select from I_SDDocumentItemPartner as Partner
inner join I_SalesDocumentBasic as CustomerReturn on CustomerReturn.SalesDocument = Partner.SDDocument
and CustomerReturn.SDDocumentCategory = 'H'
association [1..1] to A_CustomerReturnSimulation as _CustomerReturn on $projection.CustomerReturn = _CustomerReturn.CustomerReturn
association to parent A_CustomerReturnItemSimulation as _CustomerReturnItem on $projection.CustomerReturn = _CustomerReturnItem.CustomerReturn
and $projection.CustomerReturnItem = _CustomerReturnItem.CustomerReturnItem
{
@ObjectModel.readOnly: true
key Partner.SDDocument as CustomerReturn,
@ObjectModel.readOnly: true
key Partner.SDDocumentItem as CustomerReturnItem,
@ObjectModel.sapObjectNodeTypeReference: 'PartnerFunction'
key cast(Partner.PartnerFunction as parvw_unv) as PartnerFunction,
Partner.Customer,
Partner.Supplier,
Partner.Personnel,
Partner.ContactPerson,
// For Access control
@Consumption.hidden: true
CustomerReturn.SalesDocumentType as CustomerReturnType,
@Consumption.hidden: true
CustomerReturn.OrganizationDivision,
@Consumption.hidden: true
CustomerReturn.SalesOrganization,
@Consumption.hidden: true
CustomerReturn.DistributionChannel,
//Expose associations
_CustomerReturn,
_CustomerReturnItem
} where Partner.SDDocument = '0'
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