P_CAPaytLotItmToBePaidBack

DDL: P_CAPAYTLOTITMTOBEPAIDBACK SQL: PTOBEPAIDBACK Type: view CONSUMPTION Package: ODATA_O2C_FICA_PAYMENTLOT_ANA

Number of Repayment Request

P_CAPaytLotItmToBePaidBack is a Consumption CDS View that provides data about "Number of Repayment Request" in SAP S/4HANA. It reads from 1 data source (I_CAPaymentLotItem) and exposes 3 fields with key field CAPaymentLot. It has 1 association to related views. Part of development package ODATA_O2C_FICA_PAYMENTLOT_ANA.

Data Sources (1)

SourceAliasJoin Type
I_CAPaymentLotItem I_CAPaymentLotItem from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_CARepaymentRequest _CARepaymentRequest $projection.CARepaymentRequest = _CARepaymentRequest.CARepaymentRequest

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PTOBEPAIDBACK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Number of Repayment Request view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CAPaymentLot CAPaymentLot Lot
CARepaymentRequest CARepaymentRequest Repaymt Request
NumberOfPaymentsToBePaidBack

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_CAPaytLotItmToBePaidBack.
-- 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: PTOBEPAIDBACK

CREATE VIEW P_CAPaytLotItmToBePaidBack AS
SELECT
  CAPaymentLot,
  CARepaymentRequest,
  count( * ) AS NumberOfPaymentsToBePaidBack
FROM I_CAPaymentLotItem
LEFT OUTER JOIN I_CARepaymentRequest AS _CARepaymentRequest ON CARepaymentRequest = _CARepaymentRequest.CARepaymentRequest  -- association [1..1]
;