P_Materialledger_CurTP
P_Materialledger_CurTP is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_Materialledger_Relvt_Curtp, P_Acdoca_Cube) and exposes 82 fields with key fields rbukrs, rldnr, racct, gjahr, belnr. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_Materialledger_Relvt_Curtp | _curtp | inner |
| P_Acdoca_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 (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMATLEDGERCURTP | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (82)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | rbukrs | P_Acdoca_Cube | rbukrs | Company Code |
| KEY | rldnr | P_Acdoca_Cube | rldnr | Ledger (Compat.) |
| KEY | racct | P_Acdoca_Cube | racct | GL Account From |
| KEY | gjahr | P_Acdoca_Cube | gjahr | Settlement Year |
| KEY | belnr | P_Acdoca_Cube | belnr | SD Document |
| KEY | docln | P_Acdoca_Cube | docln | Matching Document Line Item |
| KEY | matnr | P_Acdoca_Cube | matnr | Vehicle Model |
| ktopl | P_Acdoca_Cube | ktopl | G/L Chart of Accounts | |
| blart | P_Acdoca_Cube | blart | Rep. rec. doc. type | |
| bwkey | P_Acdoca_Cube | bwkey | Valuation Area | |
| bwtar | P_Acdoca_Cube | bwtar | Valuation Type | |
| poper | P_Acdoca_Cube | poper | Posting periods | |
| ryear | P_Acdoca_Cube | ryear | Ref. Year1 | |
| budat | P_Acdoca_Cube | budat | Posting Date | |
| awref | P_Acdoca_Cube | awref | Reference Doc. | |
| awtyp | P_Acdoca_Cube | awtyp | Reference Document Type | |
| bldat | P_Acdoca_Cube | bldat | Journal Entry Date | |
| bttype | P_Acdoca_Cube | bttype | Business Transaction Type | |
| prctr | P_Acdoca_Cube | prctr | Profit Centers | |
| rcntr | P_Acdoca_Cube | rcntr | Cost Center | |
| segment | P_Acdoca_Cube | segment | Segment number | |
| usnam | P_Acdoca_Cube | usnam | User Name | |
| timestamp | P_Acdoca_Cube | timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | |
| fiscyearper | P_Acdoca_Cube | fiscyearper | Period/Year | |
| ebeln | P_Acdoca_Cube | ebeln | Source PurchDoc | |
| aufnr | P_Acdoca_Cube | aufnr | SettlementOrder | |
| ktosl | P_Acdoca_Cube | ktosl | Transaction | |
| werks | P_Acdoca_Cube | werks | Receiving Plant | |
| kokrs | P_Acdoca_Cube | kokrs | Org. Value | |
| kalnr | P_Acdoca_Cube | kalnr | ProdCostEst.No. | |
| sobkz | P_Acdoca_Cube | sobkz | Special Stock | |
| periv | P_Acdoca_Cube | periv | FYear Variant | |
| mlptyp | P_Acdoca_Cube | mlptyp | Orig. proc.cat. | |
| mlcateg | P_Acdoca_Cube | mlcateg | Category | |
| bstat | P_Acdoca_Cube | bstat | Document Status | |
| rhcur | P_Acdoca_Cube | rhcur | Local Currency | |
| hsl | P_Acdoca_Cube | hsl | Local Crcy Amt | |
| rkcur | P_Acdoca_Cube | rkcur | Ledger curr. | |
| kslendasksl | ||||
| rocur | P_Acdoca_Cube | rocur | Free Defined Crcy 1 | |
| oslendasosl | ||||
| rvcur | P_Acdoca_Cube | rvcur | Free Defined Crcy 4 | |
| vslendasvsl | ||||
| rvunit | P_Acdoca_Cube | rvunit | Valuation UoM | |
| vmsl | P_Acdoca_Cube | vmsl | Val. quantity | |
| CurtpH | P_Materialledger_Relvt_Curtp | Curtph | Field Name | |
| rldnrh | P_Materialledger_Relvt_Curtp | rldnrh | ||
| ext_CurtpH | P_Materialledger_Relvt_Curtp | ext_CurtpH | ||
| CurtpK | P_Materialledger_Relvt_Curtp | Curtpk | Field Name | |
| rldnrk | P_Materialledger_Relvt_Curtp | rldnrk | ||
| ext_CurtpK | P_Materialledger_Relvt_Curtp | ext_CurtpK | ||
| CurtpO | P_Materialledger_Relvt_Curtp | Curtpo | FreeDef Crcy 1 | |
| rldnro | P_Materialledger_Relvt_Curtp | rldnro | ||
| ext_CurtpO | P_Materialledger_Relvt_Curtp | ext_CurtpO | ||
| CurtpV | P_Materialledger_Relvt_Curtp | Curtpv | FreeDef Crcy 2 | |
| rldnrv | P_Materialledger_Relvt_Curtp | rldnrv | ||
| ext_CurtpV | P_Materialledger_Relvt_Curtp | ext_Curtpv | ||
| xobew | P_Acdoca_Cube | xobew | Vendor stk val. | |
| kzbws | P_Acdoca_Cube | kzbws | Valuation | |
| mat_kdauf | P_Acdoca_Cube | mat_kdauf | SD Doc of Inv. | |
| mat_kdpos | P_Acdoca_Cube | mat_kdpos | SD Item of Inv. | |
| mat_pspnr | P_Acdoca_Cube | mat_pspnr | WBSElem of Inv. | |
| mat_lifnr | P_Acdoca_Cube | mat_lifnr | Vendor of Inv. | |
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _Segment | _Segment | |||
| _Material | _Material | |||
| _CompanyCode | _CompanyCode | |||
| _ProfitCenter | _ProfitCenter | |||
| _CostCenter | _CostCenter | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _GlobalCurrency | _GlobalCurrency | |||
| _FreeDefinedCurrency1 | _FreeDefinedCurrency1 | |||
| _FreeDefinedCurrency2 | _FreeDefinedCurrency2 | |||
| _CostSourceUnit | _CostSourceUnit | |||
| _ControllingArea | _ControllingArea | |||
| _Ledger | _Ledger | |||
| _FiscalYear | _FiscalYear | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _JournalEntry | _JournalEntry | |||
| _MaterialValuation | _MaterialValuation | |||
| _BusinessTransactionType | _BusinessTransactionType |
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.
-- 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: PMATLEDGERCURTP
CREATE VIEW P_Materialledger_CurTP AS
SELECT
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.awtyp AS awtyp,
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.rhcur AS rhcur,
it.hsl AS hsl,
it.rkcur AS rkcur,
case Curtpk when ' ' then cast(0 as fins_vkcur12) else it.ksl end as ksl AS kslendasksl,
it.rocur AS rocur,
case Curtpo when ' ' then cast(0 as fins_vocur12) else it.osl end as osl AS oslendasosl,
it.rvcur AS rvcur,
case Curtpv when ' ' then cast(0 as fins_vocur12) else it.vsl end as vsl AS vslendasvsl,
it.rvunit AS rvunit,
it.vmsl AS vmsl,
_curtp.Curtph AS CurtpH,
_curtp.rldnrh AS rldnrh,
_curtp.ext_CurtpH AS ext_CurtpH,
_curtp.Curtpk AS CurtpK,
_curtp.rldnrk AS rldnrk,
_curtp.ext_CurtpK AS ext_CurtpK,
_curtp.Curtpo AS CurtpO,
_curtp.rldnro AS rldnro,
_curtp.ext_CurtpO AS ext_CurtpO,
_curtp.Curtpv AS CurtpV,
_curtp.rldnrv AS rldnrv,
_curtp.ext_Curtpv AS ext_CurtpV,
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
FROM P_Acdoca_Cube AS it
INNER JOIN P_Materialledger_Relvt_Curtp 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