I_CollsPromiseToPayPayment

DDL: I_COLLSPROMISETOPAYPAYMENT Type: view COMPOSITE

Promise To Pay Payment

I_CollsPromiseToPayPayment is a Composite CDS View that provides data about "Promise To Pay Payment" in SAP S/4HANA. It reads from 1 data source (I_CollsPromiseToPay) and exposes 9 fields with key fields PromiseToPayUUID, CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_CollsPromiseToPay I_CollsPromiseToPay from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ICOLLSP2PPMNT 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 Payment 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 #TRANSACTIONAL view
ObjectModel.representativeKey AccountingDocument view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY PromiseToPayUUID PromiseToPayUUID Internal Key
KEY CompanyCode
KEY AccountingDocument
KEY FiscalYear
KEY AccountingDocumentItem
PaidAmount
Currency Currency Valuation Crcy
PaymentDate
_CompanyCode _CompanyCode

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_CollsPromiseToPayPayment.
-- 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_CollsPromiseToPayPayment AS
SELECT
  PromiseToPayUUID,
  cast ( substring( LinkedInvoiceKey, 1, 4 ) as bukrs preserving type ) AS CompanyCode,
  cast ( substring( LinkedInvoiceKey, 5, 10 ) as fis_belnr preserving type ) AS AccountingDocument,
  cast ( substring( LinkedInvoiceKey, 15, 4 ) as gjahr ) AS FiscalYear,
  cast ( substring( LinkedInvoiceKey, 19, 3 ) as fis_buzei ) AS AccountingDocumentItem,
  cast ( 0 as bdm_paid_amount ) AS PaidAmount,
  Currency,
  cast ( '00000000' as farp_payment_date ) AS PaymentDate
FROM I_CollsPromiseToPay
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
;