I have created a program populating info type 0000, 0001, 0007 and 0016. When updating 0001 manually or in dialogue mod, the vacancy get populated. I have been using HR_INFOTYPE_OPERATION .
I need to update info type HRP1007 . I've tried using RH_UPDATE_INFTY and RH_INSERT_INFTY , but it doesn't seem to connect to OM. tcode PPOME when I look at the position.
wa_p1007-plvar = '01'.
wa_p1007-otype = 'S'.
wa_p1007-infty = '1007'.
wa_p1007-begda = p_begda.
wa_p1007-endda = '99991231'.
wa_p1007-mandt = sy-mandt.
wa_p1007-istat = '1'.
APPEND wa_p1007 TO it_p1007 .
CALL FUNCTION 'RH_UPDATE_INFTY'
EXPORTING
vtask = 'D'
TABLES
innnn = it_p1007
EXCEPTIONS
error_during_update = 1
no_authorization = 2
repid_form_initial = 3
corr_exit = 4
OTHERS = 5.
Anyone have any suggestions. It is certainly one of these things that I have to update behind the scenes, since I'm updating numerous records (one at a time.
Any info would be appreciated.