P_FI_CLS_IMP_RL
P_FI_CLS_IMP_RL is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_FIVALUATIONRESULTLIST) and exposes 119 fields with key field JrnlPerdEndClsgRunResultUUID. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_FIVALUATIONRESULTLIST | rl | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SubLedgerAccLineItemTypeT | _slalittyt | rl.SubLedgerAcctLineItemType = _slalittyt.SubLedgerAcctLineItemType and _slalittyt.Language = $session.system_language |
| [0..1] | I_FinClsgLineItemDetailStatusT | StatusDetailText | rl.FinClosingLineItemDetailStatus = StatusDetailText.FinClosingLineItemDetailStatus and StatusDetailText.Language = $session.system_language |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_GLAccountInCompanyCode | _GLAccountInCompanyCode | $projection.CompanyCode = _GLAccountInCompanyCode.CompanyCode and $projection.GLAccount = _GLAccountInCompanyCode.GLAccount |
| [0..*] | I_ProfitCenter | _CurrentProfitCenter | $projection.ControllingArea = _CurrentProfitCenter.ControllingArea and $projection.ProfitCenter = _CurrentProfitCenter.ProfitCenter and _CurrentProfitCenter.ValidityStartDate <= $session.system_date and _CurrentProfitCenter.ValidityEndDate >= $session.system_date |
| [0..1] | I_FinClsgGroupingRule | _GroupingRule | $projection.GROUPRULE = _GroupingRule.FinancialClosingGroupingRule |
| [0..*] | I_FinClsgGroupingRuleStep | _GroupingRuleStep | $projection.GROUPRULESTEP = _GroupingRuleStep.FinClosingGroupingRuleStep and $projection.GROUPRULE = _GroupingRuleStep.FinClosingGroupingRuleStep |
| [0..*] | I_LossAllowanceAgingIncrementT | _AgingIncrement | $projection.agingscope = _AgingIncrement.GeneralLedgerAgingScope and $projection.AGINGINCREMENT = _AgingIncrement.GeneralLedgerAgingIncrement |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (119)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | JrnlPerdEndClsgRunResultUUID | JrnlPerdEndClsgRunResultUUID | Result List UUID | |
| Ledger | P_FIVALUATIONRESULTLIST | Ledger | Ledger | |
| CompanyCode | P_FIVALUATIONRESULTLIST | CompanyCode | Receiver Company Code | |
| FiscalYear | P_FIVALUATIONRESULTLIST | FiscalYear | G/L Fiscal Year | |
| ALLOWANCETYPE | ||||
| JrnlPeriodEndClosingRunLogUUID | JrnlPeriodEndClosingRunLogUUID | Closing Run UUID | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| AmountInGlobalCurrency | AmountInGlobalCurrency | Amount in Global Currency | ||
| FreeDefinedCurrency1 | FreeDefinedCurrency1 | Freely Defined Currency 1 | ||
| AmountInFreeDefinedCurrency1 | AmountInFreeDefinedCurrency1 | Amount in Freely Defined Currency 1 | ||
| FreeDefinedCurrency2 | FreeDefinedCurrency2 | Freely Defined Currency 2 | ||
| AmountInFreeDefinedCurrency2 | AmountInFreeDefinedCurrency2 | Amount in Freely Defined Currency 2 | ||
| FreeDefinedCurrency3 | FreeDefinedCurrency3 | Freely Defined Currency 3 | ||
| AmountInFreeDefinedCurrency3 | AmountInFreeDefinedCurrency3 | Amount in Freely Defined Currency 3 | ||
| FreeDefinedCurrency4 | FreeDefinedCurrency4 | Freely Defined Currency 4 | ||
| AmountInFreeDefinedCurrency4 | AmountInFreeDefinedCurrency4 | Amount in Freely Defined Currency 4 | ||
| FreeDefinedCurrency5 | FreeDefinedCurrency5 | Freely Defined Currency 5 | ||
| AmountInFreeDefinedCurrency5 | AmountInFreeDefinedCurrency5 | Amount in Freely Defined Currency 5 | ||
| FreeDefinedCurrency6 | FreeDefinedCurrency6 | Freely Defined Currency 6 | ||
| AmountInFreeDefinedCurrency6 | AmountInFreeDefinedCurrency6 | Amount in Freely Defined Currency 6 | ||
| FreeDefinedCurrency7 | FreeDefinedCurrency7 | Freely Defined Currency 7 | ||
| AmountInFreeDefinedCurrency7 | AmountInFreeDefinedCurrency7 | Amount in Freely Defined Currency 7 | ||
| FreeDefinedCurrency8 | FreeDefinedCurrency8 | Freely Defined Currency 8 | ||
| AmountInFreeDefinedCurrency8 | AmountInFreeDefinedCurrency8 | Amount in Freely Defined Currency 8 | ||
| Currency | ||||
| FinancialTransactionType | FinancialTransactionType | Transact. Type | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| Supplier | P_FIVALUATIONRESULTLIST | Supplier | Supplier | |
| Customer | P_FIVALUATIONRESULTLIST | Customer | Sold-to Party | |
| BusinessPartner | ||||
| BusinessPartnerID | ||||
| BUSINESSPARTNERNAME | ||||
| HouseBank | HouseBank | House Bank | ||
| HouseBankAccount | HouseBankAccount | House Bank Account | ||
| CostCtrActivityType | CostCtrActivityType | Activity Type | ||
| OrderID | OrderID | Order ID | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| RelatedNetworkActivity | RelatedNetworkActivity | Netwk activity | ||
| BusinessProcess | BusinessProcess | Business Process | ||
| CostCenter | CostCenter | Cost Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| Segment | Segment | Segment number | ||
| PartnerCostCenter | PartnerCostCenter | Sender Cost Ctr | ||
| PartnerProfitCenter | PartnerProfitCenter | Profit Center | ||
| PartnerFunctionalArea | PartnerFunctionalArea | Rec. Fntcl Area | ||
| PartnerBusinessArea | PartnerBusinessArea | Trdg Part.BA | ||
| PartnerCompany | PartnerCompany | Trading Partner | ||
| CostObject | CostObject | Cost Object | ||
| PartnerSegment | PartnerSegment | Partner Segment | ||
| JointVenture | JointVenture | Joint venture | ||
| JointVentureEquityGroup | JointVentureEquityGroup | Joint Venture Equity Group | ||
| JointVentureCostRecoveryCode | JointVentureCostRecoveryCode | Recovery Ind. | ||
| JointVenturePartner | JointVenturePartner | Joint Venture Partner | ||
| PartnerVenture | PartnerVenture | PartnerVenture | ||
| FinancialValuationObjectType | FinancialValuationObjectType | Type of Fin.Val.Obj. | ||
| FinancialValuationObject | FinancialValuationObject | Fin Valuation Object | ||
| FinancialValuationSubobject | FinancialValuationSubobject | Fin.Val.Sub.Object | ||
| REBusinessEntity | REBusinessEntity | RE Business Entity | ||
| RealEstateBuilding | RealEstateBuilding | Building | ||
| RealEstateProperty | RealEstateProperty | Land | ||
| GLAccount | GLAccount | General Ledger | ||
| OffsettingAccount | OffsettingAccount | Offsetting Acct | ||
| SubLedgerAcctLineItemType | P_FIVALUATIONRESULTLIST | SubLedgerAcctLineItemType | SLALineItemType | |
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| IsOpenItemManaged | IsOpenItemManaged | Open Item Management | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingDocFiscalYear | ClearingDocFiscalYear | Fiscal Year of Clearing Journal Entry | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| PrdcssrJournalEntryCompanyCode | PrdcssrJournalEntryCompanyCode | Predecessor Journal Entry Company Code | ||
| PrdcssrJournalEntryFiscalYear | Predecessor Journal Entry Fiscal Year | |||
| PredecessorJournalEntry | Predecessor Journal Entry | |||
| PredecessorJournalEntryItem | Predecessor Journal Entry Item | |||
| InvoiceItemReference | InvoiceItemReference | Item | ||
| InvoiceReference | InvoiceReference | Invoice Reference | ||
| InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | ||
| FollowOnDocumentType | FollowOnDocumentType | Follow-On Document Type | ||
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| FinClsgRunRsltFDCrcy1 | FinClsgRunRsltFDCrcy1 | |||
| FinClsgRunRsltFDCrcy2 | FinClsgRunRsltFDCrcy2 | |||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| FinClosingRunIsTestExecution | FinClosingRunIsTestExecution | Test Run | ||
| FinancialClosingLineItemType | FinancialClosingLineItemType | Line Item Type | ||
| FinClosingLineItemDetailStatus | FinClosingLineItemDetailStatus | Status Detail | ||
| GROUPID | ||||
| FinClsgLineItmDetailStatusName | StatusDetailText | FinClsgLineItmDetailStatusName | ||
| GROUPRULE | ||||
| FinancialClosingLineItemStatus | P_FIVALUATIONRESULTLIST | FinancialClosingLineItemStatus | Status | |
| GROUPRULESTEP | ||||
| ValuationRuleAndStep | ||||
| FinClosingEntryCalculationType | FinClosingEntryCalculationType | Calc. Line Type | ||
| CreditRiskClass | ||||
| GeneralLedgerAgingIncrement | GeneralLedgerAgingIncrement | Increment | ||
| AGINGINCREMENT | Increment | |||
| agingscope | ||||
| ExpectedCreditLossPercent | ExpectedCreditLossPercent | ECL Rate (%) | ||
| ProbabilityOfDefault | ECL Rate (%) | |||
| AmountInTargetCurrency | Amount in Currency 3 | |||
| CummulatedLossAllowance | Amount in Currency 2 | |||
| PrePostLossAllowance | Amount in Currency 1 | |||
| LOSSALLOWANCETOBEPOSTED | Amount in Currency 4 | |||
| NetDueDate | NetDueDate | Net Due Date | ||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _GLAccountInCompanyCode | _GLAccountInCompanyCode | |||
| _CurrentProfitCenter | _CurrentProfitCenter | |||
| _GroupingRule | _GroupingRule | |||
| _GroupingRuleStep | _GroupingRuleStep | |||
| _AgingIncrement | _AgingIncrement |
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_FI_CLS_IMP_RL.
-- 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 P_FI_CLS_IMP_RL AS
SELECT
JrnlPerdEndClsgRunResultUUID,
rl.Ledger AS Ledger,
rl.CompanyCode AS CompanyCode,
rl.FiscalYear AS FiscalYear,
cast ( _slalittyt.SubLedgerAcctLineItemTypeName as allowancetype ) AS ALLOWANCETYPE,
JrnlPeriodEndClosingRunLogUUID,
CompanyCodeCurrency,
AmountInCompanyCodeCurrency,
GlobalCurrency,
AmountInGlobalCurrency,
FreeDefinedCurrency1,
AmountInFreeDefinedCurrency1,
FreeDefinedCurrency2,
AmountInFreeDefinedCurrency2,
FreeDefinedCurrency3,
AmountInFreeDefinedCurrency3,
FreeDefinedCurrency4,
AmountInFreeDefinedCurrency4,
FreeDefinedCurrency5,
AmountInFreeDefinedCurrency5,
FreeDefinedCurrency6,
AmountInFreeDefinedCurrency6,
FreeDefinedCurrency7,
AmountInFreeDefinedCurrency7,
FreeDefinedCurrency8,
AmountInFreeDefinedCurrency8,
cast ( FinClsgRunRsltFDCrcy1 as targetcurrency preserving type ) AS Currency,
FinancialTransactionType,
ProfitCenter,
SalesOrder,
SalesOrderItem,
_Supplier.SupplierName AS SupplierName,
rl.Supplier AS Supplier,
rl.Customer AS Customer,
_Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
cast ( _Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartner as bpid ) AS BusinessPartnerID,
cast ( _Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartnerName as bpname ) AS BUSINESSPARTNERNAME,
HouseBank,
HouseBankAccount,
CostCtrActivityType,
OrderID,
WBSElementInternalID,
ProjectNetwork,
RelatedNetworkActivity,
BusinessProcess,
CostCenter,
FunctionalArea,
BusinessArea,
ControllingArea,
Segment,
PartnerCostCenter,
PartnerProfitCenter,
PartnerFunctionalArea,
PartnerBusinessArea,
PartnerCompany,
CostObject,
PartnerSegment,
JointVenture,
JointVentureEquityGroup,
JointVentureCostRecoveryCode,
JointVenturePartner,
PartnerVenture,
FinancialValuationObjectType,
FinancialValuationObject,
FinancialValuationSubobject,
REBusinessEntity,
RealEstateBuilding,
RealEstateProperty,
GLAccount,
OffsettingAccount,
rl.SubLedgerAcctLineItemType AS SubLedgerAcctLineItemType,
ChartOfAccounts,
PostingDate,
AccountingDocumentCategory,
IsOpenItemManaged,
ClearingDate,
ClearingAccountingDocument,
ClearingDocFiscalYear,
FiscalPeriod,
PrdcssrJournalEntryCompanyCode,
cast( PrdcssrJournalEntryFiscalYear as cls_val_original_fiscal_year preserving type ) AS PrdcssrJournalEntryFiscalYear,
cast( PredecessorJournalEntry as cls_val_original_journal_entry preserving type ) AS PredecessorJournalEntry,
cast( PredecessorJournalEntryItem as cls_val_original_journal_item preserving type ) AS PredecessorJournalEntryItem,
InvoiceItemReference,
InvoiceReference,
InvoiceReferenceFiscalYear,
FollowOnDocumentType,
AccountingDocumentItem,
FinClsgRunRsltFDCrcy1,
FinClsgRunRsltFDCrcy2,
ExchangeRate,
FinClosingRunIsTestExecution,
FinancialClosingLineItemType,
FinClosingLineItemDetailStatus,
cast ( FinancialClosingGrouping as cls_run_group_id preserving type ) AS GROUPID,
StatusDetailText.FinClsgLineItmDetailStatusName AS FinClsgLineItmDetailStatusName,
cast ( FinancialClosingGroupingRule as fins_val_grouping_rule preserving type ) AS GROUPRULE,
rl.FinancialClosingLineItemStatus AS FinancialClosingLineItemStatus,
cast ( FinClosingGroupingRuleStep as fins_val_grouping_rule_step preserving type ) AS GROUPRULESTEP,
cast( concat( concat(rl.FinancialClosingValuationRule, '/' ) ,rl.FinClosingValuationRuleStep) as cls_val_rule_and_step preserving type ) AS ValuationRuleAndStep,
FinClosingEntryCalculationType,
cast( rl.CreditRiskClass as cls_val_risk_class preserving type ) AS CreditRiskClass,
GeneralLedgerAgingIncrement,
cast ( GeneralLedgerAgingIncrement as cls_run_valn_agincrmt ) AS AGINGINCREMENT,
cast ( ' ' as fins_imp_aging ) AS agingscope,
ExpectedCreditLossPercent,
cast( ExpectedCreditLossPercent as fins_imp_probability_of_deflt preserving type ) AS ProbabilityOfDefault,
cast( FinClsgRunRsltAmtInFDCrcy3 as val_amount preserving type ) AS AmountInTargetCurrency,
cast ( FinClsgRunRsltAmtInFDCrcy2 as cummulatedlossallowance preserving type ) AS CummulatedLossAllowance,
cast ( FinClsgRunRsltAmtInFDCrcy1 as prepostlossallowance preserving type ) AS PrePostLossAllowance,
cast ( FinClsgRunRsltAmtInFDCrcy4 as lossallowancetobeposted preserving type ) AS LOSSALLOWANCETOBEPOSTED,
NetDueDate
FROM P_FIVALUATIONRESULTLIST AS rl
LEFT OUTER JOIN I_SubLedgerAccLineItemTypeT AS _slalittyt ON rl.SubLedgerAcctLineItemType = _slalittyt.SubLedgerAcctLineItemType AND _slalittyt.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_FinClsgLineItemDetailStatusT AS StatusDetailText ON rl.FinClosingLineItemDetailStatus = StatusDetailText.FinClosingLineItemDetailStatus AND StatusDetailText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _GLAccountInCompanyCode ON CompanyCode = _GLAccountInCompanyCode.CompanyCode AND GLAccount = _GLAccountInCompanyCode.GLAccount -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _CurrentProfitCenter ON ControllingArea = _CurrentProfitCenter.ControllingArea AND ProfitCenter = _CurrentProfitCenter.ProfitCenter AND _CurrentProfitCenter.ValidityStartDate <= $session.system_date AND _CurrentProfitCenter.ValidityEndDate >= $session.system_date -- association [0..*]
LEFT OUTER JOIN I_FinClsgGroupingRule AS _GroupingRule ON GROUPRULE = _GroupingRule.FinancialClosingGroupingRule -- association [0..1]
LEFT OUTER JOIN I_FinClsgGroupingRuleStep AS _GroupingRuleStep ON GROUPRULESTEP = _GroupingRuleStep.FinClosingGroupingRuleStep AND GROUPRULE = _GroupingRuleStep.FinClosingGroupingRuleStep -- association [0..*]
LEFT OUTER JOIN I_LossAllowanceAgingIncrementT AS _AgingIncrement ON agingscope = _AgingIncrement.GeneralLedgerAgingScope AND AGINGINCREMENT = _AgingIncrement.GeneralLedgerAgingIncrement -- 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