I_TrackToolUsageHistoryData
Composite CDS to retrieve tool claim history
I_TrackToolUsageHistoryData is a Composite CDS View that provides data about "Composite CDS to retrieve tool claim history" in SAP S/4HANA. It reads from 1 data source (I_TrackToolUsageHistory) and exposes 16 fields with key field EquipmentHistoryDocument. It has 4 associations to related views. Part of development package MPE_EXEC_TRACKABLE_TOOLS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_TrackToolUsageHistory | I_TrackToolUsageHistory | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TrackToolUsageHistoryUser | _UsageHistoryUser | $projection.EquipmentHistoryDocument = _UsageHistoryUser.EquipmentHistoryDocument |
| [0..*] | I_TrackToolUsageHistWrkCtr | _UsageHistWrkCtr | $projection.EquipmentHistoryDocument = _UsageHistWrkCtr.EquipmentHistoryDocument |
| [0..*] | I_TrackToolUsageHistOpActy | _UsageHistOpActy | $projection.EquipmentHistoryDocument = _UsageHistOpActy.EquipmentHistoryDocument |
| [0..1] | I_TrackToolUsageCountForDoc | _UsageCountForDoc | $projection.EquipmentHistoryDocument = _UsageCountForDoc.EquipmentHistoryDocument and $projection.EquipmentClaimType = _UsageCountForDoc.EquipmentClaimType |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ITTUMHISTORYDATA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Composite CDS to retrieve tool claim history | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EquipmentHistoryDocument | EquipmentHistoryDocument | Document Number | |
| Equipment | Equipment | Equipment check | ||
| EquipmentClaimType | EquipmentClaimType | Claim Type | ||
| EquipmentClaimedByUser | EquipmentClaimedByUser | Claimed By | ||
| EquipmentClaimDateTime | EquipmentClaimDateTime | Claimed On | ||
| EquipmentUnclaimedByUser | EquipmentUnclaimedByUser | Unclaimed By | ||
| EquipmentUnclaimDateTime | EquipmentUnclaimDateTime | Unclaimed On | ||
| NmbrOfObjectsClaimingEquipment | _UsageCountForDoc | NmbrOfObjectsClaimingEquipment | ||
| fltpendasEquipClaimDurationInSeconds | ||||
| WorkCenterInternalID | _UsageHistWrkCtr | WorkCenterInternalID | Work Center | |
| BusinessPartner | _UsageHistoryUser | BusinessPartner | Issuing Authority | |
| _UsageHistoryUser | _UsageHistoryUser | |||
| _UsageHistWrkCtr | _UsageHistWrkCtr | |||
| _UsageHistOpActy | _UsageHistOpActy | |||
| _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_TrackToolUsageHistoryData.
-- 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: ITTUMHISTORYDATA
CREATE VIEW I_TrackToolUsageHistoryData AS
SELECT
EquipmentHistoryDocument,
Equipment,
EquipmentClaimType,
EquipmentClaimedByUser,
EquipmentClaimDateTime,
EquipmentUnclaimedByUser,
EquipmentUnclaimDateTime,
_UsageCountForDoc.NmbrOfObjectsClaimingEquipment AS NmbrOfObjectsClaimingEquipment,
case when EquipmentClaimDateTime is not initial and EquipmentClaimDateTime > EquipmentUnclaimDateTime then cast( TSTMP_SECONDS_BETWEEN(EquipmentClaimDateTime, tstmp_current_utctimestamp(), 'NULL') as abap.fltp ) when EquipmentClaimDateTime is not initial and EquipmentClaimDateTime < EquipmentUnclaimDateTime then cast( TSTMP_SECONDS_BETWEEN(EquipmentClaimDateTime, EquipmentUnclaimDateTime, 'NULL') as abap.fltp ) end as EquipClaimDurationInSeconds AS fltpendasEquipClaimDurationInSeconds,
_UsageHistWrkCtr.WorkCenterInternalID AS WorkCenterInternalID,
_UsageHistoryUser.BusinessPartner AS BusinessPartner
FROM I_TrackToolUsageHistory
LEFT OUTER JOIN I_TrackToolUsageHistoryUser AS _UsageHistoryUser ON EquipmentHistoryDocument = _UsageHistoryUser.EquipmentHistoryDocument -- association [0..*]
LEFT OUTER JOIN I_TrackToolUsageHistWrkCtr AS _UsageHistWrkCtr ON EquipmentHistoryDocument = _UsageHistWrkCtr.EquipmentHistoryDocument -- association [0..*]
LEFT OUTER JOIN I_TrackToolUsageHistOpActy AS _UsageHistOpActy ON EquipmentHistoryDocument = _UsageHistOpActy.EquipmentHistoryDocument -- association [0..*]
LEFT OUTER JOIN I_TrackToolUsageCountForDoc AS _UsageCountForDoc ON EquipmentHistoryDocument = _UsageCountForDoc.EquipmentHistoryDocument AND EquipmentClaimType = _UsageCountForDoc.EquipmentClaimType -- association [0..1]
;
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