Skip to Content
0
Former Member
Mar 08, 2007 at 05:45 PM

HR_INFOTYPE_OPERATION

60 Views

Hi experts I'm using follwoing code for updation of infotype.

The problem it is In looping it is updating first time when going through loop .But from second time onwards

showing as page can not be displayed (Page --> I'm using BSP)

CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'

EXPORTING

NUMBER = v_pernr2 "'00000593'

IMPORTING

RETURN = return1

LOCKING_USER = user.

IF ( return1-number ne 0 ).

EXIT.

ELSE.

loop at wa_zhr_opr_tab1 into wa_zhr_opr1.

DATA: L_P2001 type P2001.

L_P2001-AEDTM = sy-datum.

"<b><u>Please Suggest me what exactly to use above L_P2001-AEDTM = sy-datum</u></b>

L_P2001-UNAME = sy-uname.

L_P2001-PERNR = v_pernr2 . "'00000593'.

L_P2001-AWART = wa_zhr_opr1-zat_type. "'1100'.

L_P2001-STDAZ = wa_zhr_opr1-zhours. "'6'.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '2001'

NUMBER = v_pernr2 "'593'

SUBTYPE = wa_zhr_opr1-zat_type"'Z003'

  • OBJECTID = wa_zhr_opr-zdate

  • LOCKINDICATOR =

VALIDITYEND = wa_zhr_opr1-zdate

VALIDITYBEGIN = wa_zhr_opr1-zdate

  • RECORDNUMBER =

RECORD = L_P2001

OPERATION = 'INS'

  • TCLAS = 'A'

  • DIALOG_MODE = '0'

  • NOCOMMIT =

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

RETURN = return2.

  • KEY =

ENDLOOP.

ENDIF.

CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'

EXPORTING

NUMBER = v_pernr2 "'00000593'

IMPORTING

RETURN = return1.

.

  • ENDIF.