P_OrderItemStatusBasic
Order Item Status Basic
P_OrderItemStatusBasic is a Composite CDS View that provides data about "Order Item Status Basic" in SAP S/4HANA. It reads from 1 data source (I_StatusObjectStatusBasic) and exposes 2 fields with key field ObjectInternalID. Part of development package VDM_PP_SFC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StatusObjectStatusBasic | jest | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ObjectInternalID | I_StatusObjectStatusBasic | StatusObject | |
| _StatusObject | _StatusObject |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE // technically a BASIC but due to view layering a COMPOSITE)
@VDM.private: true
// provides the non-aggregated status
// to be used in aggregation views such as P_OrderItemStatusAggr only
/*+[hideWarning] { "IDS" : [ "KEY_CHECK" ] } */
define view entity P_OrderItemStatusBasic
as select from I_StatusObjectStatusBasic as jest
{
// Key
key jest.StatusObject as ObjectInternalID,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0001' then 'X'
else ''
end as OrderItemIsCreated,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0002' then 'X'
else ''
end as OrderItemIsReleased,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0028' then 'X'
else ''
end as SettlementRuleIsCreated,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0046' then 'X'
else ''
end as OrderItemIsClosed,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0074' then 'X'
else ''
end as OrderItemIsPartiallyDelivered,
// Associations
_StatusObject
}
where
( jest.StatusCode = 'I0001'
or jest.StatusCode = 'I0002'
or jest.StatusCode = 'I0028'
or jest.StatusCode = 'I0046'
or jest.StatusCode = 'I0074'
) and jest.StatusIsInactive = ' '
and jest.StatusObject like 'OP%';
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