P_COLLSACCOUNTCOLLSSEGMENT
Collections Account Segment
P_COLLSACCOUNTCOLLSSEGMENT is a CDS View in S/4HANA. Collections Account Segment. It contains 3 fields. 2 CDS views read from this table.
CDS Views using this table (2)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| I_CollectionsAccount | view | union_all | COMPOSITE | Collections Management Account |
| R_CollsHeadOfficeAccountTP | view | from | TRANSACTIONAL | Head Office Receivables |
Fields (3)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | CollectionSegment | CollectionSegment | 1 |
| KEY | Customer | Customer | 1 |
| BusinessPartner | BusinessPartner | 1 |
@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