P_CreditAcctWithToDo2

DDL: P_CREDITACCTWITHTODO2 SQL: PCRDTACCTTODO2 Type: view COMPOSITE

P_CreditAcctWithToDo2 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CreditLimitRequest) and exposes 4 fields with key fields BusinessPartner, CreditSegment.

Data Sources (1)

SourceAliasJoin Type
I_CreditLimitRequest I_CreditLimitRequest from

Annotations (7)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PCRDTACCTTODO2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner BusinessPartner Issuing Authority
KEY CreditSegment CreditSegment Credit Segment
NumberOfCreditLimitRequests
BPHasCreditLimitRequest

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_CreditAcctWithToDo2.
-- 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: PCRDTACCTTODO2

CREATE VIEW P_CreditAcctWithToDo2 AS
SELECT
  BusinessPartner,
  CreditSegment,
  count( distinct CaseUUID ) AS NumberOfCreditLimitRequests,
  'X' AS BPHasCreditLimitRequest
FROM I_CreditLimitRequest
;