FM for Head of Org Unit

Hi,
I am looking to find the Head of Organisation unit .
Is there  any Function Module which will return the Head of Organisation unit .
Help will be appriciated .
Thanks,
SS

Hi
There are several Function modules which can do the job.
<u>E.g., Function module - BBP_OM_DETERMINE_COMPANY</u>
<b><u>Here is the sample code as well.</u></b>
        CALL FUNCTION 'BBP_OM_DETERMINE_COMPANY'
          EXPORTING
            i_user_id                   = is_import-uname
          IMPORTING
            e_partners                  = ls_ord_partner
          EXCEPTIONS
            no_company_found            = 1
            attribute_company_not_found = 2
            no_partner_function_found   = 3
            no_business_partner_found   = 4
            OTHERS                      = 5.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING ls_ord_partner TO wa_partner.
          wa_partner-addr_type   = c_ad_org.
          wa_partner-addr_origin = c_addr_origin_master.
        ENDIF.
Here is the documenattaion as well.
FUNCTION -  BBP_OM_DETERMINE_COMPANY
Functionality
Determines the company (sold-to party) using
Username (sy-uname)
Organizational unit (for purchasing organization "0 50000050")
Business partner number (10 character number)
Business partner GUID
If several parameters are transferred to the function module, the system checks whether they belong to the same company. If they do not, the function module does not supply a result.
Parameters
I_USER_ID
I_ORGUNIT_ID
I_PARTNER
I_PARTNER_GUID
I_LOGSYS
E_ORGUNIT
E_PARTNERS
ET_COMPC
Exceptions
NO_COMPANY_FOUND
ATTRIBUTE_COMPANY_NOT_FOUND
NO_PARTNER_FUNCTION_FOUND
NO_BUSINESS_PARTNER_FOUND
NO_COCODE_FOUND
OBJECT_ID_NOT_FOUND
INTERNAL_ERROR
Function Group
BBP_OM
Hope this will help.
Please reward suitable points.
Regards
- Atul

Similar Messages

  • Function module to find wheather a user is heading any Org unit

    Function module to find wheather a user is heading any Org unit
    Hi Experts,
    I need to know if a user(SY-UNAME) is heading any Org unit(Check box marked for Head of own organisational unit in TCODE PPOMA_CRM for position in Basic Data). Is there any FM for this? I am trying to use FM RH_STRUC_GET but not able to find.
    Any help would be highly appreciated.

    Method  get_assignments_of_user of class cl_crm_ppm_um_toolkit solved this problem.

  • No Checkbox For Head of Organizational Unit

    Dear Experts,
    I customized one relation which copied from A003/B003 and add in evaluation path.
    I can use the relation and create a position in PPOME.
    However, there is no checkbox for Head of Organizational Unit.
    Are there anything I didn't do in IMG?
    Thanks in advance.

    Hello,
    In order to display the tab strip "basic data" in the detail area of transaction PPOME various infotypes come into play, e.g. infotype 1000,1001 with subtypes B007, A008, A012, and infotype 1002 and 1007, just to mention some of them.
    All of these infotypes and subtypes may carry different validity dates,and usually these dates are taken into account when calculating the periods displayed in the right part of the detail screen.
    But with infotype 1001, subtype A012 (managing relationship) it has been decided to handle the periods in a different way. Since those relationships may also point from the current position to a completely different organizational unit, very complex situations may occur. This is the reason why in certain cases, where the periods calculated from the validity dates of the other infotypes/subtypes do not match the validity period or taget org unit of the A012 relationship, the checkbox "manages org unit" may be checked but is grayed out.
    There are more exact ways to view and maintain the managing relationship: In the overview area, you can jump to the view "Managerial assignment" where you can directly maintain relationship A012, using the relationship validity display of our "column framework" (click on the right button "column comfiguration" and activate "Link period").
    Hope this help
    Sarah

  • 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.

  • CATS - How to enter times of an employee who works for 2 different Org Unit

    Hi,
    I am able to successfully enter times for an employee and do the approval process (CAT4) and CAT6 and I can see the records getting updated in PA30.
    Scenario :
    Employee works for 2 different Org Units and should be able to enter his time through Timesheet. Eg: Employee A spends 6 Hours working in Department B1  &  3 Hours in Dept B2.
    The Manager of B1 should only be able to approve 6 Hours of Employee A
    The Manager of B2 should only be able to approve 6 Hours of Employee A
    Can somebody help me out how this can be achieved?
    Regards,
    Mamta

    Hi Sameer,
    Thank you for the response. Yes, when I report the times for 2 different org units I would also want the cost for that employee distributed between org units.
    I tried your solution-> by entering times in CAT2 for Employee A for 2 different Cost Centers that I created.
    For Department B1 --> In CAT2 I entered   Cost center C1 :  6 Hours
    For Department B2  -->In CAT2 I entered   Cost center C2 :  4 Hours
    When I go to CAT4 and try to select the employee for approval and search the employee-A Org unit wise he is displayed only in his original Department -> B1 with 10 hours (6+4). What else do you think needs to be done?
    Is this anything to be done with Sender Receiver Cost Centers because the cost center C1,C2 that I created for Org Units B1 & B2 respectively are just Cost Centers. I dont know the difference between Costcenter and Sender Costcenter/Receiver Costcenter.
    I will try to explain the scenario again in case I was not clear :
    u2022Each employee has their home OU.  However these employees may be working with multiple OU each day or the week.  So potentially, the time sheet may have to be approved by multiple managers.
    Regards,
    Mamta

  • Best praxis for determining a  cost center for an HR org unit in PPM ?

    Hello all.
    We have defined the HR Org structure directly in PPM backend. Later the intention is that an interface should transfer this data from HR.
    The HR orgstructure defined works fine for the staffing process (with "resource manager via responsible organization"). 
    We have however run into some problems with the MLC & costing part.  The intention is to use manual MLC linking tasks/phases to PS WBS-elements (task based controlling).
    If we leave the org unit field blank in the cProject project project definition  we run into the message "No account assignment exists for the project defintion - no costing" and the systems rolls back from the assignment made.
    If we however assign an orgunit in the project defintion we instead get the message "No cost center could be determined for org unit 123...".
    <u>We therefore need to be able to determine a cost center for the Org Unit assigned to be able to proceed. How is this then best done?</u>
    There is a master cost center assigned to the orgunit in HR but not in PPM backend where this option does not seem to be available.
    With task based controlling the cost center does not really matter so it could possibly be hardcoded via a BADI (?) but is this really the way this should be done?
    Any suggestions?
    Thanks / Anders

    Hi and thanks for the reply.
    We will test with an ALE replicated structure so that the object ID becomes the same in the two systems as soon as possible.
    Pending that we will try the BADI option. Here I am however not sure what it is we really expect the BADI to do.  Which field should be populated with the cost center (the fields available are mainly project characteristics)?
    I also eventually found some information regarding this in the PPM 4.0 help.  I enclose info regarding this below.
    a) http://help.sap.com/saphelp_ppm400/helpdata/en/index.htm
    b) choose Collaboration projects>Accounting Integration>General Information about Accounting integration>Derivation of Organizational data.
    As I read this the system derives this as follows in case of task-based or role-based costing with no resource assignment:
    1) Look for the two BADIs mentioned to derive the cost center
    2) If no result there it looks for an org unit in the cProject header (where I assume having the Org Unit with the same Object ID in backend and ERP enables this option)
    3) If no result there the system looks for a "requesting cost center" in the account assignment object (WBS element or internal order)
    Regards / Anders

  • You are not the candidate/staffing manager for the specified org unit

    Hi all.
    With cProjects 4.0 (SP10) we are using the staffing scenario "Resource manager via responsible organization" meaning that the role will be directed to the organizational unit specificed in the "staffing process" tab who then handles the staffing.
    Despite the above I get the messages from the Subject header when maintaining the role
    You are not a candidate manager for the specified or initial organizational unit   
    You are not a staffing manager for the specified organizational unit"
    As the scenario builds upon the project creating requirements through the role the above messages seem unlogical.
    Is there an explanation for why the messages are received?
    Best regards / Anders

    Hi.
    I also assume that is meaning of the message - but is that logical in this staffing scenario?
    The project (leader) should create & update the role and then hand it over to the org unit for staffing by changing the status of the role "Start staffing process".  The above message should not be received upon setting that status.
    It can not be the intention that the project leader should be assigned as a resource manager to all possible org units.
    Phrasing it differently, when the status of the role only is "Staffing in preparation" the project leader must be able to update it including setting the staffing status without these messages being received.
    When the status of the role is Staffing in process the only thing the project leader ought to be able to do is the reset the status of the role (cancel the staffing request).
    Regards / Anders

  • BDC for mass uploading Org Unit infotype

    Hi,
    I need do a mass uploading for one Org Unit Infotype via BDC. I created BDC batch loading file via SM35. I used PO10 to create Org Unit Infotype. After running  TC "PO10", I need scroll down several Infotypes to reach the one that I need mass upload.  But looks like BDC does not recognize the u201CScroll Downu201D, the batch loading file record by SM35 always selects the incorrect Infotype of Org Unit. Any suggestion to fix this? Thanks.
    Regards,
    Jim

    here you go,
    ABAP Development

  • Two Chief Position for an org unit

    HI,
    In PPOM I am unable to view two chief position for an 'X' org unit. I have checked in other 'Y' org. unit ( having similar attributes) and there two chief positions are displayed. The validity period and other relationship in both the org units are same.
    Can any suggest on how the two cheif positions are displayed for X org unit. (The client is stating that when Y org unit can display two chief positions then why not X org unit).   
    Thanks,
    Sai

    Hi Sai -
    What is the error or message that you are getting?
    By default SAP allows an Org Unit to have multiple Chiefs assigned to it. Are you able to manually assign the relationship to that position via PO13?
    If you send over the message, then I can further assist.
    Thanks,
    Nick

  • The bp id for org unit does not exist

    Dear expert,
    after transport the org structure from dev to qty system , we found the bp id for org unit does not exist in qty system.
    in ppoma_crm, we can see there is a bp id assigned to the org unit. however, when use tcode 'bp' to check the bp id, the system can not fould a valid id.
    what can we do to solve the issue?
    will there any impact if we keep no bp id for the org unit?

    Hi,
    You can use the transaction CRM_OM_BP_INTEGRATE.
    Select the Org unit and enter the org id in the input field and execute it.
    Select the org unit from the result list and click on the button Start Repair. This will create a BP without errors for the respective org unit.
    Regards,
    PP

  • BP number is missing for org units in org model

    Hi Guys,
    I have created org model in PPOCA_CRM and saved it CRM7.0. But BP numbers did not get generated for org units which I have created.
    Can any one suggest me what is the reason and what needs to be done in order to get BP numbers for already created org units in PPOCA_ CRM or PPOMA_CRM.
    Thanks for you help,
    JM

    Go to CRM IMG->Cross Application components->SAP Business partner->Business Partner->Number Ranges and Groupings->Define Groupings and Assign number ranges.
    There check if any number range is defined with the "Int Std grouping" . If it is not define it.
    and in SM30 for "T77S0" for entries HRALX/OSUBG assign a number range.

  • Text maintained for a Org Unit.

    Hi,
    In the transaction PPOMA_CRM which is to maintain Org Unit ,
    for a specific Org Unit , in the Basic Data Tab u can find a text editor.
    I need to get the text maintained in the text editor provided.
    I have already got the text maintained using the func module
    RHOM_READ_INFTY_BUFFERED.Now whats happening is
    I maintained the text iniitaly in the text editor in the Basic Data tab as "hello".
    Now I deleted the text " hello" and added a new Text "Hai".
    But the func module is returning Hello and Hai ,infact i need only "Hai" which is the current text.
    Kindly please check the same and help me.
    Regards,
    Neeraj

    Hi Neeraj,
    I think you'll have to update the HR buffers after the change. Run report HRBCI_ATTRIBUTES_BUFFER_UPDATE with SAP&EBP variant to achieve this (you can schedule a daily job too).
    Kind regards,
    Bruno

  • How to find cost centers for a org unit ( if kost center is inherited)

    Hi all
    We have a org structure
    When a parent org unit is assigned a kost center then the parent also inherites the kost center
    I need to find kost center for all the org unit in my organization
    I cant see the inherited cost center neither in IT 1001 nor 1008 nor 1015 but i can see it in PPOME in the account assignment tab.
    How can i find the inherited cost centers to all the org units.
    i think i am clear with my requirement to all
    Thanks
    Raj

    Use the report RHSTRU00 in tcode SE38
    and give the follwoing values in selection screen
    Plan version                    01  Current plan
    Object type                     O   Organizational unit
    Evaluation Path               A011       All relationships to A011 -> cost
    execute the report to see all the orgunits with their cost centers

  • In MSS, Other than Manager to access the employee in the Org Unit

    Hi all,
    IN our current project, for MSS, Head of the Org Unit (A/B 012) triggers the Personnel Change request, First Level Approver (HR-Partner from Custom Infotype) approves the PCR and Admin process the PCR.
    Now the requirement is changed... HR-Partner needs to trigger the PCR, followed by Approval from head of Org Unit and Admin to process the PCR.
    For the HR Partner to view the Position in the Org.Unit or only the positions,
    We can have custom A/B Z12 between HR-Partner Posiiton and Org Unit
    OR
    We can have custom A/B Z02 between HR-Partner Position and reporting postions.
    Now What are all the required OADP configuration required to Allow the HR-Partner position to view the reportees and create and submits PCRs for them..
    Regards
    Ramanathan

    yes this all comes to the evaluation path a user has he neednt be a manager, in OM, he can be another user with extra structural authorisation like HR admin,
    so change in T77AW and assign them in OADP.
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=190743879

  • Can there be Org units under positions?

    Hi guys,
    Please let me know how to create Org units under positions
    Thanks
    Deepali

    Deepali,
    Standard SAP configuration for PPOME transaction does not allow you to create or units under positions.
    If you want to do so, you need to carry out the following configuration settings:
    1. Goto table T777E via SM30, select 003 relationship, double click allowed relationships from the menu on the left hand side.
    2. In the table add the following entry:
    S B 003 Incoporates O
    3. Goto table T778A via SM30, select evaluation path SBESX, double click evaluation path(individual maintenance) from the menu on the left hand side.
    4. In the table add the following entry:
    98 S B003 Incorporates * O
    1. and 2. steps are carried out to allow the relationship "Incorporates" between position - org unit.
    3. and 4. steps are carried out to allow the maintenance of this relationship via PPOME transaction.
    Please before doing these configurations make sure that assigning an org unit under a position is logical for your org structure and "Head of org unit" does not solve your requirement.
    Good luck,
    Dilek

Maybe you are looking for

  • Bw report in portal

    Dear All, I am trying to display a BW report iView in the portal. However I got an error message like Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable. When I right click for properties it

  • User changes the page HTML code on the fly and it works... what?!

    Hi, I have a report region that generates a number of checkboxes using htmldb_item.checkbox. Each checkbox is associated with a date, and what dates are displayed are based on a number of business rules. The user then can select any date she wants (f

  • Price Value  getting  aggregated

    Hey  everyone...     Here  is  my  scenario... I'm   having  a  report  of  inventory  value by  material group  and storage  location... Matgrp                     Qty        Value               Total   1   Material       10        3                

  • ISE and Android Profiling

    G'day All, I am building a wireless ISE solution that will service laptops (windows and OSX) via posture assessment, and mobile devices such as iphone, ipad and android. I looking for help with the profiling of the android devices. I am using the pro

  • User Interface Annoyance - Label

    I have colour-labelled my desktop disk icon many times since I have been using my iBook, most commonly when I'm using a picture as my desktop background. I noticed a few days ago, however, that the labelling menu has been 'greyed out', and it is not