How to exclude the Transfered Terminated employee

Hi all ,
I need to fix a bug in the report which displaying all the Hired , Rehired , Transfered employees data of only IT department in the 13th months window period .
so what currently the report is doing is ....
Report is defined with PCH logical database .
Upon the selection screen they are inputting the Root org unit 500000 with Evaluation Path Pers-o.
and selecting date range ALL.
Logic is currently pulling all the persons belongs to that root org units.present and past.
Here 2 conditions are using that 1) although if an employee is hired in IT and Transfered out of IT within 13th months Client requires that data.
2) Although if an employee is transfered of IT and then terminated then they dont want his data.
satisying the first condition i am written logic but to satisfy the second condition i am not getting the logic could any one please.....
logic to pull up the employees data who are Hired within 13 months window perid and now transfered to other sales department.
Get Objec.
If Objec-otype = 'P'.
HR_read_infotype.
begda = '01011800'.
endda = '31129999'.
tableS
p0001.->Now p0001 is filled by all the org units.
delete adjacent p0001 comparing orgunits
Read infotype 41 based on Terminations , Hiring , Rehiring.
loop at p0001.
Now pass this org unit to Rh_Struc_Get.
with evaluation path o-o to get the top hirarchy into RESULTS_TAB.
now loop at resutls_tab.
read table pchojid with low = resutls_tab-objid.
if sy-subrc = 0.
Flag =1 .
exit.
endif.
Endloop.
So the above loop will check if any of the org unit belongs to the IT department previosuly...
tehn it will flag1 , if flag when then only it will process for fianl itab,.
Now my problem how to check if an employee is terminated in sales...what logic need to be embed herer... any one any clue?
Regards
sas
i know people dont have enough time to think this alot
Edited by: saslove sap on Apr 24, 2009 8:12 AM

hi ,
In table PA0001 (HR Master Record: Infotype 0001 (Org. Assignment) ) ,
field PERSG - will decide whether Employee is active or terminated.
Values of PERSG are based on Customization again..
Say if PERSG is
1     Active
2     Retiree/pensioner
3     Early retiree
4     Interns
5     Terminated
6     Inactive employee
Ram.

Similar Messages

  • How to exclude the backup of a drive in vmware mirage server

    I want to ask that how to exclude the backup of a drive in vmware mirage server.

    I have developed an environment called VDI(Virtual Desktop Infrastructure) in which user is assigned a drive(i.e. D:).When I use to take backup of D: drive then by default with D: drive mirage server use to take backup of C: drive too.That's why i want to exclude the backup of C: drive .Please help me out to solve this.

  • How to exclude the debit memo & credit memo out of COPA report (KE30)?

    As captioned, now the current KE30 default transfers all the data from sales orders interfaces (via VA01), such as common sales order, 3rd party drop shipment, credit memo and debit memo etc.
    Is there any idea to exclude the quantities display in KE30 towards Credit memo and debit memo? An user exit?
    Thanks for the great input...

    kissorkick,
    You need to clear some concepts in COPA.
    A similar example for you, COPA likes a supermarket, vendors supply stuff (data of billings etc) into the supermarket, then you select the stuff you want (Report result) by putting them into the shopping trolley. And KE30 likes the shopping trolley.
    Now the question, do you wish the vendors do not supply certain stuff (credit meno etc) into the market or you just do not put the stuff into your shopping trolley only? Configure by Tcode KE4W for the former case or create the report in Tcode KE30 with certain selection rule for the later case.

  • How to exclude the XML declaration from each row of the result set?

    Hi,
    I have a table with an XMLTYPE column and would like to SELECT a set of rows. How can I exclude the XML declaration from each row in the result set? My query currently looks like this, I'm executing it through Spring JDBC:
    SELECT XMLSerialize(CONTENT t1.xmltext) FROM myschema.event t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC
    After selecting, in my application I convert each row into a String and concatenate all rows into one big string in order to parse it into a DOM model. I get a parser exception (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed) because there are multiple XML declarations in my big string. Of course, I could manually check the String of each row whether it starts with the XML declaration, but it would be nicer if I could instruct the DB not to add it in the first place. Is there a way?
    Thanks!
    -- Daniela

    Hi,
    A couple of options I can think of :
    SELECT XMLSerialize(CONTENT
    XMLtransform(t1.xmltext,
      xmltype('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output omit-xml-declaration="yes"/> 
    <xsl:template match="/"><xsl:copy-of select="*"/></xsl:template>
    </xsl:stylesheet>')
    FROM myschema.event t1
    WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
    ORDER BY t1.time DESC
    ;or simply,
    SELECT XMLSerialize(CONTENT
      extract(t1.xmltext,'/')
    FROM myschema.event t1
    WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
    ORDER BY t1.time DESC
    ;

  • How to delete the list of employee on SAP system?

    Dear all,
    I want to delete the list of employee on my SAp system but I don't know how to do this, What's the transaction code that use to delete mutil employee on SAp system?
    Please help me to do this.
    Thanks and Best Regards,
    Huyen Nguyen

    PU00 is the tocde for Single PERNR
    and check RPUDELPN  report for mass deletion of PERNR
    but dont do in production system
    Edited by: Sikindar on Aug 14, 2009 8:18 AM

  • How to exclude the monitoring (device avaibility) on an interface vlan?

    Hello All,
    How can i exclude the monitoring on an "intervace vlan"
    My switch 3750X have many interface vlan , LMS 4.2.2 discover the device and have an automatic poller that test the reachability on the IP for these interface vlan.
    And i have many Critical alarmes when the interface vlan is down, because no end host are in this vlan
    (Operationaly Down, Unresponsive).
    Thank you.
    Alain Pernelle.

    Hello pkr_legend,
    Take a look at these symptoms and see if the troubleshooting steps help to resolve your issues.  Please let me know.
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • How to exclude the PO matched invoices from entering the Approval Heirarchy

    Hi,
    How do you exclude the PO matched invoices from entering the Approval heirarchy?
    I refered to the note [ID 337714.1], wherein it states that the "In the workflow definition file - apfiawie.wft - the attribute EXCLUDE_PO_MATCHED is to be set to 'Y'".
    When I open the file in the workflow builder, I am not able to modify the attribute as mentioned in the note.
    Can anyone please give a solution to this problem as all the invoices are getting in the approval workflow.
    Thanks & Regards,
    Atul

    Dear All,
    If anybody face the same issue pls give us solution.
    Thanks,
    Atul

  • How to EXCLUDE the photolibrary etc from SPOTLIGHT indexing?

    My PowerBook G4 often runs very hot without end; the Activity Monitor shows Finder and mdworker as the CPU hogs. I assume that it is the Spotlight indexing that is causing the constant activity.
    In System Preferences>Spotlight>Privacy I tried to exclude the iPhoto Library (and iTunes files) from being indexed, but these Libraries are greyed out, i.e. I cannot choose them.
    While it seems that I can exclude the whole Pictures folder, but when in the Activity Monitor I 'inspect' the 'mdworker' process, and choose the Open Files and Ports tab, in the /user/myname/library the iPhoto library still seems to get indexed.
    Any suggestions/pointers would be highly appreciated.
    thanks and cheers,
    Veit

    I could be wrong but I don't think it is correct. Maybe if you were adding tons of photos every day but even then I'm not sure that that's how spotlight is supposed to operate. I'm curious as to what would happen if you simply removed your iPhoto library out of where it is now and restarted. Certainly there would be no excuse for spotlight to start indexing the library then. Of course you can move the library back to where it was again and when iphoto starts ups it will find it right away or ask you to go looking for it.
    You might have some kind of file corruption. Downloading and reinstalling the OS system software might be a way to go.
    Here's a link to another post on the forums. It doesn't address your specific concern but you may find some useful advice there anyway. Good luck.
    http://discussions.apple.com/thread.jspa?messageID=7686065&#7686065

  • How to exclude the Shared folder from TM in Mavericks?

    Hi, I have just moved to Mavericks. I discovered that now I cannot exclude the folder "Shared" from my TM back-up. From the TM preferences I can add it to the exclusion list but it seems that it is not taken in account. Even if I use "sudo tmutil addexclusion -p /Users/Shared" I cannot exclude it. Any idea how to force TM to exclude this folder?
    Regards

    Hello there, Bangla.
    The following Knowledge Base article reviews the process for excluding a particular folder from backup:
    OS X Mavericks: Exclude items from a Time Machine backup
    http://support.apple.com/kb/PH14182
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How much is the early termination fee?

    I'm trying to find out how much the early termination fee is. Does anyone know how much it is or where I can find it?

        I don't want to see you considering a move, Bull427. What has you searching for the termination fees? Our friend tikibar1is correct that the fee begins at $350 for smartphones and $175 for basic phones, each decreasing for each full month completed. You can see your contract by logging into My Verizon as the account owner and  selecting My Devices then View Contract End Date from the right side of the page.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • How to find the user terminal on a particular date

    Hi experts
    I need to know the particular user id and which terminal he has triggered tcode MIGO.I have tried with SM21 and the FM TH_USER_INFO,TH_GET_PLUGIN_INFO,TERMINAL_ID_GET,THUSRINFO all this are not giving the details. I need to know the guys terminal id where he triggered the change in good movement before five days.
    please guide
    regs
    bala

    I know - but it's like that:
    - either you have had activated the Security Audit Log at that time, then you can evaluate the Security Audit Logs at any later point of time.
    - or you have to be fast in order to evaluate the statistical records (which will be "condensed" after a short period of time)
    I'm sorry, but the system does not track all activities and store the information for a longer period of time - just for the case that someone wants to evaluate the traced data at any later time. Only if you have instructed the system to do so (-> activating the Security Audit Log) it will record the events you have decided to be of interest.
    Actually it's the same in "real life": if you have installed a surveillance camera at certain spots of interest you'll be able to evaluate the recorded data. Otherwise you have to be fast in order to be able to perform a forensic analysis (evaluating the "natural tracks" - before the rain will wash them away).
    Cheers, Wolfgang

  • How to exclude the standard Include programs in Code Inspector?

    I am running code inspector (SCi) on all the development objects using a package. But in certain repository objects standard include programs have been used. I want to exclude the standard include programs while running SCI on the package. What are the ways to achieve this?

    Hi,
    while defining an object set choose:(in the menu)
    Edit - Exclude View Maintenance Function Groups.
    This should exclude most or at least some of the includes from being checked.
    Kind regards,
    Hermann

  • How to get the list of employees whose Sal on hold and who are active

    HI Experts,
    We are trying to extract a report,where the list of employees whose  salary was hold  and who are active in a particular month.
    Please advice.
    Regards,
    V Sai.

    Hi,
    I can think of two different solutions. You can choose the one as per the requirement.
    1. Creating  a report of locked employees as on date.
      Active employee that are locked in Infotype 3.
    As infotype 3 doesnt have different Begin data and end dates, we cannot have historic data/report.
    2. Creating a report for payroll not run.
    Getting a list of active  employees
    Check the RT of the employees for previous payroll runs.
    You can use the selection criterila for dates/months.
    Hope this helps.
    Param

  • How to get the list of employees whose full n final setellment done in mont

    hi  Experts,
    We are trying to get the list of employees whose full and final settelemnt were done in a particular month.
    Is there any way to get the employees whose fnf was done in a particular month.
    Please advice.
    Regards,
    V Sai.

    Hi Experts,
    We are trying to get the list of employees from sap for whom  we ran the FNF  in the current month.
    For example,if an employee left the organisation in the month of April,we  are holding the salary of the employye.
    After approvals from different departments,may be after 2 months we change the control record to april and we run the payroll for the employee.later we change the control record to current period.  In posting we use the other period and maintain 01 2010  and post to accounts.
    Here we want to extract the list of employees for whom we post the  Full and final settelement in the particular month.
    Please helpme to solve it.'
    U r help is highly approciated.
    Regards,
    Sai.

  • How to extract the number of employees (Head count) in a particulr month

    Hi Experts,
    We are trying to have a customized report  on  Having the  employee  headcount  for a particular month  with number of employees joined on the month and number of employees left the organisation.What is the way to get it.
    Please advice.
    V Sai.

    Hi Vicky Sai,     
    The standard report is S_PH9_46000223 - EEs Entered and Left
    If you want to obtain the numbers in the same screen you should do the following1
    1 - access the report
    2 - further selection button - select Action type and move it to the Selection fields (you will get it on the screen)
    3 - select action Hiring and action Leaving (so that the report will only count these elements)
    4 - Period - current month
    5 - run the report
    6 - you will now have to see the number of employees (unfortunately you cannot do Sum here as you could do in a Querry that you would build as you would add the Count field so we need to do a little trick)
    7 - Change layout icon - View tab- select Preferred view instead of SAP List viewer ->Microsoft Excel
    8 - Select a template - press save
    9 - You will see now the report in the Excel format. You can do sums if you want, add formulas, or you simply delete the first line and just look at the latest line filled in (total number of EE who left or were hired during the month)
    If you do your own Querry - you can skip the Excel part and make a screen variant with the Sums.
    At least now you have 2 options that you can choose from
    Regards,
    Adriana

Maybe you are looking for

  • Error in updating 311 movement using BAPI_GOODSMVT_CREATE

    Hi All, I need hlep to understand the problem in doing a transfer. SAP MII is doing a 311 type movement using BAPI_GOODSMVT_CREATE. BAPI is returning the response back to MII. Once the BAPI is commited it shall make transfer inside SAP. But it does n

  • An error occured while creating sales order "Enter sold-to in R/3"

    when creating a sales order using CRM even though we have passed Sold-to ship-to bill-to using partner table we are getting an error Enter Sold-to in R/3

  • Can you retain text highlighting when exporting to PDF from InDesign?

    Hi, I have several publications that are now going to be reviewed by another individual and I was planning to export them to PDF. However, I've already highlighted bibliographic references, table call outs, figure call outs in the InDesign file using

  • RE:Undo_management=MANUAL

    Hi all! I'm trying to create the rollback segment below but get the error shown. Even when i set undo_management=MANUAL & restart my PC or stop/start Oracle services, it remains AUTO. What else need i do plz. Thnx! SQL> create rollback segment test t

  • MBP Issue

    Wondered if anyone could help my diagnose this issue. First I followed OWC's direction when I bought a new SSD and Memory for my computer. Then I tried the Fusion install and it bricked. So long story short I put the computer back to the original and