Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

The requested object is locked by your own transaction, Infotype

Hi, all expert
M using HR_EMPLOYEE_ENQUEUE to insert data to my custom infotype and it always give me error

"The requested object is locked by your own transaction"

Here is my code:


ALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
         EXPORTING
          number = P9006-pernr.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
   EXPORTING
     infty                  = '9006'
     number                 = P9006-pernr
    SUBTYPE                P9006-subty
    OBJECTID               P9006-OBJPS
    LOCKINDICATOR          P9006-SPRPS
    VALIDITYEND            P9006-ENDDA
    VALIDITYBEGIN          P9006-BEGDA
    RECORDNUMBER           P9006-seqnr
     record                p9006
     operation             'INS'
    TCLAS                  'A'
    DIALOG_MODE            '02'
    NOCOMMIT               ''
*   VIEW_IDENTIFIER        = '07'
*   SECONDARY_RECORD       =
  IMPORTING
    RETURN                 = w_return
    KEY                    = lo_key
           .

  CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
                     EXPORTING
                       number = lo_P9006-pernr
                     IMPORTING
                       return = w_return2.

Former Member
Not what you were looking for? View more on this topic or Ask a question