I_CollectionsPromiseToPayBasic
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)
| Source | Alias | Join Type |
|---|---|---|
| udm_p2p_attr | udm_p2p_attr | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | |||
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA