P_DMVCMatlActyProcessCategory
P_DMVCMatlActyProcessCategory is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_ACDOCA) and exposes 22 fields with key fields CostEstimate, ProcessCategory.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_ACDOCA | _acdoca | left_outer |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_DateFrom | calendardate | |
| P_DateTo | calendardate | |
| P_CurrencyType | curtp | |
| P_Ledger | rldnr |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDMVCMTATYPCCAT | 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 (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | _Activity | CostEstimate | |
| KEY | ProcessCategory | _Activity | ProcessCategory | |
| ObjectInternalID | _Activity | ObjectInternalID | ||
| Plant | _Activity | Plant | ||
| CompanyCode | _Activity | CompanyCode | ||
| ProfitCenter | P_ACDOCA | prctr | ||
| ProfitCenterMD | _Activity | ProfitCenter | ||
| ValuationArea | _Activity | ValuationArea | ||
| CostCenter | _Activity | CostCenter | ||
| CostCenterName | _Activity | CostCenterName | ||
| CostCtrActivityType | _Activity | CostCtrActivityType | ||
| ControllingArea | _Activity | ControllingArea | ||
| ValuationQuantityUnit | _Activity | ValuationQuantityUnit | ||
| Currency | _Activity | Currency | ||
| SourceLedger | P_ACDOCA | rldnr | ||
| SourceCompanyCode | P_ACDOCA | rbukrs | ||
| FiscalYear | P_ACDOCA | gjahr | ||
| AccountingDocument | P_ACDOCA | belnr | ||
| LedgerGLLineItem | P_ACDOCA | docln | ||
| Timestamp | P_ACDOCA | timestamp | ||
| CostCtrActivityTypeName | ||||
| BusinessProcessName |
@AbapCatalog.sqlViewName: 'PDMVCMTATYPCCAT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@VDM.private:true
define view P_DMVCMatlActyProcessCategory
with parameters
P_DateFrom : calendardate,
P_DateTo : calendardate,
P_CurrencyType : curtp,
P_Ledger : rldnr
as select distinct from P_DMVCMatlActivityCostCenter( P_DateFrom : :P_DateFrom,
P_DateTo : :P_DateTo,
P_CurrencyType : :P_CurrencyType,
P_Ledger : :P_Ledger) as _Activity
left outer join P_ACDOCA as _acdoca on _acdoca.objnr = _Activity.ObjectInternalID
and _acdoca.rldnr = $parameters.P_Ledger
and _acdoca.budat >= $parameters.P_DateFrom
and _acdoca.budat <= $parameters.P_DateTo
and _acdoca.co_belnr = _Activity.ReferenceDocument
and _acdoca.co_buzei = _Activity.ReferenceDocumentItem
{
key _Activity.CostEstimate,
key _Activity.ProcessCategory,
_Activity.ObjectInternalID,
_Activity.Plant,
_Activity.CompanyCode,
_acdoca.prctr as ProfitCenter,
_Activity.ProfitCenter as ProfitCenterMD,
_Activity.ValuationArea,
_Activity.CostCenter,
_Activity.CostCenterName,
_Activity.CostCtrActivityType,
_Activity.ControllingArea,
_Activity.ValuationQuantityUnit,
_Activity.Currency,
_acdoca.rldnr as SourceLedger,
_acdoca.rbukrs as SourceCompanyCode,
_acdoca.gjahr as FiscalYear,
_acdoca.belnr as AccountingDocument,
_acdoca.docln as LedgerGLLineItem,
_acdoca.timestamp as Timestamp,
_ActivityText[1: Language = $session.system_language].CostCtrActivityTypeName,
_BusinessText[1: Language = $session.system_language].BusinessProcessName
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPROCESSTEXT",
"I_COSTCENTERACTIVITYTYPETEXT",
"P_ACDOCA",
"P_DMVCMATLACTIVITYCOSTCENTER"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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