SAP Knowledge Base Article - Preview

2537981 - SE13 | TK117 | Request lock on nonexistent task/request

Symptom

Message "Request lock on nonexistent task/request <name>" ( TK117 ) appears in transaction SE13.


TK117.PNG

The message details provide the following additional information:

  • The request locks on the object LIMU TABT <object name> cannot be edited because the object is locked by request/task <name> 
  • The request/task <name> no longer exists.

TK117.PNG


Read more...

Keywords

Message no. TK117 Request lock on nonexistent task/request Choose 'Display object' or 'Cancel'. Auftragssperre auf nicht existierender Aufgabe/Auftrag Wählen Sie "Objekt anzeigen" oder "Abbrechen".

Diagnosis

The request locks on the object LIMU TABT YYYYY cannot be edited because the object is locked by request/task XXXXXXXXXX.
The request/task XXXXXXXXXX no longer exists.

System Response

The function terminates.

Procedure

Repeat your function. If the error occurs again, notify your system administrator.

Procedure for System Administration

The illegal locks have to be removed (table TLOCK). See also SAP Note 999668   Meldungsnr. TK117

Diagnose

Die Auftragssperre des Objekts LIMU TABT YYYYYY kann nicht bearbeitet werden, da das Objekt gesperrt ist durch den Auftrag/die Aufgabe XXXXXXXXX.
Der Auftrag/die Aufgabe XXXXXXXXXX existiert nicht mehr.

Systemaktivitäten

Die Funktion wird abgebrochen.

Vorgehen

Wiederholen Sie Ihre Funktion. Wenn der Fehler erneut auftritt, dann wenden Sie sich an Ihre Systemadministration.

Vorgehen für die Systemverwaltung

Die unzulässigen Auftragssperren müssen bereinigt werden (Tabelle TLOCK), siehe SAP-Hinweis 999668. *&---------------------------------------------------------------------*
*& Report ZSLA_DELETE_ORPHANED_TLOCK_2
*&---------------------------------------------------------------------*
*& Delete orphaned rows in table TLOCK because
*& The request/task xxxxxxxxxx no longer exists.
*&---------------------------------------------------------------------*
REPORT ZSLA_DELETE_ORPHANED_TLOCK_2.
PARAMETERS TR_REQ   LIKE TLOCK-TRKORR.
PARAMETERS TEST_RUN TYPE abap_bool DEFAULT abap_true. FORM main.
  DATA E070_row  TYPE E070.
  DATA E070_tab TYPE STANDARD TABLE OF E070.
  DATA TLOCK_row TYPE tlock.
  DATA TLOCK_tab TYPE STANDARD TABLE OF tlock. IF TR_REQ IS NOT INITIAL.
  WRITE: 'Orphaned TLOCK rows of Transport request', TR_REQ , 'had been selected'.
  NEW-LINE.
  SELECT *
   FROM tlock
   APPENDING TABLE TLOCK_tab
   WHERE TRKORR = TR_REQ.
ELSE.
  WRITE 'All Orphaned TLOCK rows had been selected'.
  NEW-LINE.
  SELECT *
   FROM tlock
   APPENDING TABLE TLOCK_tab.
  SORT TLOCK_tab BY TRKORR.
ENDIF. LOOP AT TLOCK_tab INTO TLOCK_row.
 SELECT SINGLE *
   FROM e070
   INTO E070_row
   WHERE TRKORR = TLOCK_row-TRKORR.
  IF SY-SUBRC = 0.
   DELETE TLOCK_tab INDEX SY-TABIX.
  ENDIF.
ENDLOOP.   IF test_run IS NOT INITIAL.
   WRITE 'Program ran with test run, the following rows would be deleted'.
   NEW-LINE.
  ELSE.
   WRITE 'The following rows had been deleted'.
   NEW-LINE.
  ENDIF.   LOOP AT TLOCK_tab INTO tlock_row.
   CALL FUNCTION 'ENQUEUE_E_TRKORR'
    EXPORTING
      trkorr         = TLOCK_row-trkorr
    EXCEPTIONS
      foreign_lock   = 1
      system_failure = 2
      OTHERS         = 3.
    IF sy-subrc <> 0.
     WRITE: 'Pending Enqueue', TLOCK_row-trkorr.
     RETURN.
    ENDIF.
    DELETE tlock FROM TLOCK_row.
    IF
     sy-subrc = 0
    AND
     sy-dbcnt = 1.
      WRITE: 'OBJECT', TLOCK_row-object.
      NEW-LINE.
      WRITE: 'HIKEY', TLOCK_row-hikey.
      NEW-LINE.
      WRITE: 'LEN', TLOCK_row-len.
      NEW-LINE.
      WRITE: 'TRKORR', TLOCK_row-trkorr.
      NEW-LINE.
      WRITE: 'EDTFLAG', TLOCK_row-edtflag.
      NEW-LINE.
      WRITE: 'AUTHOR', TLOCK_row-author.
      NEW-LINE.
      WRITE: 'LOKEY', TLOCK_row-lokey.
      NEW-LINE.
    ENDIF.
   CALL FUNCTION 'DEQUEUE_E_TRKORR'
    EXPORTING
      trkorr = TLOCK_row-trkorr.
  ENDLOOP.   IF test_run IS NOT INITIAL.
   ROLLBACK WORK.
  ENDIF. ENDFORM. START-OF-SELECTION.
    PERFORM main.   , KBA , BC-CTS-ORG , Workbench/Customizing Organizer , BC-CUS-TOL-TME , View Maintenance Tool , 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.