Data Authorization for BAPI
I have developed following two BAPIs for Enterprise search application.
1) One BAPI for retrieving personal information from SAP HR depending on PERNR field of a table PA0002.
2) Other BAPI for retrieving Leave information of the employee again on the basis of PERNR.
Both the BAPIs are working fine.
My requirement is to display leave information to manager only. i.e. one can see the leave information of its subordinate only.
Is it possible at BAPI level? Any help?