A_SalesOrderPartnerSimulation

DDL: A_SALESORDERPARTNERSIMULATION Type: view COMPOSITE

Sales Order Partner Simulation (API)

A_SalesOrderPartnerSimulation is a Composite CDS View that provides data about "Sales Order Partner Simulation (API)" in SAP S/4HANA. It reads from 2 data sources (I_SDDocumentPartner, I_SalesDocumentBasic) and exposes 12 fields with key fields SalesOrder, PartnerFunction. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_SDDocumentPartner Partner from
I_SalesDocumentBasic SalesDocument inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] A_SalesOrderSimulation _SalesOrder _SalesOrder.SalesOrder = $projection.SalesOrder

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Sales Order Partner Simulation (API) view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASOPRTNRSIM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder
KEY PartnerFunction PartnerFunction
Customer Customer
Supplier Supplier
Personnel Personnel
ContactPerson ContactPerson
VATRegistration I_SDDocumentPartner VATRegistration
SalesOrderType I_SalesDocumentBasic SalesDocumentType
OrganizationDivision I_SalesDocumentBasic OrganizationDivision
SalesOrganization I_SalesDocumentBasic SalesOrganization
DistributionChannel I_SalesDocumentBasic DistributionChannel
_SalesOrder _SalesOrder
@ClientHandling.algorithm:#SESSION_VARIABLE
@EndUserText.label: 'Sales Order Partner Simulation (API)'
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AbapCatalog: {
  sqlViewName: 'ASOPRTNRSIM',
  compiler.compareFilter: true
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XL
   }
}
@Metadata.ignorePropagatedAnnotations: true

define view A_SalesOrderPartnerSimulation
  as select from I_SDDocumentPartner  as Partner
    inner join   I_SalesDocumentBasic as SalesDocument on  SalesDocument.SalesDocument      = Partner.SDDocument // needed for DCL

                                                       and SalesDocument.SDDocumentCategory = 'C'

  association [1..1] to A_SalesOrderSimulation as _SalesOrder on _SalesOrder.SalesOrder = $projection.SalesOrder

{
      @ObjectModel.readOnly: true
  key cast(SalesDocument as vdm_sales_order preserving type) as SalesOrder,

  key PartnerFunction,
       
      Customer,

      Supplier,

      Personnel,

      ContactPerson,
      
      Partner.VATRegistration,

      // For Access control

      @Consumption.hidden: true
      SalesDocument.SalesDocumentType                           as SalesOrderType,
      @Consumption.hidden: true
      SalesDocument.OrganizationDivision,
      @Consumption.hidden: true
      SalesDocument.SalesOrganization,
      @Consumption.hidden: true
      SalesDocument.DistributionChannel,

      //Expose associations

      _SalesOrder
}
where Partner.SDDocument = '0'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTBASIC",
"I_SDDOCUMENTPARTNER"
],
"ASSOCIATED":
[
"A_SALESORDERSIMULATION"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/