I_CreditDecisionDocumentC

DDL: I_CREDITDECISIONDOCUMENTC SQL: ICRDTDCSNDOCC Type: view COMPOSITE

Credit Decision Document - Cube

I_CreditDecisionDocumentC (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Financial Operations

I_CreditDecisionDocumentC is a Composite CDS View (Cube) that provides data about "Credit Decision Document - Cube" in SAP S/4HANA. It reads from 1 data source (P_DCD_2) and exposes 68 fields with key field CaseUUID. It has 19 associations to related views.

SAP Help Documentation

CategoryCDS Views for Credit Evaluation and Management
Data CategoryCube
Purpose
This CDS view is designed to provide a comprehensive overview of credit decision documents within a business context. It aggregates and presents data related to credit management, including details about business partners, credit segments, sales documents, and various case attributes. The view is structured to support analytical processing and decision-making by offering insights into open credit cases, their statuses, and associated financial metrics. This CDS view provides the data to answer the following business questions: What are the details of open credit decision cases, including their creation, last change, and planned closure dates? Which business partners are involved in these credit decision cases, and what are their associated credit segments and risk classes? What is the status and priority of each credit decision case, and who are the responsible and processing contacts? How many credit decision documents are associated with each case, and what are the financial implications, such as open credit amounts and checked credit risk amounts? Are there any credit checks that have failed, and what are the reasons for case escalations or planned closure date exceedances? What is the credit limit and exposure amount for business partners within specific credit segments? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: Restriction Type ID Restriction Type UKM_SGMNT Credit Segment You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.

Structure
Parameters The parameters of the CDS view are as follows: P_ExchangeRateType : This parameter is used to set the exchange rate type for currency conversion. Default value: M ( Standard translation at average rate ) P_ReadLineItem : This parameter is a flag used to include the exposure from finance. Default value: Y ( Yes ) P_DisplayCurrency : This parameter is used to define the currency in which amounts are displayed. P_KeyDate : This parameter is used to specify the key date for data extraction. Important Fields Important fields in this view include the following: Field Name Description CaseUUID UUID in Character Format CaseID Case ID BusinessPartner Business Partner Number CreditSegment Credit Segment NumberOfCreditDecisionDocs Number of Documented Credit Decisions

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFIN-FSCM-CR
CapabilitiesData Provider for Analytical Queries, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageFinancial Operations for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
P_DCD_2 P_DCD_2 from

Parameters (4)

NameTypeDefault
P_KeyDate sydate
P_DisplayCurrency vdm_v_display_currency
P_ExchangeRateType kurst_curr
P_ReadLineItem read_fiar_lineitems

Associations (19)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[1..1] I_SalesDocumentBasic _SalesDocument $projection.CreditDecisionSalesDocument = _SalesDocument.SalesDocument and $projection.CreditDecisionObjectType = 'VBAK'
[1..1] I_DeliveryDocument _DeliveryDocument $projection.CreditDecisionSalesDocument = _DeliveryDocument.DeliveryDocument and $projection.CreditDecisionObjectType = 'LIKP'
[1..1] I_Currency _DisplayCurrency $projection.DisplayCurrency = _DisplayCurrency.Currency
[0..1] I_Country _Country $projection.Country = _Country.Country
[0..1] I_Region _Region $projection.Country = _Region.Country and $projection.Region = _Region.Region
[1..1] I_CreditManagementSegment _CreditSegment $projection.CreditSegment = _CreditSegment.CreditSegment
[0..1] I_CreditRiskClass _CreditRiskClass $projection.CreditRiskClass = _CreditRiskClass.CreditRiskClass
[0..1] I_CreditCaseContact _Processor $projection.CaseProcessor = _Processor.UserID
[0..1] I_CreditCaseContact _Responsible $projection.CaseResponsible = _Responsible.UserID
[0..1] I_CaseReasons _Reasons $projection.CaseReason = _Reasons.CaseReason and $projection.CaseType = _Reasons.CaseType
[0..1] I_Casetypes _CaseTypes $projection.CaseType = _CaseTypes.CaseType
[0..1] I_CaseStatusProfile _StatusProfile $projection.CaseStatusProfile = _StatusProfile.CaseStatusProfile
[0..1] I_CaseStatus _CaseSystemStatus $projection.CaseSystemStatus = _CaseSystemStatus.Status
[0..1] I_CasePriority _Priority $projection.CasePriority = _Priority.CasePriority
[0..1] I_CaseCategory _Category $projection.CaseType = _Category.CaseType and $projection.CaseCategory = _Category.CaseCategory
[0..1] I_Caseindividualstatus _Individual $projection.CaseStatus = _Individual.CaseStatus and $projection.CaseStatusProfile = _Individual.CaseStatusProfile
[0..1] I_CrdtMBusPartnerGroup _CrdtMBusPartnerGroup $projection.CrdtMgmtBusinessPartnerGroup = _CrdtMBusPartnerGroup.CrdtMgmtBusinessPartnerGroup
[0..1] I_CreditAccountExtended _CreditAccountExtended $projection.BusinessPartner = _CreditAccountExtended.BusinessPartner and $projection.CreditSegment = _CreditAccountExtended.CreditSegment

Annotations (15)

NameValueLevelField
EndUserText.label Credit Decision Document - Cube view
AbapCatalog.sqlViewName ICRDTDCSNDOCC view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (68)

KeyFieldSource TableSource FieldDescription
KEY CaseUUID CaseUUID UUID in character form
CaseID CaseID Case ID
BusinessPartner BusinessPartner Business Partner Number
CreditSegment CreditSegment Credit Segment
Country Country/Region
Region Region (State, Province, County)
CreditRiskClass CreditRiskClass Risk Class at Time of Credit Decision
CaseProcessor Credit Analyst
CaseResponsible Person Responsible
CaseCreatedBy CaseCreatedBy Created By
CaseLastChangedBy CaseLastChangedBy Last Changed By
CaseClosedBy CaseClosedBy Closed by User
CaseReason CaseReason Reason for Case
CaseType CaseType Upper/Lowercase
CaseStatusProfile CaseStatusProfile Case: Status Profile
CaseSystemStatus CaseSystemStatus Case: System Status
CaseStatus CaseStatus Case: Status
CasePriority CasePriority Priority
CaseEscalationReason CaseEscalationReason Reason for Escalation
CaseCategory CaseCategory Category
CrdtMgmtBusinessPartnerGroup CrdtMgmtBusinessPartnerGroup Customer Credit Group
NumberOfCreditDecisionDocs Number of Documented Credit Decisions
CaseCreationDate Created On
CaseLastChangeDate Last Changed On
CaseClosingDate Closed On
CasePlannedCloseDate Planned Close Date
CaseIsClosed Case is Closed
NmbrOfDaysPlndClsDateExceeded Number of Days After Planned Closing Date
CreditDecisionObjectType CreditDecisionObjectType Type of Document with Credit Block
CreditDecisionSalesDocument Sales and Distribution Document Number
SalesDocumentCreditStatus SalesDocumentCreditStatus Status of Document with Credit Block
CreditDecisionReqUTCDateTime CreditDecisionReqUTCDateTime Timestamp
CreditDecisionFirstApprover CreditDecisionFirstApprover Approver
CreditDecisionSecondApprover CreditDecisionSecondApprover Second Approver
CreditDecisionFirstApprvlSts Status of First Approval
CreditDecisionSecondApprvlSts Status of Second Approval
CreditDecisionCompletedByUser CreditDecisionCompletedByUser User Who Released/Rejected the Sales Document
CrdtDcsnApprvlProcIsOverruled CrdtDcsnApprvlProcIsOverruled Approval Process Not Adhered To
StaticLmtUtilznCrdtChkIsFailed StaticLmtUtilznCrdtChkIsFailed Static Check of Credit Limit Utilization Failed
MaxDocAmountCreditChkIsFailed MaxDocAmountCreditChkIsFailed Check for Maximum Document Value Failed
DynLimitUtilznCrdtChkIsFailed DynLimitUtilznCrdtChkIsFailed Dynamic Check of Credit Limit Utilization Failed
MaxDunningLevelCrdtChkIsFailed MaxDunningLevelCrdtChkIsFailed Check of Maximum Dunning Level Failed
OldestOpenItemCrdtChkIsFailed OldestOpenItemCrdtChkIsFailed Check for Oldest Open Item Failed
DaysSlsOutStdgCrdtChkIsFailed DaysSlsOutStdgCrdtChkIsFailed Check of Days Sales Outstanding (DSO) Failed
OtherCreditCheckIsFailed OtherCreditCheckIsFailed Other Checks Failed
OverdueOpenItemCrdtChkIsFailed OverdueOpenItemCrdtChkIsFailed Check for Overdue Open Items Failed
DisplayCurrency DisplayCurrency Display Currency
OpenCreditAmount Open Credit Amount
CheckedCreditRiskAmount Checked Credit Value
_BusinessPartner _BusinessPartner
_SalesDocument _SalesDocument
_DeliveryDocument _DeliveryDocument
_Country _Country
_Region _Region
_CreditSegment _CreditSegment
_CreditRiskClass _CreditRiskClass
_Processor _Processor
_Responsible _Responsible
_DisplayCurrency _DisplayCurrency
_CaseTypes _CaseTypes
_Priority _Priority
_CaseSystemStatus _CaseSystemStatus
_StatusProfile _StatusProfile
_Individual _Individual
_Category _Category
_Reasons _Reasons
_CrdtMBusPartnerGroup _CrdtMBusPartnerGroup
_CreditAccountExtended _CreditAccountExtended

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_CreditDecisionDocumentC.
-- 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: ICRDTDCSNDOCC
-- Parameters: P_KeyDate : sydate, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst_curr, P_ReadLineItem : read_fiar_lineitems

CREATE VIEW I_CreditDecisionDocumentC AS
SELECT
  CaseUUID,
  CaseID,
  BusinessPartner,
  CreditSegment,
  cast( _BusinessPartner._CurrentDefaultAddress._StandardAddress.Country as farp_country preserving type) AS Country,
  _BusinessPartner._CurrentDefaultAddress._StandardAddress.Region AS Region,
  CreditRiskClass,
  cast( CaseProcessor as ukm_coordinator preserving type ) AS CaseProcessor,
  cast( CaseResponsible as fis_responsible preserving type ) AS CaseResponsible,
  CaseCreatedBy,
  CaseLastChangedBy,
  CaseClosedBy,
  CaseReason,
  CaseType,
  CaseStatusProfile,
  CaseSystemStatus,
  CaseStatus,
  CasePriority,
  CaseEscalationReason,
  CaseCategory,
  CrdtMgmtBusinessPartnerGroup,
  cast( NumberOfCreditDecisionDocs as numberofcreditdecisiondocs ) AS NumberOfCreditDecisionDocs,
  cast( CaseCreationDate as scmg_create_date preserving type ) AS CaseCreationDate,
  cast( CaseLastChangeDate as scmg_change_date preserving type ) AS CaseLastChangeDate,
  cast( CaseClosingDate as scmg_closing_date preserving type ) AS CaseClosingDate,
  cast( CasePlannedCloseDate as scmg_plan_end_date preserving type ) AS CasePlannedCloseDate,
  cast ( CaseIsClosed as case_is_closed preserving type ) AS CaseIsClosed,
  cast( NmbrOfDaysPlndClsDateExceeded as numberofdaysafterplannedclose preserving type ) AS NmbrOfDaysPlndClsDateExceeded,
  CreditDecisionObjectType,
  cast( CreditDecisionSalesDocument as vbeln ) AS CreditDecisionSalesDocument,
  SalesDocumentCreditStatus,
  CreditDecisionReqUTCDateTime,
  CreditDecisionFirstApprover,
  CreditDecisionSecondApprover,
  cast( CreditDecisionFirstApprvlSts as fis_approval_status1 preserving type ) AS CreditDecisionFirstApprvlSts,
  cast( CreditDecisionSecondApprvlSts as fis_approval_status2 preserving type ) AS CreditDecisionSecondApprvlSts,
  CreditDecisionCompletedByUser,
  CrdtDcsnApprvlProcIsOverruled,
  StaticLmtUtilznCrdtChkIsFailed,
  MaxDocAmountCreditChkIsFailed,
  DynLimitUtilznCrdtChkIsFailed,
  MaxDunningLevelCrdtChkIsFailed,
  OldestOpenItemCrdtChkIsFailed,
  DaysSlsOutStdgCrdtChkIsFailed,
  OtherCreditCheckIsFailed,
  OverdueOpenItemCrdtChkIsFailed,
  DisplayCurrency,
  cast( OpenCreditAmount as ukm_open_credit_amount preserving type ) AS OpenCreditAmount,
  cast( CheckedCreditRiskAmount as ukm_checked_credit_risk_amount preserving type ) AS CheckedCreditRiskAmount
FROM P_DCD_2
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentBasic AS _SalesDocument ON CreditDecisionSalesDocument = _SalesDocument.SalesDocument AND CreditDecisionObjectType = 'VBAK'  -- association [1..1]
LEFT OUTER JOIN I_DeliveryDocument AS _DeliveryDocument ON CreditDecisionSalesDocument = _DeliveryDocument.DeliveryDocument AND CreditDecisionObjectType = 'LIKP'  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _DisplayCurrency ON DisplayCurrency = _DisplayCurrency.Currency  -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country  -- association [0..1]
LEFT OUTER JOIN I_Region AS _Region ON Country = _Region.Country AND Region = _Region.Region  -- association [0..1]
LEFT OUTER JOIN I_CreditManagementSegment AS _CreditSegment ON CreditSegment = _CreditSegment.CreditSegment  -- association [1..1]
LEFT OUTER JOIN I_CreditRiskClass AS _CreditRiskClass ON CreditRiskClass = _CreditRiskClass.CreditRiskClass  -- association [0..1]
LEFT OUTER JOIN I_CreditCaseContact AS _Processor ON CaseProcessor = _Processor.UserID  -- association [0..1]
LEFT OUTER JOIN I_CreditCaseContact AS _Responsible ON CaseResponsible = _Responsible.UserID  -- association [0..1]
LEFT OUTER JOIN I_CaseReasons AS _Reasons ON CaseReason = _Reasons.CaseReason AND CaseType = _Reasons.CaseType  -- association [0..1]
LEFT OUTER JOIN I_Casetypes AS _CaseTypes ON CaseType = _CaseTypes.CaseType  -- association [0..1]
LEFT OUTER JOIN I_CaseStatusProfile AS _StatusProfile ON CaseStatusProfile = _StatusProfile.CaseStatusProfile  -- association [0..1]
LEFT OUTER JOIN I_CaseStatus AS _CaseSystemStatus ON CaseSystemStatus = _CaseSystemStatus.Status  -- association [0..1]
LEFT OUTER JOIN I_CasePriority AS _Priority ON CasePriority = _Priority.CasePriority  -- association [0..1]
LEFT OUTER JOIN I_CaseCategory AS _Category ON CaseType = _Category.CaseType AND CaseCategory = _Category.CaseCategory  -- association [0..1]
LEFT OUTER JOIN I_Caseindividualstatus AS _Individual ON CaseStatus = _Individual.CaseStatus AND CaseStatusProfile = _Individual.CaseStatusProfile  -- association [0..1]
LEFT OUTER JOIN I_CrdtMBusPartnerGroup AS _CrdtMBusPartnerGroup ON CrdtMgmtBusinessPartnerGroup = _CrdtMBusPartnerGroup.CrdtMgmtBusinessPartnerGroup  -- association [0..1]
LEFT OUTER JOIN I_CreditAccountExtended AS _CreditAccountExtended ON BusinessPartner = _CreditAccountExtended.BusinessPartner AND CreditSegment = _CreditAccountExtended.CreditSegment  -- association [0..1]
;