10-01-2008 7:02 AM
Hi Experts,
*am developing HR-ABAP Report inthat, i have data in 2 internal tables, through these (itabs) i want to*
*insert the data into 2 Ztables(Respective tables) and then i want to Update one Custom Infotype.*
how can i procedure for this? is there any FM to update Infotype....
Thanks in Advance,
sudeer.
10-01-2008 7:05 AM
Hi,
You can use the FM-
HR_MAINTAIN_MASTERDATA
or-
HR_INFOTYPE_OPERATION
10-01-2008 7:05 AM
Hi,
You can use the FM-
HR_MAINTAIN_MASTERDATA
or-
HR_INFOTYPE_OPERATION
10-01-2008 7:07 AM
hi,
You can acheive that using this exit.
PBAS0001
EXIT_SAPFP50M_002.
10-01-2008 7:48 AM
Hi,
Single infotype updation using this FM : HR_MAINTAIN_MASTERDATA
Multi infotype updation HR_INFOTYPE_OPERATION
Thanks&Regards,
Naresh.
10-01-2008 2:07 PM
Thank u very much friends, for ur help.
and is there any more info 4 that.....
thanks,
sudeer
10-01-2008 6:21 PM
The best way is to use HR_INFOTYPE_OPERATION function module in your program.
Sample code:
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = p0082-infty
number = p0082-pernr
subtype = p0082-subty
validityend = p0082-endda
validitybegin = p0082-begda
record = p0082
operation = 'INS'
tclas = 'A'
dialog_mode = '0'
importing
return = return
key = key.
capture error messages
if return-type = 'E'.
concatenate 'Sub Type:' p0082-infty into messtab-tcode.
move return-message to messtab-param.
append messtab. clear messtab.
endif.
You can use it for modifying the record also.