C_CreditDecisionDocumentTP
Credit Decision Documents
C_CreditDecisionDocumentTP is a Consumption CDS View that provides data about "Credit Decision Documents" in SAP S/4HANA. It reads from 1 data source (R_CreditDecisionDocumentTP) and exposes 118 fields with key field CaseUUID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_CreditDecisionDocumentTP | R_CreditDecisionDocumentTP | projection |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_CreditDecisionDocumentLog | _CreditDecisionDocumentLog | $projection.CaseUUID = _CreditDecisionDocumentLog.CaseUUID |
| [0..*] | C_CreditDecisionDocLinkdObj | _CreditDecisionDocLinkdObj | $projection.CaseUUID = _CreditDecisionDocLinkdObj.CaseUUID |
| [0..*] | C_CreditDecisionDocRjcnReason | _CreditDecisionDocRjcnReason | $projection.CaseID = _CreditDecisionDocRjcnReason.CaseID |
| [0..*] | C_CreditWorthinessScoreTrend | _CreditWorthinessScoreTrend | $projection.BusinessPartner = _CreditWorthinessScoreTrend.ChangeDocObject |
| [0..*] | C_CrdtMAcctAgingGrid | _AgingGrid | $projection.BusinessPartner = _AgingGrid.BusinessPartner and $projection.CreditSegment = _AgingGrid.CreditSegment |
| [0..*] | C_CreditLimitTrend | _CreditLimitTrend | $projection.BusinessPartner = _CreditLimitTrend.ChangeDocObject and $projection.CreditSegment = _CreditLimitTrend.CreditSegment |
| [0..*] | C_CreditDecisionDocumentSnpsht | _Snapshot | $projection.CaseUUID = _Snapshot.CaseUUID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Credit Decision Documents | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.representativeKey | CaseUUID | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| Metadata.allowExtensions | true | view |
Fields (118)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CaseUUID | CaseUUID | UUID | |
| CaseID | CaseID | Case ID | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| CreditSegment | CreditSegment | Credit Segment | ||
| CreditRiskClass | CreditRiskClass | Credit Risk Class | ||
| CaseProcessor | CaseProcessor | Processor | ||
| CaseResponsible | CaseResponsible | Person Responsible | ||
| CaseExternalReference | CaseExternalReference | External Reference | ||
| CaseTitle | CaseTitle | Case Title | ||
| CaseCreatedBy | CaseCreatedBy | Created By | ||
| CreditCaseCreationDateTime | CreditCaseCreationDateTime | Created At | ||
| CaseLastChangedBy | CaseLastChangedBy | Changed By | ||
| CreditCaseLastChangeDateTime | CreditCaseLastChangeDateTime | Last Changed At | ||
| CaseClosedBy | CaseClosedBy | Closed By | ||
| CreditCaseCloseDateTime | CreditCaseCloseDateTime | Closed At | ||
| CasePlannedCloseDate | CasePlannedCloseDate | Planned Close Date | ||
| CaseReason | CaseReason | Reason | ||
| CaseType | CaseType | Upper/Lowercase | ||
| CaseStatusProfile | CaseStatusProfile | Status Profile | ||
| CaseStatus | CaseStatus | Status | ||
| CaseSystemStatus | CaseSystemStatus | System Status | ||
| CasePriority | CasePriority | Priority | ||
| CaseAuthorizationLevel | CaseAuthorizationLevel | Auth. Level | ||
| CaseEscalationReason | CaseEscalationReason | Escalation Reason | ||
| CaseCategory | CaseCategory | Category | ||
| CaseStatusObjectNumber | CaseStatusObjectNumber | |||
| CaseSystemStatusName | CaseSystemStatusName | |||
| CaseUserStatusName | CaseUserStatusName | User Status | ||
| CreditDecisionCurrency | CreditDecisionCurrency | |||
| OpenCreditAmount | OpenCreditAmount | |||
| CheckedCreditRiskAmount | CheckedCreditRiskAmount | |||
| CrdtMgmtBusinessPartnerGroup | CrdtMgmtBusinessPartnerGroup | |||
| CreditCheckLog | CreditCheckLog | |||
| CreditDecisionObjectType | CreditDecisionObjectType | |||
| CreditDecisionReferenceDoc | CreditDecisionReferenceDoc | |||
| SourceLogicalSystem | SourceLogicalSystem | |||
| SalesDocumentCreditStatus | SalesDocumentCreditStatus | |||
| CreditDecisionReqUTCDateTime | CreditDecisionReqUTCDateTime | |||
| CreditDecisionFirstApprover | CreditDecisionFirstApprover | |||
| CreditDecisionSecondApprover | CreditDecisionSecondApprover | |||
| CreditDecisionFirstApprvlSts | CreditDecisionFirstApprvlSts | |||
| CreditDecisionSecondApprvlSts | CreditDecisionSecondApprvlSts | |||
| CreditDecisionCompletedByUser | CreditDecisionCompletedByUser | |||
| CrdtDcsnApprvlProcIsOverruled | CrdtDcsnApprvlProcIsOverruled | |||
| StaticLmtUtilznCrdtChkIsFailed | StaticLmtUtilznCrdtChkIsFailed | |||
| MaxDocAmountCreditChkIsFailed | MaxDocAmountCreditChkIsFailed | |||
| DynLimitUtilznCrdtChkIsFailed | DynLimitUtilznCrdtChkIsFailed | |||
| MaxDunningLevelCrdtChkIsFailed | MaxDunningLevelCrdtChkIsFailed | |||
| OldestOpenItemCrdtChkIsFailed | OldestOpenItemCrdtChkIsFailed | |||
| DaysSlsOutStdgCrdtChkIsFailed | DaysSlsOutStdgCrdtChkIsFailed | |||
| OverdueOpenItemCrdtChkIsFailed | OverdueOpenItemCrdtChkIsFailed | |||
| OtherCreditCheckIsFailed | OtherCreditCheckIsFailed | |||
| LimitValidityCrdtChkIsFailed | LimitValidityCrdtChkIsFailed | |||
| SalesEmployeeUserID | SalesEmployeeUserID | |||
| IsApprovalRelevant | IsApprovalRelevant | |||
| CaseAttributeProfile | _CaseTypes | CaseAttributeProfile | ||
| CurrentCreditRiskClass | _CreditManagementBP | CreditRiskClass | Credit Risk Class | |
| CreditLimitAmount | _CreditManagementAccount | CreditLimitAmount | Credit Limit | |
| CreditSegmentCurrency | _CreditManagementAccount | CreditSegmentCurrency | Currency | |
| NumberOfBrokenPromisesToPay | _BrokenPromisesToPay | NumberOfBrokenPromisesToPay | ||
| CaseCreatedByUserName | _CreatedByUserContactCard | UserDescription | Full Name | |
| CaseLastChangedByUserName | _LastChangeUserContactCard | UserDescription | Full Name | |
| CaseClosedByUserName | _ClosedByUserContactCard | UserDescription | Full Name | |
| CrdtDcsnCompletedByUserName | _CrdtDcsnCmpltdByUsrCntctCard | UserDescription | Full Name | |
| CrdtDcsnFirstApproverName | _CrdtDcsn1stApprvrContactCard | UserDescription | Full Name | |
| CrdtDcsnSecondApproverName | _CrdtDcsn2ndApprvrContactCard | UserDescription | Full Name | |
| CaseResponsibleName | _CaseResponsibleContactCard | UserDescription | Full Name | |
| CaseProcessorName | _CaseProcessorContactCard | UserDescription | Full Name | |
| SalesEmployeeName | _SalesEmployeeContactCard | UserDescription | Full Name | |
| SalesDocumentCreditStatusNamelocalized | ||||
| CasePriorityNamelocalized | ||||
| CaseEscalationReasonNamelocalized | ||||
| CaseReasonNamelocalized | ||||
| CreditSegmentNamelocalized | ||||
| CaseStatusNamelocalized | ||||
| CaseCategoryNamelocalized | ||||
| CreditRiskClassNamelocalized | ||||
| BusinessPartnerName | _BusinessPartner | BusinessPartnerName | Extracted Customer Name | |
| OrganizationBPName1 | _BusinessPartner | OrganizationBPName1 | Name 1 | |
| OrganizationBPName2 | _BusinessPartner | OrganizationBPName2 | Name 2 | |
| UICT_ProcessorFirstName | _CaseProcessorContactCard | FirstName | First Name | |
| UICT_ProcessorLastName | _CaseProcessorContactCard | LastName | Last Name | |
| UICT_ResponsibleFirstName | _CaseResponsibleContactCard | FirstName | First Name | |
| UICT_ResponsibleLastName | _CaseResponsibleContactCard | LastName | Last Name | |
| UICT_CreatedByFirstName | _CreatedByUserContactCard | FirstName | First Name | |
| UICT_CreatedByLastName | _CreatedByUserContactCard | LastName | Last Name | |
| UICT_ChangedByFirstName | _LastChangeUserContactCard | FirstName | First Name | |
| UICT_ChangedByLastName | _LastChangeUserContactCard | LastName | Last Name | |
| UICT_ClosedByFirstName | _ClosedByUserContactCard | FirstName | First Name | |
| UICT_ClosedByLastName | _ClosedByUserContactCard | LastName | Last Name | |
| virtualNoteTypeListTexttext200 | ||||
| virtualPlannedCloseDateIsExceededboolean | ||||
| virtualPlannedCloseDateCriticalitychar1 | ||||
| virtualUICT_FirstApproverboolean | ||||
| virtualUICT_SecondApproverboolean | ||||
| virtualSemanticObjecttext40 | ||||
| virtualUICT_IsApprovalRelevantboolean | ||||
| _BusinessPartner | _BusinessPartner | |||
| _CreditSegment | _CreditSegment | |||
| _Currency | _Currency | |||
| _Escalation | _Escalation | |||
| _Individual | _Individual | |||
| _Priority | _Priority | |||
| _Reasons | _Reasons | |||
| _ObjectType | _ObjectType | |||
| _StatProfile | _StatProfile | |||
| _CaseCategory | _CaseCategory | |||
| _CaseTypes | _CaseTypes | |||
| _CreditRiskClass | _CreditRiskClass | |||
| _FirstApprovalStatus | _FirstApprovalStatus | |||
| _SecondApprovalStatus | _SecondApprovalStatus | |||
| _CreditDecisionDocumentLog | _CreditDecisionDocumentLog | |||
| _CreditDecisionDocLinkdObj | _CreditDecisionDocLinkdObj | |||
| _CreditDecisionDocRjcnReason | _CreditDecisionDocRjcnReason | |||
| _Snapshot | _Snapshot | |||
| _CreditWorthinessScoreTrend | _CreditWorthinessScoreTrend | |||
| _AgingGrid | _AgingGrid | |||
| _CreditLimitTrend | _CreditLimitTrend |
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 C_CreditDecisionDocumentTP.
-- 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 C_CreditDecisionDocumentTP AS
SELECT
CaseUUID,
CaseID,
BusinessPartner,
CreditSegment,
CreditRiskClass,
CaseProcessor,
CaseResponsible,
CaseExternalReference,
CaseTitle,
CaseCreatedBy,
CreditCaseCreationDateTime,
CaseLastChangedBy,
CreditCaseLastChangeDateTime,
CaseClosedBy,
CreditCaseCloseDateTime,
CasePlannedCloseDate,
CaseReason,
CaseType,
CaseStatusProfile,
CaseStatus,
CaseSystemStatus,
CasePriority,
CaseAuthorizationLevel,
CaseEscalationReason,
CaseCategory,
CaseStatusObjectNumber,
CaseSystemStatusName,
CaseUserStatusName,
CreditDecisionCurrency,
OpenCreditAmount,
CheckedCreditRiskAmount,
CrdtMgmtBusinessPartnerGroup,
CreditCheckLog,
CreditDecisionObjectType,
CreditDecisionReferenceDoc,
SourceLogicalSystem,
SalesDocumentCreditStatus,
CreditDecisionReqUTCDateTime,
CreditDecisionFirstApprover,
CreditDecisionSecondApprover,
CreditDecisionFirstApprvlSts,
CreditDecisionSecondApprvlSts,
CreditDecisionCompletedByUser,
CrdtDcsnApprvlProcIsOverruled,
StaticLmtUtilznCrdtChkIsFailed,
MaxDocAmountCreditChkIsFailed,
DynLimitUtilznCrdtChkIsFailed,
MaxDunningLevelCrdtChkIsFailed,
OldestOpenItemCrdtChkIsFailed,
DaysSlsOutStdgCrdtChkIsFailed,
OverdueOpenItemCrdtChkIsFailed,
OtherCreditCheckIsFailed,
LimitValidityCrdtChkIsFailed,
SalesEmployeeUserID,
IsApprovalRelevant,
_CaseTypes.CaseAttributeProfile AS CaseAttributeProfile,
_CreditManagementBP.CreditRiskClass AS CurrentCreditRiskClass,
_CreditManagementAccount.CreditLimitAmount AS CreditLimitAmount,
_CreditManagementAccount.CreditSegmentCurrency AS CreditSegmentCurrency,
_BrokenPromisesToPay.NumberOfBrokenPromisesToPay AS NumberOfBrokenPromisesToPay,
_CreatedByUserContactCard.UserDescription AS CaseCreatedByUserName,
_LastChangeUserContactCard.UserDescription AS CaseLastChangedByUserName,
_ClosedByUserContactCard.UserDescription AS CaseClosedByUserName,
_CrdtDcsnCmpltdByUsrCntctCard.UserDescription AS CrdtDcsnCompletedByUserName,
_CrdtDcsn1stApprvrContactCard.UserDescription AS CrdtDcsnFirstApproverName,
_CrdtDcsn2ndApprvrContactCard.UserDescription AS CrdtDcsnSecondApproverName,
_CaseResponsibleContactCard.UserDescription AS CaseResponsibleName,
_CaseProcessorContactCard.UserDescription AS CaseProcessorName,
_SalesEmployeeContactCard.UserDescription AS SalesEmployeeName,
_SalesDocumentCreditStatus._Text.SalesDocumentCreditStatusName : localized AS SalesDocumentCreditStatusNamelocalized,
_Priority._Text.CasePriorityName : localized AS CasePriorityNamelocalized,
_Escalation._Text.CaseEscalationReasonName : localized AS CaseEscalationReasonNamelocalized,
_Reasons._Text.CaseReasonName : localized AS CaseReasonNamelocalized,
_CreditSegment._Text.CreditSegmentName : localized AS CreditSegmentNamelocalized,
_Individual._Text.CaseStatusName : localized AS CaseStatusNamelocalized,
_CaseCategory._Text.CaseCategoryName : localized AS CaseCategoryNamelocalized,
_CreditRiskClass._Text.CreditRiskClassName : localized AS CreditRiskClassNamelocalized,
_BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
_BusinessPartner.OrganizationBPName1 AS OrganizationBPName1,
_BusinessPartner.OrganizationBPName2 AS OrganizationBPName2,
_CaseProcessorContactCard.FirstName AS UICT_ProcessorFirstName,
_CaseProcessorContactCard.LastName AS UICT_ProcessorLastName,
_CaseResponsibleContactCard.FirstName AS UICT_ResponsibleFirstName,
_CaseResponsibleContactCard.LastName AS UICT_ResponsibleLastName,
_CreatedByUserContactCard.FirstName AS UICT_CreatedByFirstName,
_CreatedByUserContactCard.LastName AS UICT_CreatedByLastName,
_LastChangeUserContactCard.FirstName AS UICT_ChangedByFirstName,
_LastChangeUserContactCard.LastName AS UICT_ChangedByLastName,
_ClosedByUserContactCard.FirstName AS UICT_ClosedByFirstName,
_ClosedByUserContactCard.LastName AS UICT_ClosedByLastName,
virtual NoteTypeListText : text200 AS virtualNoteTypeListTexttext200,
virtual PlannedCloseDateIsExceeded : boolean AS virtualPlannedCloseDateIsExceededboolean,
virtual PlannedCloseDateCriticality : char1 AS virtualPlannedCloseDateCriticalitychar1,
virtual UICT_FirstApprover : boolean AS virtualUICT_FirstApproverboolean,
virtual UICT_SecondApprover : boolean AS virtualUICT_SecondApproverboolean,
virtual SemanticObject : text40 AS virtualSemanticObjecttext40,
virtual UICT_IsApprovalRelevant : boolean AS virtualUICT_IsApprovalRelevantboolean
FROM R_CreditDecisionDocumentTP
LEFT OUTER JOIN C_CreditDecisionDocumentLog AS _CreditDecisionDocumentLog ON CaseUUID = _CreditDecisionDocumentLog.CaseUUID -- association [0..*]
LEFT OUTER JOIN C_CreditDecisionDocLinkdObj AS _CreditDecisionDocLinkdObj ON CaseUUID = _CreditDecisionDocLinkdObj.CaseUUID -- association [0..*]
LEFT OUTER JOIN C_CreditDecisionDocRjcnReason AS _CreditDecisionDocRjcnReason ON CaseID = _CreditDecisionDocRjcnReason.CaseID -- association [0..*]
LEFT OUTER JOIN C_CreditWorthinessScoreTrend AS _CreditWorthinessScoreTrend ON BusinessPartner = _CreditWorthinessScoreTrend.ChangeDocObject -- association [0..*]
LEFT OUTER JOIN C_CrdtMAcctAgingGrid AS _AgingGrid ON BusinessPartner = _AgingGrid.BusinessPartner AND CreditSegment = _AgingGrid.CreditSegment -- association [0..*]
LEFT OUTER JOIN C_CreditLimitTrend AS _CreditLimitTrend ON BusinessPartner = _CreditLimitTrend.ChangeDocObject AND CreditSegment = _CreditLimitTrend.CreditSegment -- association [0..*]
LEFT OUTER JOIN C_CreditDecisionDocumentSnpsht AS _Snapshot ON CaseUUID = _Snapshot.CaseUUID -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA