Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

SAP Knowledge Base Article

2289459 - DELETE_ERROR dump from IR02 related to HRMS assignment to employee


Component: BC-BMT-OM (Organizational Management), Version: 2, Released On: 25.05.2016

Symptom
When deleting an HR assignment, from HRMS option, under 'Capacity Header' in IR02 transaction, it can happen that the system informs the process was correct. But the
assignment is not removed, and a dump has been created in the background with the update process (also the failed update will be visible in SM13). In this case, the dump details
could be:

Category               ABAP Programming Error


Runtime Errors         RAISE_EXCEPTION
ABAP Program           SAPLCRKV
Application Component  PP-BD-WKC
Date and Time          07.03.2016 15:00:03

And the dump code affected in function CR_CAPACITY_PERSON_REL_DELETE:

  105     CALL FUNCTION 'RH_DELETE_INFTY'


  106       EXPORTING
  107         vtask               = vtask
  108         commit_flg          = commit_flg
  109                 AUTHY               = SPACE
  110       TABLES
  111         innnn               = iplog
  112       EXCEPTIONS
  113         error_during_delete = 01
  114         no_authorization    = 02
  115         delete_first_record = 03.
  116
  117     IF sy-subrc <> 0.
>>>>>       RAISE delete_error.
  119     ENDIF.

Environment
Human Capital Management (HCM)
SAP R/3
SAP ERP Core Component
SAP ERP
SAP enhancement package for SAP ERP
SAP enhancement package for SAP ERP, version for SAP HANA

Reproducing the Issue


1. Go to transaction IR02
2. Introduce affected work center
3. Go To tab "Capacity" -> Header
4. Go to HRMS
5. Select the assignment to personnel number, delete and save
6. The update fails in background and a dump is created (can be accessed in ST22)

Cause
Some HR assignments are stored in the system with two different records, one for the relationship direction A and another for the relationship direction B. In the case of the
relationship between the Work Center and the employee, this comes represented as a relationship B060 from the Work Center (KA object type) to the employee (P object type), and
relationship A060 from the employee to the Work Center.

If one of these records is missing, this would be an inconsistency, which can cause the described symptom.

Resolution
Report RHCHECKV can be executed for that specific Work Center, in order to detect any possible inconsistent relation without the reverse relationship record. Once found, the
report can be used to fix that relationship by creating the missing reverse relation.

Keywords
RHCHECKV IR02 HRMS

Attributes

Key Value

Other Components PP-BD-WKC (Work Center)


Products
Products

SAP ERP Central Component all versions

SAP ERP all versions

SAP R/3 Enterprise all versions

SAP R/3 all versions

SAP enhancement package for SAP ERP all versions

SAP enhancement package for SAP ERP, version for SAP HANA all versions

This document is referenced by


SAP Note/KBA Title

You might also like