2008 Feb 01 7:49 PM
Hello All:
Is there a standard SAP program or FM in HR that gives me update to all infotypes made by the employee himself/herself i.e., I need to get all active employees, get their NTID/userID and then match that ID in all infotypes, when ID is found I need to show that employee info on the report.
Thanks.
Mithun
Hello All:
Is there a standard SAP program or FM in HR that gives me update to all infotypes made by the employee himself/herself i.e., I need to get all active employees, get their NTID/userID and then match that ID in all infotypes, when ID is found I need to show that employee info on the report.
Thanks.
Mithun
2008 Feb 02 3:57 AM
Hi,
form read_infotype .
call function 'HR_READ_INFOTYPE'
exporting
TCLAS = 'A'
pernr = pernr-pernr
infty = '0002'
begda = pn-begda
endda = pn-endda
BYPASS_BUFFER = ' '
IMPORTING
SUBRC =
tables
infty_tab = i0002
EXCEPTIONS
INFTY_NOT_FOUND = 1
OTHERS = 2
.
if sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
regs,
Hema.