Symptom
- Employees try to display their payslip
- Get a time out in method CL_HR_PAY_ACCESS-GET_PARTICIPATING_PERNRS
- In the back end system, the dump is as follows:
Category ABAP Programming Error
Runtime Errors TIME_OUT
ABAP Program CL_HR_PAY_ACCESS==============CP
Application Component PY-XX
"TIME_OUT"
"CL_HR_PAY_ACCESS==============CP" or CL_HR_PAY_ACCESS==============CM00L
"GET_PARTICIPATING_PERNRS"
Source Code Extract
Line SourceCde
1 *----------------------------------------------------------------------*
2 * This method returns the personnel assignments (pernrs), which
3 * participated in a certain payroll run. This method only makes sense
4 * in a CE environment, since only there multiple contracts are possible
5 *----------------------------------------------------------------------*
6 METHOD get_participating_pernrs .
7
8 DATA wa_py_rgdir TYPE pernr_d.
9 DATA l_person_result TYPE REF TO cl_hr_pay_result_person.
10 FIELD-SYMBOLS <grouping> LIKE LINE OF l_person_result->inter-grouping.
11
12 CLEAR pernr_tab[].
13
14 IF period-persdata IS INITIAL OR a_ce_is_active NE c_true.
15 APPEND pernr TO pernr_tab.
16 RETURN. "from this method
17 ENDIF.
18
19 * Read from the transparent payroll cluster directory
20 SELECT DISTINCT pernr
21 FROM hrpy_rgdir "#EC CI_NOFIRST
22 INTO wa_py_rgdir
23 WHERE persdata = period-persdata
24 AND person = period-person
25 AND seqnr = period-seqnr.
>>>>> APPEND wa_py_rgdir TO pernr_tab.
27 ENDSELECT.
- Or maybe you are not getting a time our dump but still, the performance is improvable
Read more...
Environment
- Human Capital Management (HCM)
- SAP enhancement package for SAP ERP
- SAP enhancement package for SAP ERP, version for SAP HANA
Keywords
KBA , PY-XX-FO-ESS , ESS Payslip , PY-XX , Payroll: General Parts , PY-XX-FO , Forms , PA-FIO-PST , My Paystubs , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.