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

HRP1222- Insert

Former Member
0 Likes
1,208

Hi,

Through transaction pp01 i am able to create a record in HRp1222 and hrt1222(attributes).

Is there any FM by which i create entry in hrp1222?

I got an FM RH_INSERT_INFTY but am unable to get it to work . It returns a sy-subrc 2 i.e error in insert . On debugging I found that there are some internal tables which are not being populated due to which i get this error .

I am not sure if I can use the above FM independently to create hrp1222 record,

Any idea?

Thanks

4 REPLIES 4
Read only

b_deterd2
Active Contributor
0 Likes
833

Hi,

For infotype operations (insert, modify, delete) you should use HR_INFOTYPE_OPERATION.

Regards,

Bert

Read only

Former Member
0 Likes
833

Thanks for replying . HR_INFOTYPE_OPERATION cannot be used to create records for HRPNNNN tables .

RH_INSERT_INFTY is to be used .. but some how i am unable to get it working for Infotype 1222.

Read only

Former Member
0 Likes
833

Hi All,

i solved the issue

FM RH_OM_ATTRIBUTES_INSERT & FM RH_OM_ATTRIBUTES_Update can be used to insert records in hrp1222.

Read only

0 Likes
833

HI neelima

Could you pls paste the sample code for this .. I am facing same issue .

Thanks

kamesh