Hi,
I'm using athe above function to insert a record into IT0015 (Additional Payments) i.e. Operational Mode is 'INS'
but when I have a record already in the system for the date specified it is just inserting a new record - is there a parameter I can pass into the function that will just update the record rather than creating a new one?
I know I can check prior to the operation via function 'HR_READ_INFOTYPE' if a record exists and then change the operational mode to 'MOD' before I call 'HR_INFOTYPE_OPERATION - is this the only way or can the HR_INFOTYPE_OPERATION handle this step.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0015'
number = p_pernr
subtype = p0015-subty
* OBJECTID =
* LOCKINDICATOR =
validityend = p0015-begda
validitybegin = p0015-begda
* RECORDNUMBER = 1 "RP 26.11.09
record = p0015
operation = p_operation
* TCLAS = 'A' "RP 26.11.09
* DIALOG_MODE = '0'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
return = fs_return
* KEY =
.
Many thanks in advance.
Raj