I_HCMTimeEventCore

DDL: I_HCMTIMEEVENTCORE Type: view_entity BASIC

HCM Time Events Core Data

I_HCMTimeEventCore is a Basic CDS View that provides data about "HCM Time Events Core Data" in SAP S/4HANA. It reads from 1 data source (tptcor_core) and exposes 60 fields with key fields PersonnelNumber, HCMTimeEventDate, HCMTimeEventID, HCMTimeReqItemListSqncNumber. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
tptcor_core tptcor_core from

Associations (4)

CardinalityTargetAliasCondition
[0..1] ptreq_actor _approver _approver.actor_id = _Header.next_processor_i
[0..1] tptcor_apl _apl $projection.HCMTimeRequestItemListID = _apl.item_id
[0..1] tptcor_kostl _kostl $projection.HCMTimeRequestItemListID = _kostl.item_id
[0..1] tptcor_customer _cust $projection.HCMTimeRequestItemListID = _cust.item_id

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label HCM Time Events Core Data view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY PersonnelNumber tptcor_core pernr Personnel no.
KEY HCMTimeEventDate tptcor_core ldate Entry Date
KEY HCMTimeEventID
KEY HCMTimeReqItemListSqncNumber Item item_list_no Item
HCMTimeEventOperation tptcor_core operation Transaction
HCMTimeRequestVersion _Header version_no Version No
HCMTimeEventTime tptcor_core ltime Time received
HCMTimeEventType tptcor_core satza Time event type
HCMTimeEventAttndncAbsncReason tptcor_core abwgr Undefined range (can be used for patch levels)
HCMTimeEventStatus _Header status Workflow Status
HCMTimeEventCreationDate tptcor_core erdat Entered On
HCMTimeEventCreationTime tptcor_core ertim Time
clientNULLasHCMTimeEventCreationDateTime
HCMTimeEventTerminalID tptcor_core terid Terminal ID
HCMTimeEventOrigin tptcor_core origf Origin
HCMTimeEvtDayAssgmt
HCMTimeEvtTimeRecordingID tptcor_core zausw Time rec.ID no.
HCMTimeRequestItemListID tptcor_core item_id Simulation Item ID
HCMTimeEventApprover
HCMTimeEventModifDateTime _Header mod_timestamp Timestamp
HCMTimeEventInstanceID _Header workitem_id Work Item ID
HCMObjectType _apl otype Type of Val.
HCMPosition _apl plans Position
PayScaleGroup _apl trfgr Pay Scale Group
PayScaleLevel _apl trfst PS level
HCMPremiumNumberCode _apl prakn Premium no.
HCMPremiumIndicatorCode _apl prakz Premium ID
HCMExtraPayIndicatorCode _apl aufkz Qty Struct. Control
HCMValuationBasisAmount _apl bwgrl Valuation basis
HCMCurrency _apl waers Transaction Currency
HCMActivityType _kostl ltlst Activity Type
HCMCostObject _kostl kstrg Cost Objects
WBSElementExternalID
NetworkNumberForAcctAssgmt _kostl nplnr Network
SalesDocument _kostl kdauf SD Document
SalesDocumentItem _kostl kdpos Sales Ord. Item
BusinessProcess _kostl prznr Sender BProc
HCMFundsCenter _kostl fistl Funds Center
HCMCostAssgmtFund _kostl geber Fund
HCMCostCenter _kostl skost Sender Cost Ctr
CompanyCode _kostl sbukr Company Code
HCMBusinessArea _kostl sgsbr Business Area
HCMTimeEventItemText _kostl sgtxt Text
HCMServiceType _kostl dart CHAR2
HCMServiceCategory _kostl udart CHAR2
HCMFunctionalArea _kostl fkber Functional Area
GrantID _kostl grant_nbr Receiver Grant
HCMTimeEvtCommitmentItemInt
HCMTimeEvtCommitmentItemExt _kostl fipex obsolete
BudgetPeriod _kostl budget_pd Rec BudPer
HCMTimeReqFreeDefined01Value _cust customer01 Customer Field
HCMTimeReqFreeDefined02Value _cust customer02 Customer Field
HCMTimeReqFreeDefined03Value _cust customer03 Customer Field
HCMTimeReqFreeDefined04Value _cust customer04 Customer Field
HCMTimeReqFreeDefined05Value _cust customer05 Customer Field
HCMTimeReqFreeDefined06Value _cust customer06 Customer Field
HCMTimeReqFreeDefined07Value _cust customer07 Customer Field
HCMTimeReqFreeDefined08Value _cust customer08 Customer Field
HCMTimeReqFreeDefined09Value _cust customer09 Customer Field
HCMTimeReqFreeDefined10Value _cust customer10 Customer Field

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_HCMTimeEventCore.
-- 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_HCMTimeEventCore AS
SELECT
  tptcor_core.pernr AS PersonnelNumber,
  tptcor_core.ldate AS HCMTimeEventDate,
  cast(_Header.request_id as char32) AS HCMTimeEventID,
  Item.item_list_no AS HCMTimeReqItemListSqncNumber,
  tptcor_core.operation AS HCMTimeEventOperation,
  _Header.version_no AS HCMTimeRequestVersion,
  tptcor_core.ltime AS HCMTimeEventTime,
  tptcor_core.satza AS HCMTimeEventType,
  tptcor_core.abwgr AS HCMTimeEventAttndncAbsncReason,
  _Header.status AS HCMTimeEventStatus,
  tptcor_core.erdat AS HCMTimeEventCreationDate,
  tptcor_core.ertim AS HCMTimeEventCreationTime,
  dats_tims_to_tstmp( tptcor_core.erdat, tptcor_core.ertim, abap_system_timezone( $session.client, 'NULL' ), $session.client, 'NULL' ) as HCMTimeEventCreationDateTime AS clientNULLasHCMTimeEventCreationDateTime,
  tptcor_core.terid AS HCMTimeEventTerminalID,
  tptcor_core.origf AS HCMTimeEventOrigin,
  cast(tptcor_core.dallf as char1) AS HCMTimeEvtDayAssgmt,
  tptcor_core.zausw AS HCMTimeEvtTimeRecordingID,
  tptcor_core.item_id AS HCMTimeRequestItemListID,
  cast(_approver.objid as pernr_d) AS HCMTimeEventApprover,
  _Header.mod_timestamp AS HCMTimeEventModifDateTime,
  _Header.workitem_id AS HCMTimeEventInstanceID,
  _apl.otype AS HCMObjectType,
  _apl.plans AS HCMPosition,
  _apl.trfgr AS PayScaleGroup,
  _apl.trfst AS PayScaleLevel,
  _apl.prakn AS HCMPremiumNumberCode,
  _apl.prakz AS HCMPremiumIndicatorCode,
  _apl.aufkz AS HCMExtraPayIndicatorCode,
  _apl.bwgrl AS HCMValuationBasisAmount,
  _apl.waers AS HCMCurrency,
  _kostl.ltlst AS HCMActivityType,
  _kostl.kstrg AS HCMCostObject,
  cast(_kostl.posid as ps_posid_edit ) AS WBSElementExternalID,
  _kostl.nplnr AS NetworkNumberForAcctAssgmt,
  _kostl.kdauf AS SalesDocument,
  _kostl.kdpos AS SalesDocumentItem,
  _kostl.prznr AS BusinessProcess,
  _kostl.fistl AS HCMFundsCenter,
  _kostl.geber AS HCMCostAssgmtFund,
  _kostl.skost AS HCMCostCenter,
  _kostl.sbukr AS CompanyCode,
  _kostl.sgsbr AS HCMBusinessArea,
  _kostl.sgtxt AS HCMTimeEventItemText,
  _kostl.dart AS HCMServiceType,
  _kostl.udart AS HCMServiceCategory,
  _kostl.fkber AS HCMFunctionalArea,
  _kostl.grant_nbr AS GrantID,
  cast(_kostl.fipos as char14) AS HCMTimeEvtCommitmentItemInt,
  _kostl.fipex AS HCMTimeEvtCommitmentItemExt,
  _kostl.budget_pd AS BudgetPeriod,
  _cust.customer01 AS HCMTimeReqFreeDefined01Value,
  _cust.customer02 AS HCMTimeReqFreeDefined02Value,
  _cust.customer03 AS HCMTimeReqFreeDefined03Value,
  _cust.customer04 AS HCMTimeReqFreeDefined04Value,
  _cust.customer05 AS HCMTimeReqFreeDefined05Value,
  _cust.customer06 AS HCMTimeReqFreeDefined06Value,
  _cust.customer07 AS HCMTimeReqFreeDefined07Value,
  _cust.customer08 AS HCMTimeReqFreeDefined08Value,
  _cust.customer09 AS HCMTimeReqFreeDefined09Value,
  _cust.customer10 AS HCMTimeReqFreeDefined10Value
FROM tptcor_core
LEFT OUTER JOIN ptreq_actor AS _approver ON _approver.actor_id = _Header.next_processor_i  -- association [0..1]
LEFT OUTER JOIN tptcor_apl AS _apl ON HCMTimeRequestItemListID = _apl.item_id  -- association [0..1]
LEFT OUTER JOIN tptcor_kostl AS _kostl ON HCMTimeRequestItemListID = _kostl.item_id  -- association [0..1]
LEFT OUTER JOIN tptcor_customer AS _cust ON HCMTimeRequestItemListID = _cust.item_id  -- association [0..1]
;