A_SalesQuotationItemPartner

DDL: A_SALESQUOTATIONITEMPARTNER Type: view COMPOSITE

Item Partner

A_SalesQuotationItemPartner is a Composite CDS View that provides data about "Item Partner" in SAP S/4HANA. It reads from 2 data sources (I_SDDocumentItemPartner, I_SalesDocumentBasic) and exposes 14 fields with key fields SalesQuotation, SalesQuotationItem, PartnerFunction. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_SDDocumentItemPartner Partner from
I_SalesDocumentBasic SalesQuotation inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] A_SalesQuotation _SalesQuotation $projection.SalesQuotation = _SalesQuotation.SalesQuotation
[1..1] A_SalesQuotationItem _SalesQuotationItem $projection.SalesQuotation = _SalesQuotationItem.SalesQuotation and $projection.SalesQuotationItem = _SalesQuotationItem.SalesQuotationItem
[0..1] I_BusPartAddress _BusinessPartnerAddressCP Partner.AddressID = _BusinessPartnerAddressCP.AddressID and $projection.ContactPerson is not initial and Partner.SDDocPartnerAddressRefType = 'I'

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Item Partner view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASQITMPARTNER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SalesQuotation SDDocument
KEY SalesQuotationItem SDDocumentItem
KEY PartnerFunction PartnerFunction
Customer Customer
Supplier Supplier
Personnel Personnel
ContactPerson ContactPerson
BPRefAddrForDocSpcfcAddrUUID
SalesQuotationType I_SalesDocumentBasic SalesDocumentType
OrganizationDivision I_SalesDocumentBasic OrganizationDivision
SalesOrganization I_SalesDocumentBasic SalesOrganization
DistributionChannel I_SalesDocumentBasic DistributionChannel
_SalesQuotation _SalesQuotation
_SalesQuotationItem _SalesQuotationItem
@ClientHandling.algorithm:#SESSION_VARIABLE
@EndUserText.label: 'Item Partner'
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AbapCatalog: {
  sqlViewName: 'ASQITMPARTNER',
  compiler.compareFilter: true
}
@AccessControl: { 
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
   updateEnabled: true,
   deleteEnabled: true,
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #C,
     sizeCategory:   #XL
   }
}
@Metadata.ignorePropagatedAnnotations: true

define view A_SalesQuotationItemPartner
  as select from I_SDDocumentItemPartner as Partner
    inner join   I_SalesDocumentBasic    as SalesQuotation on  SalesQuotation.SalesDocument = Partner.SDDocument
                                                       and SDDocumentCategory       = 'B'

  association [1..1] to A_SalesQuotation     as _SalesQuotation     on  $projection.SalesQuotation = _SalesQuotation.SalesQuotation
  association [1..1] to A_SalesQuotationItem as _SalesQuotationItem on  $projection.SalesQuotation     = _SalesQuotationItem.SalesQuotation
                                                            and $projection.SalesQuotationItem = _SalesQuotationItem.SalesQuotationItem
  association [0..1] to I_BusPartAddress as _BusinessPartnerAddressCP      on Partner.AddressID = _BusinessPartnerAddressCP.AddressID
                                                                           and $projection.ContactPerson is not initial
                                                                           and Partner.SDDocPartnerAddressRefType =  'I'

{
      @ObjectModel.readOnly: true
  key SDDocument       as SalesQuotation,

      @ObjectModel.readOnly: true
  key SDDocumentItem  as SalesQuotationItem,
  
      @ObjectModel.sapObjectNodeTypeReference: 'PartnerFunction'
  key PartnerFunction,

      Customer,

      Supplier,

      Personnel,

      ContactPerson,

      @Feature: 'SW:Q2C_MULTIPLE_BP_ADDRESSES, SW:Q2C_MULTIPLE_BP_ADDRESSES2'
      case ContactPerson
        when '0000000000' then
         _BusinessPartnerAddress.AddressUUID
       else
         _BusinessPartnerAddressCP.AddressUUID
                                                    end as BusinessPartnerAddressUUID,
      
      @Feature: 'SW:Q2C_MULTIPLE_BP_ADDRESSES, SW:Q2C_MULTIPLE_BP_ADDRESSES2'
      @ObjectModel.readOnly: true  
      Partner._BPRefAddressForDocSpcfcAddr.AddressUUID  as BPRefAddrForDocSpcfcAddrUUID,  
      
      // For Access control

      @Consumption.hidden: true
      SalesQuotation.SalesDocumentType as SalesQuotationType,
      @Consumption.hidden: true
      SalesQuotation.OrganizationDivision,
      @Consumption.hidden: true
      SalesQuotation.SalesOrganization,
      @Consumption.hidden: true
      SalesQuotation.DistributionChannel,

      //Expose associations

      _SalesQuotation,
      _SalesQuotationItem
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSPARTADDRESS",
"I_SALESDOCUMENTBASIC",
"I_SDDOCUMENTITEMPARTNER"
],
"ASSOCIATED":
[
"A_SALESQUOTATION",
"A_SALESQUOTATIONITEM",
"I_BUSPARTADDRESS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/