Application Development and Automation 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: 
Read only

Insert into HRP1001

Former Member
0 Likes
2,111

Hi

I would like to know if there is a function module I can use to insert applicant qualifications data into HRP1001.

Hi

I would like to know if there is a function module I can use to insert applicant qualifications data into HRP1001.

4 REPLIES 4
Read only

Former Member
0 Likes
1,363

Hi

You can use FM RH_INSERT_INFTY_1001_EXT to insert entries in HRP1001.For other HRPXXXX tables, use the FM RH_INSERT_INFTY. This transaction is for inserting Infotype 1039.

hope this helps

regards

Aakash Banga

Read only

0 Likes
1,363

Do you have example code using function module 'RH_INSERT_INFTY_1001_EXT' I am not sure what input to supply for import parameters.

Read only

0 Likes
1,363

check this program RHCHEXOB

Read only

phildeane
Participant
0 Likes
1,363

This should add a qualification to an employee.

data: ls_hrsobid type hrsobid,

lst_profile type hrpe_relaq.

data: lv_pernr type persno.

lv_pernr = '1234'.

call function 'HRWPC_MAP_PERNR_TO_HRSOBID'

exporting

pernr = lv_pernr

  • PLVAR =

importing

hrsobid = ls_hrsobid

exceptions

internal_error = 1

others = 2.

lst_profile-ttype = 'Q'. "Qualification

lst_profile-tbjid = '50046562'.

lst_profile-sbegd = sy-datum.

lst_profile-sendd = '99991231'.

lst_profile-vbegd = sy-datum.

lst_profile-vendd = '99991231'.

lst_profile-istat = '1'. "planning status

append lst_profile to lt_profile.

call function 'RHPP_Q_PROFILE_WRITE'

exporting

plvar = ls_hrsobid-plvar

otype = ls_hrsobid-otype

objid = ls_hrsobid-sobid

  • VTASK = 'D'

tables

profile = lt_profile

  • ERR_PROFILE =

  • CHANGE_PROFILE =

exceptions

no_authority = 1

error_during_insert = 2

wrong_otype = 3

object_not_found = 4

object_required = 5

no_scale_defined = 6

scale_not_clear = 7

time_not_valid = 8

proficiency_not_valid = 9

wrong_date_format = 10

undefined = 11

others = 12

.

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.