P_Materialledger_Curtp_Lit
P_Materialledger_Curtp_Lit is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_MatlLedgerValnCrcyRole, P_AcdocAUnionD_Cube) and exposes 102 fields with key fields SourceLedger, rbukrs, rldnr, racct, gjahr. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_MatlLedgerValnCrcyRole | _curtp | inner |
| P_AcdocAUnionD_Cube | it | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaterialValuation | _MaterialValuation | it.kalnr = _MaterialValuation.CostEstimate |
| [0..1] | I_BusinessTransactionType | _BusinessTransactionType | it.bttype = _BusinessTransactionType.BusinessTransactionType |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMALCURTPLIT | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (102)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | P_AcdocAUnionD_Cube | rldnr_pers | Source Ledger |
| KEY | rbukrs | P_AcdocAUnionD_Cube | rbukrs | Company Code |
| KEY | rldnr | P_AcdocAUnionD_Cube | rldnr | Ledger (Compat.) |
| KEY | racct | P_AcdocAUnionD_Cube | racct | GL Account From |
| KEY | gjahr | P_AcdocAUnionD_Cube | gjahr | Settlement Year |
| KEY | belnr | P_AcdocAUnionD_Cube | belnr | SD Document |
| KEY | docln | P_AcdocAUnionD_Cube | docln | Matching Document Line Item |
| KEY | matnr | P_AcdocAUnionD_Cube | matnr | Vehicle Model |
| ktopl | P_AcdocAUnionD_Cube | ktopl | G/L Chart of Accounts | |
| blart | P_AcdocAUnionD_Cube | blart | Rep. rec. doc. type | |
| bwkey | P_AcdocAUnionD_Cube | bwkey | Valuation Area | |
| bwtar | P_AcdocAUnionD_Cube | bwtar | Valuation Type | |
| poper | P_AcdocAUnionD_Cube | poper | Posting periods | |
| ryear | P_AcdocAUnionD_Cube | ryear | Ref. Year1 | |
| budat | P_AcdocAUnionD_Cube | budat | Posting Date | |
| awref | P_AcdocAUnionD_Cube | awref | Reference Doc. | |
| aworg | P_AcdocAUnionD_Cube | aworg | Refer. Org.Unit | |
| awsys | P_AcdocAUnionD_Cube | awsys | Logical System | |
| awtyp | P_AcdocAUnionD_Cube | awtyp | Reference Document Type | |
| drcrk | P_AcdocAUnionD_Cube | drcrk | Debit/Credit | |
| bldat | P_AcdocAUnionD_Cube | bldat | Journal Entry Date | |
| bttype | P_AcdocAUnionD_Cube | bttype | Business Transaction Type | |
| prctr | P_AcdocAUnionD_Cube | prctr | Profit Centers | |
| rcntr | P_AcdocAUnionD_Cube | rcntr | Cost Center | |
| segment | P_AcdocAUnionD_Cube | segment | Segment number | |
| usnam | P_AcdocAUnionD_Cube | usnam | User Name | |
| timestamp | P_AcdocAUnionD_Cube | timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | |
| fiscyearper | P_AcdocAUnionD_Cube | fiscyearper | Period/Year | |
| ebeln | P_AcdocAUnionD_Cube | ebeln | Source PurchDoc | |
| aufnr | P_AcdocAUnionD_Cube | aufnr | SettlementOrder | |
| ktosl | P_AcdocAUnionD_Cube | ktosl | Transaction | |
| werks | P_AcdocAUnionD_Cube | werks | Receiving Plant | |
| kokrs | P_AcdocAUnionD_Cube | kokrs | Org. Value | |
| kalnr | P_AcdocAUnionD_Cube | kalnr | ProdCostEst.No. | |
| sobkz | P_AcdocAUnionD_Cube | sobkz | Special Stock | |
| periv | P_AcdocAUnionD_Cube | periv | FYear Variant | |
| mlptyp | P_AcdocAUnionD_Cube | mlptyp | Orig. proc.cat. | |
| mlcateg | P_AcdocAUnionD_Cube | mlcateg | Category | |
| bstat | P_AcdocAUnionD_Cube | bstat | Document Status | |
| MaterialPriceControl | P_AcdocAUnionD_Cube | vprsv | Price control | |
| rhcur | P_AcdocAUnionD_Cube | rhcur | Local Currency | |
| hslendashsl | ||||
| hvkwrt | P_AcdocAUnionD_Cube | hvkwrt | Value SP LCrcy | |
| rkcur | P_AcdocAUnionD_Cube | rkcur | Ledger curr. | |
| kslendasksl | ||||
| rocur | P_AcdocAUnionD_Cube | rocur | Free Defined Crcy 1 | |
| oslendasosl | ||||
| rvcur | P_AcdocAUnionD_Cube | rvcur | Free Defined Crcy 4 | |
| vslendasvsl | ||||
| rbcur | P_AcdocAUnionD_Cube | rbcur | Free Defined Crcy 3 | |
| bslendasbsl | ||||
| rccur | P_AcdocAUnionD_Cube | rccur | Third Currency | |
| cslendascsl | ||||
| rdcur | P_AcdocAUnionD_Cube | rdcur | Free Defined Crcy 5 | |
| dslendasdsl | ||||
| recur | P_AcdocAUnionD_Cube | recur | Free Defined Crcy 6 | |
| eslendasesl | ||||
| rfcur | P_AcdocAUnionD_Cube | rfcur | Free Defined Crcy 7 | |
| fslendasfsl | ||||
| rgcur | P_AcdocAUnionD_Cube | rgcur | Free Defined Crcy 8 | |
| gslendasgsl | ||||
| runit | P_AcdocAUnionD_Cube | runit | Unit/Area | |
| msl | P_AcdocAUnionD_Cube | msl | Stat. KeyFig. Qty | |
| mfsl | P_AcdocAUnionD_Cube | mfsl | Fixed quantity | |
| rvunit | P_AcdocAUnionD_Cube | rvunit | Valuation UoM | |
| vmsl | P_AcdocAUnionD_Cube | vmsl | Val. quantity | |
| CurtpH | P_MatlLedgerValnCrcyRole | CompanyCodeCurrencyRole | ||
| CurtpK | P_MatlLedgerValnCrcyRole | GlobalCurrencyRole | ||
| CurtpO | P_MatlLedgerValnCrcyRole | FreeDefinedCurrency1Role | ||
| CurtpV | P_MatlLedgerValnCrcyRole | FreeDefinedCurrency2Role | ||
| CurtpB | P_MatlLedgerValnCrcyRole | FreeDefinedCurrency3Role | ||
| CurtpC | P_MatlLedgerValnCrcyRole | FreeDefinedCurrency4Role | ||
| CurtpD | P_MatlLedgerValnCrcyRole | FreeDefinedCurrency5Role | ||
| CurtpE | P_MatlLedgerValnCrcyRole | FreeDefinedCurrency6Role | ||
| CurtpF | P_MatlLedgerValnCrcyRole | FreeDefinedCurrency7Role | ||
| CurtpG | P_MatlLedgerValnCrcyRole | FreeDefinedCurrency8Role | ||
| xobew | P_AcdocAUnionD_Cube | xobew | Vendor stk val. | |
| kzbws | P_AcdocAUnionD_Cube | kzbws | Valuation | |
| mat_kdauf | P_AcdocAUnionD_Cube | mat_kdauf | SD Doc of Inv. | |
| mat_kdpos | P_AcdocAUnionD_Cube | mat_kdpos | SD Item of Inv. | |
| mat_pspnr | P_AcdocAUnionD_Cube | mat_pspnr | WBSElem of Inv. | |
| mat_lifnr | P_AcdocAUnionD_Cube | mat_lifnr | Vendor of Inv. | |
| _GLAccountInChartOfAccounts | P_AcdocAUnionD_Cube | _GLAccountInChartOfAccounts | ||
| _ChartOfAccounts | P_AcdocAUnionD_Cube | _ChartOfAccounts | ||
| _Segment | P_AcdocAUnionD_Cube | _Segment | ||
| _Material | P_AcdocAUnionD_Cube | _Material | ||
| _CompanyCode | P_AcdocAUnionD_Cube | _CompanyCode | ||
| _ProfitCenter | P_AcdocAUnionD_Cube | _ProfitCenter | ||
| _CostCenter | P_AcdocAUnionD_Cube | _CostCenter | ||
| _CompanyCodeCurrency | P_AcdocAUnionD_Cube | _CompanyCodeCurrency | ||
| _GlobalCurrency | P_AcdocAUnionD_Cube | _GlobalCurrency | ||
| _FreeDefinedCurrency1 | P_AcdocAUnionD_Cube | _FreeDefinedCurrency1 | ||
| _FreeDefinedCurrency2 | P_AcdocAUnionD_Cube | _FreeDefinedCurrency2 | ||
| _CostSourceUnit | P_AcdocAUnionD_Cube | _CostSourceUnit | ||
| _ControllingArea | P_AcdocAUnionD_Cube | _ControllingArea | ||
| _Ledger | P_AcdocAUnionD_Cube | _Ledger | ||
| _FiscalYear | P_AcdocAUnionD_Cube | _FiscalYear | ||
| _FiscalYearVariant | P_AcdocAUnionD_Cube | _FiscalYearVariant | ||
| _JournalEntry | P_AcdocAUnionD_Cube | _JournalEntry | ||
| _MaterialValuation | _MaterialValuation | |||
| _BusinessTransactionType | _BusinessTransactionType | |||
| _Plant | P_AcdocAUnionD_Cube | _Plant |
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_Materialledger_Curtp_Lit.
-- 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: PMALCURTPLIT
CREATE VIEW P_Materialledger_Curtp_Lit AS
SELECT
it.rldnr_pers AS SourceLedger,
it.rbukrs AS rbukrs,
it.rldnr AS rldnr,
it.racct AS racct,
it.gjahr AS gjahr,
it.belnr AS belnr,
it.docln AS docln,
it.matnr AS matnr,
it.ktopl AS ktopl,
it.blart AS blart,
it.bwkey AS bwkey,
it.bwtar AS bwtar,
it.poper AS poper,
it.ryear AS ryear,
it.budat AS budat,
it.awref AS awref,
it.aworg AS aworg,
it.awsys AS awsys,
it.awtyp AS awtyp,
it.drcrk AS drcrk,
it.bldat AS bldat,
it.bttype AS bttype,
it.prctr AS prctr,
it.rcntr AS rcntr,
it.segment AS segment,
it.usnam AS usnam,
it.timestamp AS timestamp,
it.fiscyearper AS fiscyearper,
it.ebeln AS ebeln,
it.aufnr AS aufnr,
it.ktosl AS ktosl,
it.werks AS werks,
it.kokrs AS kokrs,
it.kalnr AS kalnr,
it.sobkz AS sobkz,
it.periv AS periv,
it.mlptyp AS mlptyp,
it.mlcateg AS mlcateg,
it.bstat AS bstat,
it.vprsv AS MaterialPriceControl,
it.rhcur AS rhcur,
case _curtp.CompanyCodeCurrencyRole when ' ' then cast(0 as fins_vhcur12) else it.hsl end as hsl AS hslendashsl,
it.hvkwrt AS hvkwrt,
it.rkcur AS rkcur,
case _curtp.GlobalCurrencyRole when ' ' then cast(0 as fins_vkcur12) else it.ksl end as ksl AS kslendasksl,
it.rocur AS rocur,
case _curtp.FreeDefinedCurrency1Role when ' ' then cast(0 as fins_vocur12) else it.osl end as osl AS oslendasosl,
it.rvcur AS rvcur,
case _curtp.FreeDefinedCurrency2Role when ' ' then cast(0 as fins_vvcur12) else it.vsl end as vsl AS vslendasvsl,
it.rbcur AS rbcur,
case _curtp.FreeDefinedCurrency3Role when ' ' then cast(0 as fins_vbcur12) else it.bsl end as bsl AS bslendasbsl,
it.rccur AS rccur,
case _curtp.FreeDefinedCurrency4Role when ' ' then cast(0 as fins_vccur12) else it.csl end as csl AS cslendascsl,
it.rdcur AS rdcur,
case _curtp.FreeDefinedCurrency5Role when ' ' then cast(0 as fins_vdcur12) else it.dsl end as dsl AS dslendasdsl,
it.recur AS recur,
case _curtp.FreeDefinedCurrency6Role when ' ' then cast(0 as fins_vecur12) else it.esl end as esl AS eslendasesl,
it.rfcur AS rfcur,
case _curtp.FreeDefinedCurrency7Role when ' ' then cast(0 as fins_vfcur12) else it.fsl end as fsl AS fslendasfsl,
it.rgcur AS rgcur,
case _curtp.FreeDefinedCurrency8Role when ' ' then cast(0 as fins_vgcur12) else it.gsl end as gsl AS gslendasgsl,
it.runit AS runit,
it.msl AS msl,
it.mfsl AS mfsl,
it.rvunit AS rvunit,
it.vmsl AS vmsl,
_curtp.CompanyCodeCurrencyRole AS CurtpH,
_curtp.GlobalCurrencyRole AS CurtpK,
_curtp.FreeDefinedCurrency1Role AS CurtpO,
_curtp.FreeDefinedCurrency2Role AS CurtpV,
_curtp.FreeDefinedCurrency3Role AS CurtpB,
_curtp.FreeDefinedCurrency4Role AS CurtpC,
_curtp.FreeDefinedCurrency5Role AS CurtpD,
_curtp.FreeDefinedCurrency6Role AS CurtpE,
_curtp.FreeDefinedCurrency7Role AS CurtpF,
_curtp.FreeDefinedCurrency8Role AS CurtpG,
it.xobew AS xobew,
it.kzbws AS kzbws,
it.mat_kdauf AS mat_kdauf,
it.mat_kdpos AS mat_kdpos,
it.mat_pspnr AS mat_pspnr,
it.mat_lifnr AS mat_lifnr,
it._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
it._ChartOfAccounts AS _ChartOfAccounts,
it._Segment AS _Segment,
it._Material AS _Material,
it._CompanyCode AS _CompanyCode,
it._ProfitCenter AS _ProfitCenter,
it._CostCenter AS _CostCenter,
it._CompanyCodeCurrency AS _CompanyCodeCurrency,
it._GlobalCurrency AS _GlobalCurrency,
it._FreeDefinedCurrency1 AS _FreeDefinedCurrency1,
it._FreeDefinedCurrency2 AS _FreeDefinedCurrency2,
it._CostSourceUnit AS _CostSourceUnit,
it._ControllingArea AS _ControllingArea,
it._Ledger AS _Ledger,
it._FiscalYear AS _FiscalYear,
it._FiscalYearVariant AS _FiscalYearVariant,
it._JournalEntry AS _JournalEntry,
it._Plant AS _Plant
FROM P_AcdocAUnionD_Cube AS it
INNER JOIN P_MatlLedgerValnCrcyRole AS _curtp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaterialValuation AS _MaterialValuation ON it.kalnr = _MaterialValuation.CostEstimate -- association [0..1]
LEFT OUTER JOIN I_BusinessTransactionType AS _BusinessTransactionType ON it.bttype = _BusinessTransactionType.BusinessTransactionType -- association [0..1]
;
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