I_CollsPromiseToPayDraft
Promise To Pay Draft
I_CollsPromiseToPayDraft is a Basic CDS View that provides data about "Promise To Pay Draft" in SAP S/4HANA. It reads from 1 data source (collp2pdra) and exposes 49 fields with key field DraftUUID. It has 9 associations to related views. Part of development package ODATA_PROMISE_TO_PAY.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| collp2pdra | collp2pdra | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CaseAttribute | _CaseAttribute | $projection.PromiseToPayUUID = _CaseAttribute.CaseUniqueID |
| [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_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_Currency | _Currency | $projection.Currency = _Currency.Currency |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICOLLSP2PDR | 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 Draft | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | DraftUUID | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DraftUUID | draftuuid | UUID | |
| 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 | |||
| 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 | casecreatedby | Created By | ||
| CaseCreatedOn | casecreatedon | Created At | ||
| CaseLastChangedBy | caselastchangedby | Changed By | ||
| CaseLastChangedOn | caselastchangedon | Last Changed At | ||
| CaseClosedBy | caseclosedby | Closed By | ||
| CaseClosedTime | caseclosedtime | Closed At | ||
| HasActiveEntity | hasactiveentity | TRUE | ||
| DraftCreationDateTime | draftentitycreationdatetime | Draft Created On | ||
| DraftLastChangedDateTime | draftentitylastchangedatetime | Draft Last Changed On | ||
| DraftAdministrativeDataUUID | draftadministrativedatauuid | UUID | ||
| CaseType | case_type | Usage Type | ||
| IsCleared | ||||
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _Country | _Country | |||
| _CollsPromiseToPayStatus | _CollsPromiseToPayStatus | |||
| _CaseAttribute | _CaseAttribute | |||
| _ChangedByContactCard | _ChangedByContactCard | |||
| _ClosedByContactCard | _ClosedByContactCard | |||
| _CreatedByContactCard | _CreatedByContactCard | |||
| _Currency | _Currency |
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_CollsPromiseToPayDraft.
-- 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_CollsPromiseToPayDraft AS
SELECT
DraftUUID,
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,
CaseCreatedBy,
CaseCreatedOn,
CaseLastChangedBy,
CaseLastChangedOn,
CaseClosedBy,
CaseClosedTime,
HasActiveEntity,
draftentitycreationdatetime AS DraftCreationDateTime,
draftentitylastchangedatetime AS DraftLastChangedDateTime,
DraftAdministrativeDataUUID,
case_type AS CaseType,
cast( 0 as integer ) AS IsCleared
FROM collp2pdra
LEFT OUTER JOIN I_CaseAttribute AS _CaseAttribute ON PromiseToPayUUID = _CaseAttribute.CaseUniqueID -- association [0..1]
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_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_Currency AS _Currency ON Currency = _Currency.Currency -- 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