P_OrderOpPRTStatusBasic
P_OrderOpPRTStatusBasic is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_StatusObjectStatusBasic) and exposes 7 fields with key field ObjectInternalID. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StatusObjectStatusBasic | jest | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_StatusCode | _PRTIsCreatedCode | _PRTIsCreatedCode.StatusCode = 'I0001' and _PRTIsCreatedCode.StatusProfile = '' |
| [0..1] | I_StatusCode | _PRTIsReleasedCode | _PRTIsReleasedCode.StatusCode = 'I0002' and _PRTIsReleasedCode.StatusProfile = '' |
| [0..1] | I_StatusCode | _PRTIsPrintedCode | _PRTIsPrintedCode.StatusCode = 'I0007' and _PRTIsPrintedCode.StatusProfile = '' |
| [0..1] | I_StatusCode | _PRTIsDeletedCode | _PRTIsDeletedCode.StatusCode = 'I0013' and _PRTIsDeletedCode.StatusProfile = '' |
| [0..1] | I_StatusCode | _PRTIsNotAvailableCode | _PRTIsNotAvailableCode.StatusCode = 'I0095' and _PRTIsNotAvailableCode.StatusProfile = '' |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PORDOPPRTSTSBASC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | 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 (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ObjectInternalID | I_StatusObjectStatusBasic | StatusObject | |
| _StatusObject | _StatusObject | |||
| _PRTIsCreatedCode | _PRTIsCreatedCode | |||
| _PRTIsReleasedCode | _PRTIsReleasedCode | |||
| _PRTIsPrintedCode | _PRTIsPrintedCode | |||
| _PRTIsDeletedCode | _PRTIsDeletedCode | |||
| _PRTIsNotAvailableCode | _PRTIsNotAvailableCode |
@AbapCatalog.sqlViewName: 'PORDOPPRTSTSBASC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE
@VDM.private: true
// provides the non-aggregated system status for Operation PRTs
// to be used in aggregation views such as P_OrderOpPRTStatusAggr only
/*+[hideWarning] { "IDS" : [ "KEY_CHECK", "CALCULATED_FIELD_CHECK" ] } */
define view P_OrderOpPRTStatusBasic
as select from I_StatusObjectStatusBasic as jest
association [0..1] to I_StatusCode as _PRTIsCreatedCode on _PRTIsCreatedCode.StatusCode = 'I0001'
and _PRTIsCreatedCode.StatusProfile = ''
association [0..1] to I_StatusCode as _PRTIsReleasedCode on _PRTIsReleasedCode.StatusCode = 'I0002'
and _PRTIsReleasedCode.StatusProfile = ''
association [0..1] to I_StatusCode as _PRTIsPrintedCode on _PRTIsPrintedCode.StatusCode = 'I0007'
and _PRTIsPrintedCode.StatusProfile = ''
association [0..1] to I_StatusCode as _PRTIsDeletedCode on _PRTIsDeletedCode.StatusCode = 'I0013'
and _PRTIsDeletedCode.StatusProfile = ''
association [0..1] to I_StatusCode as _PRTIsNotAvailableCode on _PRTIsNotAvailableCode.StatusCode = 'I0095'
and _PRTIsNotAvailableCode.StatusProfile = ''
{
// Key
key jest.StatusObject as ObjectInternalID,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0001' then 'X'
else ''
end as OrderOperationPRTIsCreated,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0002' then 'X'
else ''
end as OrderOperationPRTIsReleased,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0007' then 'X'
else ''
end as OrderOperationPRTIsPrinted,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0013' then 'X'
else ''
end as OrderOperationPRTIsDeleted,
@Semantics.booleanIndicator: true
case jest.StatusCode
when 'I0095' then 'X'
else ''
end as OrdOperationPRTIsNotAvailable,
// Associations
_StatusObject,
_PRTIsCreatedCode,
_PRTIsReleasedCode,
_PRTIsPrintedCode,
_PRTIsDeletedCode,
_PRTIsNotAvailableCode
}
where
( jest.StatusCode = 'I0001'
or jest.StatusCode = 'I0002'
or jest.StatusCode = 'I0007'
or jest.StatusCode = 'I0013'
or jest.StatusCode = 'I0095'
) and jest.StatusIsInactive = ' '
and jest.StatusObject like 'OF%';
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