P_PrepaymentClearingAcctgDoc

DDL: P_PREPAYMENTCLEARINGACCTGDOC SQL: PPPMGCLACCDOC Type: view BASIC

P_PrepaymentClearingAcctgDoc is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (bkpf, bseg) and exposes 7 fields with key fields ClearedAccountingDocument, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
bkpf _AccountingDocumentHeader inner
bseg AccountingDocumentSegment from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPPMGCLACCDOC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.private true view
VDM.viewType #BASIC view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ClearedAccountingDocument bseg belnr SD Document
KEY FiscalYear bseg gjahr Settlement Year
CompanyCode bseg bukrs Value
ClearingDate bseg augdt Clearing
ClearingJournalEntry bseg augbl Clrng doc.
ACMReferenceKey bkpf awkey RefKey GJE
SupplierConfirmationExtNumber bkpf xblnr Reference

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 P_PrepaymentClearingAcctgDoc.
-- 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.
-- SQL view name: PPPMGCLACCDOC

CREATE VIEW P_PrepaymentClearingAcctgDoc AS
SELECT
  AccountingDocumentSegment.belnr AS ClearedAccountingDocument,
  AccountingDocumentSegment.gjahr AS FiscalYear,
  AccountingDocumentSegment.bukrs AS CompanyCode,
  AccountingDocumentSegment.augdt AS ClearingDate,
  AccountingDocumentSegment.augbl AS ClearingJournalEntry,
  _AccountingDocumentHeader.awkey AS ACMReferenceKey,
  _AccountingDocumentHeader.xblnr AS SupplierConfirmationExtNumber
FROM bseg AS AccountingDocumentSegment
INNER JOIN bkpf AS _AccountingDocumentHeader ON /* join condition not captured in parsed metadata */
;