SAP HR_TIME_RESULTS_GET Function Module for
HR_TIME_RESULTS_GET is a standard hr time results get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for hr time results get FM, simply by entering the name HR_TIME_RESULTS_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRB2
Program Name: SAPLHRB2
Main Program: SAPLHRB2
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_TIME_RESULTS_GET pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'HR_TIME_RESULTS_GET'".
EXPORTING
GET_PERNR = "Personnel number
* GET_PABRJ = "Payroll year
* GET_PABRP = "Payroll period
* GET_KDATE = "Key date
* GET_CLTYP = '1' "Cluster type
IMPORTING
GET_NO_RECORD_FOUND = "
GET_BEZUG = "Recalculation data
GET_KNTAG = "Work bridging two calendar days
TABLES
* GET_TBUFF = "
* GET_ZKO = "Time quotas
* GET_FEHLER = "Error
* GET_ABWKONTI = "Absence quotas
* GET_PSP = "Personal work schedule
* GET_ANWKONTI = "Attendance quotas
* GET_MEHR = "Overtime
* GET_ANWES = "Attendance
* GET_RUFB = "On call data
* GET_ZL = "Time wage types
* GET_URLAN = "Automatic leave accrual
* GET_BUFFER_DIR = "
* GET_VS = "Variable balances
* GET_CVS = "Cumulated variable balances
* GET_C1 = "Cost distribution
* GET_AT = "Link pairs/time tickets
* GET_PT = "Time pairs
* GET_WST = "Time tickets, other documents
* GET_CWST = "Cumulated time tickets
* GET_QTACC = "
* GET_QTBASE = "
* GET_QTTRANS = "
* GET_WPBP = "Work center data
* GET_ALP = "Alternative payment
* GET_AB = "Absences
* GET_SKO = "Time transfers
* GET_VERT = "Substitutions
* GET_SALDO = "Period balances
* GET_ZES = "Time accounts
EXCEPTIONS
NO_PERIOD_SPECIFIED = 1 WRONG_CLUSTER_VERSION = 2 NO_READ_AUTHORITY = 3 CLUSTER_ARCHIVED = 4 TECHNICAL_ERROR = 5
IMPORTING Parameters details for HR_TIME_RESULTS_GET
GET_PERNR - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: No ( called with pass by value option)
GET_PABRJ - Payroll year
Data type: T549Q-PABRJOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_PABRP - Payroll period
Data type: T549Q-PABRPOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_KDATE - Key date
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_CLTYP - Cluster type
Data type: PC2B0-CLTYPDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_TIME_RESULTS_GET
GET_NO_RECORD_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GET_BEZUG - Recalculation data
Data type: PC2B2Optional: No
Call by Reference: No ( called with pass by value option)
GET_KNTAG - Work bridging two calendar days
Data type: PC2BYOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_TIME_RESULTS_GET
GET_TBUFF -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_ZKO - Time quotas
Data type: PC2B7Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_FEHLER - Error
Data type: PC2B8Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_ABWKONTI - Absence quotas
Data type: PC2B9Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_PSP - Personal work schedule
Data type: PC2BAOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_ANWKONTI - Attendance quotas
Data type: PC2BBOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_MEHR - Overtime
Data type: PC2BCOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_ANWES - Attendance
Data type: PC2BDOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_RUFB - On call data
Data type: PC2BEOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_ZL - Time wage types
Data type: PC2BFOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_URLAN - Automatic leave accrual
Data type: PC2BGOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_BUFFER_DIR -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_VS - Variable balances
Data type: PC2BHOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_CVS - Cumulated variable balances
Data type: PC2BIOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_C1 - Cost distribution
Data type: PC25XOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_AT - Link pairs/time tickets
Data type: PDC04Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_PT - Time pairs
Data type: PDCPTOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_WST - Time tickets, other documents
Data type: PDCWSTOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_CWST - Cumulated time tickets
Data type: PDCWSTOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_QTACC -
Data type: PC2BJOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_QTBASE -
Data type: PC2BKOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_QTTRANS -
Data type: PC2BLOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_WPBP - Work center data
Data type: PC205Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_ALP - Alternative payment
Data type: PC20EOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_AB - Absences
Data type: PC20IOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_SKO - Time transfers
Data type: PC2B3Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_VERT - Substitutions
Data type: PC2B4Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_SALDO - Period balances
Data type: PC2B5Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_ZES - Time accounts
Data type: PC2B6Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_PERIOD_SPECIFIED - Payroll period not specified in full
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CLUSTER_VERSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_READ_AUTHORITY - No read authorization for cluster B2
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CLUSTER_ARCHIVED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TECHNICAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_TIME_RESULTS_GET Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_get_pernr | TYPE PERNR-PERNR, " | |||
lt_get_tbuff | TYPE STANDARD TABLE OF PERNR, " | |||
lv_get_no_record_found | TYPE PERNR, " | |||
lv_no_period_specified | TYPE PERNR, " | |||
lt_get_zko | TYPE STANDARD TABLE OF PC2B7, " | |||
lt_get_fehler | TYPE STANDARD TABLE OF PC2B8, " | |||
lt_get_abwkonti | TYPE STANDARD TABLE OF PC2B9, " | |||
lt_get_psp | TYPE STANDARD TABLE OF PC2BA, " | |||
lt_get_anwkonti | TYPE STANDARD TABLE OF PC2BB, " | |||
lt_get_mehr | TYPE STANDARD TABLE OF PC2BC, " | |||
lt_get_anwes | TYPE STANDARD TABLE OF PC2BD, " | |||
lt_get_rufb | TYPE STANDARD TABLE OF PC2BE, " | |||
lt_get_zl | TYPE STANDARD TABLE OF PC2BF, " | |||
lt_get_urlan | TYPE STANDARD TABLE OF PC2BG, " | |||
lv_get_bezug | TYPE PC2B2, " | |||
lv_get_pabrj | TYPE T549Q-PABRJ, " | |||
lt_get_buffer_dir | TYPE STANDARD TABLE OF T549Q, " | |||
lv_wrong_cluster_version | TYPE T549Q, " | |||
lt_get_vs | TYPE STANDARD TABLE OF PC2BH, " | |||
lt_get_cvs | TYPE STANDARD TABLE OF PC2BI, " | |||
lt_get_c1 | TYPE STANDARD TABLE OF PC25X, " | |||
lt_get_at | TYPE STANDARD TABLE OF PDC04, " | |||
lt_get_pt | TYPE STANDARD TABLE OF PDCPT, " | |||
lt_get_wst | TYPE STANDARD TABLE OF PDCWST, " | |||
lt_get_cwst | TYPE STANDARD TABLE OF PDCWST, " | |||
lt_get_qtacc | TYPE STANDARD TABLE OF PC2BJ, " | |||
lt_get_qtbase | TYPE STANDARD TABLE OF PC2BK, " | |||
lt_get_qttrans | TYPE STANDARD TABLE OF PC2BL, " | |||
lt_get_wpbp | TYPE STANDARD TABLE OF PC205, " | |||
lv_get_kntag | TYPE PC2BY, " | |||
lv_get_pabrp | TYPE T549Q-PABRP, " | |||
lv_no_read_authority | TYPE T549Q, " | |||
lt_get_alp | TYPE STANDARD TABLE OF PC20E, " | |||
lv_get_kdate | TYPE SY-DATUM, " | |||
lv_cluster_archived | TYPE SY, " | |||
lt_get_ab | TYPE STANDARD TABLE OF PC20I, " | |||
lv_get_cltyp | TYPE PC2B0-CLTYP, " '1' | |||
lv_technical_error | TYPE PC2B0, " | |||
lt_get_sko | TYPE STANDARD TABLE OF PC2B3, " | |||
lt_get_vert | TYPE STANDARD TABLE OF PC2B4, " | |||
lt_get_saldo | TYPE STANDARD TABLE OF PC2B5, " | |||
lt_get_zes | TYPE STANDARD TABLE OF PC2B6. " |
  CALL FUNCTION 'HR_TIME_RESULTS_GET' " |
EXPORTING | ||
GET_PERNR | = lv_get_pernr | |
GET_PABRJ | = lv_get_pabrj | |
GET_PABRP | = lv_get_pabrp | |
GET_KDATE | = lv_get_kdate | |
GET_CLTYP | = lv_get_cltyp | |
IMPORTING | ||
GET_NO_RECORD_FOUND | = lv_get_no_record_found | |
GET_BEZUG | = lv_get_bezug | |
GET_KNTAG | = lv_get_kntag | |
TABLES | ||
GET_TBUFF | = lt_get_tbuff | |
GET_ZKO | = lt_get_zko | |
GET_FEHLER | = lt_get_fehler | |
GET_ABWKONTI | = lt_get_abwkonti | |
GET_PSP | = lt_get_psp | |
GET_ANWKONTI | = lt_get_anwkonti | |
GET_MEHR | = lt_get_mehr | |
GET_ANWES | = lt_get_anwes | |
GET_RUFB | = lt_get_rufb | |
GET_ZL | = lt_get_zl | |
GET_URLAN | = lt_get_urlan | |
GET_BUFFER_DIR | = lt_get_buffer_dir | |
GET_VS | = lt_get_vs | |
GET_CVS | = lt_get_cvs | |
GET_C1 | = lt_get_c1 | |
GET_AT | = lt_get_at | |
GET_PT | = lt_get_pt | |
GET_WST | = lt_get_wst | |
GET_CWST | = lt_get_cwst | |
GET_QTACC | = lt_get_qtacc | |
GET_QTBASE | = lt_get_qtbase | |
GET_QTTRANS | = lt_get_qttrans | |
GET_WPBP | = lt_get_wpbp | |
GET_ALP | = lt_get_alp | |
GET_AB | = lt_get_ab | |
GET_SKO | = lt_get_sko | |
GET_VERT | = lt_get_vert | |
GET_SALDO | = lt_get_saldo | |
GET_ZES | = lt_get_zes | |
EXCEPTIONS | ||
NO_PERIOD_SPECIFIED = 1 | ||
WRONG_CLUSTER_VERSION = 2 | ||
NO_READ_AUTHORITY = 3 | ||
CLUSTER_ARCHIVED = 4 | ||
TECHNICAL_ERROR = 5 | ||
. " HR_TIME_RESULTS_GET |
ABAP code using 7.40 inline data declarations to call FM HR_TIME_RESULTS_GET
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single PERNR FROM PERNR INTO @DATA(ld_get_pernr). | ||||
"SELECT single PABRJ FROM T549Q INTO @DATA(ld_get_pabrj). | ||||
"SELECT single PABRP FROM T549Q INTO @DATA(ld_get_pabrp). | ||||
"SELECT single DATUM FROM SY INTO @DATA(ld_get_kdate). | ||||
"SELECT single CLTYP FROM PC2B0 INTO @DATA(ld_get_cltyp). | ||||
DATA(ld_get_cltyp) | = '1'. | |||
Search for further information about these or an SAP related objects