P_COLLSACCOUNTCOMPANYCODE

CDS View

P_COLLSACCOUNTCOMPANYCODE is a CDS View in S/4HANA. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
I_CollectionsAccount view from COMPOSITE Collections Management Account
@AbapCatalog: { sqlViewName: 'PCOLLSACCTCOMPCD',
                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_CollsAccountCompanyCode
  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_CustomerCompany.CompanyCode             as CompanyCode,
  key I_BusinessPartnerCustomer.BusinessPartner as BusinessPartner,
  key cast ( '' as bdm_coll_segment )           as CollectionSegment

}

where
  I_BPCollectionsSegmentAssgmt.CollectionSegment is null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BPCOLLECTIONSSEGMENTASSGMT",
"I_BUSINESSPARTNERCUSTOMER",
"I_COLLSSGMTCOMPANYCODEASSGMT",
"I_CUSTOMER",
"I_CUSTOMERCOMPANY"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/