I_WorkforcePersonDet

DDL: I_WORKFORCEPERSONDET SQL: IWRKFRCPERSNDET Type: view COMPOSITE

Retrive Workforce Person Details

I_WorkforcePersonDet is a Composite CDS View that provides data about "Retrive Workforce Person Details" in SAP S/4HANA. It reads from 1 data source (I_WorkforcePerson) and exposes 18 fields with key field Person. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_WorkforcePerson I_WorkforcePerson from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartner _BusinessPartner $projection.Person = _BusinessPartner.BusinessPartner
[0..*] I_ServicePerformerToSuplr _ServicePerformerToSupplier $projection.Person = _ServicePerformerToSupplier.Person
[1..*] I_PersonWorkAgreement_1 _PersonWorkAgreement $projection.Person = _PersonWorkAgreement.Person
[0..1] I_WorkplaceAddress _WorkplaceAddress $projection.BusinessPartnerUUID = _WorkplaceAddress.BusinessPartnerUUID
[0..*] I_BusinessPartnerToBPRole _BusinessPartnerToBPRole $projection.Person = _BusinessPartnerToBPRole.BusinessPartner and( _BusinessPartnerToBPRole.BusinessPartnerRole = 'BUP003' or _BusinessPartnerToBPRole.BusinessPartnerRole = 'BBP005' or _BusinessPartnerToBPRole.BusinessPartnerRole = 'BBP010' )
[0..*] I_BusinessPartnerToBPRole_2 _BusinessPartnerToBPRole_2 $projection.Person = _BusinessPartnerToBPRole_2.BusinessPartner and( _BusinessPartnerToBPRole_2.BusinessPartnerRole = 'BUP003' or _BusinessPartnerToBPRole_2.BusinessPartnerRole = 'BBP005' or _BusinessPartnerToBPRole_2.BusinessPartnerRole = 'BBP010' )
[1] I_User _User $projection.BusinessPartnerUUID = _User.BusinessPartnerUUID

Annotations (13)

NameValueLevelField
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AbapCatalog.sqlViewName IWRKFRCPERSNDET view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Retrive Workforce Person Details view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.preserveKey true view
Metadata.ignorePropagatedAnnotations true view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY Person Person Person/ Farm/ Field
PersonExternalID PersonExternalID Logical System
FirstName FirstName First Name
LastName LastName Last Name
MiddleName MiddleName Middle Name
AdditionalLastName AdditionalLastName Other Last Name
PersonFullName PersonFullName Full Name
BusinessPartnerUUID BusinessPartnerUUID UUID
AuthorizationGroup AuthorizationGroup AuthorizGroup
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
UserID _User UserID User Name
_BusinessPartner _BusinessPartner
_ServicePerformerToSupplier _ServicePerformerToSupplier
_PersonWorkAgreement _PersonWorkAgreement
_WorkplaceAddress _WorkplaceAddress
_BusinessPartnerToBPRole _BusinessPartnerToBPRole
_BusinessPartnerToBPRole_2 _BusinessPartnerToBPRole_2
_User _User

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 I_WorkforcePersonDet.
-- 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: IWRKFRCPERSNDET

CREATE VIEW I_WorkforcePersonDet AS
SELECT
  Person,
  PersonExternalID,
  FirstName,
  LastName,
  MiddleName,
  AdditionalLastName,
  PersonFullName,
  BusinessPartnerUUID,
  AuthorizationGroup,
  IsBusinessPurposeCompleted,
  _User.UserID AS UserID
FROM I_WorkforcePerson
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON Person = _BusinessPartner.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_ServicePerformerToSuplr AS _ServicePerformerToSupplier ON Person = _ServicePerformerToSupplier.Person  -- association [0..*]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonWorkAgreement ON Person = _PersonWorkAgreement.Person  -- association [1..*]
LEFT OUTER JOIN I_WorkplaceAddress AS _WorkplaceAddress ON BusinessPartnerUUID = _WorkplaceAddress.BusinessPartnerUUID  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartnerToBPRole AS _BusinessPartnerToBPRole ON Person = _BusinessPartnerToBPRole.BusinessPartner AND( _BusinessPartnerToBPRole.BusinessPartnerRole = 'BUP003' OR _BusinessPartnerToBPRole.BusinessPartnerRole = 'BBP005' OR _BusinessPartnerToBPRole.BusinessPartnerRole = 'BBP010' )  -- association [0..*]
LEFT OUTER JOIN I_BusinessPartnerToBPRole_2 AS _BusinessPartnerToBPRole_2 ON Person = _BusinessPartnerToBPRole_2.BusinessPartner AND( _BusinessPartnerToBPRole_2.BusinessPartnerRole = 'BUP003' OR _BusinessPartnerToBPRole_2.BusinessPartnerRole = 'BBP005' OR _BusinessPartnerToBPRole_2.BusinessPartnerRole = 'BBP010' )  -- association [0..*]
LEFT OUTER JOIN I_User AS _User ON BusinessPartnerUUID = _User.BusinessPartnerUUID  -- association [1]
;