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

Function module rh_update_infty

Former Member
0 Likes
3,371

Hi,

I would like to update the table hrp1001. could u please tell me how to use the function module rh_update_infty??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,860

Hi,

Please find documentation below:

FU RH_UPDATE_INFTY

____________________________________________________

Text

Change Infotype Records

Functionality

With this function module you can change multiple infotype records for OM objects from Personnel Planning database tables (HRPnnnn). The infotype tables of the table parameter INNNN must all have the structure Pnnnn (logical structure for the infotype nnnn). The records you want to change must exist in the Personnel Planning database tables. If not, this triggers the exception ERROR_DURING_UPDATE.

The values of the parameter VTASK (update type) mean the following:

- 'D' -> update in dialog

- 'S' -> synchronous update via the update task

- 'V' -> asynchronous update via the update task

- 'B' -> internal update in buffer only, no DB update

In HR applications the parameter should be set to 'D' for update in dialog. If there are multiple operations that logically belong together to be updated internally in the buffer first and then saved together to the database, you should set the parameter in each case to 'B' for internal update in buffer only, no DB update. The DB update is then executed by calling the function module 'RH_UPDATE_DATABASE'.

Parameters

VTASK

ORDER_FLG

COMMIT_FLG

AUTHY

PPPAR_IMP

OLD_TABNR_NEW_LANGU

REPID

FORM

KEEP_LUPD

WORKF_ACTV

INNNN

ILFCODE

Exceptions

ERROR_DURING_UPDATE

NO_AUTHORIZATION

REPID_FORM_INITIAL

CORR_EXIT

Thanks,

Sriram Ponna.

5 REPLIES 5
Read only

Former Member
0 Likes
1,861

Hi,

Please find documentation below:

FU RH_UPDATE_INFTY

____________________________________________________

Text

Change Infotype Records

Functionality

With this function module you can change multiple infotype records for OM objects from Personnel Planning database tables (HRPnnnn). The infotype tables of the table parameter INNNN must all have the structure Pnnnn (logical structure for the infotype nnnn). The records you want to change must exist in the Personnel Planning database tables. If not, this triggers the exception ERROR_DURING_UPDATE.

The values of the parameter VTASK (update type) mean the following:

- 'D' -> update in dialog

- 'S' -> synchronous update via the update task

- 'V' -> asynchronous update via the update task

- 'B' -> internal update in buffer only, no DB update

In HR applications the parameter should be set to 'D' for update in dialog. If there are multiple operations that logically belong together to be updated internally in the buffer first and then saved together to the database, you should set the parameter in each case to 'B' for internal update in buffer only, no DB update. The DB update is then executed by calling the function module 'RH_UPDATE_DATABASE'.

Parameters

VTASK

ORDER_FLG

COMMIT_FLG

AUTHY

PPPAR_IMP

OLD_TABNR_NEW_LANGU

REPID

FORM

KEEP_LUPD

WORKF_ACTV

INNNN

ILFCODE

Exceptions

ERROR_DURING_UPDATE

NO_AUTHORIZATION

REPID_FORM_INITIAL

CORR_EXIT

Thanks,

Sriram Ponna.

Read only

0 Likes
1,860

For me personally just cutting and pasting the SAP FM documentation is a waste of space since one can see that on-line in SAP and elsewhere. It really does not help most who ask questions since they most likely have already read it. I could understand if the documentation were explained MORE than what SAP has, since SAP documentation in a lot of cases leaves much to be desired.

The best IMO are the actual working examples which are appreciated.

Read only

0 Likes
1,860

lovely comment

Read only

Former Member
0 Likes
1,860

hi

good

refer this code,

DATA: lt1035_mod LIKE p1035 OCCURS 0 WITH HEADER

LINE,

CALL FUNCTION 'RH_UPDATE_INFTY'

EXPORTING

vtask = 'D'

TABLES

innnn = lt1035_mod

EXCEPTIONS

OTHERS = 1.

<REMOVED BY MODERATOR>

thanks

mrutyun^

Edited by: Alvaro Tejada Galindo on Feb 22, 2008 12:45 PM

Read only

former_member201275
Active Contributor
0 Likes
1,860

I just did a 'where-used' list on that Function and there are plenty of sap std programs that use this FM that you can look at.