2008 Jan 29 11:35 AM
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.
2008 Jan 29 11:56 AM
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^
2008 Jan 29 11:56 AM
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^
2008 Jan 29 12:04 PM
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
2008 Jan 29 2:18 PM
Hi,
i tried as u said but the records are not getting uploaded in the database...
2008 Jan 29 12:37 PM
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
2008 Jan 29 12:42 PM
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
2008 Jan 29 1:02 PM
hi,
the fields which are there in my infotype and need to get uploaded in the database are begda, endda, rtext, relat, sobid, objid.