I_CollsPromiseToPay

DDL: I_COLLSPROMISETOPAY Type: view COMPOSITE Package: ODATA_PROMISE_TO_PAY

Promise To Pay

I_CollsPromiseToPay is a Composite CDS View that provides data about "Promise To Pay" in SAP S/4HANA. It reads from 1 data source (P_COLLSPROMISETOPAY) and exposes 45 fields with key field PromiseToPayUUID. It has 6 associations to related views. Part of development package ODATA_PROMISE_TO_PAY.

Data Sources (1)

SourceAliasJoin Type
P_COLLSPROMISETOPAY P_COLLSPROMISETOPAY from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_CaseAttribute _CaseAttribute $projection.PromiseToPayUUID = _CaseAttribute.CaseUniqueID
[0..1] I_UserContactCard _CreatedByContactCard $projection.casecreatedby = _CreatedByContactCard.ContactCardID
[0..1] I_UserContactCard _ChangedByContactCard $projection.caselastchangedby = _ChangedByContactCard.ContactCardID
[0..1] I_UserContactCard _ClosedByContactCard $projection.caseclosedby = _ClosedByContactCard.ContactCardID
[0..1] I_CustomerContact _CustomerContact $projection.ContactPerson = _CustomerContact.CustomerContact
[0..1] I_CollectionsInvoiceMemory _InvoiceMemory $projection.LinkedInvoiceKey = _InvoiceMemory.ObjectKey

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ICOLLSP2P view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Promise To Pay view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey PromiseToPayUUID view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY PromiseToPayUUID PromiseToPayUUID Internal Key
CompanyCode CompanyCode Receiver Company Code
Customer Customer Sold-to Party
ObjectType ObjectType Type
LinkedInvoiceKey LinkedInvoiceKey Key
PromisedAmount PromisedAmount Promised Amount
PaidAmount PaidAmount Paid Amount
Currency Currency Valuation Crcy
DueDate DueDate Promised For
PromiseToPayDate PromiseToPayDate Promised On
LastPaymentDate LastPaymentDate Last Payment
PromiseToPayStatus PromiseToPayStatus State
PromiseToPayLevel PromiseToPayLevel Level
PromiseToPayGivenByPersonName PromiseToPayGivenByPersonName Promised By
ContactPersonEmailAddress ContactPersonEmailAddress Email
ContactPersonPhoneNumber ContactPersonPhoneNumber Telephone No.
ContactPersonFaxNumber ContactPersonFaxNumber Fax Number
ContactPersonFaxCountry ContactPersonFaxCountry C/R of Fax No.
ContactPerson ContactPerson Contact Person Key
NumberOfInstallments NumberOfInstallments Installments
PaidOnScheduleAmount PaidOnScheduleAmount Installment Amounts Paid on Schedule
PaidOffScheduleAmount PaidOffScheduleAmount Not on Schedule
NextInstallmentDueDate NextInstallmentDueDate Due Date of Next Open Installment
NextInstallmentAmount NextInstallmentAmount Open Amount
Prms2PToInvoiceGroupRefUUID Prms2PToInvoiceGroupRefUUID UUID
CaseID CaseID Case ID
CaseExternalReference CaseExternalReference External Reference
CaseCreatedBy _CaseAttribute CaseCreatedBy Created By
CaseCreatedOn CaseCreatedOn Created At
CaseLastChangedBy _CaseAttribute CaseLastChangedBy Changed By
CaseLastChangedOn CaseLastChangedOn Last Changed At
CaseClosedBy _CaseAttribute CaseClosedBy Closed By
CaseClosedTime CaseClosedTime Closed At
IsCleared
_CompanyCode _CompanyCode
_Customer _Customer
_Country _Country
_CollsPromiseToPayStatus _CollsPromiseToPayStatus
_CaseAttribute _CaseAttribute
_ChangedByContactCard _ChangedByContactCard
_ClosedByContactCard _ClosedByContactCard
_CreatedByContactCard _CreatedByContactCard
_Currency _Currency
_CustomerContact _CustomerContact
_InvoiceMemory _InvoiceMemory

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 I_CollsPromiseToPay.
-- 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.

CREATE VIEW I_CollsPromiseToPay AS
SELECT
  PromiseToPayUUID,
  CompanyCode,
  Customer,
  ObjectType,
  LinkedInvoiceKey,
  PromisedAmount,
  PaidAmount,
  Currency,
  DueDate,
  PromiseToPayDate,
  LastPaymentDate,
  PromiseToPayStatus,
  PromiseToPayLevel,
  PromiseToPayGivenByPersonName,
  ContactPersonEmailAddress,
  ContactPersonPhoneNumber,
  ContactPersonFaxNumber,
  ContactPersonFaxCountry,
  ContactPerson,
  NumberOfInstallments,
  PaidOnScheduleAmount,
  PaidOffScheduleAmount,
  NextInstallmentDueDate,
  NextInstallmentAmount,
  Prms2PToInvoiceGroupRefUUID,
  CaseID,
  CaseExternalReference,
  _CaseAttribute.CaseCreatedBy AS CaseCreatedBy,
  CaseCreatedOn,
  _CaseAttribute.CaseLastChangedBy AS CaseLastChangedBy,
  CaseLastChangedOn,
  _CaseAttribute.CaseClosedBy AS CaseClosedBy,
  CaseClosedTime,
  min( IsCleared ) AS IsCleared
FROM P_COLLSPROMISETOPAY
LEFT OUTER JOIN I_CaseAttribute AS _CaseAttribute ON PromiseToPayUUID = _CaseAttribute.CaseUniqueID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByContactCard ON casecreatedby = _CreatedByContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ChangedByContactCard ON caselastchangedby = _ChangedByContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ClosedByContactCard ON caseclosedby = _ClosedByContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_CustomerContact AS _CustomerContact ON ContactPerson = _CustomerContact.CustomerContact  -- association [0..1]
LEFT OUTER JOIN I_CollectionsInvoiceMemory AS _InvoiceMemory ON LinkedInvoiceKey = _InvoiceMemory.ObjectKey  -- association [0..1]
;