A_SalesOrderItemPartnerSimln

DDL: A_SALESORDERITEMPARTNERSIMLN Type: view COMPOSITE Package: ODATA_SD_SALESORDER_API

Sales Order Item Partner Sim (API)

A_SalesOrderItemPartnerSimln is a Composite CDS View that provides data about "Sales Order Item Partner Sim (API)" in SAP S/4HANA. It reads from 2 data sources (I_SDDocumentItemPartner, I_SalesDocumentBasic) and exposes 16 fields with key fields SalesOrder, SalesOrderItem, PartnerFunction. It has 3 associations to related views. Part of development package ODATA_SD_SALESORDER_API.

Data Sources (2)

SourceAliasJoin Type
I_SDDocumentItemPartner Partner from
I_SalesDocumentBasic SalesDocument inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] A_SalesOrderSimulation _SalesOrder $projection.SalesOrder = _SalesOrder.SalesOrder
[1..1] A_SalesOrderItemSimulation _SalesOrderItem $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem
[1..1] I_WorkforcePersonMappings_1 _WorkforcePersonMappings _WorkforcePersonMappings.WorkAssignment = $projection.Personnel and $projection.Personnel is not initial

Annotations (11)

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

Fields (16)

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


define view A_SalesOrderItemPartnerSimln
  as select from I_SDDocumentItemPartner as Partner
    inner join   I_SalesDocumentBasic    as SalesDocument on  SalesDocument.SalesDocument = Partner.SDDocument
                                                          and SDDocumentCategory       = 'C'

  association [1..1] to A_SalesOrderSimulation     as _SalesOrder     on  $projection.SalesOrder     = _SalesOrder.SalesOrder
  
  association [1..1] to A_SalesOrderItemSimulation as _SalesOrderItem on  $projection.SalesOrder     = _SalesOrderItem.SalesOrder
                                                                      and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem
  
  association [1..1] to I_WorkforcePersonMappings_1 as _WorkforcePersonMappings on _WorkforcePersonMappings.WorkAssignment = $projection.Personnel
                                                                                   and $projection.Personnel is not initial

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

      @ObjectModel.readOnly: true
  key cast(SDDocumentItem as sales_order_item preserving type) as SalesOrderItem,

  key PartnerFunction,
  
      @ObjectModel.readOnly: true
      cast(PartnerFunction as parvw_unv preserving type )    as PartnerFunctionInternalCode,

      Customer,

      Supplier,

      Personnel,

      ContactPerson,
      
      _WorkforcePersonMappings.WorkAssignmentExternalID,
      
      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,
      _SalesOrderItem
}
where Partner.SDDocument = '0'