C_CreditLossAllowance

DDL: C_CREDITLOSSALLOWANCE SQL: CCREDITLOSSALLW Type: view CONSUMPTION

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

CategoryCDS Views for Transaction Data
Data CategoryQuery
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-GL-GL-G
CapabilitiesAnalytical Query
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_GeneralLedgerImpairment I_GeneralLedgerImpairment from

Parameters (8)

NameTypeDefault
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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;