Dear Expert,
I have a problem when trying to change/modify infotype 0021, I already try a lot things using operation 'LIS9', 'MOD', 'DEL', 'INS' in Function Module 'HR_INFOTYPE_OPERATION' but I didn't get the record change and sometimes I got run time error.
How to modify Infotype 0021 using Function module 'HR_INFOTYPE_OPERATION' ?
Here's my sample code :
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0021'
number = <lfs_p0021>-pernr
SUBTYPE = <lfs_p0021>-subty
* OBJECTID = <lfs_p0021>-objps
VALIDITYEND = <lfs_p0021>-endda
VALIDITYBEGIN = <lfs_p0021>-begda
* RECORDNUMBER = <lfs_p0021>-seqnr
record = <lfs_p0021>
dialog_mode = '2'
operation = 'MOD'
view_identifier = '07'
secondary_record = lw_p0021
IMPORTING
RETURN = ls_return
EXCEPTIONS
OTHERS = 1.
Any advise will be appreciate.
Thanks.