A_CustRetPartnerSimulation

DDL: A_CUSTRETPARTNERSIMULATION Type: view_entity COMPOSITE

Header Partner Simulation

A_CustRetPartnerSimulation 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 CustomerReturn, PartnerFunction.

Data Sources (2)

SourceAliasJoin Type
I_SalesDocumentBasic CustomerReturn inner
I_SDDocumentPartner Partner from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Header Partner Simulation view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY CustomerReturn I_SDDocumentPartner SDDocument
KEY PartnerFunction
Customer I_SDDocumentPartner Customer
Supplier I_SDDocumentPartner Supplier
Personnel I_SDDocumentPartner Personnel
ContactPerson I_SDDocumentPartner ContactPerson
CustomerReturnType I_SalesDocumentBasic SalesDocumentType
OrganizationDivision I_SalesDocumentBasic OrganizationDivision
SalesOrganization I_SalesDocumentBasic SalesOrganization
DistributionChannel I_SalesDocumentBasic DistributionChannel
_CustomerReturn _CustomerReturn
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Header Partner Simulation'
@Metadata.ignorePropagatedAnnotations: true
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #XL,
  dataClass: #TRANSACTIONAL
} 
define view entity A_CustRetPartnerSimulation as select from I_SDDocumentPartner as Partner
                                              inner join I_SalesDocumentBasic as CustomerReturn on CustomerReturn.SalesDocument = Partner.SDDocument
                                                                                                and CustomerReturn.SDDocumentCategory = 'H' 
                                              association to parent A_CustomerReturnSimulation as _CustomerReturn on _CustomerReturn.CustomerReturn = $projection.CustomerReturn
{
      @ObjectModel.readOnly: true
  key Partner.SDDocument  as CustomerReturn,

      @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 
} 
where Partner.SDDocument = '0'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTBASIC",
"I_SDDOCUMENTPARTNER"
],
"ASSOCIATED":
[
"A_CUSTOMERRETURNSIMULATION"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/