How to get subordinate org units for a given org unit within specific dates

hi,
How to get subordinate org units for a given org unit within specific dates

Use the following Func module ..
HRWPC_RFC_STRUCTURE_GET
*--Get the sub org.unts for the given selection.
    CALL FUNCTION 'HRWPC_RFC_STRUCTURE_GET'
      EXPORTING
        ROOT           = root_org   <-- Give the Org unit 
        EVPATH         = 'O-O_DOWN'
        BEGDA          = s_date-low
        ENDDA          = s_date-high
      TABLES
        T_OBJEC        = t_objec
        T_STRUC        = t_struc
      EXCEPTIONS
        NOTHING_FOUND  = 1
        INTERNAL_ERROR = 2
        OTHERS         = 3.
    IF SY-SUBRC <> 0.
      MESSAGE i000 WITH 'No Sub Orgunits for ' s_objid-low.
    else.
*--Prepare final sub org.units tabl.
      loop at t_objec.
        if t_objec-objid ne s_objid-low.
          it_orgunit = t_objec-objid.
          it_orgunit-begda   = t_objec-begda.
          it_orgunit-endda   = t_objec-endda.
          APPEND it_orgunit.
        endif.
      endloop.
    endif.

Similar Messages

  • Getting Parent Consolidation Groups for a given Consolidation Unit

    Hi Friends,
    I am writing a program wherein i need to get parent Consolidation Groups and their Hierarchy levels for a given Consolidation Unit. If anyone has worked on a similar requirement, Please provide me with Function module or logic for the same.
    Thanks
    Surya

    hi,
    asset-nr = ILOA-ANLNR
    Andreas

  • How to get the week number for a given date?

    hi guys,
    what is coding to get the week number for a given date?
    For example, 1/1/05 is week 1. then 8/1/05 is week 2.

    The second parameter to pass to the method is supposed to be one of the month constants JANUARY - DECEMBER. It happens to be that their numerical values are 0-11, not 1-12, so your "12" refers to the "13th" month of the year.
    givenDate = new GregorianCalendar(2003, Calendar.DECEMBER, 31);
    If you want to construct dates and times from strings like you seem to be, look into SimpleDateFormat http://javaalmanac.com/egs/java.text/ParseTime.html
    (even still I got WEEK_OF_YEAR as 1 which is true but not really what I expected, excuse my previous reply but I wanted to check the facts before posting this)

  • Determine the superior Org Unit for a given Organisation Unit.

    Hi,
    I am using the Sequential Access method of accessing the PCH Logical Database.
    Is there any macro available to determine the superior Org Unit of the current Organisation Unit being looped at using the GET OBJEC statement.
    I cannot access the STRUC internal table as I do not want to use structural access.
    At the moment I am using the function module RH_ENTH_READ_STRUCTURE. Is this a good way of doing this or is there any PCH functionality for this?
    Any help would be much appreciated.
    Thanks and regards,
    Priya

    Thanks for the input.
    I just was concerned if either way would cause a performance issue while i'm already in the GET OBJEC loop.
    Anyway, for now I think I'll continue using the function module. I guess a direct SELECT on HRP1001 would require explicit authority check.
    If someone else has a comment on this topic do post it in. I have time till next week to finalize on my approach.
    Thanks once again Suresh!!!
    Regards,
    Priya

  • How to get cost center ranges for a given company and division...

    Hello Experts,
    Is there a table, BAPI or FM that can get the company or division of a given cost center?
    Currently I am creating cost center ranges in my program but that is not the best way to do it
    since they can always add or delete cost centers. Just like in transaction OKEON wherein you
    can see the cost center ranges for a given company or division.
    Hope you can help me guys. Thank you and take care!

    Hi Viray,
    You can try BAPI 'BAPI_COSTCENTER_GETDETAIL1'.
    You need to pass controlling area and cost center detail to this BAPI.
    It will return the cost center detail in return.
    Hope this helps you.
    Thanks,
    Arun

  • How to get the version no. for service po?

    Hi,
    How to get the version no. for service po?For material po we are getting the version from EKKO-REVNO but for service po Ekko-revno is blank.
    Regards,
    Rachel.

    Hiee,
    It is not like service PO does not have revision.
    REVNO will only exists for any document if amendment is made after releasing it. If in EKKO for all service PO revision number is blank then test if version management is active for document type
    MM->Purchasing->Version management -> External documents
    Here check for your doc type and purchase org version management is active.
    Regs,
    Appie

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • How to get title templates library for CC?

    How to get title templates library for CC?  Do you have to download and install PP 6 to get them?

    Try here Library, title templates, template projects missing: Premiere Pro, After Effects, Encore

  • How to get balance sheet report for profit centers

    hi
    how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for this

    Hi,
    You can use T. code KE5Z for actual line items.
    More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
    The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
    In selection, you can give ledger name which is generally 8A for profit center ledger.
    Reg

  • I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?

    I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?
    anyonr know how I can get my money back????????

    Go to Settings>General>Reset>Erase all content and setting. Then re-setup the iPod with your account/media. To redownload iTunes purchases see:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How to get 64 bit version for premiere elements 12

    How to get  64-bit version for Premier Elements 12 ? 
    I download from ADMISY site.
    Click on win 64 bit and download it.
    When I try to install ther is a error  this download version is not for 64 bit I have try many times but same result

    Hello
    I have been away some days
    ADMISY is a software partners for Adobe
    I running Win 7 Home Edition
    I have received a card with a code when I bought the program and the I
    download from ADMISY
    Sending serial and installation warning
    PhotoshopElements_12_WWEFDJ.7z
    PhotoshopElements_12_WWEFDJ
    PremiereElements_12_WWEFDJ_win32.7z
    PremiereElements_12_WWEFDJ_win32
    I can not find a 64 bit version of 32-bit or 64-bit version of downloads
    This is information I have
    Best regards
    Erling Magnusson
    2015-02-04 22:33 GMT+01:00 Adobe Forums <[email protected]>:
        How to get 64 bit version for premiere elements 12  created by A.T.
    Romano <https://forums.adobe.com/people/A.T.+Romano> in *Premiere
    Elements* - View the full discussion
    <https://forums.adobe.com/message/7162950#7162950>

  • How to get the depreciation areas for an asset in particular period

    Hi frndz,
      how to get the depreciation areas for an asset in a particular period for writeup or manual depreciation method.
    Thanks and regards.
    Harisumanth.Ch

    Try table ANLB, then read ANLC.
    Regards.

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • How to get count of rows for a table?

    Hi,
    How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?
    Regards,
    Devashish

    Hi Devashish,
    WdContext.node<Your_node_name>().size() will give you the no: of rows.
    This should be the node that is bound to the table's datasource property.
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.
    You can access an attribute of a particular row as
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();
    Hope this helps,
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

Maybe you are looking for

  • Effect on one part of drums only?

    This is a newbee question. I put a tape delay on Ultrabeat track but it applies itself on all parts of the drums. Can I add a delay effect to only the Snare in Ultra beat? Is the only method to put ultrabeat on a new track and load the kick on that o

  • OBIEE 11g Error (11.1.1.5)

    Hi All, I am getting the following error in Enterprise Manager. Can someone please help me to fix it? ThreadPool<HostLookup>: Worker thread job errored out. Unable to resolve the name for 192.168.0.100 Thanks in advance.

  • Quicktime won't uninstall -  Itunes wont open

    Dear Friends, Whenever I try to open itunes 7.2 I get the error "iTunes has encountered a problem and needs to close". I have tried installing many other versions, still the same problem. I noticed that quicktime remains in the "Add/remove programs"

  • Visible fields in Acrobat or Live Cycle

    I have used both LiveCycle and Acrobat to make this PDF that my clients will be able to download and place their own company name in the text field I have provided. The problem is the text field shows up as a blue box. Now I have gone through every o

  • Text in iPod section of iTunes for windows not totally showing up???

    When my iPod/iPhone is connected and I browse different sections of iPod/iPhone are in iTunes for Windows, there are several lines of text instructions. Some of which don't display the entire sentence. This seems very odd since there is plenty of bla