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: 

how to update infotype 0024 in HR

Former Member
0 Kudos

Hi all,

I have a requirement to update the qualifications of an employee. That is, i need to modify the Proficiency value of a qualification (qualification tab) in IT 0024 and create new qualification record IT 0024.

Can someone help me what is the function module used to modify proficiency and create new qualification record in IT 0024.

Also, how to query IT 0024 data? Bcoz i have to read the qualification data first in order to modify the existing proficiency value? If we update IT 0024, then will this be reflected in OM (P to Q relation in HRP1001 table)?

2 REPLIES 2

manubhutani
Active Contributor
0 Kudos

Hi Jessi,

If you are using the LDB in your program, then declare 0024 in the INFOTYPES statement and after the GET event

p0024 will be populated, otherwise you can use the FM 'HR_READ_INFOTYPE' to read the records.

To update use FM 'HR_INFOTYPE_OPERATION' and pass the operation in it i.e. INS,MOD,INSS,DEL etc

Regards,

Manu

Former Member
0 Kudos

Hi,

IT 0024 is different from other infotypes. You need to use special FMs to read and write this infotype also delete it. Which are:

RHPP_Q_PROFILE_DELETE

RHPP_Q_PROFILE_READ

RHPP_Q_PROFILE_WRITE

RHPP_Q_PROFILE_WRITE_N_DIF

İ'm also adding some infos and code sample for you.


"declaration
DATA : profile LIKE hrpe_relaq OCCURS 0 WITH HEADER LINE. 

"fill it
*&---------------------------------------------------------------------*
*&      Form  fill_profile
*&---------------------------------------------------------------------*
FORM fill_profile .
  IF r_tpos = 'X'.
    profile-tbjid = 50000041.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
    profile-tbjid = 50000042.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
    profile-tbjid = 50000043.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
  ELSE.
    profile-tbjid = 50000044.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
    profile-tbjid = 50000045.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
    profile-tbjid = 50000046.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
  ENDIF.
ENDFORM.                    " fill_profile

"usafe of fM

 DATA lv_objid LIKE  p1001-sobid.
  lv_objid = gs_24-pernr.
  CALL FUNCTION 'RHPP_Q_PROFILE_WRITE'
    EXPORTING
      plvar                       = '01'
      otype                       = 'P'
      objid                       = lv_objid
*     VTASK                       = 'D'
    TABLES
      profile                     = profile.
  CLEAR lv_objid.

Çağatay