cancel
Showing results for 
Search instead for 
Did you mean: 

How to get details of all terminated accounts in SAPHR

former_member213644
Participant
0 Kudos

Hi Experts,

I am using some BAPIs to get terminated records. The BAPI what i am using here is BAPI_EMPLOYEE_GETDATA. This BAPI is not giving us the terminated record.

So here my concern is how to get the terminated records and the details of terminated records from SAPHR?

Please give your suggestions.

Thanks

Riju Bhasker

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185540
Active Participant
0 Kudos

Hi Riju,

Don't complicate things, just use standard reports. What exactly do you want? Just a list of leavers or what?  There are standard reports. However if you want  to do your own reports i would simply write a report based on PNP or PNPCE database and select all where the position is 9999999.

Revert back when you have more issues.

Dimitri

former_member213644
Participant
0 Kudos

Thanks for replying.

My concern is , I am using jco library to write an application to get terminated records. But there is no BAPIs available which are RFC enabled.

Is there a standard function module or BAPI which is RFC enabled to get all terminated records and its details?

keith_doyle
Employee
Employee
0 Kudos

Hi Riju,

The BAPI_EMPLOYEE_GETDATA was originally designed for a web scenario called 'who is who'. In that context displaying employees that left the company did not make too much sense.

The only option I foresee is to create your own custom BAPI based on the standard BAPI_EMPLOYEE_GETDATA

Kindest Regards,

Keith

Former Member
0 Kudos

Hi Riju,

There are many ways to get terminated employee records. Some of them are as follows :-


1) T code - PAR2 & provide necessary inputs (PA, PSA, employment status not equal to 3)


2) Action Report-S_PH9_46000123. It is an action based report. So you need to mention action type (i.e. Separation, Resignation, Termination, etc)


3) T code SE11 -> PA0000 -> Display -> CTRL + SHIFT + F10 -> Mention STAT2 as 0 -> F8.


Thanks & Regards,

Monali