P_PDRELATION
PD Relation
P_PDRELATION is a Basic CDS View that provides data about "PD Relation" in SAP S/4HANA. It reads from 2 data sources (hrp1001, t77s0) and exposes 10 fields with key fields PlanVersion, ObjectType, ObjectID, RelationShipDirection, ReleationShip. Part of development package VDM_SHCM_EMPLOYEE.
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| AbapCatalog.sqlViewName | PPDRELATION | view | |
| VDM.viewType | #BASIC | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PlanVersion | hrp1001 | plvar | |
| KEY | ObjectType | hrp1001 | otype | |
| KEY | ObjectID | hrp1001 | objid | |
| KEY | RelationShipDirection | hrp1001 | rsign | |
| KEY | ReleationShip | hrp1001 | relat | |
| RelationStatus | hrp1001 | istat | ||
| StartDate | hrp1001 | begda | ||
| EndDate | hrp1001 | endda | ||
| RelatedObjectType | hrp1001 | sclas | ||
| RelatedObjectID | hrp1001 | sobid |
@VDM.private: true
@AbapCatalog.sqlViewName: 'PPDRELATION'
@VDM.viewType: #BASIC
define view P_PDRELATION
as select from hrp1001 as relation
inner join t77s0 as systemtable on grpid = 'PLOGI'
and semid = 'PLOGI'
and gsval = relation.plvar
{
key relation.plvar as PlanVersion,
key relation.otype as ObjectType,
key relation.objid as ObjectID,
key relation.rsign as RelationShipDirection,
key relation.relat as ReleationShip,
relation.istat as RelationStatus,
relation.begda as StartDate,
relation.endda as EndDate,
relation.sclas as RelatedObjectType,
relation.sobid as RelatedObjectID
}
where
endda = '99991231'
// as select from P_PDRELATION_001
//{
// key PlanVersion,
// key ObjectType,
// key ObjectID,
// key RelationShipDirection,
// key ReleationShip,
//
// RelationStatus,
// StartDate,
// EndDate,
//
// RelatedObjectType,
// RelatedObjectID
//}
// as select from hrp1001 as relation
//inner join t77s0 as systemtable on grpid = 'PLOGI' and semid = 'PLOGI' and gsval = relation.plvar
//{
// key relation.plvar as PlanVersion,
// key relation.otype as ObjectType,
// key relation.objid as ObjectID,
// key relation.rsign as RelationShipDirection,
// key relation.relat as ReleationShip,
//
// relation.istat as RelationStatus,
//
//
//
// relation.begda as StartDate,
// relation.endda as EndDate,
//
// relation.sclas as RelatedObjectType,
// relation.sobid as RelatedObjectID
// }
// where endda = '99991231'
//
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