P_ProcessedImpairmentLineItem

DDL: P_PROCESSEDIMPAIRMENTLINEITEM SQL: PPRCIMPLI Type: view COMPOSITE

P_ProcessedImpairmentLineItem is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_LedgerCompanyCodeCrcyRoles, P_GLACCImpairmentLineItem) and exposes 72 fields with key fields CompanyCode, FiscalYear, FiscalPeriod.

Data Sources (2)

SourceAliasJoin Type
I_LedgerCompanyCodeCrcyRoles CurrencyRoles inner
P_GLACCImpairmentLineItem P_GLACCImpairmentLineItem from

Parameters (6)

NameTypeDefault
P_Ledger fis_rldnr
P_CompanyCode fis_bukrs
P_CurrencyRole fis_curtp
P_LossAllowanceLayout fins_key_figure_layout
P_FiscalYear gjahr
P_FiscalPeriod poper

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PPRCIMPLI view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (72)

KeyFieldSource TableSource FieldDescription
Ledger LineItems Ledger Ledger
CompanyCode LineItems CompanyCode Receiver Company Code
FiscalYear FiscalYear G/L Fiscal Year
FiscalPeriod FiscalPeriod Tax period
Country Country Venue: Ctry/Reg
CreditRiskClass CreditRiskClass Credit Risk Class
GeneralLedgerAgingIncrement GeneralLedgerAgingIncrement Increment
CompanyCodeCurrencyRole CompanyCodeCurrencyRole
GlobalCurrencyRole GlobalCurrencyRole
FreeDefinedCurrency1Role FreeDefinedCurrency1Role
FreeDefinedCurrency2Role FreeDefinedCurrency2Role
FreeDefinedCurrency3Role FreeDefinedCurrency3Role
FreeDefinedCurrency4Role FreeDefinedCurrency4Role
FreeDefinedCurrency5Role FreeDefinedCurrency5Role
FreeDefinedCurrency6Role FreeDefinedCurrency6Role
FreeDefinedCurrency7Role FreeDefinedCurrency7Role
FreeDefinedCurrency8Role FreeDefinedCurrency8Role
GLAccount GLAccount General Ledger
BusinessPartner BusinessPartner Issuing Authority
Customer Customer Sold-to Party
LossAllowanceSortSequenceValue LossAllowanceSortSequenceValue
LossAllowanceKeyFigure LossAllowanceKeyFigure
CostCenter CostCenter Cost Center
ProfitCenter ProfitCenter Profit 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
PartnerSegment PartnerSegment Partner Segment
SubLedgerAcctLineItemType SubLedgerAcctLineItemType SLALineItemType
P_LedgerasLedger Local Crcy Amt
KEY CompanyCode Receiver Company Code
KEY FiscalYear G/L Fiscal Year
KEY FiscalPeriod Tax period
Country Venue: Ctry/Reg
CreditRiskClass Credit Risk Class
GeneralLedgerAgingIncrement Increment
CompanyCodeCurrencyRole
GlobalCurrencyRole
FreeDefinedCurrency1Role
FreeDefinedCurrency2Role
FreeDefinedCurrency3Role
FreeDefinedCurrency4Role
FreeDefinedCurrency5Role
FreeDefinedCurrency6Role
FreeDefinedCurrency7Role
FreeDefinedCurrency8Role
GLAccount General Ledger
BusinessPartner Issuing Authority
Customer Sold-to Party
LossAllowanceSortSequenceValue LossAllowanceSortSequenceValue
LossAllowanceKeyFigure LossAllowanceKeyFigure
CostCenter Cost Center
ProfitCenter Profit Center
FunctionalArea Sendr Fctl Area
BusinessArea Business Area
ControllingArea Controlling Area
Segment Segment number
PartnerCostCenter Sender Cost Ctr
PartnerProfitCenter Profit Center
PartnerFunctionalArea Rec. Fntcl Area
PartnerBusinessArea Trdg Part.BA
PartnerCompany Trading Partner
PartnerSegment Partner Segment
SubLedgerAcctLineItemType SubLedgerAcctLineItemType SLALineItemType
DisplayCurrency
AmountInDisplayCurrency

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_ProcessedImpairmentLineItem.
-- 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: PPRCIMPLI
-- Parameters: P_Ledger : fis_rldnr, P_CompanyCode : fis_bukrs, P_CurrencyRole : fis_curtp, P_LossAllowanceLayout : fins_key_figure_layout, P_FiscalYear : gjahr, P_FiscalPeriod : poper

CREATE VIEW P_ProcessedImpairmentLineItem AS
SELECT
  LineItems.Ledger AS Ledger,
  LineItems.CompanyCode AS CompanyCode,
  FiscalYear,
  FiscalPeriod,
  Country,
  CreditRiskClass,
  GeneralLedgerAgingIncrement,
  CompanyCodeCurrencyRole,
  GlobalCurrencyRole,
  FreeDefinedCurrency1Role,
  FreeDefinedCurrency2Role,
  FreeDefinedCurrency3Role,
  FreeDefinedCurrency4Role,
  FreeDefinedCurrency5Role,
  FreeDefinedCurrency6Role,
  FreeDefinedCurrency7Role,
  FreeDefinedCurrency8Role,
  GLAccount,
  BusinessPartner,
  Customer,
  LossAllowanceSortSequenceValue,
  LossAllowanceKeyFigure,
  CostCenter,
  ProfitCenter,
  FunctionalArea,
  BusinessArea,
  ControllingArea,
  Segment,
  PartnerCostCenter,
  PartnerProfitCenter,
  PartnerFunctionalArea,
  PartnerBusinessArea,
  PartnerCompany,
  PartnerSegment,
  SubLedgerAcctLineItemType,
  case when CompanyCodeCurrencyRole = :P_CurrencyRole then cast(AmountInCompanyCodeCurrency as farp_amount_display_crcy preserving type) when GlobalCurrencyRole = :P_CurrencyRole then cast(AmountInGlobalCurrency as farp_amount_display_crcy preserving type) when FreeDefinedCurrency1Role = :P_CurrencyRole then cast(AmountInFreeDefinedCurrency1 as farp_amount_display_crcy preserving type) when FreeDefinedCurrency2Role = :P_CurrencyRole then cast(AmountInFreeDefinedCurrency2 as farp_amount_display_crcy preserving type) when FreeDefinedCurrency3Role = :P_CurrencyRole then cast(AmountInFreeDefinedCurrency3 as farp_amount_display_crcy preserving type) when FreeDefinedCurrency4Role = :P_CurrencyRole then cast(AmountInFreeDefinedCurrency4 as farp_amount_display_crcy preserving type) when FreeDefinedCurrency5Role = :P_CurrencyRole then cast(AmountInFreeDefinedCurrency5 as farp_amount_display_crcy preserving type) when FreeDefinedCurrency6Role = :P_CurrencyRole then cast(AmountInFreeDefinedCurrency6 as farp_amount_display_crcy preserving type) when FreeDefinedCurrency7Role = :P_CurrencyRole then cast(AmountInFreeDefinedCurrency7 as farp_amount_display_crcy preserving type) when FreeDefinedCurrency8Role = :P_CurrencyRole then cast(AmountInFreeDefinedCurrency8 as farp_amount_display_crcy preserving type) else cast('0' as farp_amount_display_crcy) end as AmountInDisplayCurrency AS P_LedgerasLedger,
  cast(' ' as vdm_v_display_currency) AS DisplayCurrency,
  cast(0 as farp_amount_display_crcy) AS AmountInDisplayCurrency
FROM P_GLACCImpairmentLineItem
INNER JOIN I_LedgerCompanyCodeCrcyRoles AS CurrencyRoles ON /* join condition not captured in parsed metadata */
;