Critical abap hr req - How to find the previous org unit of the employee?

Hi Experts ,
I need small inputs from your end...
I need to find the employee org unit based on the latest one.....
i just want to know if an employe is Transfered from the org unit .....we can check it from the ORG unit.
My requirement is to now capture only the org unit of IT folks not for the employees who are transfered to NON-IT department.....
sop if an empployee 5000 org unit belongs to IT of employee 1000 and NOW he transfered out of IT with current 6000 org unit then how can we read that 5000 ?
now i am using PCH logical data base...
Based on evaluation path(Pers-0)  i will pick up the pernr 1000.
now when i check the org unit it is 6000 with end da 12/31/9999.
then i loop
select * from pa0001 into itab where pernr = objec--objid and otype = 'P'.
enselect.
loop at itab where pernr = objec-objid.
Here in the loop what is the logic we need to write to pick up the previous org unit please suggest
endloop.
Regards
sas

>
Faisal Altaf wrote:
> Hi,
>
> Please Test the following Sample Code hope it will solve out your problem,
>
>
TABLES: pa0001.
>
> DATA: it_pa0001 LIKE STANDARD TABLE OF pa0001 WITH HEADER LINE,
>       begda TYPE begda.
>
> SELECT SINGLE begda FROM pa0001 INTO begda
>   WHERE pernr = '00000001'
>     AND endda = '99991231'.
>
> begda = begda - 1.
>
> SELECT * FROM pa0001
>   INTO CORRESPONDING FIELDS OF TABLE it_pa0001
>   WHERE pernr = '00000001'
>     AND endda = begda.
>
> Please Reply if any Issue,
>
> Best Regards,
> Faisal
Hy Faisal...what is the begda value there?
Regards
sas

Similar Messages

  • How to find out the main org units in the system

    Hi,
    I want to find out the all main org units in the system. It means that i have to know all the parent org units not the sub org units.
    Can you please let me know .
    Regards
    Rajesh

    Hi,
    As I understood about your query, go to PA30, select the position field, select the structure search tab, go to find(Ctrl+F), select the object type S-position, give the position no, then it will give position place and root org, unit of the position and it will expand the structure.
    Regards
    Devi

  • Determine the superior Org Unit for a given Organisation Unit.

    Hi,
    I am using the Sequential Access method of accessing the PCH Logical Database.
    Is there any macro available to determine the superior Org Unit of the current Organisation Unit being looped at using the GET OBJEC statement.
    I cannot access the STRUC internal table as I do not want to use structural access.
    At the moment I am using the function module RH_ENTH_READ_STRUCTURE. Is this a good way of doing this or is there any PCH functionality for this?
    Any help would be much appreciated.
    Thanks and regards,
    Priya

    Thanks for the input.
    I just was concerned if either way would cause a performance issue while i'm already in the GET OBJEC loop.
    Anyway, for now I think I'll continue using the function module. I guess a direct SELECT on HRP1001 would require explicit authority check.
    If someone else has a comment on this topic do post it in. I have time till next week to finalize on my approach.
    Thanks once again Suresh!!!
    Regards,
    Priya

  • How to find out web-inf path from the physical drive?

    How to find out web-inf path from the physical drive?
    I have some user profiles in web-inf directory.SO I want to know the path from root directory like
    d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
    Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
    But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
    SO I want to get the path of web-inf directory with out hard coding.
    Thanku

    String path = application.getRealPath("/WEB-INF/profiles/username");
    Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream().

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

  • How to find out which data control do the page layout components come from?

    hi,
    work in Jdev 11.1.2.3
    After have drag and drop data control into pages designer, how to find out which data control do the page layout component (such as a field in form layout) come from?
    --i cannot find data control related information in the property pallete for the page layout component.
    Regards.

    This information can be found in the page definition file.
    Select the field in the page and then click the binding tab.

  • How to find out if your Mac has the new Virus ?

    How to find out if your Mac has the new Virus, and how to fix it ???

    Helpful Links Regarding Flashback Trojan
    A link to a great User Tip about the trojan: Flashback Trojan User Tip
    A related link in the tip to a checker: Malware Checker Dowload Link
    A Google search can reveal a variety of alternatives on how the remove the trojan should your computer get infected. This can get you started.
    For now I recommend the User Tip from etressoft to detect and remove:
    Checking for and removing the "Flashback" trojan
    Kaspersky Flashback Trojan Site:Flashback Trojan Detection and Removal
    Also see Apple's article About Flashback malware.

  • HT2905 Does anyone know how to find and remove duplicate items in the new itunes 11?

    I am having a hard time trying to figure out how to find and remove duplicate items under the New iTunes 11? Its not as user friendly as in previous versions. Does anyone know how to figure this out?

    As Jim said View > Show Duplicates
    or
    Option + View > Show Exact Duplicates

  • How to find list of languages installed in the SAP system?

    Hi All,
    Please tell me, how to find list of languages installed in the SAP system?
    Thanks and Regards,
    Kumar.

    Hi Virgo Rhyme
    Hope the following info will be helpful
    3rd - SAP is the 3rd largest software company in the world
    30,000 - Total number of people employed by SAP
    5,400 - Number of programmers employed by SAP
    $7.024 billion - FY03 Revenue
    $1.077 million - FY03 Net Income
    12,000 - Number of companies using SAP
    79,800 - Number of SAP installations
    12,000,000 - Number of people using SAP
    120,000,000 - Total number of people in the 12,000 companies who are using SAP
    28 - Number of languages supported by SAP
    46 - Number of country-specific versions of SAP
    22 - Number of industry-specific versions of SAP
    1,000 - Number of pre-defined best practices contained in the SAP system
    10,000 - Number of tables requiring configuration in a full SAP implementation
    55,000 - Number of SAP experienced consultants worldwide
    28 - Number of years ago SAP was started
    Reward if helpful
    Regards
    Lakshman

  • How to find last accessed/updated tables and the query text?

    I am using :
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    How to find last accessed/updated tables and the query text?
    Regards
    LEE1212

    Check DBA_TBALES view there you find one date column that indicate last update
    One option is as follows:
    (1) Turn the auditing on: AUDIT_TRAIL = true in init.ora
    (2) Restart the instance if its running.
    (3) Audit the table:
         AUDIT INSERT,SELECT,DELETE,UPDATE on TableName
         by ACCESS WHENEVER SUCCESSFUL
    (4) Get the desired information using :
         SELECT OBJ_NAME,ACTION_NAME ,to_char(timestamp,'dd/mm/yyyy , HH:MM:SS')
         from sys.dba_audit_object.
    Cheer,
    Virag Sharma
    http://virag.sharma.googlepages.com/
    http://viragsharma.blogspot.com/
    Message was edited by:
    virag_sh

  • How do we find the previous error details in the monitor (details tab).

    Hi Experts,
    While loading data to a target via PSA we got an error (ex. data error), we edited in PSA and reloaded to target from PSA successfully.
    Here my problem is how do we find the previous error details in the monitor (details tab).
    Kindly post your comments on this......
    Thanks in advance.......
    Regards,
    Sankar Reddy

    Hi,
    While updating any request from PSA, you have to delete the first erroneous request from data target and then update the PSA request. If you do not delete the erroneous request, it will not allow you to update the PSA request.
    Regards,
    Yogesh

  • HT4993 how to find my year of birth on the iphone4

    how to find my year of birth on the iphone4

    It sounds as if it wants the answer to your security question "what is the year of your birth".
    Apple has been using these security questions for a few months now. Presumably it is to avoid theft from people guessing other people's Apple IDs and passwords. No one knows why or when anyone is asked for the answers, and like any good security system it is designed to be unpredictable.
    Whatever you answered for that question, only you can know, that's the idea behind the security questions. You could have answered 1492, it really doesn't matter, as long as your answer matches what you originally supplied.
    If you are being locked out because your answer is not what it is expecting, your only recourse is to contact iTunes Support and ask them to reset your password. You will have to answer some questions to confirm you are who you say you are, and then they will send you an email with instructions to reset your password and create new answers to more security questions.
    Contact iTunes Support here: http://www.apple.com/emea/support/itunes/contact.html

  • HT1349 how to find information on my ipad with the serial number

    how to find information on my ipad with the serial number

    You can learn how to determine the model here:
    http://support.apple.com/kb/HT5452
    If your iPad is in a case or has a skin so that you can't see the model number, enter the serial number here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    Regards.

  • How to find when index was created in the database.

    Hi,
    Please help me, how to find when index was created in the database. It should give with date and time.
    Thanks... Bakser

    Please help me, how to find when index was created in the database. It should give with date and time.DBA_/ALL/User_objects Created
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(128)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                          NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                           DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    select OBJECT_NAME,TIMESTAMP,CREATED  from ALL_OBJECTS where OWNER='OWNERNAME' AND OBJECT_NAME='OBJECT_NAME' AND OBJECT_TYPE='INDEX';Edited by: Anantha on Apr 21, 2009 3:18 PM
    Edited by: Anantha on Apr 21, 2009 3:19 PM

  • How to find my iphone les even with the power off?

    How to find my iphone les even with the power off?

    You can't if the power is OFF.

Maybe you are looking for

  • Verizon DSL with Third-Party Modem

    I recently purchased a Netgear ADSL2+ modem and a Netgear AC1600 router to replace the Verizon Actiontech combo router-modem that came with my Verizon DSL service. I am posting this problem and solution for anyone else who is or may experience the sa

  • Importing a journal voucher with GL Codes and BP Codes

    Hi Experts, I'm trying to get a DTW import for Journal Vouchers working on 8.8 PL05. I have a journal voucher template with GL Codes and BP Codes that I need to import as this is part of some integration. If I leave out the BP Codes it works fine but

  • Primary keys in CMP

    Hello, I have 2 CMP having master and detailed relationship. 1) BookingMasterBean 2) BookingDetailsBean (having one to many relationship). This is to do with a new booking to be made for Squash halls in our application. The primary key in Master bean

  • Reg: Container Shipment process management

    Dear All, My client exports their products through Containers.These containers are provided by offtakers and my client wants the Container shipments to be managed in SAP. I hope somebody would have experienced the same business process. It would be b

  • Why is Safari blurry

    Sites and pics appear to be extremely distorted