Application Development 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: 

Required BAPI for employee status

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

mithun_shetty4
Contributor
0 Kudos

Check HR_INFOTYPE_GETDETAIL

3 REPLIES 3

mithun_shetty4
Contributor
0 Kudos

Check HR_INFOTYPE_GETDETAIL

0 Kudos

Actually i require only a BAPI and that too a Standard BAPI because this is our client requirement

0 Kudos

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