Skip to Content
author's profile photo Former Member
Former Member

How to Get Vacant Position in Organization Unit (My Level and 1-Lvl Down)?

Anyone knows how?

Can I use RH_STRUC_GET or RH_STRUC_GET_MULTIPLE_ROOTS for this purpose?

If can, can you provide me code to implement?

Edited by: Shreya Eknath on Feb 25, 2009 9:44 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 03:45 AM

    Hi,

    Check S_AHR_61016509.

    Cheers,

    DF

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 03:45 AM

    To get the vacant positions under your level.

    then use this report and pass the RHVOPOS0.

    in this report pass the Evaluation Path(Create the Evaluation path occordingly)

    and display depth as 1 or 2.

    if you are looking for function modules check the same report you will get some function modules.

    but even for that use need have evaluation path to resolve (my level and 1 level down)

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi..you have your position or pernr...

      go to IT0001 ..you will get org unit for that in orgeh field..

      type : begin of ttt

      orgeh type OBJID,

      end of ttt.

      type : begin of ttt1

      orgeh type OBJID,

      sobid type sobid,

      end of ttt1.

      data:

      itab type table of ttt,

      wa type ttt,

      itab1 type table of ttt,

      wa1 type ttt,

      itab2 type table of ttt1,

      wa2 type tt1t.

      then

      select sobid from hrp1001 into table itab

      where plvar = 01

      OTYPE = o

      OBJID = orgeh(found from 0001)

      rsign = b

      relat = 002.

      this will give you all the org units in the given org unit one level below

      now append the base org unit too in the internal table..

      wa-orgeh = orgeh(found from 0001).

      append wa into itab.

      now

      select sobid from hrp1001 into table itab1

      for all entries in itab

      where objid = itab-orgeh

      OTYPE = o

      where plvar = 01

      rsign = b

      relat = 003.

      this will give you all the position in your org unit and all org unit in one level below.

      select objid sobid from hrp1001 into table itab2

      for all entries in itab1

      where objid = itab1-orgeh

      OTYPE = s

      where plvar = 01

      rsign = a

      relat = 008.

      this table will fill fill all the position foun above with the holder if abavialble..

      so you can loop at itab2 and see which positiin are vacant

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.