Skip to Content

Update infotype 0001 using HR_INFOTYPE_OPERATIONS brings in wrong payroll area.

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.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 05, 2017 at 12:27 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 07, 2017 at 09:14 PM

    ...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!

    Add comment
    10|10000 characters needed characters exceeded