Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Updating info type HRP1007

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

Hi,

You may use the standard program

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e08b1e6e-e7c1-2b10-5b8d-830e0388...]


Another option is to create the bdc for PP01 or PP02.


Thanks,

Sushma