I_BILLINGDOCUMENTPARTNER

CDS View

Billing Document Partner

I_BILLINGDOCUMENTPARTNER is a CDS View in S/4HANA. Billing Document Partner. It contains 1 fields. 4 CDS views read from this table.

CDS Views using this table (4)

ViewTypeJoinVDMDescription
A_BillingDocumentPartner view from COMPOSITE Header Partner
I_DigitalVehBillingDocItem_2 view_entity inner COMPOSITE Digital vehicle billing document
I_DigitalVehicleBillingDocItem view_entity inner COMPOSITE Billing Document
R_BillingDocumentPartnerTP view_entity from TRANSACTIONAL Billing Document Partner - TP

Fields (1)

KeyField CDS FieldsUsed in Views
Customer Customer 2
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'ISDBILDOCPT'

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.privilegedAssociations: [ '_Address', '_DfltAddrRprstn' ]

@ClientHandling.algorithm: #SESSION_VARIABLE

@EndUserText.label: 'Billing Document Partner'

@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.representativeKey: 'PartnerFunction'
@ObjectModel.supportedCapabilities: [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
@ObjectModel.usageType: { dataClass: #TRANSACTIONAL, serviceQuality: #B, sizeCategory: #XL }

@VDM.viewType: #COMPOSITE

define view I_BillingDocumentPartner
  as select from I_BillingDocumentPartnerBasic as Partner

  association [1..1] to I_BillingDocument as _BillingDocument on $projection.BillingDocument = _BillingDocument.BillingDocument

{
      // --[ GENERATED:012:GlBfhyJl7kY4v5RWfCiSf0

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BillingDocumentStdVH', element: 'BillingDocument' } } ]
      // ]--GENERATED

      @ObjectModel.foreignKey.association: '_BillingDocument'
  key Partner.BillingDocument,

      @ObjectModel.foreignKey.association: '_PartnerFunction'
  key Partner.PartnerFunction,

      Partner.Customer,

      Partner.Supplier,

      Partner.Personnel,

      @ObjectModel.foreignKey.association: '_Address'
      Partner.AddressID,
      Partner.AddressObjectType,
      Partner.ContactPerson,

      Partner.AddressPersonID,
      Partner.ReferenceBusinessPartner,
      Partner.SDDocPartnerAddressRefType,
      
      Partner.VATRegistration,
      Partner.UnloadingPointName,
      
      Partner.BPRefAddressIDForDocSpcfcAddr,

      // Association

      @ObjectModel.association.type: [ #TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ]
      _BillingDocument,

      Partner._PartnerFunction,
      Partner._Address,
      Partner._BusinessPartnerAddress,
      Partner._DfltAddrRprstn,
      Partner._BPRefAddressForDocSpcfcAddr
}

where _BillingDocument.SDDocumentCategory = 'M' // Invoice

   or _BillingDocument.SDDocumentCategory = 'N' // Invoice Canceled

   or _BillingDocument.SDDocumentCategory = 'O' // Credit Memo

   or _BillingDocument.SDDocumentCategory = 'P' // Debit Memo

   or _BillingDocument.SDDocumentCategory = 'S' // Credit Memo Canceled

   or _BillingDocument.SDDocumentCategory = 'U' // Pro Forma Invoice

   or _BillingDocument.SDDocumentCategory = '5' // Intercompany Invoice

   or _BillingDocument.SDDocumentCategory = '6' // Intercompany Credit Memo

   or _BillingDocument.SDDocumentCategory = 'DPRQ' // Down Payment Request

   or _BillingDocument.SDDocumentCategory = 'DPCC' // Down Payment Cancellation