P_PSDOC_CHANGE
Changeable Personnel Settlement Documents
P_PSDOC_CHANGE is a Basic CDS View that provides data about "Changeable Personnel Settlement Documents" 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. Part of development package WLF_FS_PERS_COMMON.
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 (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWBRKPSDOCCHG | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #A | 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 | |
| AccessControl.authorizationCheck | #MANDATORY | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelSettlementDocument | |||
| SettlmtDocType | wbrk | lfart | Settl Doc Type | |
| CompanyCode | ||||
| SalesOrganization | wbrk | vkorg | SD Sales Org. | |
| DistributionChannel | wbrk | vtweg | RefDistCh-Cust/Mat. | |
| Division | wbrk | spart | Source supplier | |
| PersonnelCostCenter | wbrk | pers_kostl | Worker Cost Center | |
| PersSettlmtAcctgTransfSts | wbrk | rfbsk | Posting Status | |
| PostingDate | wbrk | wfdat | Posting Date | |
| SettlmtDocActivityReason | ||||
| PaymentReference | ||||
| AssignmentReference | wbrk | zuonr | Finance Project | |
| FiscalPeriod | ||||
| SettlmtApplSts | wbrk | estatus | Appl. Status | |
| SettlmtApplStsGrp | wbrk | status_group | Status Group | |
| PersonWorkAgreement | wbrk | pernr | Personnel no. |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_PSDOC_CHANGE.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PWBRKPSDOCCHG
CREATE VIEW P_PSDOC_CHANGE AS
SELECT
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
FROM wbrk
LEFT OUTER JOIN P_WLF_CDS_PERNR_BEGRU AS _PernrBegru ON PersonWorkAgreement = _PernrBegru.Pernr -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA