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: 

RH_INSERT_INFTY

Former Member
0 Kudos

Hi,

Could u please tell me how the function module RH_INSERT_INFTY is implemented.

And could you also please guide me on the parameters to be passed along with the function module.

Thank You.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

good

RH_INSERT_INFTY_1001_EXT with the below parameters,

FCODE = 'INS'

VTASK = 'D'

INNNN = i_hri1001 "Declare it as type HRI1001 and populate as below

i_hri1001-PLVAR = '01'

i_hri1001-OTYPE = 'S'

i_hri1001-OBJID = <Position ID>

i_hri1001-INFTY = '1001'

i_hri1001-RSIGN = 'B'

i_hri1001-RELAT = '007'

i_hri1001-BEGDA = <Begin Date>

i_hri1001-ENDDA = <End Date>

i_hri1001-SCLAS = 'AG'

i_hri1001-SOBID = <Role ID to be assigned>.

Hope this helps !

thanks

mrutyun^

6 REPLIES 6

Former Member
0 Kudos

hi

good

RH_INSERT_INFTY_1001_EXT with the below parameters,

FCODE = 'INS'

VTASK = 'D'

INNNN = i_hri1001 "Declare it as type HRI1001 and populate as below

i_hri1001-PLVAR = '01'

i_hri1001-OTYPE = 'S'

i_hri1001-OBJID = <Position ID>

i_hri1001-INFTY = '1001'

i_hri1001-RSIGN = 'B'

i_hri1001-RELAT = '007'

i_hri1001-BEGDA = <Begin Date>

i_hri1001-ENDDA = <End Date>

i_hri1001-SCLAS = 'AG'

i_hri1001-SOBID = <Role ID to be assigned>.

Hope this helps !

thanks

mrutyun^

amit_khare
Active Contributor
0 Kudos

DATA :itab LIKE P1001 OCCURS 0 WITH HEADER LINE.

Get records in itab

and pass this to FM

CALL FUNCTION 'RH_INSERT_INFTY'

EXPORTING

FCODE = 'INSE'

VTASK = 'B'

TABLES

INNNN = ITAB

EXCEPTIONS

NO_AUTHORIZATION = 1

ERROR_DURING_INSERT = 2

REPID_FORM_INITIAL = 3

CORR_EXIT = 4

BEGDA_GREATER_ENDDA = 5

OTHERS = 6.

IF SY-SUBRC = 0.

CALL FUNCTION 'RH_UPDATE_DATABASE'

EXPORTING

VTASK = 'D'

EXCEPTIONS

CORR_EXIT = 1

OTHERS = 2.

SUBRC = SY-SUBRC.

ENDIF.

Regards,

Amit

0 Kudos

Hi,

i tried as u said but the records are not getting uploaded in the database...

Former Member
0 Kudos

Hi,

thanx for ur replies,

my actual requirement is to update the hrp1001 table from a custom defined infotype. But this infotype does not consist of all the fields which are present in the hrp1001 table.

Kindly help me

0 Kudos

Hello Harini

Table HRP1001 is used to hold the relationships between different organizational objects. Like the holder for a position, positions in an organization unit and etc. If you can clearly give the fields from the custom infotype, that will help us to analyze how this can be mapped to HRP1001.

Kind Regards

Ranganath

0 Kudos

hi,

the fields which are there in my infotype and need to get uploaded in the database are begda, endda, rtext, relat, sobid, objid.