Getting organizational unit with API in OBPM 11g

Hi all,
I'm not able to find the way to get the organizational unit of a participant using the OBPM 11g API. Can anyone tell me how can I do that?

Organizational Unit API was included in 11.1.1.5 FP4 - see : http://www.oracle.com/technetwork/middleware/soasuite/documentation/11gr1ps4featurepackdoc-462677.html and download BPM Java API Reference. Within the download you will find oracle.bpm.services.organization.IBPMOrganizationService interface that contains method getOrganizationalUnitForUser which should do the job.
For the process there is an XPath method bpm:getUserOrganizationUnit() that according to documentation:
"Returns the fully qualified organization unit name with the parent hierarchy The signature of this function is bpm:getUserOrganizationUnit(userName, realmName, parentPath). The arguments to the function: 1) userName - a user name 2) realmName - The realm name. This is optional and if not specified default realm is assumed 2) parentPath - This is optional and if sepcified, would be used for resolving conflicts if the user belongs to more than one organizational unit. For example if user belongs to OUs americas/north/us/NY/sales and americas/taskforce/globalsales then americas/north or americas/north/us or americas/north/us/NY can be used as parent path. Note that longer the path, more efficient it is to search."

Similar Messages

  • Organizational Units with Business Partner

    Hi Experts,
    I'm creating my organizational structure on CRM system: on transaction "PPOMA_CRM" I'm creating all the organizations I need. But I 'm facing with a problem: I'm not able to assign them a business partner. I mean: in the transaction "PPOMA_CRM" under the column "Business Partner" I'm not able to insert any business partner.
    And on the other hand, if I go on transaction "BP" in order to define a new organization, when I select which is  the BP role to use for the creation of the organization, I don't see BUP004.
    Do you have any suggestions.
    Why I can't see it?
    And what I have to do to assign a business partner to an organization?
    Full point sif it helps.
    Thanks a lot.
    Best regards,
    Stefano

    Hi,
    Please find below my answers:-
    In a first moment I configured the HR-CRM integration and when I go on transaction PPOMA_CRM in order to display the Organizational Structure I can see, for each Organizational unit downloaded from HR, a business partner ID under the column "business partner". This is the same number ID which allows to identify the same Organizational Unit on transaction BP.
    Answer- In Transaction BP you can find the same Org unit business prtner created in PPOMA_CRM.
    Suppose you have created BP_Org in PPOMA_CRM which has got generated with certain BP number.But this will not reflect in transaction BP. All the Business Partners created under BP_Org will be getting reflected.
    Now I deactivated the HR-CRM integration and when I create a new Organizational Unit on PPOMA_CRM I'm not able to fill the column "Business Partner".
    Ans- If you have not maintained in HR-CRM Integration there will be no number range.
    If I insert the Organizationa Unit ID (displayed on PPOMA_CRM) in transaction BP I don't get any results.
    Ans- While searching in BP , first you donu2019t have option of searching BP with Org Unit ID but you will find number instead. But as I told you earlier this will search the Business Partner under your Root Organization in our case it is BP_Org. You cant search for BP_Org in Tx-BP
    I need to assign a business partner to my organizational unit for escalation purposes since the escalation is succesfully only for the organizational units with that business partner ID, i.e. all the organizational units downloaded from HR.
    So at the moment the escalation process doesn't work for the organizational units just created only on CRM standalone system.
    I think it is possible to make it work also for these organizations, but I don't know how!
    Ans-  You will have to maintain as below-
    Customer Relationship ManagementMaster DataBusiness PartnerIntegration Business Partner-Organization Management Set Up Integration with Organizational Management
    HRALX- OBPON =ON
    HRALX- ONUMB
    HRALX-OSUBG
    HRALX-HRAC=
    Regds...
    Arup

  • How to Create Organization unit with customised code?

    Hi all,
       My business requirement need to create a Organization unit with a customised report.
    That customised report need to be developed in which i will be incorporating the code to create a new orgganization unit in sap
    and also to assign it in the organization structure.
    Please suggest me the Function Module to create it...or any sort of Standard report which is already doing that
    Thanks and Regards
    Sonal Jain.

    If I understand you correctly, you want to create a PROGRAM to create an Organization Unit (IT1000) and it's relation to it's parent Org.Unit (IT1001 with relation A_002).
    Check out program RHCOPY00, and create a Z version adapted to your needs.

  • Use of organizational unit with org. Object type

    Hi,
    In What Scenario we will use organizational unit with org. Object type .
    Regards,
    Peter Son

    This technique works by matching codes entered in customizing tables against organizational objects in the organizational plan.
          E.g. A particular Sales Area can be related to an Organizational unit that represents all people in that Sales Area.
         SAP Organizational Objects
         Organizational entities (such as sales group, Distribution Channel, or purchasing organization) are represented by object types in the Business Object  Repository.
            The indicator organizational type in their basic data defines
            such object types as SAP Organizational Objects
         For Agent Determination, relationships are created between  SAP Organizational Objects (residing in BOR)  and the  Organizational Management objects.
         The agents are found by tracing these relationships.
    Thanks and Regards,
    Prabhakar Dharmala

  • How to get Organizational Unit of a Master Agreement?

    HI,
    I am trying to retrieve value of Organization Unit of a Master Agreement but I am getting some code: name.
    ownerObj=doc.getDocumentOwnerUserReference();
    ownerHome=IBeanHomeLocator.lookup(session,ownerObj);
    ownerBean=ownerHome.find(ownerObj);
    throw doc.createApplicationException("VENDOR_VISIBLE", "Supplier name is "+
    ownerBean.getOrganization());
    Please suggest.
    Thanks,
    Saloni

    Hi Solani,
    You were getting the error beacuse we don't have any field like org unit in the Contract Document and the method you used is not there in the API's.If you want to access the Master Agreement Org unit in Contract document then you have to get the MA bean and then you can fetch Org unit in your contract document.
    Code as follows:-
    masterBean = doc.getParentIBean();// to get the MA bean
    orgunit = masterBean.getOrganizationalUnitRef(); //this wil give the orunit of the MA
    businessUnitHome=IBeanHomeLocator.lookup(session,orgunit);
    businessUnitBean=businessUnitHome.find(orgunit);
    Hope this will work for you.
    Thanks,
    Ankur Goyal
    Edited by: ankur_goyal03 on Oct 15, 2011 8:23 AM

  • Match code organizational units with tree.

    Hi,
    I've created an input field with a orgeh type context element.
    There a instant solution for attribute a match code like the R3 transaction PP01 for organizational units?
    Thank for answers.

    Hi,
    There is one ready to use Freely Programmable Value help for Org hierarchy shown as a tree in Wiki. Refer to the below link-
    http://wiki.sdn.sap.com/wiki/display/WDABAP/OrganizationHierarchyinTREEstructureasF4+help
    To know more details on how to use a freely programmable value help refer to the below link -
    [Implement freely programmable value help in Webdynpro ABAP|http://www.divulgesap.com/blog.php?p=NjQ=]
    Cheers,
    Ravikiran

  • Ho to get script result with query's in 11g

    Hi,
    While doing refresh tasks i need to run some select query's. am so lazy to check each query one by one so i placed all querys in one script and i ran
    i went fine but it is showing only result of the query but it is not showing query. Can we get query and out put of query through script.
    Ex : one.sql
    the script have below querys
    select name from v$database;
    select count(*) from v$datafile;
    select count(*) from dba_db_links;
    select owner,db_link from dba_db_links;
    can any one help me on this..
    Regards
    Edited by: 889571 on May 19, 2013 2:59 PM

    [oracle@localhost samples]$ cat sample.sql
    set term on echo on
    select name from v$database;
    select count(*) from v$datafile;
    select count(*) from dba_db_links;
    select owner,db_link from dba_db_links;
    [oracle@localhost samples]$ sqlplus user1/user1 @sample.sql
    SQL*Plus: Release 11.2.0.2.0 Production on Sun May 19 16:06:20 2013
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select name from v$database;
    NAME
    ORCL
    SQL> select count(*) from v$datafile;
      COUNT(*)
             6
    SQL> select count(*) from dba_db_links;
      COUNT(*)
             0
    SQL> select owner,db_link from dba_db_links;
    no rows selected
    SQL>

  • Adding a specific org unit with a user id.

    Hi SAP Master,
    How can I add a specific organization Unit with a particular User Id, i.e when ever that user id logs in into system and create a transaction the org. unit assigned with him determined automatically.
    And one more query, how can we send a org. unit for approval? 
    Thanks and Regards
    Rahul
    Edited by: Rahul07 on Jun 10, 2011 10:18 AM

    Hi Rahul,
    We don't assign the Organization unit to the user in the SU01. In SU01 we assing the PFCG roles and authorization related stuff.
    Rather we create the Organization model, assign positions and then assign the user to the relevant position under the required organization unit using the tcode "PPOMA_CRM".
    When you setup the Organization determination procedure, then automatically while creating the transaction, the Organization Unit of the person who is creating the Transaction gets determined.
    rgrds,
    Randhir

  • Organizational Unit attribute in User Info

    Hi All,
    I am working on Enterprise Portal 7.0 SP 11. I have a small problem. In Identity management, in user properties additional information, we have organizational unit as a standard SAP attribute. I want to fill that attribute while creating user through importing a text file in the beginning itself.
    While exporting a user, that information is not captured. I dont know what attribute name should be used to fill that attribute. So, can anyone tell me how to solve this issue?
    Thanks & Regards,
    Udit

    If Still interesting  this task  look
    get Organizational Unit value in Additional Information through UME API
    line in import file
    com.sap.security.core.usermanagement:orgunit=SOME_ORGANIZATION_UNIT

  • How to get these units?

    Please follow the steps:
    1. Edit->Preferences->Units & Display performance... to bring the dialog.
    2. In "Units" group, we can change units for "General", "Stroke", "Type" and "Asian Type".
    We can use AIUserSuite::GetUnitsString to get the general units, but how to get the other three units? Does anybody know it?
    thanks

    Hi,
    You can get these units with AIPreference Suite.
    long units;
    sAIPreference->GetIntegerPreference(NULL, "strokeUnits", &units);
    sAIPreference->GetIntegerPreference(NULL, "text/units", &units);
    sAIPreference->GetIntegerPreference(NULL, "text/asianunits", &units);
    These suffix strings were found in AIPrefs file.

  • Usage of Department/Staff switch in Organizational Unit

    Hi All,
    Just would like to know the detail usage of the Department/Staff switch for the Organizational Unit. Currently neither the Department nor the Staff switch is selected for all the organizational units created. What would be the effect and impact if I set the Department switch for the organizational unit?
    Thanks a lot,
    Francis

    Hi Francis,
    A staff flag does not have to be marked as such. It does, however, influence the presentation of positions and organizational units in the graphic. Positions or organizational units marked with a staff flag are shown in the graphic next to their respective superior nodes. Without a staff flag they are shown under the superior node.
    As for the department,marking an org unit is optional and relates to integration.
    If integration with Payroll Accounting is active, certain records are written from Personnel Management to Master Data. If you flag organizational units as departments, only the marked units are written to Master Data.
    Marking units as departments makes sense when your organizational structure includes organizational units that are not actual departments (for example, a special project team).
    NOTE: In order for the department marks to be recognized, you must also make adjustments in Customizing.
    Department Switch in T77S0 (PPABT PPABT):
        o   0 = causes the organizational unit directly above a position     to
            be read
        o   1 = causes the organizational unit with a department flag
            (infotype 1003 "Department/Staff") above a position to be read
    Hope this helps.
    Regards,
    Arpita

  • How Employee groups and Organizational units are related

    Hi All,
    I had a requirement for bulk upload of Appraisal documents.
    I am an ABAP Consultant.
    Here client wants the Employee group as a Selection Criteria.
    Based on this I had a query how can I get Organizational units from Employee group.
    Actually this is my requirement and if any alternate solutions & suggestions are also welcome.
    Thanks for your time.
    Edited by: nayani pavan on Dec 30, 2008 3:17 PM

    Hi Madhu,
    Thanks for your reply, it is helpful and I need this query.
    Suppose for an organizational unit there will be subordinate organizational unit.
    That means how can I found whether is there any subordinate organizational unit for any organizational unit.
    Hi Ananth,
    But the requirement is in selection screen only Employee group will be available.
    Based on that we need to provide logic. So, I hope above solution is not helping me because they do not want to create appraisal documents person by person. Please guide me.
    Thanks & Regards,
    Pavan.
    Edited by: nayani pavan on Dec 30, 2008 3:56 PM

  • Positions under Organizational Units.

    Dear All,
    I need to maintain a Ceiling for Organizational Units with respect to Positions.
    For example :
    There is a Org Unit - HR Dept , and it has a restricition of 25 positions.
    So when i try to create a 26th position under this Org Unit ,it should show me "Error Message".
    I have tried with Quota Planning, which is totally different concept from the above case.
    Does SAP provides such option to restrict Positions under a OrgUnit..? If Yes, Pls Suggest me ...!!
    Thanks in Anticipation
    Best Regards,
    A B H I

    Do not know of any way to limit the number of Positions per Organizational Unit.  Not sure how or where you would even keep the numbers so that one org unit could have 25 positions and another org unit 40 and another org unit only 10.
    What you want to control is the number of Persons - employees.  They cost you money, positions do not.  This is controlled by the number of Positions available - one Person per Position.  If you have control of your Organizational Structure maintenance, then you control the number of Positions you create for each Organization. 
    Paul

  • 'Person Type' and 'Organizational Unit' symbols in BPMN?

    What is the purpose of 'Person Type' and 'Organizational Unit' symbols in BPMN diagrams? If I place any of those two into my diagram, I can't connect either to anything else.
    I think those symbols simply don't belong in BPMN. My wild guess would be that someone simply forgot to remove them from the Symbols toolbar.

    Hello all,
    this is not a bug - although the idea behind it is a little bit hidden. Sidda you're right, the object cann't be connected with the standard BPMN object types within the BPMN diagram of the BPA Suite. On the other hand the mentioned objects can be conected with a function but only on an EPC diagram (and from an EPC derived diagram types).
    Within the BPMN it is slightly more complicated. Due to the fact that the BPMN implementation within the BPA Suite is not 100% OMG compliant (in the actual version 10.1.3.3) the appearance is a little bit mixed.
    Never the less, the mentioned objects can be used. You simply have to create a relationship between the object types (e.g. person type, organizational unit) with a pool or a lane. Based on this you can create ARIS like relationships inside of the repository. The reason for that is that you are capable to link the BPMN artifacts with the proprietary ARIS world. For analysis purposes this is very powerful.
    Regards
    Dirk
    Message was edited by:
    DirkStaehler

  • How to get users from Organizational Unit and with worker's subgroup

    Hi
    I am looking for a f. module to get the list of users from specific Organizational Unit and with specific worker's subgroup.
    I found f. module SWI_GET_USERS_OF_ORG_UNIT but it seems not working and only returns the users, how can I narrow the selection to get only from specific worker's subgroup?
    Thank you

    Hi,
    Try with FM RH_STRUC_GET with following parameters:
    ACT_OTYPE = O
    ACT_OBJID = worker's subgroup
    ACT_WEGID = SBESX
    Most important is to specify OBJID as the workers's subgroup, values for the others parameters may vary.
    Cheers.

Maybe you are looking for

  • How can I place my initials when in a document shared review?

    When in a document shared review envitronemnt, the Sign Document menu is grayed out, I want to be able to place my initials in a document, what are my options?

  • Installation of Windows 7 via USB External HDD (Boot Camp Assistant)

    How do I mount Windows 7 Ultimate disk image (.iso) onto my USB external HDD so that I can boot using that USB external HDD? I have tried reEFIt, but it doesn't work for me. It may be because I did something wrong. I would appreciate a comprehensive

  • Iweb publishing not coming through! PLZ help!

    I have been using Iweb for awhile now to publish my design website at www.lindseycraftondesign.com. I've added blog posts and such and everything has worked out fine until recently. I decided to reorganize my website and I changed the pages and forma

  • Pasted PDF image will not resize

    I am building a web site with iWeb - http://www.ipowerapps.com Notice how small the iPowerApps logo is? It does not appear this way in iWeb (I resized it to make it biger). The source of the logo was from a PDF file. I believe that I selected it and

  • Where is the Basic photo resize in iPhoto feature

    Recently, I found a feature that let me resize photos in Iphoto to various preset sizes and easially export them to my desktop or wherever.  The sizes were real baisc, 2 x3  4 x 6  8 x 10 etc but using the custom feature I could resize them perfectly