P_PSDOC_CHANGE
P_PSDOC_CHANGE is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (wbrk) and exposes 16 fields with key field PersonnelSettlementDocument. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wbrk | wbrk | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_WLF_CDS_PERNR_BEGRU | _PernrBegru | $projection.PersonWorkAgreement = _PernrBegru.Pernr |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWBRKPSDOCCHG | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelSettlementDocument | |||
| SettlmtDocType | wbrk | lfart | ||
| CompanyCode | ||||
| SalesOrganization | wbrk | vkorg | ||
| DistributionChannel | wbrk | vtweg | ||
| Division | wbrk | spart | ||
| PersonnelCostCenter | wbrk | pers_kostl | ||
| PersSettlmtAcctgTransfSts | wbrk | rfbsk | ||
| PostingDate | wbrk | wfdat | ||
| SettlmtDocActivityReason | ||||
| PaymentReference | ||||
| AssignmentReference | wbrk | zuonr | ||
| FiscalPeriod | ||||
| SettlmtApplSts | wbrk | estatus | ||
| SettlmtApplStsGrp | wbrk | status_group | ||
| PersonWorkAgreement | wbrk | pernr |
@AbapCatalog.sqlViewName: 'PWBRKPSDOCCHG'
@VDM.viewType: #BASIC
@VDM.private: true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #XXL
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #MANDATORY
// Changeable Personnel Settlement Documents
define view P_PSDOC_CHANGE
as select from wbrk
association [0..1] to P_WLF_CDS_PERNR_BEGRU as _PernrBegru on $projection.PersonWorkAgreement = _PernrBegru.Pernr
{
key cast( wbrk.wbeln as wlf_pers_settlmt_doc preserving type ) as PersonnelSettlementDocument,
wbrk.lfart as SettlmtDocType,
cast( wbrk.bukrs as fis_bukrs preserving type ) as CompanyCode,
wbrk.vkorg as SalesOrganization,
wbrk.vtweg as DistributionChannel,
wbrk.spart as Division,
wbrk.pers_kostl as PersonnelCostCenter,
wbrk.rfbsk as PersSettlmtAcctgTransfSts,
wbrk.wfdat as PostingDate,
cast( wbrk.lfgru as wlf_wfgru_header preserving type ) as SettlmtDocActivityReason,
cast( wbrk.kidno as farp_kidno preserving type ) as PaymentReference,
wbrk.zuonr as AssignmentReference,
cast( cast( concat( '0', wbrk.monat) as abap.numc( 3 ) ) as fins_fiscalperiod preserving type ) as FiscalPeriod,
wbrk.estatus as SettlmtApplSts,
wbrk.status_group as SettlmtApplStsGrp,
wbrk.pernr as PersonWorkAgreement,
cast (case
when _PernrBegru.pernr_begru is null
then ''
else _PernrBegru.pernr_begru
end as bu_augrp ) as AuthorizationGroup
}
where
wdtyp = 'B'
and settl_party = '4'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_WLF_CDS_PERNR_BEGRU",
"WBRK"
],
"ASSOCIATED":
[
"P_WLF_CDS_PERNR_BEGRU"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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