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 Data Into Infotypes

Former Member
0 Likes
1,784

Hello!

I am developing an inbound IDoc, during which i am suppose to insert respective segment structure into infotypes PA0000, PA0001, PA0002, PA0006 & PA0008 through Function Module RH_INSERT_INFTY, its throwing error sy-subrc 1, i can give sample code of it

CALL FUNCTION 'RH_INSERT_INFTY'

EXPORTING

fcode = 'INSE'

vtask = 'S'

order_flg = 'X'

commit_flg = 'X'

repid = sy-repid

TABLES

innnn = innnn

EXCEPTIONS

no_authorization = 1

error_during_insert = 2

repid_form_initial = 3

corr_exit = 4

begda_greater_endda = 5

OTHERS = 6.

The internal table innnn has record of type as follows

710 12080033 12/31/2006 12/27/2005 000 01/02/2006

When Idoc is posted through We19 through 'RH_INSERT_INFTY', it throws Sy-Subrc 1.

When the same record is input manually through SE37 into function Module 'RH_INSERT_INFTY', it throws error_during_insert,

Can any guys suggest me to come out of this problem, if possible suggest any other standard Fuction Module to insert data into Infotypes,

Thank You

Regards

Rajesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,199

Hi ,

Use this FM.

HR_INFOTYPE_OPERATION

Regards,

GSR.

4 REPLIES 4
Read only

Former Member
0 Likes
1,200

Hi ,

Use this FM.

HR_INFOTYPE_OPERATION

Regards,

GSR.

Read only

Former Member
0 Likes
1,199

try with this HR_INFOTYPE_OPERATION function module.

Read only

suresh_datti
Active Contributor
0 Likes
1,199

Hi Rajesh,

The function module 'RH_INSERT_INFTY lets you insert multiple infotype records for OM objects into the Personnel Planning databases (HRPnnnn). ie the PD infotypes. For updating PA infotypes pl use 'HR_INFOTYPE_OPERATION' as suggested by others earlier.

Regards,

Suresh Datti

Read only

0 Likes
1,199

The above FM to fill up data in IT`S . Remember you might ran in to buffer problem if you use these FM , as it happened to us so we created separated BDC programs for IT upload...

Just sharing a experience with you .

Thanks