C_CreditLossAllowance
Analyze Credit Loss Allowances
C_CreditLossAllowance (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Accounting and Financial Close
C_CreditLossAllowance is a Consumption CDS View that provides data about "Analyze Credit Loss Allowances" in SAP S/4HANA. It reads from 1 data source (I_GeneralLedgerImpairment) and exposes 34 fields.
SAP Help Documentation
| Category | CDS Views for Transaction Data |
|---|---|
| Data Category | Query |
Purpose
This CDS view is designed to analyze credit loss allowances within a company's financial data. It provides a structured way to access and evaluate impairment data from the general ledger, focusing on various financial dimensions such as ledger, company code, fiscal year, and period. The view is tailored for consumption in analytical scenarios, allowing users to query and visualize credit loss information effectively. This CDS view provides the data to answer the following business questions: What are the credit loss allowances for specific ledgers and company codes within a given fiscal year and period? How do credit loss allowances vary across different business partners and countries? What is the distribution of credit loss allowances across different credit risk classes? How are credit loss allowances allocated to specific general ledger accounts, customers, cost centers, profit centers, functional areas, and segments? What is the impact of credit loss allowances on financial statements when viewed in different display currencies? How do credit loss allowances change over time, considering general ledger aging increments? 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 need to access it via another CDS view (privileged mode).
Structure
Parameters The parameters of the CDS view are as follows: P_CurrencyRole : This parameter is used to specify the currency type. P_CompanyCode : This parameter is used to specify the company code. P_Ledger : This parameter is used to specify the ledger. P_LossAllowanceLayout : This parameter is used to specify the layout that you use for the Analyze Loss Allowances app. P_FiscalYear : This parameter is used to specify the fiscal year. P_ToFiscalPeriod : This parameter is used to define the last period in your fiscal year. P_Language : This parameter is used to specify the language. P_BusinessUser : This parameter is used to specify the business user. S Important Fields Important fields in this view include the following: Field Name Description AMOUNTINDISPLAYCURRENCY Balance Amount LOSSALLOWANCEKEYFIGURE Key Figure CREDITRISKCLASS Risk Class LEDGER Ledger BUSINESSPARTNER Business Partner SEGMENT Segment FUNCTIONALAREA Functional Area GLACCOUNT Account Number COSTCENTER Cost Center PROFITCENTER Profit Center CUSTOMER Customer COUNTRY Country/Region Key COMPANYCODE Company Code FISCALYEAR Fiscal Year LOSSALLOWANCESORTSEQUENCEVALUE Sort Order DISPLAYCURRENCY Display Currency FISCALPERIOD Posting Period LOSSALLOWANCEKEYFIGURENAME Key Figure Name GENERALLEDGERAGINGINCREMENT Increment FUNCTIONALAREANAME Functional Area Name LEDGERNAME Ledger Name SEGMENTNAME Segment Name PROFITCENTERNAME Profit Center Name GLACCOUNTNAME G/L Account Name COSTCENTERNAME Cost Center Name CUSTOMERNAME Name of Customer COMPANYCODENAME Company Name
This CDS view is designed to analyze credit loss allowances within a company's financial data. It provides a structured way to access and evaluate impairment data from the general ledger, focusing on various financial dimensions such as ledger, company code, fiscal year, and period. The view is tailored for consumption in analytical scenarios, allowing users to query and visualize credit loss information effectively. This CDS view provides the data to answer the following business questions: What are the credit loss allowances for specific ledgers and company codes within a given fiscal year and period? How do credit loss allowances vary across different business partners and countries? What is the distribution of credit loss allowances across different credit risk classes? How are credit loss allowances allocated to specific general ledger accounts, customers, cost centers, profit centers, functional areas, and segments? What is the impact of credit loss allowances on financial statements when viewed in different display currencies? How do credit loss allowances change over time, considering general ledger aging increments? 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 need to access it via another CDS view (privileged mode).
Structure
Parameters The parameters of the CDS view are as follows: P_CurrencyRole : This parameter is used to specify the currency type. P_CompanyCode : This parameter is used to specify the company code. P_Ledger : This parameter is used to specify the ledger. P_LossAllowanceLayout : This parameter is used to specify the layout that you use for the Analyze Loss Allowances app. P_FiscalYear : This parameter is used to specify the fiscal year. P_ToFiscalPeriod : This parameter is used to define the last period in your fiscal year. P_Language : This parameter is used to specify the language. P_BusinessUser : This parameter is used to specify the business user. S Important Fields Important fields in this view include the following: Field Name Description AMOUNTINDISPLAYCURRENCY Balance Amount LOSSALLOWANCEKEYFIGURE Key Figure CREDITRISKCLASS Risk Class LEDGER Ledger BUSINESSPARTNER Business Partner SEGMENT Segment FUNCTIONALAREA Functional Area GLACCOUNT Account Number COSTCENTER Cost Center PROFITCENTER Profit Center CUSTOMER Customer COUNTRY Country/Region Key COMPANYCODE Company Code FISCALYEAR Fiscal Year LOSSALLOWANCESORTSEQUENCEVALUE Sort Order DISPLAYCURRENCY Display Currency FISCALPERIOD Posting Period LOSSALLOWANCEKEYFIGURENAME Key Figure Name GENERALLEDGERAGINGINCREMENT Increment FUNCTIONALAREANAME Functional Area Name LEDGERNAME Ledger Name SEGMENTNAME Segment Name PROFITCENTERNAME Profit Center Name GLACCOUNTNAME G/L Account Name COSTCENTERNAME Cost Center Name CUSTOMERNAME Name of Customer COMPANYCODENAME Company Name
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Accounting and Financial Close |
| Application Component | FI-GL-GL-G |
| Capabilities | Analytical Query |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GeneralLedgerImpairment | I_GeneralLedgerImpairment | from |
Parameters (8)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu | |
| P_BusinessUser | syuname | |
| P_LossAllowanceLayout | fins_key_figure_layout | |
| P_Ledger | fis_rldnr | |
| P_CompanyCode | fis_bukrs | |
| P_FiscalYear | gjahr | |
| P_ToFiscalPeriod | fis_period_to | |
| P_CurrencyRole | fis_curtp |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCREDITLOSSALLW | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.supportedCapabilities | #ANALYTICAL_QUERY | view | |
| Analytics.query | true | view | |
| Analytics.dataExtraction.enabled | false | view | |
| EndUserText.label | Analyze Credit Loss Allowances | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| lookupEntityP_CloudDefaultLayout | ||||
| resultElementLedger | ||||
| resultElementCompanyCode | ||||
| resultElementFiscalYear | ||||
| resultElementFiscalPeriod | ||||
| resultElementCompanyCodeCurrencyRole | ||||
| P_Ledger | ||||
| P_CompanyCode | ||||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| LedgerName | Ledger Name | |||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Name of Company Code or Company | |
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| FiscalPeriod | FiscalPeriod | Posting Period | ||
| BusinessPartner | BusinessPartner | Business Partner Number | ||
| Country | Country | Country/Region Key | ||
| CreditRiskClass | CreditRiskClass | Credit Risk Class | ||
| GeneralLedgerAgingIncrement | GeneralLedgerAgingIncrement | Aging Increment | ||
| GLAccount | GLAccount | General Ledger | ||
| GLAccountName | G/L Account Name | |||
| Customer | Customer | Customer Number | ||
| CustomerName | _Customer | CustomerName | Name of Customer | |
| CostCenter | CostCenter | Cost Center | ||
| CostCenterName | Cost Center Name | |||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProfitCenterName | Description of Profit Center | |||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| FunctionalAreaName | Name of the Functional Area | |||
| Segment | Segment | Segment for Segmental Reporting | ||
| SegmentName | Segment Name | |||
| LossAllowanceSortSequenceValue | LossAllowanceSortSequenceValue | Sorting Order of Key Figures in a Layout | ||
| LossAllowanceKeyFigure | GLImpairment | LossAllowanceKeyFigure | Key Figure | |
| LossAllowanceKeyFigureName | Name of Key Figure | |||
| DisplayCurrency | GLImpairment | DisplayCurrency | Display Currency | |
| AmountInDisplayCurrency | Balance Amount |
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_CreditLossAllowance.
-- 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: CCREDITLOSSALLW
-- Parameters: P_Language : sylangu, P_BusinessUser : syuname, P_LossAllowanceLayout : fins_key_figure_layout, P_Ledger : fis_rldnr, P_CompanyCode : fis_bukrs, P_FiscalYear : gjahr, P_ToFiscalPeriod : fis_period_to, P_CurrencyRole : fis_curtp
CREATE VIEW C_CreditLossAllowance AS
SELECT
lookupEntity: 'P_CloudDefaultLayout' AS lookupEntityP_CloudDefaultLayout,
resultElement: 'Ledger' AS resultElementLedger,
resultElement: 'CompanyCode' AS resultElementCompanyCode,
resultElement: 'FiscalYear' AS resultElementFiscalYear,
resultElement: 'FiscalPeriod' AS resultElementFiscalPeriod,
resultElement: 'CompanyCodeCurrencyRole' AS resultElementCompanyCodeCurrencyRole,
binding: [ { targetElement : 'Ledger' , type : #PARAMETER, value : 'P_Ledger' AS P_Ledger,
P_CompanyCode: $parameters.P_CompanyCode AS P_CompanyCode,
CompanyCode,
_Ledger._Text[1: Language = $parameters.P_Language].LedgerName AS LedgerName,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
FiscalYear,
FiscalPeriod,
BusinessPartner,
Country,
CreditRiskClass,
GeneralLedgerAgingIncrement,
GLAccount,
_GLAccount._Text[1: Language = $parameters.P_Language].GLAccountName AS GLAccountName,
Customer,
_Customer.CustomerName AS CustomerName,
CostCenter,
_CostCenter._Text[1:Language = $parameters.P_Language].CostCenterName AS CostCenterName,
ProfitCenter,
_ProfitCenter._Text[1:Language = $parameters.P_Language].ProfitCenterName AS ProfitCenterName,
FunctionalArea,
_FunctionalArea._Text[1:Language = $parameters.P_Language].FunctionalAreaName AS FunctionalAreaName,
Segment,
_Segment._Text[1:Language = $parameters.P_Language].SegmentName AS SegmentName,
LossAllowanceSortSequenceValue,
GLImpairment.LossAllowanceKeyFigure AS LossAllowanceKeyFigure,
_KeyFigure._Text[1:Language = $parameters.P_Language].LossAllowanceKeyFigureName AS LossAllowanceKeyFigureName,
GLImpairment.DisplayCurrency AS DisplayCurrency,
cast ( GLImpairment.AmountInDisplayCurrency as fis_balance_amount preserving type) AS AmountInDisplayCurrency
FROM I_GeneralLedgerImpairment
;
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