I_HCMOrganizationalAssignment

DDL: I_HCMORGANIZATIONALASSIGNMENT Type: view_entity BASIC

HCM Organizational Assignment

I_HCMOrganizationalAssignment is a Basic CDS View that provides data about "HCM Organizational Assignment" in SAP S/4HANA. It reads from 1 data source (pa0001) and exposes 69 fields with key fields HCMPersonnelNumber, HCMSubtype, HCMObjectIdentification, HCMRecordIsLocked, EndDate. It has 18 associations to related views.

Data Sources (1)

SourceAliasJoin Type
pa0001 pa0001 from

Associations (18)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_HCMPersonnelArea _HCMPersonnelArea $projection.HCMPersonnelArea = _HCMPersonnelArea.HCMPersonnelArea
[0..1] I_HCMEmployeeGroup _HCMEmployeeGroup $projection.HCMEmployeeGroup = _HCMEmployeeGroup.HCMEmployeeGroup
[0..1] I_HCMEmployeeSubgroup _HCMEmployeeSubGroup $projection.HCMEmployeeSubgroup = _HCMEmployeeSubGroup.HCMEmployeeSubgroup
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_HCMPersonnelSubarea _HCMPersonnelSubarea $projection.HCMPersonnelArea = _HCMPersonnelSubarea.HCMPersonnelArea and $projection.HCMPersonnelSubarea = _HCMPersonnelSubarea.HCMPersonnelSubarea
[0..1] I_HCMPayrollArea _HCMPayrollArea $projection.HCMPayrollArea = _HCMPayrollArea.HCMPayrollArea
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter and $projection.StartDate <= _CostCenter.ValidityEndDate and $projection.StartDate >= _CostCenter.ValidityStartDate
[0..1] I_HCMObjectType _HCMObjectType $projection.HCMObjectType = _HCMObjectType.HCMObjectType
[0..1] I_HCMOrganizationalUnit _HCMOrganizationalUnit $projection.HCMOrganizationalUnit = _HCMOrganizationalUnit.HCMOrganizationalUnit and $projection.StartDate <= _HCMOrganizationalUnit.EndDate and $projection.StartDate >= _HCMOrganizationalUnit.StartDate
[0..1] I_HCMPosition _HCMPosition $projection.HCMPosition = _HCMPosition.HCMPosition and _HCMPosition.HCMObjectType = 'S' and $projection.StartDate <= _HCMPosition.EndDate and $projection.StartDate >= _HCMPosition.StartDate
[0..1] I_HCMJob _HCMJob $projection.HCMJob = _HCMJob.HCMJob and $projection.StartDate <= _HCMJob.EndDate and $projection.StartDate >= _HCMJob.StartDate
[0..*] I_Fund _Fund $projection.Fund = _Fund.Fund and _Fund.FinancialManagementArea is not null
[0..*] I_FundsCenter _FundsCenter $projection.FundsCenter = _FundsCenter.FundsCenter and _FundsCenter.FinancialManagementArea is not null
[0..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..1] I_Grant _Grant $projection.GrantID = _Grant.GrantID
[0..1] I_Segment _Segment $projection.Segment = _Segment.Segment

Annotations (6)

NameValueLevelField
EndUserText.label HCM Organizational Assignment view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
VDM.viewType #BASIC view

Fields (69)

KeyFieldSource TableSource FieldDescription
KEY HCMPersonnelNumber pernr Personnel no.
KEY HCMSubtype subty Subtype
KEY HCMObjectIdentification objps Object ID
KEY HCMRecordIsLocked sprps Single-Character Flag
KEY EndDate endda Valid To
KEY StartDate begda Valid From
KEY HCMSequentialNumber seqnr Tank ID
LastChangedDate aedtm Changed On
LastChangedByUser uname User Name
HCMInfoTypeRecordIsHistorical histo Historical rec.
HCMInfoTypeRecordHasText itxex Text exists
HCMInfoTypeRecordHasRefField refex Single-Character Flag
HCMInfoTypeRecordHasConfField ordex Single-Character Flag
HCMInfoTypeRecordScreenCtrl itbld Screen control
HCMMasterDataChangeReason preas Change Reason
HCMInfoTypeRecordRsrvdFld1 flag1 Text field length 1
HCMInfoTypeRecordRsrvdFld2 flag2 Tr. Evaluation
HCMInfoTypeRecordRsrvdFld3 flag3 Text field length 1
HCMInfoTypeRecordRsrvdFld4 flag4 Usage in the OWN Authorization Context
HCMInfoTypeRecordRsrvdFld1Len2 rese1 Reserved Field/Unused Field of Length 2
HCMInfoTypeRecordRsrvdFld2Len2 rese2 Reserved Field/Unused Field of Length 2
HCMGrpgValForPersAssignments grpvl Grouping Value
CompanyCode Value
HCMPersonnelArea werks Receiving Plant
HCMEmployeeGroup persg EE group
HCMEmployeeSubgroup persk EE subgroup
HCMOrganizationalKey vdsk1 Org.key
BusinessArea gsber Business Area
HCMPersonnelSubarea btrtl Pers. subarea
HCMLegalPerson juper Legal person
HCMPayrollArea abkrs Process. group
HCMWorkContract ansvh Work contract
CostCenter kostl Substitute CC
HCMOrganizationalUnit orgeh Org. Unit
HCMPosition plans Position
HCMJob stell Job
HCMSupervisorArea mstbr Supervisor
HCMPayrollAdministrator sacha Payroll admin.
HCMMasterDataAdministrator sachp Pers.admin.
HCMTimeRecordingAdministrator sachz Time admin.
HCMEmplNameFrmtLastAnd1stName sname User Name
HCMEmployeeName ename User Name
HCMObjectType otype Type of Val.
HCMAdministratorGroup sbmod Group
ControllingArea kokrs Org. Value
FundsCenter fistl Funds Center
Fund geber Fund
FunctionalArea fkber Functional Area
GrantID grant_nbr Receiver Grant
Segment sgmnt Segment
BudgetPeriod budget_pd Rec BudPer
_CompanyCode _CompanyCode
_HCMPersonnelArea _HCMPersonnelArea
_HCMEmployeeGroup _HCMEmployeeGroup
_HCMEmployeeSubGroup _HCMEmployeeSubGroup
_BusinessArea _BusinessArea
_HCMPersonnelSubarea _HCMPersonnelSubarea
_CostCenter _CostCenter
_HCMPosition _HCMPosition
_HCMOrganizationalUnit _HCMOrganizationalUnit
_HCMJob _HCMJob
_HCMObjectType _HCMObjectType
_HCMPayrollArea _HCMPayrollArea
_ControllingArea _ControllingArea
_FundsCenter _FundsCenter
_Fund _Fund
_FunctionalArea _FunctionalArea
_Grant _Grant
_Segment _Segment

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_HCMOrganizationalAssignment.
-- 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.

CREATE VIEW I_HCMOrganizationalAssignment AS
SELECT
  pernr AS HCMPersonnelNumber,
  subty AS HCMSubtype,
  objps AS HCMObjectIdentification,
  sprps AS HCMRecordIsLocked,
  endda AS EndDate,
  begda AS StartDate,
  seqnr AS HCMSequentialNumber,
  aedtm AS LastChangedDate,
  uname AS LastChangedByUser,
  histo AS HCMInfoTypeRecordIsHistorical,
  itxex AS HCMInfoTypeRecordHasText,
  refex AS HCMInfoTypeRecordHasRefField,
  ordex AS HCMInfoTypeRecordHasConfField,
  itbld AS HCMInfoTypeRecordScreenCtrl,
  preas AS HCMMasterDataChangeReason,
  flag1 AS HCMInfoTypeRecordRsrvdFld1,
  flag2 AS HCMInfoTypeRecordRsrvdFld2,
  flag3 AS HCMInfoTypeRecordRsrvdFld3,
  flag4 AS HCMInfoTypeRecordRsrvdFld4,
  rese1 AS HCMInfoTypeRecordRsrvdFld1Len2,
  rese2 AS HCMInfoTypeRecordRsrvdFld2Len2,
  grpvl AS HCMGrpgValForPersAssignments,
  cast ( bukrs as bukrs preserving type ) AS CompanyCode,
  werks AS HCMPersonnelArea,
  persg AS HCMEmployeeGroup,
  persk AS HCMEmployeeSubgroup,
  vdsk1 AS HCMOrganizationalKey,
  gsber AS BusinessArea,
  btrtl AS HCMPersonnelSubarea,
  juper AS HCMLegalPerson,
  abkrs AS HCMPayrollArea,
  ansvh AS HCMWorkContract,
  kostl AS CostCenter,
  orgeh AS HCMOrganizationalUnit,
  plans AS HCMPosition,
  stell AS HCMJob,
  mstbr AS HCMSupervisorArea,
  sacha AS HCMPayrollAdministrator,
  sachp AS HCMMasterDataAdministrator,
  sachz AS HCMTimeRecordingAdministrator,
  sname AS HCMEmplNameFrmtLastAnd1stName,
  ename AS HCMEmployeeName,
  otype AS HCMObjectType,
  sbmod AS HCMAdministratorGroup,
  kokrs AS ControllingArea,
  fistl AS FundsCenter,
  geber AS Fund,
  fkber AS FunctionalArea,
  grant_nbr AS GrantID,
  sgmnt AS Segment,
  budget_pd AS BudgetPeriod
FROM pa0001
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_HCMPersonnelArea AS _HCMPersonnelArea ON HCMPersonnelArea = _HCMPersonnelArea.HCMPersonnelArea  -- association [0..1]
LEFT OUTER JOIN I_HCMEmployeeGroup AS _HCMEmployeeGroup ON HCMEmployeeGroup = _HCMEmployeeGroup.HCMEmployeeGroup  -- association [0..1]
LEFT OUTER JOIN I_HCMEmployeeSubgroup AS _HCMEmployeeSubGroup ON HCMEmployeeSubgroup = _HCMEmployeeSubGroup.HCMEmployeeSubgroup  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_HCMPersonnelSubarea AS _HCMPersonnelSubarea ON HCMPersonnelArea = _HCMPersonnelSubarea.HCMPersonnelArea AND HCMPersonnelSubarea = _HCMPersonnelSubarea.HCMPersonnelSubarea  -- association [0..1]
LEFT OUTER JOIN I_HCMPayrollArea AS _HCMPayrollArea ON HCMPayrollArea = _HCMPayrollArea.HCMPayrollArea  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter AND StartDate <= _CostCenter.ValidityEndDate AND StartDate >= _CostCenter.ValidityStartDate  -- association [0..1]
LEFT OUTER JOIN I_HCMObjectType AS _HCMObjectType ON HCMObjectType = _HCMObjectType.HCMObjectType  -- association [0..1]
LEFT OUTER JOIN I_HCMOrganizationalUnit AS _HCMOrganizationalUnit ON HCMOrganizationalUnit = _HCMOrganizationalUnit.HCMOrganizationalUnit AND StartDate <= _HCMOrganizationalUnit.EndDate AND StartDate >= _HCMOrganizationalUnit.StartDate  -- association [0..1]
LEFT OUTER JOIN I_HCMPosition AS _HCMPosition ON HCMPosition = _HCMPosition.HCMPosition AND _HCMPosition.HCMObjectType = 'S' AND StartDate <= _HCMPosition.EndDate AND StartDate >= _HCMPosition.StartDate  -- association [0..1]
LEFT OUTER JOIN I_HCMJob AS _HCMJob ON HCMJob = _HCMJob.HCMJob AND StartDate <= _HCMJob.EndDate AND StartDate >= _HCMJob.StartDate  -- association [0..1]
LEFT OUTER JOIN I_Fund AS _Fund ON Fund = _Fund.Fund AND _Fund.FinancialManagementArea is not null  -- association [0..*]
LEFT OUTER JOIN I_FundsCenter AS _FundsCenter ON FundsCenter = _FundsCenter.FundsCenter AND _FundsCenter.FinancialManagementArea is not null  -- association [0..*]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_Grant AS _Grant ON GrantID = _Grant.GrantID  -- association [0..1]
LEFT OUTER JOIN I_Segment AS _Segment ON Segment = _Segment.Segment  -- association [0..1]
;