P_U_Employee

DDL: P_U_EMPLOYEE SQL: PUEMPLOYE Type: view BASIC

P_U_Employee is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (P_N_Employee, P_O_Employee, wfd_d_new_pers, wfd_d_new_pers) and exposes 57 fields with key field PersonnelNumber.

Data Sources (4)

SourceAliasJoin Type
P_N_Employee new union_all
P_O_Employee old from
wfd_d_new_pers switch left_outer
wfd_d_new_pers switch inner

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PUEMPLOYE view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.representativeKey PersonnelNumber view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY PersonnelNumber PersonnelNumber Personnel No.
EmployeeInternalID EmployeeInternalID Busn. Partner
Employee Employee Object ID
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
FormOfAddress FormOfAddress Title Key
FamilyName FamilyName Last Name
FirstName FirstName First Name
GivenName GivenName First Name
MiddleName MiddleName Middle Name
AdditionalFamilyName AdditionalFamilyName Other Last Name
AcademicTitle AcademicTitle Academic Title
FamilyNamePrefix FamilyNamePrefix Prefix Key
Initials Initials Initials
FullName FullName Name
EmployeeFullName EmployeeFullName Full Name
CorrespondenceLanguage CorrespondenceLanguage Language
GenderCode GenderCode
BusinessPartnerRole BusinessPartnerRole BP Role
Person Person Person/ Farm/ Field
BusinessPartnerUUID BusinessPartnerUUID UUID
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LastChangedByUser LastChangedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangeTime LastChangeTime Time changed
AuthorizationGroup AuthorizationGroup AuthorizGroup
mandtkeyPersonnelNumber
EmployeeInternalID EmployeeInternalID Busn. Partner
Employee Employee Object ID
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
FormOfAddress FormOfAddress Title Key
FamilyName FamilyName Last Name
FirstName FirstName First Name
GivenName GivenName First Name
MiddleName MiddleName Middle Name
AdditionalFamilyName AdditionalFamilyName Other Last Name
AcademicTitle AcademicTitle Academic Title
FamilyNamePrefix FamilyNamePrefix Prefix Key
Initials Initials Initials
FullName FullName Name
EmployeeFullName EmployeeFullName Full Name
CorrespondenceLanguage CorrespondenceLanguage Language
GenderCode GenderCode
BusinessPartnerRole BusinessPartnerRole BP Role
Person Person Person/ Farm/ Field
BusinessPartnerUUID BusinessPartnerUUID UUID
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LastChangedByUser LastChangedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangeTime LastChangeTime Time changed
AuthorizationGroup AuthorizationGroup AuthorizGroup
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed

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_U_Employee.
-- 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: PUEMPLOYE

CREATE VIEW P_U_Employee AS
SELECT
  PersonnelNumber,
  EmployeeInternalID,
  Employee,
  ValidityStartDate,
  ValidityEndDate,
  FormOfAddress,
  FamilyName,
  FirstName,
  GivenName,
  MiddleName,
  AdditionalFamilyName,
  AcademicTitle,
  FamilyNamePrefix,
  Initials,
  FullName,
  EmployeeFullName,
  CorrespondenceLanguage,
  GenderCode,
  BusinessPartnerRole,
  Person,
  BusinessPartnerUUID,
  CreatedByUser,
  CreationDate,
  CreationTime,
  LastChangedByUser,
  LastChangeDate,
  LastChangeTime,
  AuthorizationGroup,
  IsBusinessPurposeCompleted AS mandtkeyPersonnelNumber,
  IsBusinessPurposeCompleted
FROM P_O_Employee AS old
LEFT OUTER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_N_Employee
;