P_CollMgmtRblsItmForKeyDte

DDL: P_COLLMGMTRBLSITMFORKEYDTE SQL: PCMRBLSKDATDUE Type: view COMPOSITE

P_CollMgmtRblsItmForKeyDte is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_BPCollectionsSegmentAssgmt, I_RblsItmForKeyDteDuePerd) and exposes 31 fields with key fields CompanyCode, Customer, AccountingClerk, SpecialGLCode, ReconciliationAccount. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BPCollectionsSegmentAssgmt _UdmSegments right_outer
I_RblsItmForKeyDteDuePerd I_RblsItmForKeyDteDuePerd from

Parameters (4)

NameTypeDefault
P_KeyDate sydate
P_DisplayCurrency vdm_v_display_currency
P_ExchangeRateType kurst_curr
P_PeriodType farp_period_type

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_CollsSpecialistSubstitute _UdmSplAbs _UdmSplAbs.CollectionGroup = _UdmSegments.CollectionGroup and _UdmSplAbs.CollectionSpecialist = _UdmSegments.CollectionSpecialist and _UdmSplAbs.CollSpecialistAbsenceFrom <= $parameters.P_KeyDate and _UdmSplAbs.CollSpecialistAbsenceTo >= $parameters.P_KeyDate
[1..1] I_BPCollectionsSgmtTmpAssgmt _UdmBPSplAbs _UdmBPSplAbs.BusinessPartner = _BPCust.BusinessPartner and _UdmBPSplAbs.CollectionSegment = _UdmSegments.CollectionSegment and _UdmBPSplAbs.TmpBPCollSgmtAssgmtValidFrom <= $parameters.P_KeyDate and _UdmBPSplAbs.TmpBPCollSgmtAssgmtValidTo >= $parameters.P_KeyDate

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PCMRBLSKDATDUE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode _Item CompanyCode Receiver Company Code
KEY Customer _Item Customer Sold-to Party
KEY AccountingClerk _Item AccountingClerk Clerk Abbrev.
KEY SpecialGLCode _Item SpecialGLCode Special G/L Ind
KEY ReconciliationAccount _Item ReconciliationAccount Recon. account
KEY GLAccount _Item GLAccount General Ledger
KEY CollectionProfile _UdmProfile CollectionProfile
KEY CollectionSegment I_BPCollectionsSegmentAssgmt CollectionSegment Segment
KEY CollectionGroupendendasCollectionGroup
CustomerCountry _Item CustomerCountry
ChartOfAccounts _Item ChartOfAccounts Node Class
DisplayCurrency _Item DisplayCurrency Display Currency
FinancialAccountType _Item FinancialAccountType Fin. Account Type
AuthorizationGroup _Item AuthorizationGroup AuthorizGroup
ReportingPeriodStartDate _Item ReportingPeriodStartDate
ReportingPeriodEndDate _Item ReportingPeriodEndDate
ReportingYear _Item ReportingYear
ReportingPeriod _Item ReportingPeriod Single-Character Flag
NetDueIntvl1AmtInDspCrcy _Item NetDueIntvl1AmtInDspCrcy
NetDueIntvl2AmtInDspCrcy _Item NetDueIntvl2AmtInDspCrcy
NetDueIntvl3AmtInDspCrcy _Item NetDueIntvl3AmtInDspCrcy
PartialPaymentAmtInDspCrcy _Item PartialPaymentAmtInDspCrcy
_Company _Item _Company
_Customer _Item _Customer
_AccountingClerk _Item _AccountingClerk
_SpecialGLCode _Item _SpecialGLCode
_GLAccount _Item _GLAccount
_ReconciliationAccount _Item _ReconciliationAccount
_ChartOfAccounts _Item _ChartOfAccounts
_DisplayCurrency _Item _DisplayCurrency
_FinancialAccountType _Item _FinancialAccountType

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_CollMgmtRblsItmForKeyDte.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PCMRBLSKDATDUE
-- Parameters: P_KeyDate : sydate, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst_curr, P_PeriodType : farp_period_type

CREATE VIEW P_CollMgmtRblsItmForKeyDte AS
SELECT
  _Item.CompanyCode AS CompanyCode,
  _Item.Customer AS Customer,
  _Item.AccountingClerk AS AccountingClerk,
  _Item.SpecialGLCode AS SpecialGLCode,
  _Item.ReconciliationAccount AS ReconciliationAccount,
  _Item.GLAccount AS GLAccount,
  _UdmProfile.CollectionProfile AS CollectionProfile,
  _UdmSegments.CollectionSegment AS CollectionSegment,
  case when _UdmSegments.CollectionSpecialist = '' or _UdmSegments.CollectionSpecialist = ' ' or _UdmSegments.CollectionSpecialist is null then case when _UdmBPSplAbs.CollectionSpecialist = '' or _UdmBPSplAbs.CollectionSpecialist = ' ' or _UdmBPSplAbs.CollectionSpecialist is null then _UdmSegments.CollectionGroup else _UdmBPSplAbs.CollectionGroup end else case when _UdmBPSplAbs.CollectionSpecialist = '' or _UdmBPSplAbs.CollectionSpecialist = ' ' or _UdmBPSplAbs.CollectionSpecialist is null then _UdmSegments.CollectionGroup else _UdmBPSplAbs.CollectionGroup end end as CollectionGroup AS CollectionGroupendendasCollectionGroup,
  _Item.CustomerCountry AS CustomerCountry,
  _Item.ChartOfAccounts AS ChartOfAccounts,
  _Item.DisplayCurrency AS DisplayCurrency,
  _Item.FinancialAccountType AS FinancialAccountType,
  _Item.AuthorizationGroup AS AuthorizationGroup,
  _Item.ReportingPeriodStartDate AS ReportingPeriodStartDate,
  _Item.ReportingPeriodEndDate AS ReportingPeriodEndDate,
  _Item.ReportingYear AS ReportingYear,
  _Item.ReportingPeriod AS ReportingPeriod,
  _Item.NetDueIntvl1AmtInDspCrcy AS NetDueIntvl1AmtInDspCrcy,
  _Item.NetDueIntvl2AmtInDspCrcy AS NetDueIntvl2AmtInDspCrcy,
  _Item.NetDueIntvl3AmtInDspCrcy AS NetDueIntvl3AmtInDspCrcy,
  _Item.PartialPaymentAmtInDspCrcy AS PartialPaymentAmtInDspCrcy,
  _Item._Company AS _Company,
  _Item._Customer AS _Customer,
  _Item._AccountingClerk AS _AccountingClerk,
  _Item._SpecialGLCode AS _SpecialGLCode,
  _Item._GLAccount AS _GLAccount,
  _Item._ReconciliationAccount AS _ReconciliationAccount,
  _Item._ChartOfAccounts AS _ChartOfAccounts,
  _Item._DisplayCurrency AS _DisplayCurrency,
  _Item._FinancialAccountType AS _FinancialAccountType
FROM I_RblsItmForKeyDteDuePerd
RIGHT OUTER JOIN I_BPCollectionsSegmentAssgmt AS _UdmSegments ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CollsSpecialistSubstitute AS _UdmSplAbs ON _UdmSplAbs.CollectionGroup = _UdmSegments.CollectionGroup AND _UdmSplAbs.CollectionSpecialist = _UdmSegments.CollectionSpecialist AND _UdmSplAbs.CollSpecialistAbsenceFrom <= $parameters.P_KeyDate AND _UdmSplAbs.CollSpecialistAbsenceTo >= $parameters.P_KeyDate  -- association [1..1]
LEFT OUTER JOIN I_BPCollectionsSgmtTmpAssgmt AS _UdmBPSplAbs ON _UdmBPSplAbs.BusinessPartner = _BPCust.BusinessPartner AND _UdmBPSplAbs.CollectionSegment = _UdmSegments.CollectionSegment AND _UdmBPSplAbs.TmpBPCollSgmtAssgmtValidFrom <= $parameters.P_KeyDate AND _UdmBPSplAbs.TmpBPCollSgmtAssgmtValidTo >= $parameters.P_KeyDate  -- association [1..1]
;