A_DebitMemoReqPartnerSimln
Header Partner Simulation
A_DebitMemoReqPartnerSimln is a Composite CDS View that provides data about "Header Partner Simulation" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentBasic, I_SDDocumentPartner) and exposes 11 fields with key fields DebitMemoRequest, PartnerFunction.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentBasic | DebitMemoRequest | inner |
| I_SDDocumentPartner | Partner | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Header Partner Simulation | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DebitMemoRequest | I_SDDocumentPartner | SDDocument | |
| KEY | PartnerFunction | |||
| Customer | I_SDDocumentPartner | Customer | ||
| Supplier | I_SDDocumentPartner | Supplier | ||
| Personnel | I_SDDocumentPartner | Personnel | ||
| ContactPerson | I_SDDocumentPartner | ContactPerson | ||
| DebitMemoRequestType | I_SalesDocumentBasic | SalesDocumentType | ||
| OrganizationDivision | I_SalesDocumentBasic | OrganizationDivision | ||
| SalesOrganization | I_SalesDocumentBasic | SalesOrganization | ||
| DistributionChannel | I_SalesDocumentBasic | DistributionChannel | ||
| _DebitMemoRequest | _DebitMemoRequest |
@EndUserText.label: 'Header Partner Simulation'
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AccessControl: {
authorizationCheck: #MANDATORY,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #XL
}
}
@Metadata.ignorePropagatedAnnotations: true
define view entity A_DebitMemoReqPartnerSimln
as select from I_SDDocumentPartner as Partner
inner join I_SalesDocumentBasic as DebitMemoRequest on DebitMemoRequest.SalesDocument = Partner.SDDocument // needed for DCL
and DebitMemoRequest.SDDocumentCategory = 'L'
association to parent A_DebitMemoRequestSimulation as _DebitMemoRequest on _DebitMemoRequest.DebitMemoRequest = $projection.DebitMemoRequest
{
@ObjectModel.readOnly: true
key Partner.SDDocument as DebitMemoRequest,
@ObjectModel.sapObjectNodeTypeReference: 'PartnerFunction'
@ObjectModel.mandatory: true
key cast(Partner.PartnerFunction as parvw_unv) as PartnerFunction,
Partner.Customer,
Partner.Supplier,
Partner.Personnel,
Partner.ContactPerson,
// For Access control
@Consumption.hidden: true
DebitMemoRequest.SalesDocumentType as DebitMemoRequestType,
@Consumption.hidden: true
DebitMemoRequest.OrganizationDivision,
@Consumption.hidden: true
DebitMemoRequest.SalesOrganization,
@Consumption.hidden: true
DebitMemoRequest.DistributionChannel,
//Expose associations
_DebitMemoRequest
}
where Partner.SDDocument = '0'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTBASIC",
"I_SDDOCUMENTPARTNER"
],
"ASSOCIATED":
[
"A_DEBITMEMOREQUESTSIMULATION"
],
"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