Search LDAP for Org Data

I already wrote a code to find each attribute on LDAP. How can I find everyone who is under a manager in LDAP?
For example, I enter 'John.Doe' and I would like the results to be everyone reporting to him and everyone below him in the org.
Thanks.

If you are using Active Directory, then you can just perform a search for users who have the value of John Smith in their manager's attribute. For example:...
String searchFilter = "(&(objectClass=user)(manager=cn=John Smith,ou=Sales,dc=antipodes,dc=com))";
...And just for the hell of it, I posted a topic titled "JNDI, Active Directory, Attribute Scoped Queries" at http://forum.java.sun.com/thread.jspa?threadID=5142804&tstart=0 that describes the two different mechanisms that can be used to search for objects that are defined with linked attributes, such as users connected via their manager & directReports attribute, users and groups connected via their member & memberOf attribute.
And if you aren't using Active Directory.......speak to your Microsoft Sales rep !

Similar Messages

  • Search help for org units

    Hi,
    I'm looking for a tree search help for org units without organisational controls.
    Actually I'm using the search help 'RH_TYPE_STRUC_HELP' but the units are only the units directed by the user. For one of the specific infotype, I need to let the user select an unit that is not in his own structure... to save an information like "I don't want to work here".
    Have you got some function that can help me ??
    Thanks,
    Christophe.

    Hi
      I want to know only the parent org units existed at company code level or Personnel area level for the position search hlep and not the org units and positions relationship

  • Search Help for custom data element

    Hi experts,
      I have a small question regarding accessing data on different clients.
      Can I have an abap program where I can make reference to data /tables in different client AAA, assuming the system (AAA) with data is logically connected to the client that has the ABAP Program ?
    thanks,
    Rajesh

    Thanks Ankur and Rich,
       I would like to clarify your responses.
       I have a custom field my material in SAP xRPM system( different client from R/3).  As per your previous replies, I understand it is possible to have search help for material in xRPM and validate the data with material in R/3. Is this correct? Do I need to maintain all the data in the xRPM ?
    thanks again,
    Rajesh

  • Including a date in a photo caption and being able to use the search function for the date

    I have included both a text and a date as part of the photo caption on each of my photos.   When I have attempted to search for a specific date or year, however, nothing comes up.   For example, if I search for my photo on "Fido 1985", I can find Fido, but if I simply enter "1985", I get nothing.

    Use Find >> By Caption Name or Note menu option for such a search.
    Thanks
    Andaleeb

  • Spotlight doesn't search iPhoto for included data, such as titles!!!

    This is a complaint I had about iPhoto 6 too. If you use spotlight and type in a word, spotlight will NOT return any pictures from iPhoto. It does not mine the iPhoto data such as photo titles, descriptions, film roll or event titles or keywords. It only looks at the file name brought in when it was first imported into iPhoto.
    Any ideas on why the guys at Apple can't figure out how to get to the data in their own programs? This problem has continued to exist for too long.

    Lots of times I need to find a photo within Finder, like when uploading to a blog and such.
    Of course, that's not supported, you know. And part of not supporting it is that the OS doesn't help you do it.
    There are three ways (at least) to get files from the iPhoto Window.
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    To upload to MySpace or any site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser. Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Regards
    TD

  • Search API for Org Unit

    Hi,
      Is there any API/ FM to search for OrganisationUnits based on their Name/ Address?
    Best regards, Girish

    hi
    try using
    RH_SEARCH_ORGUNIT
    regards
    Manish
    Reward points if helpful

  • Search help for date in module pool

    Hi experts
                      i am developing a module pool prog, in the second screen 6 fields are displayed and one of them is date field. I wanna search help for that date field. Plz note the date field is populated from Work area of iternal table.
    Plz help me out in solving the issue.
    Thanks and Regards,
    Alson

    Hi
    We have a lot of Example programs in SAP, have a look at the demo program
    <b>DEMO_DYNPRO_F4_HELP_MODULE</b>..
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
    Regards
    Sudheer

  • Search help for DATE field

    HI all,
    I want to attach search help for a DATE field created in screen painter.
    For PERNR, PREM is attached. Similarly what is the statndard search help name for DATE field?
    Thanks,
    Shanthi.

    Hi ,
    Declare the date field as sy-datum ,
    parameters : date type sy-datum .
    This shud bring the standard search help for date .
    Thanks ..Get back for any issues.
    Anil

  • Third-party search engines for indexing BI data

    Has anyone had experience using third-party search engines for indexing data in BI7? We are looking into a product by QuePlix that uses a Google search appliance to index data in BI as well as other OLAP tools, and we'd be interested in hearing anyone else who is using QuePlix or any other search tool.
    SAP is working on its own TREX-based search tool, but it looks like it's still a ways off.
    Our goal is near-instant response for search queries - for example, if a user enters a cost center into the search engine, it would bring back financials, headcount, etc. for that cost center.
    Thanks,
    Jason

    The BI Accelerator has been renamed to BW Accelerator (BWA)...
    BWA does index the data - the data is indexed and stored in a proprietary file system on a high speed SAN. This is done because the BWA does not have a database of its own and is designed as an appliance.
    The index file is loaded onto main memory while querying and then TREX searched the indices and the data is returned by the BWA to the OLAP processor.
    The BWA main memory is a FIFO system where the index files are loaded into.
    I have seen TREX being used for metadata but sparingly ... the only place I have seen TREX being used for data is in the BWA. will read through the links on netweaver search technology and see if I can find anything more. thanks for the links...
    Edited by: Arun Varadarajan on Jun 17, 2009 2:07 AM

  • Customize search help for date.

    Dear All ,
    Any Idea how we going to customize / standard function the search help for the date by refering to the closing period month and year.
    Example this month closing period is 'July 2009', so when user click on the screen search help date button, the search help will pop up only 'July 2009' calender. Not like standard one with different years and months.
    I only want 1 month calender.
    Any idea ??
    Thanks.

    You may need to look into fm
      CALL FUNCTION 'F4_DATE'
        EXPORTING
          date_for_first_month         = sy-datum  " <your date>
        IMPORTING
          select_date                  = l_select_date
          select_week                  = l_select_week.
    or use class CL_GUI_CALENDAR
    a®s

  • Org data in Derived role differ from Parent role

    Hi there
    I need some help please, I am in the process of creating various parent / derived roles and have found that when I update the parent role (org data) and I do a generate do a derived role update the values in the org data is not correctly pulled through to the derived roles.
    e.g.
    In the parent role for Org data "Purchase Org" the previous value was "/" so that it could be specified in the derived roles should they require the split on this field, however the business has decided that they do not require a restriction on this field so I went back to the parent role and changed the value to "*", so I generated the parent role, updated the derived roles, but when I go to any of my derived roles that field value is still blank, it did not pull through the value * .
    We are currently on
    SAP_ABA  701           0005    SAPKA70105
    SAP_BASIS  701        0005     SAPKB70105
    I have created the derived roles with the parent role as the derived from role, it does pull through the values but just does not update it once I do make changes.
    Your help / suggestions would really be appreciated as I need to create MANY roles.
    Regards
    Sonja

    Hi Sonja,
    obviously there is a misunderstanding of how the derivation works....
    > Thanks guys for the feedback, but surely I do not only need to maintain the ORG data in the derived roles individually, if I have got an Org field that should be the same for all the derived roles I must be able to update the Parent role with this value which then upon generate, and generate / activate the derived roles must update the derived roles.
    -->no.
    Only the first time of derivation, if the field content in the derived roles are initial...
    help.sap.com:
    quote
    The organization level data is only copied the first time the authorization data is adjusted for the derived role. If data is maintained for the organizational levels in the derived role, and if you have maintained the organizational levels using the dialog box, the data is not overwritten by another conciliation (See SAP Note 314513).
    unquote
    The whole stuff:  http://help.sap.com/saphelp_nw70ehp2/helpdata/en/1c/c38028816c11d396bc0000e82de14a/frameset.htm
    otherwise the maintained org.fieldvalues would get overwritten by the value of the master role every time. And that is exactly, what has to be avoided!
    b.rgds, Bernhard

  • Searching LDAP

    I am trying to search LDAP for email addresses but am getting a javax.naming.NameNotFoundException when I know that the name I am using exists. Here is my code:
    Hashtable hashtableEnvironment = new Hashtable();
         hashtableEnvironment.put(
    Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory"
         hashtableEnvironment.put(
    Context.PROVIDER_URL,
    "ldap://LDAP.SERVER:389/o=organization"
         try {
         // Create the initial context
         InitialDirContext context = new InitialDirContext(hashtableEnvironment);
              String[] attrIDs = {"cn,email"};
              SearchControls ctls = new SearchControls();
              ctls.setReturningAttributes(attrIDs);
         NamingEnumeration ne = context.search("o=City of Vancouver", "cn=Darrin", ctls);
              while (ne.hasMore())
                   System.out.println((String)ne.next());
    I very much appreciate the help if anyone sees something obvious that I am doing wrong here.

    That depends on how your entry is stored in the LDAP server. So do you have a entry with dn:
    cn=Darrin,o=City of Vancouver,o=organization
    in your directory?
    Try using some simple free Java tool to access your directory, such as downloading LDAP browser from
    http://www.iit.edu/~gawojar/ldap/
    I found the above tool helps alot when I developing LDAP programs.
    --lichu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Searching for movie data in file "Untitled.mov"

    Ok I have already searched in the forums and none of the solutions have worked. Can anyone help me with this problem?
    When I open Final Cut Pro, before the full program opens this error pops up:
    Searching for movie data in file "Untitled.mov".
    Screenshot - (http://imgs.hnation.org/uploads/714c01ba72.png)
    After like 10 seconds this error then pops up:
    The movie file "Untitled.mov" cannot be found. Without this file, the movie cannot play properly.
    Screenshot - (http://imgs.hnation.org/uploads/8c5564c42f.png)
    I have tried pressing the "Search" button and have tried every Untitled.mov file I could find, but none of them worked. If I press "Cancel" then the same thing happens 5 more times until Final Cut Pro actually opens.
    Help Please. Thanks!

    what if I am unable to get a hold of the footage again to re-import? Is there an alternative way?
    There is no alternative. The movie file is missing information. Either you captured footage and it broke it up into smaller segments (-av-0, -av-1, -av-2) and one or more of those files are missing, or you exported a Quicktime REFERENCE movie, and reimported that into FCP...and have since deleted some media that the reference file....references.
    Either you have it or you don't. If you don't have it...and cannot reimport it, then you are SOL. The only way to get rid of the message will be to delete the clip in the project that is causing the error.
    I have already tried reinstalling 3 times. The same error still pops-up.
    This is not an error with the software. You have a clip in the project that is missing something.
    Shane

  • Search help for date in ALV grid

    I have ALV grid with field type date and search help for this:
    ws_field-ref_table = 'ADCP'.
    ws_field-ref_field = 'DATE_FROM'.
    ws_field-inttype = 'D'
    After I have clicked on this key F4 then I see a calendar and I have choosen some date, but in input grid field there aren't
    choosen value. Why? Another search helps works perfect except this. Where is the problem?
    Edited by: Kosmo on Jul 7, 2009 8:48 AM

    Hi,
    Find the code below
    TYPE-POOLS: slis.
    DATA: it_fcat TYPE slis_t_fieldcat_alv,
          wa_fcat LIKE LINE OF it_fcat.
    DATA: it_data TYPE vbap_t.
    SELECT *
      FROM VBAP
      INTO TABLE it_data
      UP TO 20 ROWS.
    wa_fcat-fieldname = 'VBELN'.
    wa_fcat-tabname  = 'IT_DATA'.
    wa_fcat-ref_fieldname = 'VBELN'.
    wa_fcat-ref_tabname = 'VBAK'.
    APPEND wa_fcat TO it_fcat.
    clear wa_fcat .
    wa_fcat-fieldname = 'POSNR'.
    wa_fcat-tabname  = 'IT_DATA'.
    wa_fcat-seltext_l = 'Date'.
    wa_fcat-ref_fieldname = 'ERDAT'.
    wa_fcat-ref_tabname = 'VBAK'.
    APPEND wa_fcat TO it_fcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_interface_check       = sy-repid
          it_fieldcat             = it_fcat
        TABLES
          t_outtab                = it_data
        EXCEPTIONS
          program_error           = 1.
    I have derived the above code from WIKi link
    https://wiki.sdn.sap.com/wiki/display/Snippets/f4helpforalvgrid+display
    Regards,
    Murthy.

  • Search help for date in VC

    Hi, 
    I have created an iview in Visual Composer for a query. it contains date field on selection variable fomr. i tried entering date in various format, but it gives an error : variable expects interval value ; enter an interval".
    can we provide search help for date field in VC?
    Regards,
    Sonali.

    Hi,
    You have to create search help it avoid inconsistency.
    Thanks & Regards,
    Venkat.

Maybe you are looking for