‎2007 Aug 03 7:04 AM
I need to update infotype 22, 31 , 68. I am using function module "HR_INFOTYPE_OPERATION". But using this FM i can only upate the fields of infotype which are reflected in the infotype screen. I need to update other fields which are there in the PA table but not reflected in the screen.
Is there any other function module available?
‎2007 Aug 03 7:16 AM
‎2007 Aug 03 10:15 AM
Hi,
You can use the Function Module <b>HR_MAINTAIN_MASTERDATA</b>.
This function module enables you to maintain master data for employees and applicants. You can enter field names and contents in the 'proposed values' table. This will then be transferred to the corresponding infotypes. The same validation checks take place as would in the individual maintenance screens for the infotypes. You can enter as much data as you like. You can enter several records or infotypes at once. You are responsible for making sure that the data is consistent. If necessary, the module returns an error message. The error messages are the same as the those which appear in the dialog, in other words, the individual maintenance screen error messages are transferred rather than interpreted by this module.
<u>Exanple</u>
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
pernr = p_0735-pernr
MASSN =
actio = 'MOD'
tclas = 'A'
begda = p_0735-begda
endda = p_0735-endda
objps = p_0735-objps
seqnr = p_0735-seqnr
sprps = p_0735-sprps
subty = p_0735-subty
*Put 0 here when everything is ok. 1 shows dialog on error.
dialog_mode = dialog_mode
luw_mode = luw_mode
NO_EXISTENCE_CHECK = ' '
NO_ENQUEUE = ' '
IMPORTING
return = l_return
RETURN1 =
HR_RETURN =
TABLES
proposed_values = l_value_tab
modified_keys = l_pskey.