Skip to Content

Report problem

Hi everyone,

In my report i want to get parent orgunit for particular employee number.

Is there is any function module by passing employee number to get parent orgunit?

Its vry urgent.

Points will be rewarded.

regards

stanley

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jul 11, 2007 at 05:20 AM

    Hi,

    If you want the org. unit of an employee, you can get the same from pa0001-orgeh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2007 at 05:22 AM

    <b>RH_GET_PERNR_WITHOUT_POSITION</b> Read all employees of organization unit without position

    <b>RH_SBES_LI</b> Display of positions and persons of an organizational unit

    <b>RH_SBES_TP </b> Header for displaying staffing of position in an organizational unit

    <b>BAPI_ORGUNITEXT_DATA_GET</b> Get data on organizational unit

    Just check these FM.

    Regards,

    Pavan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2007 at 06:51 AM

    Hi,

    Use FM:

    <b>SWD_HELP_F4_ORG_OBJECTS</b> HR Matchcode tailored for organizational units. Includes a button so that you can browse the hierarchy too.

    Hope this helps.

    Reward if helpful.

    Regards,

    Sipra

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      use the function module as below

      CALL FUNCTION 'RH_STRUC_GET'

      EXPORTING

      act_otype = 'P' " Employee/Personnel number

      act_objid = p_number

      act_wegid = 'P-S-O-O'

      act_plvar = '01'

      act_begda = sy-datum

      act_endda = sy-datum

      TABLES

      result_struc = p_struc

      EXCEPTIONS

      no_plvar_found = 1

      no_entry_found = 2

      OTHERS = 3.

      This will give the parent org id.

      Regards,

      Krishnakumar

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.