HR ABAP: How to get the organizational unit for the penr as chief

Hi ,
  I am new to HR ABAP. Could any one  specify if we have a PERNR  how we can get the possible values for Orga units,positions and the personal areas that this PERNR as chief.
Thanks in advance,

Hi,
<li>Check the table PA0001 which contains Org unit(ORGEH), Position(PLANS), Personal Area(WERKS) assigned to PERNR.
<li>Use SELECT query to get those if you don't use Logical database PNP.
Thanks
Venkat.O

Similar Messages

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

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How to get a week number  for the year using oracle sql query?

    hi everyone,
    i have the requirement to find the week number for the calender..
    so that week number should start with 01 when the year starts and it should end with week end date(that is first saturday of the january month).. so next week number starts with sunday and ends with saturday ,continously.. in the end date of the year it should not be 'saturday' but week number should end with last date of the year.. again in the next year it should start with '01'.
    for example:
    01-JAN-13 tuesday 01
    02-JAN-13 wednesday 01
    03-JAN-13 thursday 01
    04-JAN-13 friday 01
    05-JAN-13 saturday 01
    06-JAN-13 sunday 02
    07-JAN-13 monday 02
    26-DEC-13 thursday 52
    27-DEC-13 friday 52
    28-DEC-13 saturday 52
    29-DEC-13 sunday 53
    30-DEC-13 monday 53
    31-DEC-13 tuesday 53
    01-JAN-14 wednesday 01
    02-JAN-14 thursday 01
    how can i achieve this, can anyone please help me out on this..
    i have a query that starts with 01 when year starts but it gives problem in the end of the year .. described below with a query..
    select mydate,
    to_char(mydate,'day') as weekday,
    to_char(next_day(mydate,'sunday'),'iw') as week_num
    FROM ( SELECT TRUNC (SYSDATE, 'yy') - 1 + LEVEL AS mydate
    FROM dual
    CONNECT BY LEVEL <= (SELECT TRUNC (ADD_MONTHS (SYSDATE, 24), 'yy')
    - TRUNC (SYSDATE, 'yy')
    FROM DUAL))
    this query gives date, weekday and week_num for 2 years 2013 and 2014,
    when i run this query ,at the end of the 2013 it gives the result as,
    26-DEC-13     thursday      52
    27-DEC-13     friday      52
    28-DEC-13     saturday      52
    29-DEC-13     sunday      01
    30-DEC-13     monday      01
    31-DEC-13     tuesday      01
    01-JAN-14     wednesday     01
    02-JAN-14     thursday      01
    for dates 29 ,30,31st it should give 53 .. how can i achieve that using this this query .. can any one help me out on this please...
    thanks,
    pradeep

    I tried with the IW ...
    it is giving week_id for the year.
    select
    mydate,
    to_char(mydate,'day'),
    case when mydate between trunc(mydate,'yyyy') and next_day(trunc(mydate,'yyyy'),'saturday')
    then to_number(to_char(mydate,'yyyy')||to_char(trunc(mydate,'yyyy'),'iw'))
    when mydate between next_day(trunc(mydate,'yyyy'),'saturday') and trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d')-1
    then to_number(to_char(mydate,'yyyy')||to_char(next_day(mydate,'sunday'),'iw'))
    when mydate between trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d') and add_months(trunc(mydate,'yyyy'),12)-1
    then to_number(to_char(mydate,'yyyy')||to_char(trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d')-1,'iw')+1) end as WEEK_ID
    FROM ( SELECT TRUNC (SYSDATE, 'yy') - 1 + LEVEL AS mydate
    FROM dual
    CONNECT BY LEVEL <= (SELECT TRUNC (ADD_MONTHS (SYSDATE, 24), 'yy')
    - TRUNC (SYSDATE, 'yy')
    FROM DUAL
    ))

  • I use PSE 11 on Windows 7. I have about 40,000 tagged jpg files in the Organizer. For the past several months whenever I try to back up the Organizer it just freezes. Help!

    I use PSE 11 on a PC with Windows 7. I have around 40,000 tagged jpg files in a catalog in Organizer. For the past several months everytime I have tried to back up the catalog, Organizer freezes. I add and tag new items all the time, but haven't been able to back up Organizer since last December. Please help me figure out what to do. Thanks!

    I'm happy to report that I've managed the resolve this issue of mine
    After a little discussion with customer support through online chat today, I was still advised to try the uninstall and install to see what happens.
    So I used the CC cleaner tool first, restarted then started by installing CS2 then CS5 using my serial numbers and made sure that I selected 32 and 64 bit programs to be installed
    Anxiously, I restarted my laptop to see if it would reboot okay and thankfully it did *relief!*
    Now I can open avi files using 32 bit of Photoshop CS5 without any problems (thank goodness!!)
    I think I probably didn't install the 32 bit program when I first bought the installation CD, since I thought I didn't need it but never knew it was still required for editing avi files!!
    Surprisingly, I still got to keep both versions of CS2 and CS5 this time around, as CS2 was simply replaced by CS5 when I first installed it two years ago....hmm.
    So thank you again gener7!

  • Learning Maps-Capture the Organizational Unit of the end user feedback

    Can anyone help me on this:
    Problem: The requirement is to track the enduser feedback from Learning Maps to get information of an organizational unit.
    As per documentation LearningMap feedback is anonymous.
    I would like to know whether there is any BADI or user exits available to solve the problem?
    Message was edited by:
            Ramesh Ramanathan

    Hi,
    Have you maintained your Organizational data? Did you assign any job to any user in the organizational hierarchy. You need to maintain you PPOMA_CRM first in order to assign any roles there.
    Hope this helps
    Rajeev

  • "Organizational Unit for the vendor" not defined in SRM portal

    Hi,
    Iu2019m trying to create a supplier from the vendor list that appears in SRM portal in u201CStrategic Purchasingu201D u2013 u201CBusiness Partneru201D u2013 u201CCreate business partner: Supplieru201D u2013 u201CAdd external Supplier fromu201D.
    When I select the supplier from that list, the u201COrganizational Unit in EBP for the Vendoru201D should be automatically defined. Instead, it is defined as 00000000 and when we try to change it manually to the correct one, it returns the error u201Cthe organizational unit does not existu201D.
    Do you have any idea what is the problem? What am I doing wrong?
    Thanks for your collaboration.
    Best regards,
    Andreia Nascimento

    Hi
    Did you change the org unit value from the txn PPOMV_BBP. Just try to enter the numerical part displayed for the root vendor org unit ID.
    Not sure but you can also try maintaining table BBP_MARKETP_INFO and then check if it works.
    Regards,
    Sanjeev

  • How to get list of permissions for the PCD location

    Hello Team,
    I have group called "ABC". We have lots of roles created in PCD, and some of the roles are assigned to "ABC" group. I want to list out all the roles which is added to the group "ABC".
    Can you please help me?
    Thanks
    Manoj K

    Hi,
    Thanks for the reply.
    Yes, i would like to know what are all the PCD roles which are assigned to group "ABC".
    Yes, you are right, that we can select the group in user Management and if we click on the "Assigned roles" and if we use the string * then we will get a list.
    But if i do that, it is giving below information.
    Last search returned 134 elements. This exceeded the defined max hits of 50. Narrow your search criteria and search again.
    So,this information i got when i select the Search Recursive button, So, i want to know how to get these 134 list from User Management.
    Thanks
    Manoj K

  • How to get rid of zeros for the data which has been extracted with open hub

    Hi all
    I am trying to extract data from the cube thru an open hub, but the data which i have extracted, for a cost center i am able to see '0's which is expected to be an empty space, even in cube there is an empty space.
    Can anyone suggest me quickly, points will be rewarded
    thanks
    preethi......

    In the transformation of the Open Hub,use BAPI....
    Create a target structure with all fields as type characters,move data from source structure to target structure in the BAPI using ABAP codes.When there is no value in character fields it would not show up 0's.

  • No Organizational Unit for Bidder on the 'Manage Business Partners Screen'

    I replicated a vendor from R3 to SRM and there is no 'Organizational Unit for Bidder' listed. Because there is none, I cannot make any changes to the address of the Business Partner (Vendor) and there is no way to add the Organizational Unit for Bidder because it is all greyed out.
    I also tried to fix it in the GUI bbmainint screen but it cannot be fixed there either.
    Does anyone know how I can get that Org Unit for Bidder into the Vendor's Profile? I know what it should be, I just can't find a way to get it in there.
    Thanks,
    Laetitia

    Hi,
    the 'Organizational Unit for Bidder' is not listed in the transaction. You need to know this code every time you create a contact / employee for a specific suppliers.
    When you replicated vendors into SRM, the vendor records are assiged to a Org Unit. Depending on your SRM version (SRM 4.0 or SRM > 4.0), they are integrated into the Org Model. Enter exactly this root node for the supplier into the field 'Organizational Unit for Bidder'.
    It is just about knowing where the information is - then it works
    Cheers,
    Claudia

  • Not  able  to Assign Organizational Units to the Sites

    Hi all,
    while  configuring  intercompany  billing  I  am  not  able  to  assign  the  Organizational Units to the Sites.
    I  am  in  retail  system  and  maybe  here  I  have  to  do  something  else  before  seting  up  the  intercompany?
    Thanks in advance
    L

    Hi,
    Go through the Building block and their prerequisites
    http://help.sap.com/bp_bblibrary/600/html/R01_EN_DE.htm
    http://help.sap.com/bp_bblibrary/600/html/R41_EN_DE.htm
    Thanks
    Chidambaram

  • Who to get Actual Shipment Date for the Sales Order

    Dear All,
         How to Get Actual Shipment Date for the given sales order.
    REgards
    sudheer

    Hai,
    If you want the actual shipment date of an order call the function module RV_ORDER_FLOW_INFORMATION and pass the order number as vbeln in the structure COMWA.select the values from the return table which corresponds to 'J' type which are delivery and get thedate.
    THis will give the actual delivery date (if created).
    Oher way is to look for vbeln in table LIPS using VGBEL = order number as the selection criteria.
    Cheers,
    Sandeep

  • How to get the Organization Units

    Hello,
    I have set up a LDAP server with JNDI Tutorial example. I have been able to search, list and also get the attributes from the server. But what i need to know is there a way to get the Organization Units in java.
    ie. o = JNDITutorial
    ou = People
    ou=Groups
    ou=NewHires
    Now what i want is there a way to get all the ou's in java for the given organization.
    Any help would be greatly appreciated.

    Mahmed
    I would strongly say you need to refer the Workforce and Management guide
    Which will explain you the complete details of the Organization
    You need to get the basics for this because these BG and OU are going to be the foundation for the instance. So just by know the definition will not help you
    Thanks
    Regards
    Ramesh Kumar S

  • Getting the organization unit of a responsibility used ...

    Hi,
    Are there any manners to get the organization unit according to the responsility the user selected...????
    For example...
    Assume that the user has the following responsibility:
    inventory employee <-----------role as a single inv. employee(access only to view)
    admin of inventory N234 <-----------role as an admin to this particular inventory(access to view, edit, check, ...)
    admin of inventory N239 <-----------role as an admin to this particular inventory(access to view, edit, check, ...)
    e.t.c..
    How is it possible to correlate the responsibilities 2,3 (of the above list) to the organization units(units of a company) coded as 234, 239 respectively..???
    I assume that this can be done using a profile (at responsibility level and/or user level)...In this case is there any profile name i can use..or i should create a new one...??? ----{I use the MO:Organization Unit to get the business group id/company}.
    Is it possible to acheive the above through the use of a form parameter...(but the question is how to correlate the specific to an organization unit responsibility to a code representing this unit (inventory N234) without the use of a profile - as a second manner)...???
    Note: I use 11.5.10 EBS
    Many thanks,
    Sim

    Hi Sim,
    One thing you need to be carefull about is in what context you need the ID of a certain organizational unit. There are different types of orgs that are in play at different times.
    e.g. Operating Unit is the securing attribute for many subledgers such as Order Management, Accounts Receivables/Payables, Purchasing.
    Inventory Unit is relevant when you look at Inventory Transactions, Costing, Planning etc.
    If we assume that you are only interested in INV orgs then whenever you enter a form that deals with inventory related issue the user is prompted to choose an organization and the choice results in setting the context variable MFG_ORGANIZATION for the session.
    If you want to control which Inventory Organization a user or responsibility has access to you go to Inventory > Setup > Organizations > Organization Access. Here you can restrict access by Responsibility. Take a carefull look into the help text to understand implications - I have copied the first couple of paragraphs:
    +You can specify which organizations a responsibility can access by mapping responsibilities to organizations. Once this mapping is set up, a user logging into an Oracle Manufacturing product is restricted to the organizations mapped to the responsibility chosen. The Change Organization window is restricted as well.
    Attention: Until you assign an organization to a responsibility in this window, all responsibilities have access to all organizations. Once you have restricted any responsibility to an organization, you must then explicitly define the organizations which all responsibilities can access.
    Attention: This feature does not restrict access once the user is in the product. Users with access to functions that cross multiple organizations (such as ATP, Inter-organization Transfers, Item Search, Multi-organization Quantity Report, and so on) can still specify any valid organization when running these functions.+
    /Niels LM

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

Maybe you are looking for

  • How to extract data from essbase to oracle database incrementally?

    I have to extract data from essbase to an oracle database table incrementally using informatica , can anyone tell me how to do it or give me some tips. I have been thinking about it for a whole day but have no ideas. I cannot do the delete & insert m

  • Why am i able to use abstract methods id they aren't yet implemented?

    For example, why i can use this [http://docs.oracle.com/javase/7/docs/api/java/nio/CharBuffer.html#slice] if this is abstract? Edited by: 947971 on 13-set-2012 10.38

  • Integrating a Delta Index into the Main Index  Using the Python Schedule

    Dear All As per below link we are failed to merge the delta to main index in Trex 7.10. http://help.sap.com/saphelp_banking60/helpdata/ru/89/65a740aa053a13e10000000a155106/content.htm Kindly help us Regards Sriram

  • For Table

    Hi During backup of Our Production Server, one of our table got corrupted (not getting coppied) I want to create a z table and copy the data to table So that it can be used afterwards Please let me know how to create a new table and copy the data for

  • Satellite A50 - internal speakers are dead

    Hi My both internal speakers are not working. I plug earphone sound is ok. Driver is ok, hardware too. I tried to get new speakers with no success. Can I replace the speakers with small one (I took of from my small battery radio)? It will work or aff