P_DMVCMaterialActivity
P_DMVCMaterialActivity is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (P_MLActivityHeader, I_Plant, I_Purreqvaluationarea) and exposes 14 fields with key fields CostEstimate, ProcessCategory.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_MLActivityHeader | _ActivityHeader | inner |
| I_Plant | _Plant | inner |
| I_Purreqvaluationarea | _Purreqvaluationarea | inner |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_DateFrom | calendardate | |
| P_DateTo | calendardate | |
| P_CurrencyType | curtp | |
| P_Ledger | fins_ledger |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDMVCMATLACTY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | _MaterialLedgerDocument | CostEstimate | Cost EstimateNo |
| KEY | ProcessCategory | _MaterialLedgerDocument | ProcessCategory | |
| ObjectInternalID | P_MLActivityHeader | objnr | Val. Obj. No. | |
| Plant | P_MLActivityHeader | Plant | Valuation Area | |
| ValuationArea | I_Plant | ValuationArea | Valuation Area | |
| CompanyCode | I_Purreqvaluationarea | CompanyCode | Receiver Company Code | |
| ControllingArea | ||||
| objnr78endasCostCenter | ||||
| objnr176elseendasCostCtrActivityType | ||||
| objnr711elseendasBusinessProcess | ||||
| ReferenceDocument | _MaterialLedgerDocument | awref | Reference Doc. | |
| ReferenceDocumentItem | _MaterialLedgerDocument | awitem | Ref. Doc. Line Item | |
| ValuationQuantityUnit | _MaterialLedgerDocument | ValuationQuantityUnit | ||
| Currency | _MaterialLedgerDocument | Currency | Valuation Crcy |
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_DMVCMaterialActivity.
-- 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: PDMVCMATLACTY
-- Parameters: P_DateFrom : calendardate, P_DateTo : calendardate, P_CurrencyType : curtp, P_Ledger : fins_ledger
CREATE VIEW P_DMVCMaterialActivity AS
SELECT
_MaterialLedgerDocument.CostEstimate AS CostEstimate,
_MaterialLedgerDocument.ProcessCategory AS ProcessCategory,
_ActivityHeader.objnr AS ObjectInternalID,
_ActivityHeader.Plant AS Plant,
_Plant.ValuationArea AS ValuationArea,
_Purreqvaluationarea.CompanyCode AS CompanyCode,
substring(_ActivityHeader.objnr, 3, 4) AS ControllingArea,
case substring(_ActivityHeader.objnr, 1, 2) when 'KL' then substring(_ActivityHeader.objnr, 7, 10) when 'BP' then substring(_ActivityHeader.objnr, 7, 8) end as CostCenter AS objnr78endasCostCenter,
case substring(_ActivityHeader.objnr, 1, 2) when 'KL' then substring(_ActivityHeader.objnr, 17, 6) else '' end as CostCtrActivityType AS objnr176elseendasCostCtrActivityType,
case substring(_ActivityHeader.objnr, 1, 2) when 'BP' then substring(_ActivityHeader.objnr, 7, 11) else '' end as BusinessProcess AS objnr711elseendasBusinessProcess,
_MaterialLedgerDocument.awref AS ReferenceDocument,
_MaterialLedgerDocument.awitem AS ReferenceDocumentItem,
_MaterialLedgerDocument.ValuationQuantityUnit AS ValuationQuantityUnit,
_MaterialLedgerDocument.Currency AS Currency
INNER JOIN P_MLActivityHeader AS _ActivityHeader ON /* join condition not captured in parsed metadata */
INNER JOIN I_Plant AS _Plant ON /* join condition not captured in parsed metadata */
INNER JOIN I_Purreqvaluationarea AS _Purreqvaluationarea ON /* join condition not captured in parsed metadata */
;
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