P_NumberOfPaytIncomingStatuses

DDL: P_NUMBEROFPAYTINCOMINGSTATUSES Type: view_entity COMPOSITE Package: ODATA_MONITOR_PAYMENT_BATCHES

Number of Incg Statuses for Bank Payment

P_NumberOfPaytIncomingStatuses is a Composite CDS View that provides data about "Number of Incg Statuses for Bank Payment" in SAP S/4HANA. It reads from 2 data sources (I_BankPaytExtStatusMsg, I_BankPaytIncgStatusReason) and exposes 4 fields with key fields PaymentBatch, PaymentBatchItem. Part of development package ODATA_MONITOR_PAYMENT_BATCHES.

Data Sources (2)

SourceAliasJoin Type
I_BankPaytExtStatusMsg _StatusMessage inner
I_BankPaytIncgStatusReason _StatusReason right_outer

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PaymentBatch _StatusRef PaymentBatch
KEY PaymentBatchItem _StatusRef PaymentBatchItem
NumberOfPaytIncomingStatuses
IncomingStatusAdditionInfo

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_NumberOfPaytIncomingStatuses.
-- 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 P_NumberOfPaytIncomingStatuses AS
SELECT
  _StatusRef.PaymentBatch AS PaymentBatch,
  _StatusRef.PaymentBatchItem AS PaymentBatchItem,
  count ( * ) AS NumberOfPaytIncomingStatuses,
  max(_StatusReason.IncomingStatusAdditionInfo) AS IncomingStatusAdditionInfo
RIGHT OUTER JOIN I_BankPaytIncgStatusReason AS _StatusReason ON /* join condition not captured in parsed metadata */
INNER JOIN I_BankPaytExtStatusMsg AS _StatusMessage ON /* join condition not captured in parsed metadata */
;