To get lower level org units of any particular main org unit

Hi All,
I need to get all the lower level org units of any particular main org unit (the one maintained in ppoma_crm).
Is there any FM/method to get this information?
Cheers,
Sharad

Hi Sharad,
The following code ought to work:
CALL FUNCTION 'RH_STRUC_GET'
    EXPORTING
      act_otype              = 'O'
      act_objid              = <your main orgunit>
      act_wegid              = 'ORGEH'
    ACT_INT_FLAG           =
      act_plvar              = '01'
    ACT_BEGDA              = SY-DATUM
    ACT_ENDDA              = SY-DATUM
    ACT_TDEPTH             = 0
    ACT_TFLAG              = 'X'
    ACT_VFLAG              = 'X'
    AUTHORITY_CHECK        = 'X'
      text_buffer_fill       = 'X'
      buffer_mode            = 'X'
  IMPORTING
    ACT_PLVAR              =
    TABLES
    result_tab             =
      result_objec           = lt_result_objec
    RESULT_STRUC           =
    EXCEPTIONS
      no_plvar_found         = 1
      no_entry_found         = 2
      OTHERS                 = 3.
  IF sy-subrc = 2.
    RETURN.
  ENDIF.
  IF sy-subrc <> 0.
    RAISE error.
  ENDIF.
I found this example in the below method,you can have a look as well.
Class: CL_CRM_PPM_UM_TOOLKIT
Method: GET_SUB_ORGUNITS
Thanks,
Sarat

Similar Messages

  • Need to get employees belonging to this org unit + its lower level org Unit

    Hi ,
        We have a requirment where in which we need to get all the employees belongs to a perticular in an     
        organization UNIT and its lower level org units.IS tehr any FM to find the same.
       i.e if we input org unit then it should return all the employees belonging to this org unit + its lower level 
        org unit(B002 relation ship)
       Any inputs are appreciated..
    Regards,
    Zareena.

    Hi Zareena,
    This is wht i understood in org management...
    evaluation path is the relation between two entities,
    entities may be
    job(C)
    position(S)
    Employee(P)
    Org Unit(O)
    O - O is line mangaer,
    S - O belongs to,
    P - S is owner of.
    i think if u observe O - O is line manger.. means in with same position
    S - O means that position belongs to the Org Unit
    P - S means the employee has that Position.
    All these type of relations will me maintained in the Infotype 1001 with the raltionships.
    All object types will be maintained in the Infotype 1000.
    Regards,
    Sreenivasulu Nallani.
    Award points if helpful..

  • How can I get low level access to netstream using OSMF?

    Hi
    I'm trying to gain access to the low level netstream underneath the hood of OSMF so that I can access its netstream.info property for reading metrics.
    I find that I am able to do this for MP4 videos but not for F4M dynamic streaming videos.
    For MP4, I was successfully able to create a VideoElement that used a CustomNetLoader class which overrided the createNetStream method to return a netstream object.
    However, for F4M, I have to use either the MediaFactory.createMediaElement(element) method or the F4MElement. The F4MElement does not allow a CustomNetLoader to be used and it seems to only accept a F4MLoader class.
    Any advice on how I can access either the netstream object or the metrics of F4M videos?
    Thanks

    ok, I finally got access to the direct netstream object - someone from Akamai gave me the answer.
    Seeing how I wasn't able to find this answer anywhere on Google, I'm going to post the solution here as there's no way I would have known this solution without someone who knew how to get direct access to the netsteam object in OSMF.
    There's a hidden class that won't show up in the code hint called org.osmf.net.NetStreamLoadTrait that you have to import.
    1) First, your media player playing controlling your MediaElement has to listen for a LoadEvent.LOAD_STATE_CHANGE event after you load the MediaElement into the media player
    mediaPlayer.addEventListener(LoadEvent.LOAD_STATE_CHANGE, onLoadStateChange);
    2) Upon LoadEvent.LOAD_STATE_CHANGE, check for a org.osmf.traits.LoadState.READY - you can only access the NetStream object when it is LoadState.READY or the netstream object will return as null.
    private function onLoadStateChange(e:LoadEvent)
                                  if(e.loadState == LoadState.READY)
    3) Once the LoadState.READY is true, you can create a datatype of NetStreamLoadTrait and type cast it from a Load trait:
    private function onLoadStateChange(e:LoadEvent)
      if(e.loadState == LoadState.READY)
         var nsLoadTrait:NetStreamLoadTrait = mediaPlayer.media.getTrait(MediaTraitType.LOAD) as NetStreamLoadTrait;
    4) Once you successfully type cast the Media Load Trait from your media into NetStreamLoadTrait, you can access the property netstream from the NetStreamLoadTrait object.
    private function onLoadStateChange(e:LoadEvent)
      if(e.loadState == LoadState.READY)
         var nsLoadTrait:NetStreamLoadTrait = mediaPlayer.media.getTrait(MediaTraitType.LOAD) as NetStreamLoadTrait;
         var ns:NetStream = nsLoadTrait.netStream;
    Hope this helps someone out there.

  • I keep getting "low-level exception occurred in: waveform audio (exporter)"

    when I try to edit a clip from preimere pro cs6 with the context menu "edit clip in audition" it gives me the low-level exception occurred in: waveform audio (exporter) error in the log and does nothing.
    what is happening and how do I fix it?

    Often, when two programs in a suite are being used with one another, which forum to post to, can be a bit of a gray area. Those, who suggested the Au Forum, probably fixated on that part of the workflow.
    Had you posted here, there might well have been a few, who would have suggested the Au Forum.
    As the Au folk have not encountered this error, the PrPro Forum is probably the best place to be right now.
    Unfortunately, I have neither encountered that error, nor have I read of it, so I am of no use, other than to say that someone here will probably be able to get you some help.
    Now, I do agree that at the point in your workflow, where you are encountering the error, it probably IS a PrPro error.
    Good luck,
    Hunt

  • Low-Level Format Units

    hello
    From the windows server and client operating systems, can be low-level formatted hard disks ...

    hello
    From the windows server and client operating systems, can be low-level formatted hard disks ...
    Normally you need to go to controller BIOS (or whatever equivalent it has) to do this. Some RAID controllers have these features exposes @ their Windows control panels & dashboards (LSI for example). In any case w/o knowing your controller vendor it's just
    a trying to guess... 
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • High level and low level grabs

    Hi, I'm looking at different acquisition options. Fast acquisition is a priority as is fast processing. I'm a little confused on high level versus low level. Is there any benefit to which one is used? Or is it 6 one way and 1/2 a dozen the other. Thanks

    If you feel comfortable using the Low Level functions I would personally recommend using them instead of the High Level. Bruce's answer is correct, high level will call low level with standard options selected. If you think of ways to improve the speed of your code, you may want to use low level, my reason is because high level VIs will actually be a function call calling other functions, which introduces a minimum delay, instead, if you use low level you are directly calling the functions for acquisition so there is kind of a small time saving if you think of it as acquisition wise.
    Also, the high level VIs if you check their block diagram it has more structures for error checking, session ID checking, etc., so with low level you have direct control over the acquisitio
    n from your main program without introducing innecessary structures or functions.
    Regards,
    Nestor Sanchez
    IMAQ/Motion Support
    National Instruments
    Nestor
    National Instruments

  • How to find first level WBS from Lower Level WBS

    My client is posting cost at wbs which will be at level 5 or 6 and i need to find 1st level wbs for that 5 or 6 level wbs..
    So Is there any Function module to find 1st level wbs from any lower levels...
    or any suitable code?

    Hi Sachin,
    in table PRHI you have the relationship between a WBS element and its superior level WBS element.
    For example:
    Level 1: XYZ (internal code PSPNR: 00000001)
    ..Level 2: ABC (internal code PSPNR: 00000002)
    ..Level 2: DEF (internal code PSPNR: 00000003)
    ....Level 3: PQR (internal code PSPNR: 00000004)
    ...then in table PRHI you'll have:
    PRHI-POSNR = 00000001 ... PRHI-UP = 00000000
    PRHI-POSNR = 00000002 ... PRHI-UP = 00000001
    PRHI-POSNR = 00000003 ... PRHI-UP = 00000001
    PRHI-POSNR = 00000004 ... PRHI-UP = 00000002
    ...meaning:
    WBS element XYZ is top level
    WBS element ABC depends of WBS element XYZ
    WBS element DEF depends of WBS element XYZ
    WBS element PQR depends of WBS element DEF
    Then you can iteratively (or recursively) "climb up" the structure of the project until the WBS element of level 1.
    I hope this helps. Best regards,
    Alvaro

  • FM to get the highest level org units

    Hi
    Is there a way to find out the root level org units in the system? i.e i want to retrieve all the org units that do not have a higher level org unit.
    I can look for org units that do not have a valid "A002" relationship. But i am not sure if this is the right approach. Can someone let me know if there is a FM or any other better logic to determine this?
    Thanks,
    Prasath N

    I am looking for org units which do not have a valid "A002" relationship. Seems to work fine for me.
    Regards,
    Prasath N

  • I've gotten 60 or 70 messages that that my iCloud doesn't work and to select preferences.  The message says I will get an email to verify but I never get an email.  I've checked old email, blocked email, and have low filters on emails.  Any ideas?

    've gotten 60 or 70 messages that that my iCloud doesn't work and to select preferences.  The message says I will get an email to verify but I never get an email.  I've checked old email, blocked email, and have low filters on emails.  Any ideas?

    Hey CarolinQc,
    Thanks for the question. The symptoms you are experiencing can result from an Apple ID address that has been changed prior to signing out of all of the services. Before you change the email address associated with your Apple ID, you’ll want to sign out of all services to avoid this. As a fix, you can temporarily change your Apple ID back to the old address:
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/TS5223
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    1. Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    2. Go to Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
              - Scroll down and tap Delete Account, then tap Delete to confirm.
              - Tap “Keep on My [Device]” or “Delete from My [Device].” In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
              - Enter the password for your previous Apple ID.
    3. Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    4. Return to Settings > iCloud and sign in with your new Apple ID.
    Additional Information:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Thanks,
    Matt M.

  • For an Org Unit, how do we get all Reporting Org units (Also employees reporting to the sub org unit) & Employees ?

    Hi Experts,
    I have a very common requirement in SAP HCM ABAP development.
    For an Org Unit, how do we get all Reporting Org units(Also employees reporting to the sub org unit) & Employees ?
    I have tried using RH_STRUC_GET_MULTIPLE_ROOTS and RHPH_STRUCTURE_READ, but the evaluation path is insufficient to get all objects under it. I tried with both O-S-P and O-O-S-P evaluation paths and as per some constraints, I can’t create a customized evaluation path for a reason.
    I am using PNPCE database for user selection screen and user would be advising the Org unit. I even referred the standard transaction ‘S_AHR_61016495’ which is using PCH logical database.
    I would really appreciate if anyone could provide a solution for this. (Rewards guranteed )
    Kindly help.
    Thank you.
    Regards,
    Mahesh Konade

    Hi Alexandre,
    Although I could not respond in time, thank you so much for your prompt reply.
    I had used the same RHPH_STRUCTURE_READ and passed the appropriate values to it, but it did not populate the required results. I cross checked the results manually, may be some relations issue. But later I tried using RH_STRUC_GET_MULTIPLE_ROOTS and it worked fine.
    Meanwhile I had done a workaround with PCH and RH_STRUC_GET and it served the purpose of getting all the Org units, it’s reporting sub-org-units, positions and persons (The deepest structure from the root org unit advised on selection screen).
    The solution I used is, I captured the org-units advised on selection screen by user using PCH logical database and then by looping on sub-org units reporting to the main org-unit I populated related positions and persons holding them and assigned it to the PNPCE logical database.
    Thank you so much for the help.
    Regards,
    Mahesh Konade

  • Inheritance for the AAP Plans from a high level Org Unit code

    Hello,
    Did anyone know how I can create Inheritance for AAP Plans from High level Org Unit ? We have a lot of reorgs and we would like to turn on this fuctionality if it possible.
    Thank you in advance.

    Hello,
    Did anyone know how I can create Inheritance for AAP Plans from High level Org Unit ? We have a lot of reorgs and we would like to turn on this fuctionality if it possible.
    Thank you in advance.

  • Is there any way to get volume level of  netStream?

    Hello,
    I want to get the activity level of audio of a NetStream, similar to how you can do it with a Microphone.
    In this article,
    http://stackoverflow.com/questions/1442913/as3-audio-activity-level-of-a-netstream
    NetStreamInfo.audioBytesPerSecond is said to be the solution.
    However, audioBytesPerSecond indicates how many data volume the stream have.
    It does not get volume level of the stream.
    It is not the same as microphone.activityLevel.
    Is there any way to get volume level of netStream?
    Thanks in advance.

    Thank you very much for your answer.
    I will use audioBytesPerSecond.
    I've tried SoundMixer class also, but it seems not working on streaming movies.

  • Hi, i have an 6 gene ipod nano and having some trouble: suddenly the level of the sound starts getting lower and lower without my command...thanks.

    hi, i have an 6 gene ipod nano and having some trouble: suddenly the level of the sound starts getting lower and lower without my command...thanks.

    hi, i have an 6 gene ipod nano and having some trouble: suddenly the level of the sound starts getting lower and lower without my command...thanks.

  • What exactly is a "low-level exception occurred in: ImporterFastMPEG?"

    I've been importing several HDV video files (m2t files) from my Sony HDR-DR60 HDD unit into Premiere Pro CS6 on my Macbook Pro w/ Retina Display. I noticed that this error popped up for 3 files: "A low-level exception occurred in: ImporterFastMPEG (Importer)" What exactly is happening here? What does that mean? Those video files appeared with small "?" icons next to their names in the bin. I attempted to import them again, but I was either given the same error message or only the first few seconds of the file would import. For example, one file is 645MB and is a little over 3 minutes long. Now when I try to import this file, it shows as being only 19 seconds in length.
    Now here's where it gets perplexing: I took that same file and fired up my decommisioned Windows PC with an old installation of Premiere Pro CS5.5, and it imported perfectly without a problem.
    I found a very slow work-around where I converted the m2t file into an uncompressed Quicktime MOV, but I'd like to find out what the root cause is and why I'm getting this error for these few files. I've done a lot of shooting this week, and I haven't had a problem with any other files from my HDR-60.
    So, is this a Mac/Apple problem, a Premiere CS6 problem, or are those particular files just randomly weird? Google searches have not yielded anything useful which is why I'm asking here.

    You might go back to http://forums.adobe.com/community/premiere/premierepro_current
    In the block under Ask a Question enter
    low level exception
    so you may read previous discussions
    Be sure to click the See More Results at the bottom of the initial, short list

  • Higher level Org Chief........

    Hello everyone,
    My requirement goes like this----
      Suppose for an organization, Org. Chief is not maintained, next higher level Org.unit Chief should be fetched.
    EX: 10000002 Org.Unit Reports to 10000001 Org.Unit
    i.e  'O' 10000002 A002 'O' 10000001
    There is no org.chief for 10000002 Org.unit i.e
    'O'  10000002 B012 does not exist and there exists a relationship such that
    'O' 10000001 B012 'S' 30000015.
    Now when i execute that function module with Object type as 'O' and org.Unit as 1000002 with relationship B012, it should get me 'S' 30000015.
    Is there any function module which will help me in getting the required?

    yes manoj for example when call the function with objid as 10000002 and relation as B012, i am getting an error as Relation O 10000002 B012 does not exist...
    i can get the higher org unit and then b012 for it, thats not a problem if i go by logic in coding.
    What i want is to know that whether is there any function module that will directly give the next higher related object ID?

Maybe you are looking for