‎2007 Feb 05 1:50 PM
Hi All,
I am new to HR-ABAP programming. My requirement is:
For a given pernr in date range, find all the managers with their names.
l have to access HRP1001 and find the position(S) for the pernr(P) and for the position, check if there is any manager, if no manager, then go one level up. Get the following info.
Employee Details
Employee Id
Employee Name
Employees address
Employees dependent details
Employees Manager Details
How to find the relations?
‎2007 Feb 05 1:59 PM
‎2007 Feb 05 2:10 PM
‎2007 Feb 05 2:44 PM
Hi Swati,
this is to get the position of the person: Select sobid
otype = P, objid = pernr, rsign = A, relat = '008', sclas = S. this will give the position for the person(pernr).
then for getting the supervisor: select the sobid.
otype = P objid = pernr, rsign = A, relat = '002' , sclas = P.
if sy-subrc = 0.
to get the supervisor's position: select the sobid.
otype = P , objid= sobid(of the supervisor), rsign = A, relat = '008', sclas = S.
else.
supervisor not found
endif.
regards,
madhu
‎2007 May 15 10:22 PM