I_CollectionsPromiseToPayBasic

DDL: I_COLLECTIONSPROMISETOPAYBASIC Type: view BASIC

Promise to Pay

I_CollectionsPromiseToPayBasic is a Basic CDS View that provides data about "Promise to Pay" in SAP S/4HANA. It reads from 1 data source (udm_p2p_attr) and exposes 31 fields with key field PromiseToPayUUID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
udm_p2p_attr udm_p2p_attr from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Country _Country $projection.ContactPersonFaxCountry = _Country.Country
[0..1] I_CollsPromiseToPayStatus _CollsPromiseToPayStatus $projection.PromiseToPayStatus = _CollsPromiseToPayStatus.PromiseToPayStatus
[0..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[0..1] I_CustomerContact _CustomerContact $projection.ContactPerson = _CustomerContact.CustomerContact

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ICOLLSP2PBSC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Promise to Pay view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey PromiseToPayUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY PromiseToPayUUID case_guid UUID
CompanyCode fin_comp_code Company Code
Customer fin_customer Customer
SAPObjectType Object Type
LinkedInvoiceKey fin_invoice_key Key
PromisedAmount Promised
PaidAmount Paid
Currency fin_p2p_curr Currency
DueDate fin_p2p_due_date Promised For
PromiseToPayDate fin_p2p_date Promised On
LastPaymentDate fin_last_payment Last Payment
PromiseToPayStatus fin_p2p_state State
PromiseToPayLevel fin_p2p_level Level
PromiseToPayGivenByPersonName fin_promised_by Promised By
ContactPersonEmailAddress fin_contact_mail Email
ContactPersonPhoneNumber fin_contact_tel Telephone No.
ContactPersonFaxNumber fin_contact_fax Fax Number
ContactPersonFaxCountry fin_contact_faxc C/R of Fax No.
ContactPerson Contact Person Key
NumberOfInstallments fin_no_of_inst Installments
PaidOnScheduleAmount Paid on Sched.
PaidOffScheduleAmount fin_paid_not_os Not on Schedule
NextInstallmentDueDate fin_nxt_inst_due Due Date of Next Open Installment
NextInstallmentAmount fin_nxt_inst_amt Open Amount
Prms2PToInvoiceGroupRefUUID fin_mult_inv_ctx UUID
_CompanyCode _CompanyCode
_Customer _Customer
_Country _Country
_CollsPromiseToPayStatus _CollsPromiseToPayStatus
_Currency _Currency
_CustomerContact _CustomerContact

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_CollectionsPromiseToPayBasic.
-- 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_CollectionsPromiseToPayBasic AS
SELECT
  case_guid AS PromiseToPayUUID,
  fin_comp_code AS CompanyCode,
  fin_customer AS Customer,
  cast( fin_invoice_type as sbo_bo_type ) AS SAPObjectType,
  fin_invoice_key AS LinkedInvoiceKey,
  cast ( fin_promised_amt as coll_p2p_promised_amount preserving type ) AS PromisedAmount,
  cast ( fin_paid_amount as coll_p2p_paid_amount preserving type ) AS PaidAmount,
  fin_p2p_curr AS Currency,
  fin_p2p_due_date AS DueDate,
  fin_p2p_date AS PromiseToPayDate,
  fin_last_payment AS LastPaymentDate,
  fin_p2p_state AS PromiseToPayStatus,
  fin_p2p_level AS PromiseToPayLevel,
  fin_promised_by AS PromiseToPayGivenByPersonName,
  fin_contact_mail AS ContactPersonEmailAddress,
  fin_contact_tel AS ContactPersonPhoneNumber,
  fin_contact_fax AS ContactPersonFaxNumber,
  fin_contact_faxc AS ContactPersonFaxCountry,
  cast ( fin_contact_key as parnr ) AS ContactPerson,
  fin_no_of_inst AS NumberOfInstallments,
  cast( fin_paid_os as coll_p2p_inst_paid_os preserving type ) AS PaidOnScheduleAmount,
  fin_paid_not_os AS PaidOffScheduleAmount,
  fin_nxt_inst_due AS NextInstallmentDueDate,
  fin_nxt_inst_amt AS NextInstallmentAmount,
  fin_mult_inv_ctx AS Prms2PToInvoiceGroupRefUUID
FROM udm_p2p_attr
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON ContactPersonFaxCountry = _Country.Country  -- association [0..1]
LEFT OUTER JOIN I_CollsPromiseToPayStatus AS _CollsPromiseToPayStatus ON PromiseToPayStatus = _CollsPromiseToPayStatus.PromiseToPayStatus  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CustomerContact AS _CustomerContact ON ContactPerson = _CustomerContact.CustomerContact  -- association [0..1]
;