‎2011 Apr 11 10:17 AM
hi everybody
for a report i have to retrieve the data from infotype 0016 from the HR system which is separate from the SAP database.
Is there any BAPI which does that or what is the way to proceed
never done that before
thanks a lot for your help
‎2011 Apr 11 10:30 AM
Use HR_MAINTAIN_MASTER_DATA or write a BDC to update IT0016 in SAP then use that in your report............
Thanks,
Nag
Edited by: Nagarjuna Sreerambhatla on Apr 11, 2011 3:02 PM
‎2011 Apr 11 10:31 AM
Hi
Use FM
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
* TCLAS = 'A'
pernr = w_list-pernr
infty = '0016'
* BEGDA = '18000101'
* ENDDA = '99991231'
* BYPASS_BUFFER = ' '
* LEGACY_MODE = ' '
* IMPORTING
* SUBRC =
TABLES
infty_tab = p0016
* EXCEPTIONS
* INFTY_NOT_FOUND = 1
* OTHERS = 2
‎2011 Apr 11 10:43 AM
hi Sachin
thanks for your answer
but as i said, the data is not in the system im working, a separate SAP HR system exist.
So, from the current non-HR system, i have to get the values in the SAP HR system(they are 2 separate systems)
‎2011 Apr 11 11:55 AM
In that case you need to write RFC function module to fetch the data from other system.
‎2011 Apr 11 1:17 PM
Prema,
please create a RFC enabled FM which is copy of HR_MAINTAIN_MASTER_DATA in case you don't have any dynamic actions defined fot IT0016.
If you have nay Dynamic actions defined for IT0016 then go for BDC As I said..
Get entries in your SAP first