I_RDPSlsDocCompletePartner

DDL: I_RDPSLSDOCCOMPLETEPARTNER Type: view BASIC

I_RDPSlsDocCompletePartner is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (vbpa) and exposes 14 fields with key fields SDDocument, SDDocumentItem, PartnerFunction. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
vbpa vbpa from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_PartnerFunction _PartnerFunction $projection.PartnerFunction = _PartnerFunction.PartnerFunction
[0..1] I_ContactPerson _ContactPerson $projection.ContactPerson = _ContactPerson.ContactPerson
[0..1] I_Address_2 _Address $projection.AddressID = _Address.AddressID and $projection.AddressPersonID = _Address.AddressPersonID and _Address.AddressRepresentationCode is initial
[0..1] I_BusPartAddress _BusinessPartnerAddress $projection.ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner and $projection.AddressID = _BusinessPartnerAddress.AddressID and $projection.SDDocPartnerAddressRefType = 'H'

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor P_SustSlsDocCompletePartner view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.sqlViewName RDPSLSDOCCOMPPAR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.dataMaintenance #DISPLAY_ONLY view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SDDocument vbpa vbeln
KEY SDDocumentItem vbpa posnr
KEY PartnerFunction
Customer vbpa kunnr
Supplier vbpa lifnr
ContactPerson vbpa parnr
ReferenceBusinessPartner vbpa assigned_bp
AddressID vbpa adrnr
AddressPersonID vbpa adrnp
SDDocPartnerAddressRefType vbpa adrda
_PartnerFunction _PartnerFunction
_ContactPerson _ContactPerson
_Address _Address
_BusinessPartnerAddress _BusinessPartnerAddress
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
  viewType: #BASIC,
  lifecycle.status: #DEPRECATED,
  lifecycle.successor: 'P_SustSlsDocCompletePartner'
}
@AccessControl: {
  authorizationCheck: #PRIVILEGED_ONLY,
  personalData.blocking: #NOT_REQUIRED,
  privilegedAssociations: [ '_Address' ]
}
@AbapCatalog: {
  sqlViewName: 'RDPSLSDOCCOMPPAR',
  compiler.compareFilter: true,
  dataMaintenance: #DISPLAY_ONLY
}
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #A,
     sizeCategory:   #XL
   }
}

define view I_RDPSlsDocCompletePartner // copy of I_SDDocumentCompletePartners to fix delta handling issue described in SAP note 3244770

  as

  select from vbpa

  association [0..1] to I_PartnerFunction        as _PartnerFunction               on  $projection.PartnerFunction = _PartnerFunction.PartnerFunction
  association [0..1] to I_ContactPerson          as _ContactPerson                 on  $projection.ContactPerson = _ContactPerson.ContactPerson

  association [0..1] to I_Address_2              as _Address                       on  $projection.AddressID = _Address.AddressID
                                                                                   and $projection.AddressPersonID = _Address.AddressPersonID
                                                                                   and _Address.AddressRepresentationCode is initial

  association [0..1] to I_BusPartAddress         as _BusinessPartnerAddress        on  $projection.ReferenceBusinessPartner   = _BusinessPartnerAddress.BusinessPartner
                                                                                   and $projection.AddressID                  = _BusinessPartnerAddress.AddressID
                                                                                   and $projection.SDDocPartnerAddressRefType = 'H'
{
  key vbpa.vbeln          as SDDocument,
  key vbpa.posnr          as SDDocumentItem,
  @ObjectModel.foreignKey.association: '_PartnerFunction'
  key cast(vbpa.parvw as parvw_unv) as PartnerFunction,

      vbpa.kunnr          as Customer,
      vbpa.lifnr          as Supplier,
      @ObjectModel.foreignKey.association: '_ContactPerson'
      vbpa.parnr          as ContactPerson,
      vbpa.assigned_bp    as ReferenceBusinessPartner,

      // Address related fields

      @ObjectModel.foreignKey.association: '_Address'
      vbpa.adrnr          as AddressID,
      vbpa.adrnp          as AddressPersonID,      
      vbpa.adrda          as SDDocPartnerAddressRefType,

      _PartnerFunction,
      _ContactPerson,

      // Address related associations

      _Address,
      _BusinessPartnerAddress

};