P_PSDOC_CHANGE

DDL: P_PSDOC_CHANGE SQL: PWBRKPSDOCCHG Type: view BASIC Package: WLF_FS_PERS_COMMON

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)

SourceAliasJoin Type
wbrk wbrk from

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_WLF_CDS_PERNR_BEGRU _PernrBegru $projection.PersonWorkAgreement = _PernrBegru.Pernr

Annotations (10)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;