# HR_TIME_RESULTS_IN_INTERVAL — Read Time Evaluation Results for a Period

> Reads time evaluation results (cluster B2) of a personnel number for a date interval. Custom time reports use it to get daily time types and balances without importing the cluster themselves. Handle the exceptions, especially NO_READ_AUTHORITY and CLUSTER_ARCHIVED.

- Modules: HCM
- Type: Function module
- Function group: HRB2
- Remote-enabled (RFC): No
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/hr-time-results-in-interval/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INT_PERNR | PERNR-PERNR | Personnel number | Yes |
| INT_BEGDA | SY-DATUM | Interval start date | - |
| INT_ENDDA | SY-DATUM | Interval end date | - |
| INT_CLTYP | PC2B0-CLTYP | Cluster type | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INT_TIME_RESULTS | - | Time evaluation results | Yes |
| GET_TBUFF | - | Buffer contents (TBUFF) | - |
| GET_BUFFER_DIR | - | Buffer directory | - |

## Exceptions

- NO_PERIOD_SPECIFIED: No period specified
- WRONG_CLUSTER_VERSION: Wrong cluster version
- NO_READ_AUTHORITY: No read authorization
- CLUSTER_ARCHIVED: Cluster is archived
- TECHNICAL_ERROR: Technical error

## Call template (ABAP)

```abap
CALL FUNCTION 'HR_TIME_RESULTS_IN_INTERVAL'
  EXPORTING
    int_pernr = lv_int_pernr
  TABLES
    int_time_results = lt_int_time_results
    get_tbuff = lt_get_tbuff
    get_buffer_dir = lt_get_buffer_dir
  EXCEPTIONS
    no_period_specified = 1
    wrong_cluster_version = 2
    no_read_authority = 3
    cluster_archived = 4
    technical_error = 5
    OTHERS = 6.
```

## Related tables

PCL2

