Skip to Content

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

HR_INFOTYPE_OPERATION with DEL is not working.

Hi guys,

im trying to delete one row for it 0416 (i call this function using a BAPI in pa30)

the return code are: cant find an entry to delete001002002001A114 2007111420071114000

there isnt any entry in table T582Z with it 0416

here is the code

data: returne type BAPIRETURN1,

return type BAPIRETURN1.

data: w0416 type p0416.

  • get the same record

Select single *

into corresponding fields of w0416

from pa0416

where pernr = w2001-pernr

and numbr = w2001-ABWTG

and begda = w2001-begda

and endda = w2001-endda.

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

EXPORTING

NUMBER = W2001-pernr

IMPORTING

RETURN = RETURNE.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '0416'

NUMBER = w2001-pernr

SUBTYPE = 'Z001'

VALIDITYEND = w2001-begda

VALIDITYBEGIN = w2001-endda

RECORD = w0416

OPERATION = 'DEL'

TCLAS = 'A'

IMPORTING

RETURN = RETURN

EXCEPTIONS

OTHERS = 0.

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

EXPORTING

NUMBER = W2001-PERNR.

any ideas?

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