R_BPCollsSegmentAssignmentTP

DDL: R_BPCOLLSSEGMENTASSIGNMENTTP Type: view_entity TRANSACTIONAL

Business Partner: Collection Segments

R_BPCollsSegmentAssignmentTP is a Transactional CDS View that provides data about "Business Partner: Collection Segments" in SAP S/4HANA. It reads from 2 data sources (I_BPCollectionsSegmentAssgmt, I_BusinessPartnerCustomer) and exposes 27 fields with key fields BusinessPartner, CollectionSegment, BPCollSgmtAssignmentValidTo. It has 12 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BPCollectionsSegmentAssgmt I_BPCollectionsSegmentAssgmt from
I_BusinessPartnerCustomer I_BusinessPartnerCustomer inner

Associations (12)

CardinalityTargetAliasCondition
[0..1] R_CollsAcctCreditMgmtSummary _CollsAcctCreditMgmtSummary $projection.BusinessPartner = _CollsAcctCreditMgmtSummary.BusinessPartner and $projection.CollectionSegment = _CollsAcctCreditMgmtSummary.CollectionSegment
[0..1] I_CollectionsMainContact _CollectionsMainContact $projection.BusinessPartner = _CollectionsMainContact.BusinessPartner and $projection.CollectionSegment = _CollectionsMainContact.CollectionSegment
[0..*] I_CollectionsPaymentTrend _CollectionsPaymentTrend $projection.Customer = _CollectionsPaymentTrend.Customer and $projection.CollectionSegment = _CollectionsPaymentTrend.CollectionSegment
[0..*] I_CollectionsDueDateGrid _CollectionsDueDateGrid $projection.BusinessPartner = _CollectionsDueDateGrid.BusinessPartner and $projection.CollectionSegment = _CollectionsDueDateGrid.CollectionSegment
[0..1] I_CollsAccountStickyNote _CollsAccountStickyNote $projection.Customer = _CollsAccountStickyNote.Customer and $projection.CollectionSegment = _CollsAccountStickyNote.CollectionSegment
[0..*] I_CollectionsAccountNote _CollectionsAccountNote $projection.Customer = _CollectionsAccountNote.Customer and $projection.CollectionSegment = _CollectionsAccountNote.CollectionSegment
[0..1] R_BPCollectionsSgmtQuickView _CollectionsBPQuickView $projection.BusinessPartner = _CollectionsBPQuickView.BusinessPartner and $projection.CollectionSegment = _CollectionsBPQuickView.CollectionSegment
[0..1] R_RblsMgmtUserContactCard _CollectionsSpecialistCard $projection.CollectionSpecialist = _CollectionsSpecialistCard.ContactCardID
[0..*] R_CollsSpecialistSubstitute _CollsSpecialistSubstitute $projection.CollectionGroup = _CollsSpecialistSubstitute.CollectionGroup
[0..1] R_BPCollsSgmtCurrentSubstitute _CurrentSubstitute $projection.BusinessPartner = _CurrentSubstitute.BusinessPartner and $projection.CollectionSegment = _CurrentSubstitute.CollectionSegment and $projection.BPCollSgmtAssignmentValidTo = _CurrentSubstitute.BPCollSgmtAssignmentValidTo
[0..1] R_RblsMgmtUserContactCard _SubstituteCard $projection.CollectionSpecialistSubstitute = _SubstituteCard.ContactCardID
[0..*] R_BPCollsSegmentTmpAssgmtTP _BPCollsSegmentTmpAssgmtTP

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Business Partner: Collection Segments view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey BusinessPartner view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner I_BPCollectionsSegmentAssgmt BusinessPartner
KEY CollectionSegment I_BPCollectionsSegmentAssgmt CollectionSegment
KEY BPCollSgmtAssignmentValidTo I_BPCollectionsSegmentAssgmt BPCollSgmtAssignmentValidTo
BPCollSgmtAssignmentValidFrom I_BPCollectionsSegmentAssgmt BPCollSgmtAssignmentValidFrom
CollectionGroup I_BPCollectionsSegmentAssgmt CollectionGroup
CollectionSpecialist I_BPCollectionsSegmentAssgmt CollectionSpecialist
CollectionBPMainContactPerson I_BPCollectionsSegmentAssgmt CollectionBPMainContactPerson
Customer I_BusinessPartnerCustomer Customer
CollectionSpecialistSubstitute _CurrentSubstitute CollectionSpecialistSubstitute
_BusinessPartner I_BPCollectionsSegmentAssgmt _BusinessPartner
_CollectionGroup I_BPCollectionsSegmentAssgmt _CollectionGroup
_CollectionSegment I_BPCollectionsSegmentAssgmt _CollectionSegment
_CollectionSpecialist I_BPCollectionsSegmentAssgmt _CollectionSpecialist
_MainContactPerson I_BPCollectionsSegmentAssgmt _MainContactPerson
_CollsAcctCreditMgmtSummary _CollsAcctCreditMgmtSummary
_CollectionsMainContact _CollectionsMainContact
_CollectionsPaymentTrend _CollectionsPaymentTrend
_CollectionsDueDateGrid _CollectionsDueDateGrid
_CollsAccountStickyNote _CollsAccountStickyNote
_CollectionsAccountNote _CollectionsAccountNote
_CollectionsBPQuickView _CollectionsBPQuickView
_CollectionsSpecialistCard _CollectionsSpecialistCard
_CollsSpecialistSubstitute _CollsSpecialistSubstitute
_CurrentSubstitute _CurrentSubstitute
_SubstituteCard _SubstituteCard
_CollsMgmtBusinessPartnerTP _CollsMgmtBusinessPartnerTP
_BPCollsSegmentTmpAssgmtTP _BPCollsSegmentTmpAssgmtTP
@AccessControl: { authorizationCheck: #CHECK,
                  personalData: { blocking: #BLOCKED_DATA_EXCLUDED },
                  privilegedAssociations: [ '_SubstituteCard',
                                            '_CollectionsSpecialistCard',
                                            '_CollectionSpecialist' ] }
@EndUserText: { label: 'Business Partner: Collection Segments' }
@VDM: { viewType:  #TRANSACTIONAL,
        lifecycle: { contract: { type: #SAP_INTERNAL_API } } }
@ObjectModel: { usageType:         { serviceQuality: #X,
                                     sizeCategory:   #L,
                                     dataClass:      #TRANSACTIONAL },
                semanticKey:       [ 'CollectionSegment',
                                     'BusinessPartner' ],
                representativeKey: 'BusinessPartner' }

define view entity R_BPCollsSegmentAssignmentTP
  as select from I_BPCollectionsSegmentAssgmt
    inner join   I_BusinessPartnerCustomer on I_BPCollectionsSegmentAssgmt.BusinessPartner = I_BusinessPartnerCustomer.BusinessPartner

  // VDM Associations

  // Credit Management

  association [0..1] to R_CollsAcctCreditMgmtSummary        as _CollsAcctCreditMgmtSummary on  $projection.BusinessPartner   = _CollsAcctCreditMgmtSummary.BusinessPartner
                                                                                           and $projection.CollectionSegment = _CollsAcctCreditMgmtSummary.CollectionSegment

  // Main Contact Person

  association [0..1] to I_CollectionsMainContact            as _CollectionsMainContact     on  $projection.BusinessPartner   = _CollectionsMainContact.BusinessPartner
                                                                                           and $projection.CollectionSegment = _CollectionsMainContact.CollectionSegment

  // Payment Trend

  association [0..*] to I_CollectionsPaymentTrend           as _CollectionsPaymentTrend    on  $projection.Customer          = _CollectionsPaymentTrend.Customer
                                                                                           and $projection.CollectionSegment = _CollectionsPaymentTrend.CollectionSegment

  // Due Date Grid

  association [0..*] to I_CollectionsDueDateGrid            as _CollectionsDueDateGrid     on  $projection.BusinessPartner   = _CollectionsDueDateGrid.BusinessPartner
                                                                                           and $projection.CollectionSegment = _CollectionsDueDateGrid.CollectionSegment

  // Sticky Note

  association [0..1] to I_CollsAccountStickyNote            as _CollsAccountStickyNote     on  $projection.Customer          = _CollsAccountStickyNote.Customer
                                                                                           and $projection.CollectionSegment = _CollsAccountStickyNote.CollectionSegment

  // Collections Account Notes

  association [0..*] to I_CollectionsAccountNote            as _CollectionsAccountNote     on  $projection.Customer          = _CollectionsAccountNote.Customer
                                                                                           and $projection.CollectionSegment = _CollectionsAccountNote.CollectionSegment

  // Business Partner Quick View Facet

  association [0..1] to R_BPCollectionsSgmtQuickView        as _CollectionsBPQuickView     on  $projection.BusinessPartner   = _CollectionsBPQuickView.BusinessPartner
                                                                                           and $projection.CollectionSegment = _CollectionsBPQuickView.CollectionSegment

  // Collections Specialist Contact Card

  association [0..1] to R_RblsMgmtUserContactCard           as _CollectionsSpecialistCard  on  $projection.CollectionSpecialist = _CollectionsSpecialistCard.ContactCardID

  // Temporary Substitutes

  association [0..*] to R_CollsSpecialistSubstitute         as _CollsSpecialistSubstitute  on  $projection.CollectionGroup = _CollsSpecialistSubstitute.CollectionGroup

  // Current Substitute

  association [0..1] to R_BPCollsSgmtCurrentSubstitute      as _CurrentSubstitute          on  $projection.BusinessPartner             = _CurrentSubstitute.BusinessPartner
                                                                                           and $projection.CollectionSegment           = _CurrentSubstitute.CollectionSegment
                                                                                           and $projection.BPCollSgmtAssignmentValidTo = _CurrentSubstitute.BPCollSgmtAssignmentValidTo

  // Collections Specialist Contact Card

  association [0..1] to R_RblsMgmtUserContactCard           as _SubstituteCard             on  $projection.CollectionSpecialistSubstitute = _SubstituteCard.ContactCardID

  // BO Composition

  // Collections Master Data

  association        to parent R_CollsMgmtBusinessPartnerTP as _CollsMgmtBusinessPartnerTP on  $projection.BusinessPartner = _CollsMgmtBusinessPartnerTP.BusinessPartner

  // Temporary Segment Assignments

  composition [0..*] of R_BPCollsSegmentTmpAssgmtTP         as _BPCollsSegmentTmpAssgmtTP

{
      // VDM Fields

      @ObjectModel: { foreignKey: { association: '_CollectionsBPQuickView' } }
  key I_BPCollectionsSegmentAssgmt.BusinessPartner               as BusinessPartner,

  key I_BPCollectionsSegmentAssgmt.CollectionSegment             as CollectionSegment,

  key I_BPCollectionsSegmentAssgmt.BPCollSgmtAssignmentValidTo   as BPCollSgmtAssignmentValidTo,
      I_BPCollectionsSegmentAssgmt.BPCollSgmtAssignmentValidFrom as BPCollSgmtAssignmentValidFrom,
      I_BPCollectionsSegmentAssgmt.CollectionGroup               as CollectionGroup,

      @ObjectModel: { foreignKey: { association: '_CollectionsSpecialistCard' } }
      I_BPCollectionsSegmentAssgmt.CollectionSpecialist          as CollectionSpecialist,

      I_BPCollectionsSegmentAssgmt.CollectionBPMainContactPerson as CollectionBPMainContactPerson,
      I_BusinessPartnerCustomer.Customer                         as Customer,

      @ObjectModel: { foreignKey: { association: '_SubstituteCard' } }
      _CurrentSubstitute.CollectionSpecialistSubstitute          as CollectionSpecialistSubstitute,

      // Exposed Associations

      I_BPCollectionsSegmentAssgmt._BusinessPartner              as _BusinessPartner,
      I_BPCollectionsSegmentAssgmt._CollectionGroup              as _CollectionGroup,
      I_BPCollectionsSegmentAssgmt._CollectionSegment            as _CollectionSegment,
      I_BPCollectionsSegmentAssgmt._CollectionSpecialist         as _CollectionSpecialist,
      I_BPCollectionsSegmentAssgmt._MainContactPerson            as _MainContactPerson,
      _CollsAcctCreditMgmtSummary,
      _CollectionsMainContact,
      _CollectionsPaymentTrend,
      _CollectionsDueDateGrid,
      _CollsAccountStickyNote,
      _CollectionsAccountNote,
      _CollectionsBPQuickView,
      _CollectionsSpecialistCard,
      _CollsSpecialistSubstitute,
      _CurrentSubstitute,
      _SubstituteCard,

      // BO Compositions

      _CollsMgmtBusinessPartnerTP,
      _BPCollsSegmentTmpAssgmtTP

}

where
  I_BPCollectionsSegmentAssgmt.BPCollSgmtAssignmentValidTo = '99991231'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BPCOLLECTIONSSEGMENTASSGMT",
"I_BUSINESSPARTNERCUSTOMER",
"R_BPCOLLSSGMTCURRENTSUBSTITUTE"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_COLLECTIONGROUP",
"I_COLLECTIONSACCOUNTNOTE",
"I_COLLECTIONSDUEDATEGRID",
"I_COLLECTIONSEGMENT",
"I_COLLECTIONSMAINCONTACT",
"I_COLLECTIONSPAYMENTTREND",
"I_COLLSACCOUNTSTICKYNOTE",
"I_USERCONTACTCARD",
"R_BPCOLLECTIONSSGMTQUICKVIEW",
"R_BPCOLLSSEGMENTTMPASSGMTTP",
"R_BPCOLLSSGMTCURRENTSUBSTITUTE",
"R_COLLSACCTCREDITMGMTSUMMARY",
"R_COLLSMGMTBUSINESSPARTNERTP",
"R_COLLSSPECIALISTSUBSTITUTE",
"R_RBLSMGMTUSERCONTACTCARD"
],
"BASE":
[
"I_BPCOLLECTIONSSEGMENTASSGMT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/