cancel
Showing results for 
Search instead for 
Did you mean: 

How to get HR Director and HR specialist in workflow?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

surjith_kumar
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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.