cancel
Showing results for 
Search instead for 
Did you mean: 

Update infotype 0001 using HR_INFOTYPE_OPERATIONS brings in wrong payroll area.

former_member300568
Participant
0 Kudos

Hi All ,

I am changing an employee from one position to another.

So i am delimiting the old position with last position held date. This works well as per the below code

*delimiting old position with the last held date

  loop at t_p0001 assigning <wa_p0001>.

    call function 'HR_INFOTYPE_OPERATION'

      exporting

        infty         = '0001'

        number        = employeenumber

        validityend   = <wa_p0001>-endda

        validitybegin = <wa_p0001>-begda

        record        = <wa_p0001>

        operation     = 'COP'

      importing

        return        = return.

  endloop.

I am also assignining the employee to the new position. But if i give INS or INSS mode i dont see the values populated automatically. It should ideally bring in the deatils related to the position from Hrp1008 and hrp1013 , but it is not.

call function 'HR_INFOTYPE_OPERATION'
 exporting
 infty = '0001'
 number = employeenumber
 validityend = <wa_p0001_new>-endda
 validitybegin = <wa_p0001_new>-begda
 record = <wa_p0001_new>
 operation = 'INSS'
 dialog_mode = '2'
 importing
 return = return.

Accepted Solutions (0)

Answers (2)

Answers (2)

antoine_foucault
Active Contributor

Hi Divya:

I suggest you try to use a |COP| operation to handle data manipulations for the new record and see if the result obtained is as expected.

Best,

Antoine

ChrisSolomon
Active Contributor
0 Kudos

...and to add to Antoine, I would guess that your PA-OM integration config settings may not handle setting everything you expect. Need to check it!