P_CollsAccountCollsSegment

DDL: P_COLLSACCOUNTCOLLSSEGMENT Type: view COMPOSITE Package: ODATA_PROCESS_RECEIVABLES

Collections Account Segment

P_CollsAccountCollsSegment is a Composite CDS View that provides data about "Collections Account Segment" in SAP S/4HANA. It reads from 3 data sources (I_BPCollectionsSegmentAssgmt, I_BusinessPartnerCustomer, I_CustomerCompany) and exposes 4 fields with key fields Customer, CollectionSegment, CompanyCode, BusinessPartner. Part of development package ODATA_PROCESS_RECEIVABLES.

Data Sources (3)

SourceAliasJoin Type
I_BPCollectionsSegmentAssgmt I_BPCollectionsSegmentAssgmt inner
I_BusinessPartnerCustomer I_BusinessPartnerCustomer inner
I_CustomerCompany I_CustomerCompany inner

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PCOLLSACCTSGMT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey Customer view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Customer I_Customer Customer
KEY CollectionSegment I_BPCollectionsSegmentAssgmt CollectionSegment
KEY CompanyCode
KEY BusinessPartner I_BusinessPartnerCustomer BusinessPartner
@AbapCatalog: { sqlViewName: 'PCOLLSACCTSGMT',
                compiler: { compareFilter: true },
                preserveKey: true }
@AccessControl: { authorizationCheck: #NOT_REQUIRED,
                  personalData:       { blocking: #BLOCKED_DATA_EXCLUDED } }
@VDM: { viewType: #COMPOSITE,
        private: true }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #A,
                             sizeCategory: #L,
                             dataClass: #TRANSACTIONAL },
                representativeKey: 'Customer' }

define view P_CollsAccountCollsSegment
  as select distinct from I_Customer
    inner join            I_CustomerCompany            on I_Customer.Customer = I_CustomerCompany.Customer
    inner join            I_BusinessPartnerCustomer    on I_Customer.Customer = I_BusinessPartnerCustomer.Customer
    left outer to many join(
                          I_CollsSgmtCompanyCodeAssgmt
        inner join        I_BPCollectionsSegmentAssgmt on  I_CollsSgmtCompanyCodeAssgmt.CollectionSegment           = I_BPCollectionsSegmentAssgmt.CollectionSegment
                                                       and I_BPCollectionsSegmentAssgmt.BPCollSgmtAssignmentValidTo = '99991231'
    )
    on  I_CustomerCompany.CompanyCode             = I_CollsSgmtCompanyCodeAssgmt.CompanyCode
    and I_BusinessPartnerCustomer.BusinessPartner = I_BPCollectionsSegmentAssgmt.BusinessPartner

{

  key I_Customer.Customer                            as Customer,
  key I_BPCollectionsSegmentAssgmt.CollectionSegment as CollectionSegment,
  key cast ( '' as bukrs )                           as CompanyCode,
  key I_BusinessPartnerCustomer.BusinessPartner      as BusinessPartner

}

where
  I_BPCollectionsSegmentAssgmt.CollectionSegment is not null