on 04-02-2009 2:49 AM
Hi,
I need to send the work item to HR director for approval and then I need send work item to HR specialist for data entry in PA40.
My problem is I dont know the way to identify the HR director and HR specialist. Is the HR director the chief of the HR org unit? While is the HR specialist the lowest level in the org unit?
I m not familiar how HR org unit works. How should I approach this requirement?
Appreciate advice. Thanks.
Hi,
Is the HR director the chief of the HR org unit?
This depends how your HR people maintaining the Org. Structure in your Company.
Using the rule you can get the Chief of the Org. Unit
Check the std. Rule. 00000157 --- Superior (chief position)
If this not matches your Requirement, you have to Create your own custom rule.
to identify the HR director and HR specialist.
Using the Employee Subgroup you can find the difference.
In the Table PA0001 field PERS (Employee Subgroup) will have, get the Employee Subgroup no. for the HR director and HR specialist from your HR Consultant.
Then you can use it in your code.
Regards,
Surjith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
you can get organazation relationship in table HRP1001.
OTYPE P
PLVAR 01
OBJID person id
SUBTY B008
it will give leading position details...
other wise use this FM to get leading position.
*get the leading position of the first selected approver
CALL FUNCTION 'RH_GET_LEADING_POSITION'
EXPORTING
plvar = '01'
otype = 'P'
sobid = l_objid
date = sy-datum
auth = ' '
TABLES
leading_pos = leading_pos
EXCEPTIONS
no_lead_pos_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
9 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.