Organization unit from PERNR

hi all,
I have PERNR,
Any FM to get the org unit belongs to this PERNR. ?.
thanks and regards
Jose

U can use FM : RH_STRUC_GET to get the Org unit ..
alternatively use the following code ....
first get the position of the pernr ...
select single sobid from hrp1001 into v_sobid
          where OTYPE = 'P' and
OBJID = p_pernr and
PLVAR = '01' and
RSIGN = 'B' and
RELAT = '008' and
sclas = 'S'.
if sy-subrc = 0.
   select single sobid from hrp1001 into v_orgunit
                   where OTYPE = 'S' and
OBJID = v_sobid and
PLVAR = '01' and
RSIGN = 'A' and
RELAT = '012' and
sclas = 'O'.
endif.

Similar Messages

  • How to exclude specific PCs or Organization Unit from discovery and All system collection?

    We want to exclude some PCs from discovery and All System collection.
    1. We want to exclude with out modfing query of All System collection and without modifiing registry.
    2. We want to exclude with Organization unit container.
    We have also tested Include and exclude option which is avaible in system discovery (Discovery method)  but it is not working as per expected.
    Please help us.

    Jason messaged me offline and said that the method of denying read access does not always work. I was thinking that I had done that back in 2003 but have not tested it in the past 10 years or so. It would be easy to test though if you want to give it a try.
    Just browse to the OU on ADUC, right click, properties, security tab. Click Add, change the object type to computers, enter the same of the server that performs discovery, click ok, click deny on all boxes and click OK.
    Actually I just did it to write the instructions above. When I see in my adsysdis.log clearly indicates to me that, in my environment, this works.
    John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/

  • 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

  • Missing Organizational Unit Data in Organizational Data Sales

    Hi,
    when using and working with CRM transactions, I cannot put in the neccessary Organizational Data Saes according to my wishes. (every field should be filled in,)
    Org. Unit,      Object name,      Org. unit,         Sales Org.   Sales Off.  Sales Group, Dis. Chan., Division
    VKORG001   Sales Area..       o 50000015      VKORG001                                       01            01
      => no data are set for Sales Office and Sales Group so far in "F4" entry
    This data occur in our Org.Modell and can be choosen manually as well. BUT as soon as they are maintained, the field "Organizational Unit" is empty again and so the transaction has error again.
    Any idea about?
    Thanks for your support.
    Regards,
    Markus

    Hi Markus,
    In CRM goto tcode - SPRO - Customer Relationship Management - Master Data - Organizational Management - Assignment of Organizational Units from SAP ECC - Assign SAP CRM Sales Offices to SAP ECC Sales Offices & Assign SAP CRM Sales Groups to SAP ECC Sales Groups - To maintain Sales Office and Sales Groups.
    Then goto tcode PPOMA_CRM and configure the organization model as per your requirements.
    Check the below link for further explanations about Sales Area Data.
    Re: CRM Middleware- Customer Master Download
    Hope this helps.
    Thanks.
    Best Regards,
    Arun Sankar.

  • Transfer of Org Unit from one loc to another Loc

    Hi ALL,
    I have issue regarding transfer of organizational unit from one loc to another loc
    is it possible to shift total org unit from one loc to another loc.
    what r all prerequisties required for changing.
    With Best,
    Shaik

    Hi,
    Depends on how you have your structure set up.  Location is usually defined by the Personnel Area.  In this case, you should create a new Personnel Area with the new address information for Bangalore.  You may also retain some individuals in Mumbai and you want to maintain history so that Personnel Area should remain in the system. 
    As for the Organization Units and the reporting relationships, these do not have to change if they have not, only the Account Assignment (IT1008) must be changed to the new Bangalore Personnel Area.  Also, of course, any employees transferred to the new location must have their Organizational Assignment infotypes ((IT0001) changed to the new Personnel Area. 
    This can be a straight-forward change.
    Paul

  • Organization Unit Replication..

    Hi All,
      <b>  we are doing upgrade srm3.0 to srm5.0.
        i am facing a problem in Organization unit in srm5.0.
       my question is how to replicate organization unit between two SRM systems, say for example. SRM3.0 instance is 'A' and SRM5.0 instance is 'B'.
    is there any way or t.code avilable to replicate all organization unit from 'A' system to 'B' system.
    generally when i create new organization in any system, transport request will not ask so i cant do by transport request, then how can we replicate organization unit between two system.
    please this is very urgent one.</b>
    thanks,
    john.

    FYI...you can get this document the service market place as described in OSS note 447651.
    <a href="https://service.sap.com/form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=447651&_NLANG=E">https://service.sap.com/form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=447651&_NLANG=E</a>
    This will avoid a bunch of email requests and makes the forum more useful for future users searching for help.
    Regards-
    b

  • 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

  • 1 Position 2 Organizational Units

    Hi Guys,
    We are implementing SAP for a service industry. It is located in all over the India. Here 1 Position belongs to so many Organizational units (for example Sales employee (S) is working in Bombay (O), Delhi (O)......So how can I assign 1 Position to different Organizational Units.
    We assign employee depends upon Personnel area & sub area, in the same way I want to assign 1 position to different Organizational units so that If I assign 2 employees for the same Position in the Simple Maintenance Org Structure different positions to come with same Object number, in different Organizational units
    Please help me
    Regards
    Prasad

    Hi Prasad,
    Dont create 500 positions just create some positions make sure that each position is coming under each organizational units. and while Maintaing PA30 IT0000-Actions there you select individually for each employee where he is situated & organizational unit from drop down & save it.
    You can assign as many as employees for 1 position number
    Regards
    Pavani
    <b>Remainder: Points to be given on Answers</b>

  • 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

  • How to get employee no(pernr) based on the organizational unit

    HI,
    I am using LDB PNP in my program nd have used my own report category with Organizational unit,begin date and end date in the selection screen.
    Now I have to get all the active employee of that organizational unit.so tell me how to get this
    Explain about GET and PROVIDE statement
    Regards,
    Kiruthi

    Hi !
    To get active employees reject separated employees ( action )
    i.g
    ******Data fetch*****
    start-of-selection.
    get pernr.
    if pernr-massn eq '14'.
    reject.
    else.
    it_active-sapid = pernr-pernr.
    endif.
    ORGEH : Organizational Unit
    ORGTX: Organization unit text
    ********Organization*************
    *data text type char30.
    SELECT SINGLE ORGEH  from pa0001 into IT_ACTIVE-ORGEH where PERNR = IT_ACTIVE-SAPID.
    SELECT SINGLE ORGTX from t527x into IT_ACTIVE-ORGTX where ORGEH = IT_ACTIVE-ORGEH and  SPRSL = 'EN' .
    if sy-subrc eq 0.
    write: 160 sy-vline, IT_ACTIVE-ORGTX.
    else.
    clear: IT_ACTIVE-ORGTX.
    write: 160 sy-vline, IT_ACTIVE-ORGTX.
    endif.
    **************Organizational ID ******************
    select single ORGEH from pa0001 into it_active-Org where pernr = it_active-sapid and begda le pn-endda and endda eq '99991231' .
    if sy-subrc eq 0.
    write: 180 sy-vline, it_active-org .
    else.
    clear: it_active-org .
    select single ORGEH from pa0001 into it_active-org where pernr = it_active-sapid and endda EQ '99991231' .
    write: 180 sy-vline, it_active-org.
    endif.
    Regards
    Sheetal

  • Retrieve Organizational Unit ID from ECC Purchase organization ID

    hello Experts!
    I am facing an issue. In SRM - given the ID of the Purchase Organization downloaded from ECC, I need to retreieve the related SRM Organizational Unit ID.
    I have found a FM (BBP_CTR_UI_BE_PORG_DETERMINE) that is doing exactly the other way around, but coudln't find a function module / alternative way to satisfy my requirement.
    Doesn anybody have an idea?
    Thanks!

    Hi
    You can retrieve it using table HRV5500A to get the Org. unit ID for the corresponding backend pur org. If you want description of the Org unit then you can use table HRP1000.
    Regards,
    Sanjeev

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

  • How to fetch responsible agents from organizational unit

    Hi All,
    I am new to workflow let me know your suggestion to fetch responsible agents from organizational unit in task.
    Thanks,
    Prasanthi.

    Here is some code that will give you the users and their email addresses of an org unit.
    select single objid
       from hrp1000
       into hrp1000-objid
       where plvar  =  '01'            " Plan version
         and otype  = 'S'              " Object type
         and short  =  position.       " position, case sensitive
    select sobid
       from hrp1001
       into w_org-uname
       where otype = 'S'             " Object type
         and objid = hrp1000-objid   " Object ID
         and plvar = '01'            " Plan version
         and sclas = 'US'.           " Rel.obj.type
       append w_org to i_org.
    endselect.
    loop at i_org into w_org.
       select persnumber addrnumber
              up to 1 rows from usr21
              into (usr21-persnumber, usr21-addrnumber)
              where bname = w_org-uname.
       endselect.                                                " USR21
       clear adr6-smtp_addr.
       select smtp_addr
              up to 1 rows from adr6
              into adr6-smtp_addr
              where addrnumber = usr21-addrnumber and
                    persnumber = usr21-persnumber.
         w_org-smtp_addr =  adr6-smtp_addr.
         append  w_org to org_unit .
       endselect.                                                " ADR6
    endloop.  " I_ORG

  • How to get Personnel Numbers from Organizational Unit ?

    Hello All,
    I have a requirement in the HR module to get a list of all the personnel numbers maintained for a Organizational Unit.
    Is there any Function Module to find out the Personnel Numbers assigned to a Organizational Unit for HR module ?
    Thanks,
    Ketan.

    Hi Ketan,
        I'm not sure that there is any Function Module available for finding the Personnel Numbers. I have listed some Tables in HR Module try whether this will help you in finding Personnel Numbers for Organizational Unit.
    DD01L Domains 
    DD02L SAP tables 
    DD03L Table Fields 
    DD03T DD: Texts for fields (language dependent) 
    DD04L Data elements 
    DD04T R/3 DD: Data element texts 
    DD05S Foreign key fields 
    DD06L Pool/cluster structures 
    DD20L Matchcode Ids 
    DD24S Fields of a matchcode ID 
    T000    Clients 
    T001    Company Codes 
    T001E  Company code-dependent address data 
    T001P  Personnel Areas/Subareas 
    T012    House banks 
    T012K House bank accounts 
    T012T House bank account names 
    T500L Personnel Country Grouping 
    T500P Personnel Areas 
    T500T Personnel Country Groupings 
    T501    Employee Group 
    T501T Employee Group Names 
    T502T Marital Status Designators 
    T503    Employee Groups / Subgroups 
    T503K Employee subgroup 
    T503T Employee Subgroup Names 
    T504A Benefits - Default Values (NA) 
    T504B Benefit Option Texts (North America) 
    T504C Benefit Type (NA) 
    T504D Benefit Credit Group Amount 
    T504E Benefit Amount 
    T504F Benefit Costs 
    T508A Work Schedule Rules 
    T508T Texts for Employee Subgroup Groupings for Work Schedules 
    T510   Pay Scale Groups 
    T510A Pay Scale Types 
    T510F Assign Pay Scale > Time Unit, Currency 
    T510G Pay Scale Areas 
    T510H Payroll Constants with Regard to Time Unit 
    T510I Standard Working Hours 
    T510J Constant Valuations 
    T510L Levels 
    T510M Valuation of pay scale groups acc. to hiring date 
    T510N Pay Scales for Annual Salaries (NA) 
    T510S Time Wage Type Selection Rule 
    T510U Pay Scale Groups 
    T510Y Special Rules for Wage Type Generation 
    T511    Wage Types 
    T512R Cumulation Wage Types in Forms 
    T512S Texts for Cumulation Wage Types in Forms 
    T512T Wage Type Texts 
    T512W Wage Type Valuation 
    T512Z   Permissibility of Wage Types per Infotype 
    T513    Jobs 
    T514S Table Name Texts 
    T514T Field Name Texts 
    T51D2 Wage Type Classes 
    T51D3 Reduction Rules 
    T51D4 Cumulation Rules 
    T527X Organizational Units 
    T528B Positions - Work Centers 
    T528C Wage Type Catalog 
    T528T Position Texts 
    T529A Personnel Event 
    T529F Fast Data Entry for Events 
    T529T Personnel Event Texts 
    T52BT Texts For HR Objects 
    T52C0 Payroll Schemas 
    T52C1 Payroll Schemas 
    T52C2 Texts for Personnel Calculation Schemas 
    T52C3 Texts for Personnel Calculation Schemas 
    T52C5 Personnel Calculation Rules 
    T52CC Schema Directory 
    T52CD Schema Directory 
    T52CE Directory of Personnel Calculation Rules 
    T52CT Text Elements 
    T52CX Cross References via Generated Schemas 
    T52D1 Valid Processing Classes 
    T52D2 Valid Values for Processing Classes 
    T52D3 Valid Evaluation Classes 
    T52D4 Permitted Values for Evaluation Classes 
    T52D5 Wage Type Groups 
    T52D6 Wage Type Group Texts 
    T52D7 Assign Wage Types to Wage Type Groups 
    T52D8 Valid Processing Classes - Texts 
    T52D9 Valid Values for Processing Classes - Texts 
    T530 Reasons for Events 
    T530E Reasons for Changes 
    T530F Reasons for Changes 
    T530L Wage Types for Special Payments 
    T530T Event Reason Texts 
    T531 Deadline Types 
    T531S Deadline Type Texts 
    T533 Leave Types 
    T533T Leave Type Texts 
    T539A Default Wage Types for Basic Pay 
    T539J Base Wage Type Valuation 
    T539R Events for Standard Wage Maintenance 
    T539S Wage Types for Standard Wage Maintenance 
    T548 Date Types 
    T548S Date Conversion 
    T548T Date Types 
    T548Y Date Types 
    T549A Payroll Areas 
    T549B Company Features 
    T549C Decision Trees for Features (Customers) 
    T549D Feature Directory 
    T549L Date modifiers 
    T549M Monthly Assignment: Payroll Period 
    T549N Period Modifiers 
    T549O Text for date modifier 
    T549P Valid Time Units for Payroll Accounting 
    T549Q Payroll Periods 
    T549R Period Parameters 
    T549S Payroll date types 
    T549T Payroll Areas 
    T549M Monthly Assignment: Payroll Period 
    T549N Period Modifiers 
    T549O Text for date modifier 
    T549P Valid Time Units for Payroll Accounting 
    T549Q Payroll Periods 
    T549R Period Parameters 
    T549S Payroll date types 
    T549T Payroll Areas 
    T554S Absence and Attendance Types 
    T554T Absence and Attendance Texts 
    T554V Defaults for Absence Types 
    T554Y Time Constraints in HR TIME 
    T555A Time Types 
    T555B Time Type Designations 
    T559A Working Weeks 
    T559B Name of Working Week 
    T572F Event Texts 
    T572G Allowed Values for Events 
    T572H Event Value Texts 
    T582A Infotypes 
    T582B Infotypes Which Are Created Automatically 
    T582S Infotype Texts 
    T582V Assignment of Infotypes to Views 
    T582W Assigns Infotype View to Primary Infotype 
    T582Z Control Table for PA Time Management 
    T584A Checking Procedures - Infotype Assignment 
    T588A Transaction Codes 
    T588B Infotype Menus 
    T588C Infotype Menus/Info Groups 
    T588D Infogroups for Events 
    T588J Screen Header Definition 
    T588M Infotype Screen Control 
    T588N Screen Modification for Account Assignment Block 
    T588O Screen Modification for Assignment Data 
    T588Q Screen types for fast entry 
    T588R Selection Reports for Fast Data Entry 
    T588S Screen Types for Fast Entry 
    T588T Menu and Infogroup Designations 
    T588V Business object type 
    T588W Event types for infotype operations 
    T588X Cust. composite definition of event types for IT operations 
    T588Z Dynamic Events 
    T591A Subtype Characteristics 
    T591B Time Constraints for Wage Types 
    T591S Subtype Texts 
    T596F HR Subroutines 
    T596G Cumulation wage types 
    T596H _Cumulation wage type texts 
    T596I Calculation rule for cumulation wage types 
    T596U Conversion Table 
    T599B Report Classes 
    T599C Report Classes 
    T599D Report Categories 
    T599F Report Classes - Select Options 
    T777A Building Addresses 
    T777T Infotypes 
    T777Z Infotype Time Constraints 
    T778T Infotypes 
    T778U Subtypes 
    Error Messages tables 
    T100 Messages 
    T100A Message IDs for T100 
    T100C Control of messages by the user 
    T100O Assignment of message to object 
    T100S Configurable system messages 
    T100T Table T100A text 
    T100V Assignment of messages to tables/views 
    T100W Assign Messages to Workflow 
    T100X Error Messages: Supplements

  • Org unit from managers desktop

    Hi All,
    I've created a report and it's been attached with the managers desktop.Now when I call this report from managers desktop, I want to read the Organization unit in my report before doing anything. I'm using PNP logical databse.With PCH logical database I could read the org unit but with PNP I can't read until I reach to GET PERNR statement. I can't use PCH logical databse as the requirement is to run the report based on employee number selection within that org unit.
    It works fine even with PNP also but the customer wants to have cutomized screen to go back and forth years to see the report and while executing this custom funtionality , it's not picking the correct org unit.So I want to store the org unit the very first time when I'm calling the report and then I'll pass the same stored org unit for further functionality.
    If anyone has idea how to grab this org unit , pls let me know. Will award points.
    Thanks
    Alok

    Alok,
    That is how I coded the Org.stru logic in my code  ( FYI - I used  LDB PNP ) ..
    SELECT-OPTIONS: pnpobjid FOR PERNR-orgeh NO INTERVALS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pnpobjid-LOW . "OUTPUT.
      CALL FUNCTION 'RP_PNP_ORGSTRUCTURE'
        EXPORTING
          begda  = SY-DATUM
          endda  = SY-DATUM
          plvar  = '01'
        TABLES
          pobjid = pnpobjid.
    Loop at P_obj.
    And in HRp1000    OBJID = p_OBJ-LOW
    endloop .
    Hope this will help !
    Good luck !
    Saquib Khan

Maybe you are looking for

  • E-mail is marked as phishing attempt

    Hi. We have an issue that some e-mails from our internal system that are sent through Rackspace Exchange are marked in Outlook 2007 as phishing attempts. Could you please advice me why? The header from one of such "phishing" e-mails is: Received: fro

  • Lost all Address Book entries

    All of a sudden I've lost all my Address Book entries. There's nothing there. I use iBackup onto .Mac, but for some reason I can't get it to restore. It keeps saying that backup fails. Please help. Big problem.

  • Should we use only one process order for each CO-product?

    Dear All, We have process orders.  One process order opens per day. Now we need to use CO-products and calculate actual cost of goods manufactured for them. Suppose we have 30 process orders. We have specified  Apportionment Structure in Material Mas

  • ACS 4.1 machine authentication problem

    Hi, I'm using the Cisco NAC framework in order to authenticate both users and machines before granting network access. i'm using windows AD to authenticate users and machines. Under "External User Databases" -> Windows Authentication Configuration, y

  • Weblogic.management.security with transactions, Please HELP

    I am using weblogic.management.security.authentication API to programmatically insert/delete users and passwords into/from default security provider on Weblogic Server 8.1. I want to add transactional support to this these actions, I tried using User