I_TeamCatsDataForKeyDates
Employee Recorded and Available Data for last 3 months
I_TeamCatsDataForKeyDates is a Composite CDS View that provides data about "Employee Recorded and Available Data for last 3 months" in SAP S/4HANA. It reads from 4 data sources (I_PersonWorkAgrmtOrglDetails, P_TEAMCATSAVAILDATA, I_PersonWorkAgreement_1, I_PersonWorkAgrmtSrvcCostLevel) and exposes 22 fields with key field EmploymentInternalID. It has 4 associations to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_PersonWorkAgrmtOrglDetails | Employees | left_outer |
| P_TEAMCATSAVAILDATA | P_TEAMCATSAVAILDATA | from |
| I_PersonWorkAgreement_1 | personWA | left_outer |
| I_PersonWorkAgrmtSrvcCostLevel | ServiceCostLevel | left_outer |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | sydate | |
| P_EndDate | sydate |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WorkforcePerson | _EmployeeDetails | personWA.Person = _EmployeeDetails.Person |
| [0..1] | I_WorkforcePersonImageURL | _EmployeeImage | personWA.Person = _EmployeeImage.Person |
| [0..1] | I_ServiceCostLevelText | _costLevelText | ServiceCostLevel.ServiceCostLevel = _costLevelText.ServiceCostLevel |
| [0..1] | I_PersonWorkAgrmtRsceType | _EmpResource | EmpCatsAvail.EmploymentInternalID = _EmpResource.PersonWorkAgreement |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ITEAMCATSDATA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Employee Recorded and Available Data for last 3 months | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EmploymentInternalID | EmpCatsAvail | EmploymentInternalID | WorkForce Assgmt ID |
| PersonFullName | _EmployeeDetails | PersonFullName | Full Name | |
| PersonExternalID | _EmployeeDetails | PersonExternalID | ||
| AuthorizationGroup | _EmployeeDetails | AuthorizationGroup | AuthorizGroup | |
| IsBusinessPurposeCompleted | _EmployeeDetails | IsBusinessPurposeCompleted | Purpose Completed | |
| PersonWorkAgrmtAuthznGrpg | I_PersonWorkAgrmtOrglDetails | PersonWorkAgrmtAuthznGrpg | Org.key | |
| WorkforcePersonImageURL | _EmployeeImage | WorkforcePersonImageURL | ||
| CostCenter | I_PersonWorkAgrmtOrglDetails | CostCenter | Cost Center | |
| OrganizationalUnitName | ||||
| JobName | ||||
| ServiceCostLevelName | ||||
| OrganizationalUnit | ||||
| CompanyCode | I_PersonWorkAgrmtOrglDetails | CompanyCode | Receiver Company Code | |
| CostCenterName | ||||
| AvailabilityInHours | ||||
| TotalProductiveHours | EmpCatsAvail | TotalProductiveHours | ||
| TotalNonProductiveHours | EmpCatsAvail | TotalNonProductiveHours | ||
| TotalApprovedHours | ||||
| TotRecHrsSentForApproval | EmpCatsAvail | TotRecHrsSentForApproval | ||
| dec52endasEmployeeUtilizationRate | ||||
| CalendarDate | ||||
| _EmpResource | _EmpResource |
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_TeamCatsDataForKeyDates.
-- 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: ITEAMCATSDATA
-- Parameters: P_StartDate : sydate, P_EndDate : sydate
CREATE VIEW I_TeamCatsDataForKeyDates AS
SELECT
EmpCatsAvail.EmploymentInternalID AS EmploymentInternalID,
_EmployeeDetails.PersonFullName AS PersonFullName,
_EmployeeDetails.PersonExternalID AS PersonExternalID,
_EmployeeDetails.AuthorizationGroup AS AuthorizationGroup,
_EmployeeDetails.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
Employees.PersonWorkAgrmtAuthznGrpg AS PersonWorkAgrmtAuthznGrpg,
_EmployeeImage.WorkforcePersonImageURL AS WorkforcePersonImageURL,
Employees.CostCenter AS CostCenter,
Employees._OrganizationalUnitText[1: Language = $session.system_language ].OrganizationalUnitName AS OrganizationalUnitName,
Employees._PersonWorkAgrmtJobText[1: Language = $session.system_language].JobName AS JobName,
_costLevelText[1: Language = $session.system_language].ServiceCostLevelName AS ServiceCostLevelName,
Employees._OrganizationalUnitText[1: Language = $session.system_language].OrganizationalUnit AS OrganizationalUnit,
Employees.CompanyCode AS CompanyCode,
Employees._CostCenter._Text[1: Language = $session.system_language].CostCenterName AS CostCenterName,
cast(EmpCatsAvail.AvailabilityInHours as abap.dec(13,2)) AS AvailabilityInHours,
EmpCatsAvail.TotalProductiveHours AS TotalProductiveHours,
EmpCatsAvail.TotalNonProductiveHours AS TotalNonProductiveHours,
(EmpCatsAvail.TotalProductiveHours+EmpCatsAvail.TotalNonProductiveHours) AS TotalApprovedHours,
EmpCatsAvail.TotRecHrsSentForApproval AS TotRecHrsSentForApproval,
case when EmpCatsAvail.AvailabilityInHours <> 0 then division((EmpCatsAvail.TotalProductiveHours+EmpCatsAvail.TotalNonProductiveHours), EmpCatsAvail.AvailabilityInHours, 2)*100 else cast(0 as abap.dec(5,2)) end as EmployeeUtilizationRate AS dec52endasEmployeeUtilizationRate,
$parameters.P_EndDate AS CalendarDate
FROM P_TEAMCATSAVAILDATA
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS personWA ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PersonWorkAgrmtOrglDetails AS Employees ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PersonWorkAgrmtSrvcCostLevel AS ServiceCostLevel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkforcePerson AS _EmployeeDetails ON personWA.Person = _EmployeeDetails.Person -- association [0..1]
LEFT OUTER JOIN I_WorkforcePersonImageURL AS _EmployeeImage ON personWA.Person = _EmployeeImage.Person -- association [0..1]
LEFT OUTER JOIN I_ServiceCostLevelText AS _costLevelText ON ServiceCostLevel.ServiceCostLevel = _costLevelText.ServiceCostLevel -- association [0..1]
LEFT OUTER JOIN I_PersonWorkAgrmtRsceType AS _EmpResource ON EmpCatsAvail.EmploymentInternalID = _EmpResource.PersonWorkAgreement -- 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