Symptom
Following dump occurs when running Payroll
Category ABAP programming error
Runtime Errors UNCAUGHT_EXCEPTION
Except. CX_HRPY_PAYROLL_AREA
ABAP Program SAPLRPCU
Application Component PY-XX
----------------------------------------------------------------------------------------------------
|What happened? |
| Exception 'CX_HRPY_PAYROLL_AREA' was raised, but it was not caught anywhere |
| along the |
| call hierarchy. |
| |
| Since exceptions represent error situations, and this error was not |
| adequately responded to, ABAP program 'CL_HR_PAYROLL_AREA============CP' had |
| to be terminated. |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|What can I do? |
| Note which actions and entries caused the error to occur. |
| |
| Consult your SAP administrator. |
| |
| Using transaction ST22 for ABAP dump analysis, you can view, manage, |
| and retain termination messages for longer periods. |
| Using Transaction ST22 for ABAP Dump Analysis, you can look |
| at and manage termination messages, and you can also |
| keep them for a long time. |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Error analysis |
| An exception has occurred which is explained in more detail below. The |
| exception is assigned to class 'CX_HRPY_PAYROLL_AREA' and was not caught in |
| procedure |
| "ADJUST_CUM_PERIOD" "(FORM)", nor was it propagated by a RAISING clause. |
| Since the caller of the procedure could not have anticipated this |
| exception, the current program was terminated. |
| The reason for the exception is: |
| No subsequent period was found for the period 09 2021 of period parameter 00 |
| |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|How to correct the error |
| The exception must either be prevented, caught in procedure |
| "ADJUST_CUM_PERIOD" "(FORM)", or |
| the possibility of it occurring must be declared in the RAISING clause |
| in the procedure. |
| To prevent the exception, note the following: |
| |
| If the error occurs in a non-modfied SAP program, you might be able to |
| find a solution in the SAP Notes system. If you have access to the SAP |
| Notes system, check there first using the following keywords: |
| |
| "UNCAUGHT_EXCEPTION" CX_HRPY_PAYROLL_AREA |
| "CL_HR_PAYROLL_AREA============CP" bzw. CL_HR_PAYROLL_AREA============CM007 |
| "GET_NEXT_PERIOD" |
| |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Source Code Extract |
----------------------------------------------------------------------------------------------------
|Line |SourceCde |
----------------------------------------------------------------------------------------------------
| 5| SELECT pabrj pabrp begda endda |
| 6| INTO (exp_pabrj, exp_pabrp, exp_begda, exp_endda) |
| 7| FROM t549q UP TO 1 ROWS |
| 8| WHERE permo = permo |
| 9| AND pabrj = imp_pabrj |
| 10| AND vabrj = imp_pabrj |
| 11| AND vabrp = imp_pabrp. |
| 12| ENDSELECT. |
| 13| IF sy-subrc NE 0. |
| 14|* Wenn nicht in diesem Jahr, dann vieleicht im nächste |
| 15| l_pabrj = imp_pabrj + 1. |
| 16| SELECT pabrj pabrp begda endda |
| 17| INTO (exp_pabrj, exp_pabrp, exp_begda, exp_endda) |
| 18| FROM t549q UP TO 1 ROWS |
| 19| WHERE permo = permo |
| 20| AND pabrj = l_pabrj |
| 21| AND vabrj = imp_pabrj |
| 22| AND vabrp = imp_pabrp. |
| 23| ENDSELECT. |
| 24| ENDIF. |
| 25| IF sy-subrc NE 0. |
| 26|* Dann noch für den ganzen Permo versuchen |
| 27| SELECT pabrj pabrp begda endda |
| 28| INTO (exp_pabrj, exp_pabrp, exp_begda, exp_endda) |
| 29| FROM t549q UP TO 1 ROWS |
| 30| WHERE permo = permo |
| 31| AND vabrj = imp_pabrj |
| 32| AND vabrp = imp_pabrp. |
| 33| ENDSELECT. |
| 34| IF sy-subrc NE 0. |
|>>>>>| RAISE EXCEPTION TYPE cx_hrpy_payroll_area |
| 36| EXPORTING textid = cx_hrpy_payroll_area=>NO_NEXT_PERIODE |
| 37| periode = imp_pabrp |
| 38| year = imp_pabrj |
| 39| permo = permo. |
| 40|* Zur Peroide &PERIODE& &YEAR& des Periodenparameter &PERMO& |
| 41|* wurde keine nachfolgende Periode gefunden |
| 42| ENDIF. |
| 43| ENDIF. |
| 44|ENDMETHOD. |
----------------------------------------------------------------------------------------------------
Read more...
Product
Keywords
KBA , PY-XX-BS , Bases , 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.