PFAL - Send a whole sub-organization unit

Hi,
I am trying to transfer data from SAP HR System to another SAP HR system susing the SAP XI. I want to know if there is way using the Tcode PFAL to send a whole sub-organization unit from 1 organizational unit.
Many Thanks for your help!!!
PM

We have a case where we need to determine all suborgs that belongs to a certain org:
  CALL FUNCTION 'RH_STRUC_GET'
    EXPORTING
      act_otype       = 'O'
      act_objid       = lv_parent_org_objid
      act_wegid       = lv_wegid
      act_begda       = lv_effective_date
      act_endda       = lv_effective_date
      act_tdepth      = 1
      act_tflag       = ''
      act_vflag       = ''
      authority_check = 'X'
    TABLES
      result_tab      = lt_result_tab
    EXCEPTIONS
      no_plvar_found  = 1
      no_entry_found  = 2
      OTHERS          = 3.
lt_result tab will contain all suborgs belonging to the parent org you passed in.
We have a dynamic evaluation path determination, but in this case it should be the following sequence in your evaluation path:
No  Obj. Type  A/B  Rel'ship   Relationship Name     Prio   Rel.obj.type    Skip
10   O             B      002         Is line supervisor of    *           O
Transaction OOAW to maintain evaluation paths.
Hope that helps,
Michael

Similar Messages

  • I need a list of all the organizational units, sub organizational units,

    I need a list of all the organizational units, sub organizational
    units,and their security groups which are present in all sub OUs

    Hi,
    There are lots of way to export OU, Sub OU and Security Group.
    1> Open AD console > run query > export with CSV file.
    2> Run “CSVD” command as per your requirement.
    3>Download Manage Engine Software > Install to any computer of Domain member > Set credential for domain controller access > Export the customized information, as per your requirement with XLS, PDF,
    CSV or Ect.
    3rd option is very easy to export customized reports
    Deepak Kotian.
    MCP, MCTS, MCITP Exchange 2010 Ent. Administrator
    Disclaimer:
    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!
    All the opinions expressed here is mine. This posting is provided "AS IS"
    with no warranties or guarantees and confers no right

  • Get active employees of organization unit and its sub organization unit

    Hi,
    I have OU in selection screen. If I give 50000000 in the selection screen and my list displays all the active employees under that organization unit.
    but under 50000000 OU,it contains some other OU like 500000010 nd so on.. (ie,sub OU). now i want to display the active emplyees of these sub OU also...
    give me any function module to get this???
    thanks n advance

    Eg:
    ACT_OTYPE        -
                   O
    ACT_OBJID         -
                  00100000
    ACT_WEGID          -
                 O-O-S-P
    ACT_INT_FLAG
    ACT_PLVAR            -
               DA
    ACT_BEGDA             -
              02.06.2009
    ACT_ENDDA           -
                02.06.2009
    ACT_TDEPTH                          0
    ACT_TFLAG       -
                    X
    ACT_VFLAG        -
                   X
    AUTHORITY_CHECK        -
             X
    TEXT_BUFFER_FILL
    BUFFER_MODE
    F8 - execute
    check for the result in
    RESULT_TAB
    u can check the level in RESULT_STRUC

  • Organizational Unit is locked

    Hi,
    I am doing the configuration in the development system, we have no of organizational units.
    while creating the OU, one of the OU i can not update the sub organizational unit, i am getting error was Organization Unit is locked by you,
    Kindly help me

    Hi Mohan,
    Thanks Mohan, problem  solved,
    i deleted the data from sm12,
    Thanks,,

  • Send IDocs to machines depending of the Organizational Units.

    hello,
    I want to know if there is a way to send IDocs to a determain machine depending of the organizational Unit or their sub-tree objects.
    Imagine, I have 10 organizational Units (10 countries), and I want to send to each country without sending the modification to the rest os the other countries.
    I there a way I can do it?
    Thank yu very much in advance...
    PM

    Hi David,
    This can be done in the Mapping.. For this Java Mapping will be easier.
    First you need to read input xml document, and search for the Geography/Region.. And then gorup the similar one into the list etc..
    After this Mapping, you will be having one message for each Geography . For this you required to use BPM and in the BPM you can split the messages(1:N) mapping.. But it is still based on the target Structure. If you have many geographies, then it is not an idle solution..
    If you want to make your scenario as an Independent, then you can go with some workaround solutions like this. Output all the files into one folder in XI. And from XI execute an Shell Script, which will read the data and tarnsfer into required Geograhy/Person etc.
    So in this case XI part is almost independent. Only you need to maintain the SHell script..
    This is just my views
    Use SAX parser for the Java Mapping here..about Java mapping
    Java Mapping
    Java Mappings for XI
    Mark helpful answers
    Hope this helps,
    Regards,
    Moorthy

  • How to inherit roles between root organization unit and sub units

    Hi all,
    I have root organization unit and sub units:
    ->Company
    >Department 1
    >Department 2
    >Department 3
    >Department 4
    >Department 5
    I would like it to work like this that all people from all departments would have access to transaction ZTEST. Most obvious way would be for me to assign appropriate role to unit Company. Unfortunately it looks like roles are not inherit between units like this. So question is how it should be done? Do I have to assign this role to all departments to make it work?
    Best regards
    Marcin Cholewczuk

    Hi,
    To activate inheritance of roles between root org and sub org units, you need to set switch HR_ORG_ACTIVE to Yes in table PRGN_CUST. Also proper evaluation path has to be used so that user comparison (via PFUD)  creates the indirect role assignment to user master records.
    You can modify evaluation path US_ACTGR in table T77AW/ tcode OOAW to include root org and its subunits (add entry for relationship O B002 O) and connect the role assigned to root org to the users belonging to sub org units. Then run PFUD which will use this evaluation path to create indirect role assigment.
    Thanks
    Sandipan

  • Send email to Organization Unit in CRM 2007

    Hello friends,
    At tcode SBWP sapgui, It is possible to send a message to a Org. unit. , receipt type u201CH u2013 Organizational Unitu201D.
    I need at CRM 2007 webui to do the same thing, send message to receipt type u201COrganizational Unitu201D but I could not find this option there.
    I sending email through screen EMAIL in CRM 2007. At that screen I found options only to send message to individual emails from Lotus Notes/OutLook list, or individual user in CRM, but nothing from Organizational Unit.
    My requirement is, at email screen, user must be able to send a message for all user assigned to a Org, so they will select the O.U. and CRM will send message for all users, but we donu2019t want to use Lnotes or Outlook groups, user must select a Organizational Unit.
    Does anybody know if there is a way to do that at CRM 2007 webgui.
    Regards,
    Lalas

    Hi Lalas,
    Users must be able to select which Org. Unit they want to send the message. It is not possible define rules.
    Users must be able to type any text that they want as message text.
    You can pass the org unit to the  workflow and store it in a container element. Then use this element as reciepient type for the send mail step.
    I don't think passing message text in such a way would be desired.
    Then instead of using workflows you can use FM SO_NEW_DOCUMENT_SEND_API1 to send mail to the desired users.
    Hope this helps!
    Regards,
    Saumya

  • Business partner of organizational unit is not consistent

    Hi,
    Client is on SRM 4.0. When we are trying to search a user in the org structure, and when clicking on "Check" for this user, it was showing fine. But when we are searching any BP in the org strucutre, then immediately the BP name is vanishing against the BP of the user and when doing the "Check" it is showing the below two messages:
    Business Partner of organizational unit XXXXXXX is not consistent
    User cannot be repaired becasue the organizational unit contains errors
    When checking in BBP_CHECK_USRES, the user is not showing as defective. It is green.
    Similarly, the the organizational unit check is also showing as green.
    System is advising to run BBP_BP_OM_INTEGRATE. When we run this for the org units, these are coming as green.
    Users are able to create the shopping carts and also are able to create confirmations. But the problem is happening for some of the users where the system is not allowing to create shopping basket / confirmation.
    Strange thing is that, when we are searching the user by user id in the org structure, then the check is showing no messages. But if we search the same user using the BP number, then in the check, the messages are coming. And once the messages appear, it is appearing for all the users in the org strucutre even at the root node level.
    Any help is highly appreciated.
    Thanks & Regards,
    Aswini

    Hi Aswini,
    There are some possibilities to raise these kind of errors messages:                                                                               
    1) User with inconsistent data.                                           
    Please, check the instructions described in the following notes:          
    597475 - Repair users with inconsistent address data                      
    -> use the report B_REPAIR_EBP_USER_2 to make the user consistent.        
    419423 - Repairing incorrect EBP users                                    
    350129 - Creating business partner for organizational unit                                                                               
    When you create the Org Units have you fully completed the address        
    data, e.g post coe, telephone/fax number etc..                            
    If not, please enter a full address, save the data and see if this        
    generates the Business Partner.                                           
    Remember, that you can delete this user and create a new user.                                                                               
    2) Error in the positions after HR replication                                                                               
    Please, implement the following notes and retest the scenario:            
    1056873 -  Incorrect SRM users after HR distribution                      
    1016450 - Replication of persons deletes positions in SRM                                                                               
    After implementing these notes you should send the employee               
    corresponsing to the user in error with his position (using               
    transaction PFAL or report RHALEINI in UPDATE mode for all periods.                                                                               
    3) the user was deleted and a new was created and during these two        
    actions the user opened documents. So, in this case, the new user         
    becomes inconsistent                                                                               
    If the user is deleted from SU01 still the BP and S which is related to   
    that user will be retained (we can see this in PPOMA_BBP) transaction.    
    In this case we can create the user again using SU01 and can be attached  
    with the old 'S' and 'BP'.                                                                               
    2. If the user is completed deleted ie., all relations BP and S.          
    The new user has created.   
    In this case if the new user is corrupted we can delete this                  
    user (since the new user doesn't create any documents so far). But the        
    old documents should refer to the new BP related to the new user.   
    ========================
    Also, another option would be to follow the below instructions
    After applying the notes 1056873 & 1016450, send the employees        
    corresponding to the users in errors with their positions (using              
    transaction PFAL or report RHALEINI in UPDATE mode for all periods,           
    using evaluation path A008) ? If not, please do this and it must repair       
    the SRM users. Please test and give me the feedback.     
    Hope this helps,
    Kind Regards,
    Matthew

  • Function module for automating creation of organizational unit

    Experts,
    I am using SRM 4.0. In my system R/3 is acting as backend.
    For creation of new organisational unit in SRM, which is not present in SRM but present in R/3 side i have to do the manual activity every time.
    Is there any function module? Which can automate this process. If there is any function module which i can use please let me know. and how can i use that also please let me know.
    By this automation every time through the program the new organization unit should created in SRM side.
    Please let me know..
    Thanks in advance. I will appriciate through rewards points.

    Hi,
    Thanks for your input. But i am planning to send one file for HR records and then from that file through program i will upload the file. IF for some user the orgaisation unit will not be found then there itself it would create the OU through Function module(If Any)... I am doing like this as the HR system is some legacy system not the R/3 system.
    So Please help me to find out  function module.
    i will appeciate for you help.
    Thanks

  • Have to diplay all the active employees in an Organizational unit n HR ABAP

    HI,
    I am new to HR ABAP.
    In my selection screen I have to get the Organizational unit from the user and based on that organizational unit value i have to display the details like  pernr,fname and other fields of all the active employee in that OU.
    I have to use logical database in the program .
    so it would be helpful if anyone of you can give some idea or send some sample programs or materials for reference.
    Regards,
    Kiruthi

    HI,
    I am new to HR ABAP.
    In my selection screen I have to get the Organizational unit from the user and based on that organizational unit value i have to display the details like  pernr,fname and other fields of all the active employee in that OU.
    I have to use logical database in the program .
    so it would be helpful if anyone of you can give some idea or send some sample programs or materials for reference.
    Regards,
    Kiruthi

  • How to get the Organizational Unit One level up

    Hi
    Does any one know any function module to get the org unit one level up by giving the current Organizational unit as input. Please reply very urgent.

    Hello Nirmal
    I am usually using the following function module to read to OM:
    *   SAP_SORG
    * OrgStructure with assigned orgunits)
        REFRESH: lt_struc.
        CALL FUNCTION 'RHPH_STRUCTURE_READ'
          EXPORTING
            plvar             = '01'            " active Planvar.
            otype             = 'O'             " OrgUnit
            objid             = l_wa_cb1-objid  " Toplevel-Node
            wegid             = 'SAP_SORG'
            begda             = iw_begda
            endda             = iw_endda
            pup_info          = 'X'
            with_stext        = 'X'
            tdepth            = 0               " alle Sub-Levels
          TABLES
            stru_tab          = lt_struc
          EXCEPTIONS
            catalogue_problem = 1
            root_not_found    = 2
            wegid_not_found   = 3.
    The parameter <b>WEGID</b> is the crucial on which determines the objects that are read from the OM. In your case you will need <b>WEGID = 'A002'</b> (reports (line) to).
    To understand the <i>evaluation path</i> (WEGID) better have a look at transaction <b>PPST</b>.
    Regards
      Uwe

  • Drill down logic to capture Sub Org Unit's which doesn't have chief

    Hello Gurus,
    I am wondering to get logic for following scenario. Any ideas are appreciated.
    I have one Cheif Org Unit say '50000000'. This org unit can have two sub Org Units for ex
    55000000 and 56000000 (Here Org unit 55000000 has chief and 56000000 doesn't have a chief). I need to capture only 56000000 which doesn't have a chief. Again, assume 56000000 has three more sub Org Units for ex
    56000001, 56000002 and 56000003 (Here Org Unit 56000002 only has chief and the rest two doesn't have chief). Then I need to capture 56000001 and 56000003.
    so on and so forth drill down to the level where all sub org units have chief's which ends my iteration.
    Result:
    I am interested in only org units which does not have chief...In above example
    56000000
    56000001
    56000003
    and ....
    I know that we can make use of B002 relation in HRP1001 and O-O and to check if org unit has chief, use relation
    B012 in hrp1001 with O-S....but I am unable to put this in iteration..Appreciate any ideas or logic..
    Thanks in advance..
    Kim

    Hi Kim,
    Please follow the logic below:
    *Select all organizational units.
    SELECT * INTO IT1_HRP1000 FROM HRP1000 WHERE OBJTYPE = 'O'.
    LOOP AT IT1_HRP1000.
    *Check if that org unit is sub unit for another one
    SELECT * FROM HRP1001 where rsign eq 'B' and relat eq '002' and objid eq IT1_HRP1000-objid.
    *if true
    if sy-subrc eq 0.
    *check whether that org unit has a chief or not.
    SELECT * FROM HRP1001 where relat eq '012' and objid eq IT1_HRP1000-objid.
    *if false
    if sy-subrc ne 0.
    GET THIS OBJID
    endif.
    endif.
    ENDLOOP.
    ENDSELECT.
    Regards,
    Dilek

  • Organizational Unit in DC directory

    If you are maintaining the Organizational Unit (OU) information in DC directory, does this information replicate over with CCM database? If so, does it map to "department" field in CCM or any other field? CCM version in this case is 4.1.3.

    getUser (as well as addUser/updateUser) actually accesses the DC directory.
    Direct ldap access is also possible though. There's just one consideration when choosing the technology: with CCM 5.0 and above there's no DC directory anymore so (although then you can send a sql request via AXL which is more efficient than getting users via AXL though).
    So I guess unless you need seamless upgrade (only changing the URL and http to https) when upgrading CCMs, you're better off using ldap.
    Keep in mind though, you will need a link between phones and users to make this work.. or if you use extension mobility, you need to look up the user device profiles associated with each user then look up the lines on those profiles (using an sql query via axl.. this translates almost 1:1 to versions 5.0+) to get the line numbers.

  • Create / Update a work center into an organization Unit

    Hello, everyone.
    I'm trying to create a new work center in HR related to an organizational unit by using the bapi: BAPI_HRMASTER_SAVE_REPL_MULT.
    For some reason I'm getting an error message:
    "Object [work_center_id] does not exist in status 1".
    This status comes from the field PL_STATUS at 1001, 1032 infotypes that I'm sending to the bapi.
    Does anyone have a solution for me ??
    Thanks in advance,
    A.S.

    check if you have the object existing in Infotype 1000. If not, then you need to create 1000 also.

  • View of organizational unit in Service request

    Hi everyone,
    In our service request, we are trying to visualise all the organizational unit (of the organization model) of a BP.
    We achieve to see the direct service group where the BP is assigned but we are trying to see more of the link to the organizational model.
    For example : our organizational model looks like this:
    For user AJAUSSAUD1, I can see the direct link to PSE Equiment in my service request (this is determined in the partner schema determination)
    However, we would like to be able to see MC1 (here 3 level above) in the service request.
    We are using service organization as function and all the organizational unit are determined as service organization as we are using it to authorizations access.
    Does anyone know if there is a way to see the link with all the organizational unit of a user in a service request?
    Would it be with the attribute available in the ppoma-crm, but how to add the field and make them available in the service request view?
    Thank you,
    Regards,
    Anaïs

    Hello Anais,
    As far as I know, there is no standard way to view an organizational hierarchy in a service request. You will need to do some developments. There are two options -
    1. If you want the 3 org levels to be stored in data base table for future reference and reporting
    You can add 3 fields in ORGMAN sub object using AET. This will add the fields to table CRMD_ORGMAN. After org determination has happened in your service request, you can use BAdi - CRM_ORGMAN_BADI, methd - CRM_ORGMAN_MERGE to fill values of these 3 org levels. You have to recursively use functions or query table HRP1001 to get the parent of determined service org and then its parent and so on.
    Remember once these 3 fields are added at database level, they are available for all transaction types of one order. These fields can be made available to BW queues also at time of adding them.
    2. If you do not want the 3 org levels to be stored in data base table
    This would mean you only want these fields for display to end user.
    Add 3 model nodes in the web ui component. In the getter method of 1st field, add select query or call function to get parent of determined service org. Similarly for other 2 fields.
    Hope this will help. Maybe you also get some different suggestion from other guys.
    Regards,
    Niraj

Maybe you are looking for

  • Error in installing 11g

    Dear gurus as my installation is going on so still need your help as written in documentation i need below patches for aix 6L 1.IZ41855 2.IZ51456 3.IZ52319 output of command oslevel -s is below 6100-06-01-1043 earlier the sys admin was saying that th

  • How to make a whole table row be read at once?

    Hi, I want to make a whole table row be read at once by screenreaders if the table is not editable? I tried to use "getAccessibleSelection" and return a own implementation which returns the number of columns at "getAccessibleSelectionCount". But if "

  • ACS 4.0 TACACS+ - Two Domains

    Hi All, Just troubleshooting an issue here...I have two forests....with top level domains...DomainA1 and DomainB1... The Cisco ACS is installed on a server inside DomainA1.. Users like JohnSmith.DomainA1 and JaneSmith.DomainB1 are able to authenticat

  • When i open pixel bender, photoshop crashes and closes

    hi, i really need help, i been spending hours trying to fix it When i open pixel bender, photoshop crashes and closes. I went to edit>preferances> performace and looked at the gpu setting, it gives a small message at the bottom but i dont know what i

  • Macbook pro freezes and sound loops

    Hello everyone, My mbp, which I bought last summer, has been having freezing issues in Windows. These freezes seem to happen at random, but predominantly when I am playing games. The screen would stop where it froze (everything would be still), and t