P_N_EmployeeOp
P_N_EmployeeOp is a Basic CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 34 fields.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| wfd_d_assgmt | assgmt | inner |
| I_WorkforcePersonDetermineRole | bp_cf_role | left_outer |
| I_WorkforcePersonPastMinRole | bp_p_role | left_outer |
| but100 | bp_role | inner |
| but0id | bpexid | left_outer |
| wfd_d_keymap | keymap | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| AbapCatalog.sqlViewName | PNEMPLOYEEOP | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| PersonnelNumber | wfd_d_keymap | central_person | WorkForce Master ID | |
| Employee | but0id | idnumber | ID Number | |
| EmployeeInternalID | bp | partner | With Partner | |
| start_dateasValidityStartDate | ||||
| end_dateasValidityEndDate | ||||
| FormOfAddress | bp | title | View Title | |
| FamilyName | bp | name_last | Last Name | |
| FirstName | bp | name_first | First Name | |
| LastName | bp | mc_name1 | Name 1/Last Nme | |
| BusinessPartnerName | bp | mc_name2 | Name2/First Nme | |
| GivenName | bp | name_first | First Name | |
| MiddleName | bp | namemiddle | Middle Name | |
| AdditionalFamilyName | bp | name_lst2 | Other Last Name | |
| AcademicTitle | bp | title_aca1 | Academic Title | |
| FamilyNamePrefix | bp | prefix1 | Prefix Key | |
| Initials | bp | initials | Initials | |
| FullName | bp | name1_text | Full Name | |
| EmployeeFullName | bp | name1_text | Full Name | |
| CorrespondenceLanguage | bp | langu_corr | Correspondence Lang. | |
| xsexfwhenXthen2elseendendasGenderCode | ||||
| BusinessUser | ||||
| UserID | ||||
| EmployeeImageURL | ||||
| rltypendasBusinessPartnerRole | ||||
| Person | bp | persnumber | Person Number | |
| BusinessPartnerUUID | bp | partner_guid | Partner GUID | |
| CreatedByUser | bp | crusr | User | |
| CreationDate | bp | crdat | Generation Time | |
| CreationTime | bp | crtim | Time | |
| LastChangedByUser | bp | chusr | User | |
| LastChangeDate | bp | chdat | Time Stamp | |
| LastChangeTime | bp | chtim | Time Stamp | |
| AuthorizationGroup | bp | augrp | Component of the Version Number | |
| IsBusinessPurposeCompleted | bp | xpcpt | PurposeComplete Flag |
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_N_EmployeeOp.
-- 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: PNEMPLOYEEOP
CREATE VIEW P_N_EmployeeOp AS
SELECT
keymap.central_person AS PersonnelNumber,
bpexid.idnumber AS Employee,
bp.partner AS EmployeeInternalID,
/to assgmt.start_date as ValidityStartDate AS start_dateasValidityStartDate,
/to assgmt.end_date as ValidityEndDate AS end_dateasValidityEndDate,
bp.title AS FormOfAddress,
bp.name_last AS FamilyName,
bp.name_first AS FirstName,
bp.mc_name1 AS LastName,
bp.mc_name2 AS BusinessPartnerName,
bp.name_first AS GivenName,
bp.namemiddle AS MiddleName,
bp.name_lst2 AS AdditionalFamilyName,
bp.title_aca1 AS AcademicTitle,
bp.prefix1 AS FamilyNamePrefix,
bp.initials AS Initials,
bp.name1_text AS FullName,
bp.name1_text AS EmployeeFullName,
bp.langu_corr AS CorrespondenceLanguage,
case bp.xsexm when 'X' then '1' else case bp.xsexf when 'X' then '2' else '' end end as GenderCode AS xsexfwhenXthen2elseendendasGenderCode,
'' AS BusinessUser,
'' AS UserID,
'' AS EmployeeImageURL,
case when bp_cf_role.BusinessPartnerRole is not initial then bp_cf_role.BusinessPartnerRole else bp_role.rltyp end as BusinessPartnerRole AS rltypendasBusinessPartnerRole,
bp.persnumber AS Person,
bp.partner_guid AS BusinessPartnerUUID,
bp.crusr AS CreatedByUser,
bp.crdat AS CreationDate,
bp.crtim AS CreationTime,
bp.chusr AS LastChangedByUser,
bp.chdat AS LastChangeDate,
bp.chtim AS LastChangeTime,
bp.augrp AS AuthorizationGroup,
bp.xpcpt AS IsBusinessPurposeCompleted
INNER JOIN wfd_d_keymap AS keymap ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_assgmt AS assgmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN but0id AS bpexid ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkforcePersonDetermineRole AS bp_cf_role ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkforcePersonPastMinRole AS bp_p_role ON /* join condition not captured in parsed metadata */
INNER JOIN but100 AS bp_role ON /* join condition not captured in parsed metadata */
;
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