P_COPCCObjectMaxStatus
CO PCC Object Max Status
P_COPCCObjectMaxStatus is a Basic CDS View that provides data about "CO PCC Object Max Status" in SAP S/4HANA. It reads from 1 data source (jest) and exposes 2 fields with key field ControllingObject. Part of development package ODATA_PRODUCTION_COST_ANALYSIS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| jest | jest | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIPCCOBJMAXSTAT | 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 (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingObject | objnr | ||
| StatusCode |
@AbapCatalog.sqlViewName: 'PFIPCCOBJMAXSTAT'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'ControllingObject'
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L
//@EndUserText.label: 'CO PCC Object Max Status'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@VDM.private:true
define view P_COPCCObjectMaxStatus
as select from jest
{
key objnr as ControllingObject,
case substring(objnr, 1, 2)
when 'OR'
then substring(objnr, 3, 12)
when 'OP'
then substring(objnr, 3, 12)
else ''
end as OrderID,
case substring(objnr, 1, 2)
when 'OR'
then '0000'
when 'OP'
then substring(objnr, 15, 4)
else ''
end as OrderItem,
max(stat) as StatusCode
}
where
(
stat = 'I0002' //Released
or stat = 'I0012' //Delivered
or stat = 'I0045' //Technical Completed
or stat = 'I0046' //Closed
or stat = 'I0042' //Partially Released
)
and inact = ''
group by
objnr
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