‎2008 Feb 22 12:44 PM
Hi,
I would like to update the table hrp1001. could u please tell me how to use the function module rh_update_infty??
‎2008 Feb 22 12:50 PM
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.
‎2008 Feb 22 12:50 PM
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.
‎2011 Jan 23 12:04 AM
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.
‎2011 Jul 07 5:24 AM
‎2008 Feb 22 1:02 PM
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
‎2011 Jul 07 4:01 PM
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.