P_EBWObjectMaxStatus
CO PCC Object Max Status
P_EBWObjectMaxStatus is a Basic CDS View that provides data about "CO PCC Object Max Status" in SAP S/4HANA. It reads from 2 data sources (afpo, aufk) and exposes 14 fields with key field ControllingObject. It has 2 associations to related views. Part of development package FINS_PCC_EBW.
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ToFiscalYearPeriod | fins_fyearperiod |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_FiscalYearPeriodForCmpnyCode | _FiscalYearForCC | _aufk.bukrs = _FiscalYearForCC.CompanyCode |
| [1..1] | I_COActivityTypeTotalsByPeriod | _ATT | _aufk.objnr = _ATT.ControllingObject |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIEBWOBJMAXSTAT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | ControllingObject | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingObject | aufk | objnr | Val. Obj. No. |
| OrderID | aufk | aufnr | SettlementOrder | |
| ControllingArea | aufk | kokrs | Org. Value | |
| CompanyCode | aufk | bukrs | Value | |
| OrderCategory | aufk | autyp | Order category | |
| Material | afpo | matnr | Vehicle Model | |
| Plant | aufk | werks | Receiving Plant | |
| OrderType | aufk | auart | Sales Doc. Type | |
| ResultsAnalysisKey | aufk | abgsl | Results analysis key | |
| CostingSheet | aufk | kalsm | Search Proced. | |
| ProductionUnit | afpo | amein | Order Un | |
| ProfitCenter | aufk | prctr | Profit Centers | |
| VDM_V_KEY_DATE | _FiscalYearForCC | FiscalPeriodEndDate | ||
| StatusCodeelseI0002endasStatusCode |
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_EBWObjectMaxStatus.
-- 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: PFIEBWOBJMAXSTAT
-- Parameters: P_ToFiscalYearPeriod : fins_fyearperiod
CREATE VIEW P_EBWObjectMaxStatus AS
SELECT
_aufk.objnr AS ControllingObject,
_aufk.aufnr AS OrderID,
_aufk.kokrs AS ControllingArea,
_aufk.bukrs AS CompanyCode,
_aufk.autyp AS OrderCategory,
_afpo.matnr AS Material,
_aufk.werks AS Plant,
_aufk.auart AS OrderType,
_aufk.abgsl AS ResultsAnalysisKey,
_aufk.kalsm AS CostingSheet,
_afpo.amein AS ProductionUnit,
_aufk.prctr AS ProfitCenter,
_FiscalYearForCC.FiscalPeriodEndDate AS VDM_V_KEY_DATE,
max( case when _ObjectStatus.StatusCode = 'I0012' and _afpo.ltrmi <= _FiscalYearForCC.FiscalPeriodEndDate then _ObjectStatus.StatusCode when _ObjectStatus.StatusCode = 'I0045' and _aufk.idat2 <= _FiscalYearForCC.FiscalPeriodEndDate then _ObjectStatus.StatusCode else 'I0002' end ) as StatusCode AS StatusCodeelseI0002endasStatusCode
FROM aufk AS _aufk
INNER JOIN afpo AS _afpo ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FiscalYearPeriodForCmpnyCode AS _FiscalYearForCC ON _aufk.bukrs = _FiscalYearForCC.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_COActivityTypeTotalsByPeriod AS _ATT ON _aufk.objnr = _ATT.ControllingObject -- association [1..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