I_CollsPromiseToPay

DDL: I_COLLSPROMISETOPAY Type: view COMPOSITE

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 (I_CollectionsPromiseToPayBasic) and exposes 44 fields with key field PromiseToPayUUID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CollectionsPromiseToPayBasic I_CollectionsPromiseToPayBasic 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 (44)

KeyFieldSource TableSource FieldDescription
KEY PromiseToPayUUID PromiseToPayUUID Internal Key
CompanyCode CompanyCode Receiver Company Code
Customer Customer Sold-to Party
ObjectType SOT Name
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 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 _CaseAttribute CaseID Case ID
CaseExternalReference
CaseCreatedBy _CaseAttribute CaseCreatedBy Created By
CaseCreatedOn
CaseLastChangedBy _CaseAttribute CaseLastChangedBy Changed By
CaseLastChangedOn
CaseClosedBy _CaseAttribute CaseClosedBy Closed By
CaseClosedTime
_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,
  cast ( SAPObjectType as swo_objtyp ) AS ObjectType,
  LinkedInvoiceKey,
  PromisedAmount,
  PaidAmount,
  Currency,
  DueDate,
  PromiseToPayDate,
  LastPaymentDate,
  PromiseToPayStatus,
  PromiseToPayLevel,
  PromiseToPayGivenByPersonName,
  ContactPersonEmailAddress,
  ContactPersonPhoneNumber,
  ContactPersonFaxNumber,
  ContactPersonFaxCountry,
  cast ( ContactPerson as udm_contact_key ) AS ContactPerson,
  NumberOfInstallments,
  PaidOnScheduleAmount,
  PaidOffScheduleAmount,
  NextInstallmentDueDate,
  NextInstallmentAmount,
  Prms2PToInvoiceGroupRefUUID,
  _CaseAttribute.CaseID AS CaseID,
  cast( _CaseAttribute.CaseExternalReference as coll_p2p_external_reference preserving type ) AS CaseExternalReference,
  _CaseAttribute.CaseCreatedBy AS CaseCreatedBy,
  cast( _CaseAttribute.CaseCreatedOn as coll_pr_creation_date_time preserving type ) AS CaseCreatedOn,
  _CaseAttribute.CaseLastChangedBy AS CaseLastChangedBy,
  cast( _CaseAttribute.CaseLastChangedOn as coll_pr_changed_at preserving type ) AS CaseLastChangedOn,
  _CaseAttribute.CaseClosedBy AS CaseClosedBy,
  cast( _CaseAttribute.CaseClosedTime as coll_pr_closed_at preserving type ) AS CaseClosedTime
FROM I_CollectionsPromiseToPayBasic
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]
;