HCM
Function module
Used the same way in S/4HANA
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.
- Function group
- HRB2
- Remote-enabled (RFC)
- No
- Type
- Function module
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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
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
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.