SAP Function RH_DELETE_INFTY - Delete Infotype Records

Parameter Reference Type Length Default Optional Text
AUTHY HRRHAP-AUTHY C 1 'X' X Authorization Check Switch
COMMIT_FLG HRRHAP-COMMIT_FLG C 1 'X' X Switch with COMMIT
KEEP_LUPD HRRHAP-KEEP_LUPD C 1 X Retain Last Changed By/On
LOAD HRRHAP-LOAD C 1 'X' X
ORDER_FLG HRRHAP-ORDER_FLG C 1 'X' X Switch: Take Record Sequence Into Account
PPPAR_IMP PPPAR u 551 X Import Structure PPPAR
VTASK HRRHAP-VTASK C 1 Update (B=Buffer,D=Online,V=Update,S=Sync)
WORKF_ACTV HRRHAP-WORKF_ACTV C 1 'X' X Workflow Switch Active

Parameter Reference Length Optional Text
ILFCODE ILFCOD 8 X Table of Logical Function Codes
INNNN 0 Table of Infotype Records

Exception Text
CORR_EXIT Error/Termination While Assigning Correction Number
DELETE_FIRST_RECORD First Record Must Not be Deleted
ERROR_DURING_DELETE Error when deleting
NO_AUTHORIZATION No Authorization

Functionality
This function module lets you delete multiple infotype records for OMobjects from the Personnel Planning database (HRPnnnn). The infotyperecords in the table parameter INNNN must all have the structure Pnnnn(logical structure for nnnn infotype). The records you want to deletemust all exist in the Personnel Planning database table. If not, theexception ERROR_DURING_DELETE is triggered.
The individual parameter values VTASK (update type) have the followingmeanings:
'D' -> update in dialog
'S' -> synchronous update via update task
'V' -> asynchronous update via update task
'B' -> update internal in buffer only, no DB update
In HR applications, the parameter is set to 'D' for update in dialog.However, if you want an internal buffer update first of multipleoperations that are logically connected and should be written to thedaabase together, you should set the parameter to 'B' for internalbuffer update only. The database update is then carried out by callingFM 'RH_UPDATE_DATABASE'.