P_ObjectStatus
Object status list view
P_ObjectStatus is a Basic CDS View that provides data about "Object status list view" in SAP S/4HANA. It reads from 4 data sources (jest, proj, prps, prte) and exposes 10 fields with key field WBSElementInternalID. It has 2 associations to related views. Part of development package VDM_PS_ANALYTICS.
Data Sources (4)
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UserStatus | _UserStatus | $projection.Status = _UserStatus.UserStatus and $projection.WBSStatusProfile = _UserStatus.StatusProfile |
| [0..1] | I_SystemStatus | _SystemStatus | $projection.Status = _SystemStatus.SystemStatus |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | POBJECTSTATUS | view | |
| ClientDependent | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.representativeKey | WBSElementInternalID | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view |
Fields (10)
@AbapCatalog.sqlViewName: 'POBJECTSTATUS'
@ClientDependent: true
@VDM.viewType: #BASIC
@AbapCatalog.compiler.compareFilter: true
@ObjectModel.representativeKey: 'WBSElementInternalID'
@AccessControl.authorizationCheck: #CHECK
//@EndUserText.label: 'Object status list view'
@VDM.private: true
define view P_ObjectStatus
as select from prps
left outer join prte on prps.pspnr = prte.posnr
and prps.psphi = prte.psphi
left outer join jest on prps.objnr = jest.objnr
left outer join proj on proj.pspnr = prps.psphi
association [0..1] to I_UserStatus as _UserStatus
on $projection.Status = _UserStatus.UserStatus
and $projection.WBSStatusProfile = _UserStatus.StatusProfile
association [0..1] to I_SystemStatus as _SystemStatus
on $projection.Status = _SystemStatus.SystemStatus
{
key cast ( prps.pspnr as ps_posnr ) as WBSElementInternalID,
prps.objnr as ObjectNumber,
proj.stspr as WBSStatusProfile,
jest.stat as Status,
case
when jest.stat like 'E%' then 'X'
else ' '
end as IsUserStatus,
_UserStatus._UserStatusText[ 1: Language = $session.system_language ].UserStatusShortName,
_SystemStatus._SystemStatusText[ 1: Language = $session.system_language ].SystemStatusShortName,
case
when jest.stat like 'E%'
then _UserStatus._UserStatusText[1: Language = $session.system_language].UserStatusName
else
_SystemStatus._SystemStatusText[1: Language = $session.system_language].SystemStatusName
end as StatusName,
_UserStatus,
_SystemStatus
}
where jest.inact = ' ';
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