Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

get data from external system

Former Member
0 Likes
687

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

5 REPLIES 5
Read only

Former Member
0 Likes
646

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

Read only

Former Member
0 Likes
646

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

Read only

0 Likes
646

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)

Read only

0 Likes
646

In that case you need to write RFC function module to fetch the data from other system.

Read only

0 Likes
646

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