Skip to Content
0
Former Member
Jul 01, 2015 at 02:10 PM

HR_INFOTYPE_OPERATION creates IT2011 record with Origin field(ORIGF) as 'M'

507 Views

Hi All,

I am using the FM 'HR_INFOTYPE_OPERATION' to insert a time event record of type P10 in IT2011, Although, I am explicity specifying that the new entry that needs to be created should have the Origin Field as Blank but still the new record in the TEVEN table is getting created with ORIGF as 'M' i.e. 'Entered Manually'. Am I missing something?? Please see the below code, I am using...

DATA : ls_p2011 TYPE p2011,

ls_bapiret TYPE bapireturn1,

lv_pernr TYPE bapip0001-pernr.

ls_p2011-pernr = gs_global_data-pernr.

lv_pernr = gs_global_data-pernr.

ls_p2011-ldate = sy-datum.

ls_p2011-ltime = sy-uzeit.

ls_p2011-satza = 'P10'.

ls_p2011-terid = ''.

ls_p2011-origf = space. "Origin Of Data blank

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = '2011'

number = lv_pernr

record = ls_p2011

operation = 'INS'

dialog_mode = '0'

validitybegin = ls_p2011-ldate

validityend = ls_p2011-ldate

IMPORTING

return = e_return.