12-16-2011 6:50 AM
Hi All,
I require a BAPI which can give me the employee status (PA000 - STAT2 field) as i need to expose this BAPI as a webservice. I have tried searching for this but didn't get any BAPI which can give me the employee status. Can anyone Know the BAPI which gives the employee status.
12-16-2011 7:15 AM
12-16-2011 7:15 AM
12-16-2011 8:02 AM
Actually i require only a BAPI and that too a Standard BAPI because this is our client requirement
12-16-2011 10:59 AM
Hi,
Out of the box SAP doesn't provides a RFC enable BAPI modules that can be used to read a status of the employee in HR Module. To extend the SAP connector with the employee status attribute you can use the BAPI module from this section. With using files attached to this example you are able:
create BAPI module based on source code (SAP developer license is required).
or deploy precompiled BAPI modules.
As a result you will extend the SAP with the BAPI module ZHR_GET_EMPLOYEE_STATUS. This module have the following:
Input parameters:
PERNR - Personal number of the employee in HR Module
QUERY_DATE - actual date (by default used current date)
LANG - Language (by default used "E")
Output parameter: MP_STAT_STRING - string with employee status
Files to download:
Source code of the BAPI module: ZHR GET EMPLOYEE STATUS.TXT
Regards,
Ravi