I_TrackToolUsageHistory

DDL: I_TRACKTOOLUSAGEHISTORY SQL: ITTUHISTORY Type: view BASIC Package: MPE_EXEC_TRACKABLE_TOOLS

Track Tool Usage: History for equipment

I_TrackToolUsageHistory is a Basic CDS View that provides data about "Track Tool Usage: History for equipment" in SAP S/4HANA. It reads from 1 data source (mpe_tt_claim_hst) and exposes 10 fields with key fields Equipment, EquipmentHistoryDocument. It has 3 associations to related views. Part of development package MPE_EXEC_TRACKABLE_TOOLS.

Data Sources (1)

SourceAliasJoin Type
mpe_tt_claim_hst mpe_tt_claim_hst from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_TrackToolUsageClaimType _TrackToolUsageClaimType $projection.EquipmentClaimType = _TrackToolUsageClaimType.EquipmentClaimType
[0..1] I_UserDescription _ClaimUserDescription $projection.EquipmentClaimedByUser = _ClaimUserDescription.UserID
[0..1] I_UserDescription _UnclaimUserDescription $projection.EquipmentUnclaimedByUser = _UnclaimUserDescription.UserID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ITTUHISTORY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey EquipmentHistoryDocument view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view
VDM.viewType #BASIC view
EndUserText.label Track Tool Usage: History for equipment view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Equipment equnr Equipment
KEY EquipmentHistoryDocument docnmbr Document Number
EquipmentClaimType claim_type Claim Type
EquipmentClaimedByUser claim_created_by Claimed By
EquipmentClaimDateTime claim_timestamp Claimed On
EquipmentUnclaimedByUser unclaim_created_by Unclaimed By
EquipmentUnclaimDateTime unclaim_timestamp Unclaimed On
_TrackToolUsageClaimType _TrackToolUsageClaimType
_ClaimUserDescription _ClaimUserDescription
_UnclaimUserDescription _UnclaimUserDescription

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_TrackToolUsageHistory.
-- 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: ITTUHISTORY

CREATE VIEW I_TrackToolUsageHistory AS
SELECT
  equnr AS Equipment,
  docnmbr AS EquipmentHistoryDocument,
  claim_type AS EquipmentClaimType,
  claim_created_by AS EquipmentClaimedByUser,
  claim_timestamp AS EquipmentClaimDateTime,
  unclaim_created_by AS EquipmentUnclaimedByUser,
  unclaim_timestamp AS EquipmentUnclaimDateTime
FROM mpe_tt_claim_hst
LEFT OUTER JOIN I_TrackToolUsageClaimType AS _TrackToolUsageClaimType ON EquipmentClaimType = _TrackToolUsageClaimType.EquipmentClaimType  -- association [1..1]
LEFT OUTER JOIN I_UserDescription AS _ClaimUserDescription ON EquipmentClaimedByUser = _ClaimUserDescription.UserID  -- association [0..1]
LEFT OUTER JOIN I_UserDescription AS _UnclaimUserDescription ON EquipmentUnclaimedByUser = _UnclaimUserDescription.UserID  -- association [0..1]
;