Delete Employee Records in Infotype 14

Hi all,
Is there any standard program that will delete records from infotype 14... Thanks a lot

Hi Jim
I do not know any programs for this but you can write your own utilizing the FM 'HR_INFOTYPE_OPERATION' with delete mode. For more details about the FM you can refer to Re: HR: creating IT "0015 - Additional Payments" item

Similar Messages

  • Deletion of employee record

    Hi All,
    We have a requirement to send a notification when ever an employee record gets deleted from the system.
    Can anybody help me doing this.
    Thank you.

    why the records get deleted
    it will get delimted right
    here records means which infotype as we store different records in different infotypes ????
    Edited by: Sikindar on Feb 13, 2009 6:00 PM

  • Delete some records of employee

    hi all,
    i have one requirement, I have to delete some records of particular employee from given infotype(0019) based on change date(AEDTM).
    is there any standard transaction for that?? or any LSMW???
    my priority are
    1)By Standard Transaction
    2) By LSMW
    thanks
    sachin
    Edited by: Sachin Gupta on Sep 25, 2009 5:54 PM

    thanks Dana
    now i am doing is the same way that u have said even i am getting same error. my code is below
    DATA: RETURN TYPE BAPIRETURN1.
    INFOTYPES: 0019.
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
       TCLAS                 = 'A'
        pernr                 = '00000316'
        infty                 = '0019'
       BEGDA                 = '20090401'
       ENDDA                 = '20090401'
      BYPASS_BUFFER         = ' '
      LEGACY_MODE           = ' '
    IMPORTING
      SUBRC                 =
      tables
        infty_tab             = p0019
    EXCEPTIONS
      INFTY_NOT_FOUND       = 1
      OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at p0019.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
      EXPORTING
        number             = p0019-pernr.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    infty = '0019'
    number = p0019-pernr
    subtype = p0019-subty
    validityend = p0019-endda
    validitybegin = p0019-begda
    record = p0019
    operation = 'DEL'
    dialog_mode = '1'
    nocommit = 'X'
    IMPORTING
    return = return.
    *key = personaldatakey.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING
    number = p0019-pernr.
    endloop.
    what could be the issue?
    thanks
    Sachin

  • Want to delete the records from Standard Infotype where PERNR is Blank

    HI Experts,
    I have a simple problem.
    There are few blank PERNRs are in infotypes PA0001 and PA0002 in Production.I have to remove them.
    These blank PERNRs records are populated there because of some mistake.
    This can not be done in production.
    I have checked many FMs ,but couldnt find the correct one.
    Now I want to use a simple query to delete the records.Please tell me the query to delete the records.
    First i used to read these empty records but failed to do so by the following query.
    select * from PA0001 into table it_pa0001
         where PERNR = ' ' .
    This query is not reading any record.
    I used PERNR is NULL then also it is not working.I used other key fields but it is fetching other records then blank PERNRs.
    Kindly suggest.
    ~Sachin

    PERNR is key field in all infotypes, while for all FMs which work with infotypes this field is obligatory . Such entry should never come to production. If this happened, this should be removed by some backdoor operation. Direct table record deletion I guess is here the only (though not necessary safely) way of handling that.
    Correct query would be
    select * from PA0001 into table it_pa0001
    where PERNR = '00000000' .
    PERNR is of type NUMC 8, so default value is not space but 8 zeros.
    Regards
    Marcin

  • Deleting records from infotype 0587 - PF

    Hi,
    I have a requirement to delete some records from the infotype 0587 which is having the TimeConstraint 1. For that one of my friends suggested me to use the Function module SE16N_INTERFACE to delete those records. Is this method suggestable?
    will there be any problem if i delete those records through that function module.  Can any body please suggest me.
    Thanks
    Karthik

    Hi....
    the function module which your friend suggested SE16N_INTERFACE is used to Display table as full screen..
    it cant be used to delete record for an infotype..
    And also there is no function module to do forbidden actions.
    but there are lot of indirect methods to delete the data.  But when a time constraint is set it is not advisable to delete.
    Anyways.. you only can do it with DELETE statement in report program.
    select single dbtab from t777d into gv_dbtab where infty = p_infty.
    delete from (gv_dbtab) where pernr in p_pernr.
    OR
    delete (dbname) from (work area).
    else ..you can use SE16N with editing mode set to active and then delete it .. BE CAREFUL in doing this ... Not to be used in Production.
    Hope this helps!
    Regards,
    Jhings.

  • Report for deleting Leave Entitlement in Infotype 5

    Hi all
    I would like to know if there is a Standard Report to delete leave entitlement in Infotype 5: I made a mistake in generating the leave entitlement for 2007, so I would like to delete all the records inserted.
    I'm working in SAP 46C, and I used HR_RPILVA00 to create leave entitlement.
    TIA
    Paolo

    Hello,
    I would advise you to use at customizing level which is achievable on your case.
    The best way to proceed on your case would be to use IT0041 and on T559L for the relevant rule, you would use the Accrual Period Rel. to date type in which the period is defined in relation to a date type from the Date Specifications infotype (0041). You determine the accrual period using the length fields (for example, the date the employee joined the company, with the period you require, for example one year).
    Then, you can accrue via RPTIME00 or RPTQTA00.
    This would be much more scalable than doing customizing at code level.
    Regards,
    Bentow.

  • Delete the record

    Hi folks,
    I am trying to delete a record from pa0019. Of course I am not deleting the record directly but copying the existing record into the workarea and deletingit.
    However, query of selecting the record from table is not working.
    tables: pa0019.
    data: wa_pa0019 like pa0019 occurs 0 with header line.
    select single * from pa0019 into wa_pa0019 where pernr = 'v_pernr'
    and tmart = 'Z9' and termn = '07/07/2005'.
    delete pa0019 from wa_pa0019.
    I see a record for this employeeid in the table pa0019. why is not retrieving any record?  Am I missing something here?
    I know this is simple, and have done this before too, but not able to recall what is the problem here?
    Any thoughts,
    Thanks,
    SK

    Global variables inthe program
    DATA : RETURN LIKE BAPIRETURN1.
    DATA : KEY LIKE BAPIPAKEY.
    DATA : RETURNE LIKE BAPIRETURN1.
    data: begin of itab1 occurs 0,
                employee(8),
                reason_type(2),
                reason_code(2),
                return_date like sy-datum,
    end of itab1.
    I read the data into the internal table from an external text file, then I upload the record(RLOA) into actions infotype using BDC session, then I need to delete the record for the same employee in 0019.
    I think I am missing the RECORD parameter, hwo can i get that?
    loop at itab1.
    *** check to see whether there is a RLOA record for the employee
      select single * from pa0000 where pernr = itab1-employee and
           massn = 'z7' and begda = itab1-return_date.
    if sy-subrc = 0.
          error-employee = itab1-employee.
          error-reason = 'RLOA exists for the employee'.
          append error.
          continue.
        else.
        clear bdcdata.
        refresh bdcdata.
        perform load_data.
    If the RLOA record is created in Actions infotype delete
    the record in monitoring of tasks record in IT0019
         if g_monitoringflag = 'X'.
    format the date to mm/dd/yyyy
            v_returndate = itab1-return_date.
            concatenate v_returndate0(2) '/' v_returndate2(2) '/'
            v_returndate+4(4) into v_formatdate.
        CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
           EXPORTING
            NUMBER = itab1-employee
           IMPORTING
            RETURN = RETURNE.
        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
           EXPORTING
             INFTY = '0019'
             NUMBER = itab1-employee
             SUBTYPE = 'Z9'
             VALIDITYEND = itab1-return_date
             VALIDITYBEGIN = itab1-return_date
             TMART ='Z9'
             TERMN = itab1-return_date
             OPERATION = 'DEL'
            TCLAS = 'A'
             DIALOG_MODE = '0'
         IMPORTING
            RETURN = RETURN
            KEY = KEY.
         IF RETURN IS NOT INITIAL.
           WRITE :/ 'Error Occurred'.
         ENDIF.
         CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
           EXPORTING
           NUMBER = itab1-employee.
          if sy-subrc = 0.
               clear:g_monitoringflag, v_formatdate.
               else.
              error-employee = itab1-employee.
              error-reason = 'No record created for RLOA'.
              clear:v_formatdate.
           endif.
         endif.
      endif.
    endloop.
    Thanks in advance for your help.
    SK

  • HEEELLPP - Deleted employee data, while deleting applicant with same ID

    Hello,
    I need help solving a problem created in payments. We deleted all internal applicant data on our base, using PU90 through LSMW. The problem with this transaction is that it is based on PU00. So, the program deleted all records in PTQUODED as it didn't check if the Personnel Id wasn't an employee.
    Now I need to replace data and we are trying to use database backup.
    Any other suggestions? Is there any other employee table that could be deleted with the applicant's infotypes?
    Thanks,
    Leonardo

    https://forums.sdn.sap.com/click.jspa?searchID=16777547&messageID=5847814

  • Recovery of deleted loan records

    Dear Consultants,
    Client has deleted some loan records by mistake. May I know How to recover deleted loan records?
    The payroll gives error message as follows :
    "No valid infotype 45 record exists for the loan (TEST, 01), although this loan has not been completely repaid.
    Check the validity period for this loan!
    A valid infotype 45 record must exist for an open loan" .
    But I dont see loan seq no 1. the first record has seq no = 2.
    Regards
    Bindumadhav

    Dear Param,
    Many Thanks for reply.
    1) There is only one employee with this problem
    2) He has been repaying Rs 500/- Per month from 01.10.2009. As such he has repaid Rs 3000/-
    3) Report PC00_M40_LON1of this employee for entire period shows single entry as Loan Type : XXX. Seq No - 01. Principal Last month = 500. Principal for the period = 3000. Maturity date = 30.11.2010.
    The original principal amount must be 500 X 14 months = 7 thousand.
    4) His Infotype 45 record shows only one record with Seq no 02 which is different than 01 record.
    5) Even if I create new record from 01.10.2009, it's Seq No would be 03 & not 01.
    6) As record with seq no 01 is not seen anywhere at all, I can not change the details...
    7) is there any way to recover & restore such deleted data?
    In my knowledge, once the loan is paid by the company, no change or deletion is permitted. Then ow this record was deleted?
    Regards,
    Bindumadhav

  • How to delete  the record  of saved HRA Details...

    Hi Experts,
    I have put the details of HRA Correctly.But while updating HRA In 0008 Infotype i wrongly updated the wagetype,How should i change the Wagetype.
    When i m trying to delete it is showing  RECORD CAN NOT BE DELETED (TIME CONSTRAINT 1).
    How can delete the record.
    Thanking u .
    Sai

    Hi
         Hope doing well ........ No need to delete any infotype but u can go to PA30 and in change mode their u can delete the wagetype which is wrongly entered
    Rajeshk

  • How to delete a field in Infotype.

    Hi All,
    Can anyone suggest me how to delete a field in infotype.
    Thanks,
    Chakradhar.

    Hi Chakradhar!
    Check these links for your taste:
    <a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/bb/bdb6c8575911d189240000e8323d3a/frameset.htm">Delete infotype record - OM</a>
    <a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/48/35c7414abf11d18a0f0000e816ae6e/frameset.htm">Delete infotype record - PA</a>
    Best regards,
    Zsolt

  • Deletion of records

    Hello,
    i am getting from user..and i want to delete the records that starts with that user input...how to write query for this?
    delete * from emp where emp_name like 's%'...
    the above query is for deleting records of the employee whose name starts with s.
    suppose temp=a;
    how to use the variable in the sql to delete the record?
    can anyone help me?
    Thanks,
    Sri

    Dear srivalli
    the syntax of delete query is wong
    delete from emp where emp_name like 's%' try for this with any sql statements in java.
    delete * from emp where emp_name like 's%' is worng please...
    go to sql prompt and try once u will get that
    thanking u

  • Between SAP Licenses and Employee Records Realtinship

    Hi Experts
    <u>The Scenario of the issue is as below.</u>
    <b>SAP Licenses held by the company is -- numbers.
    And the employee records including PD(appraisal),PA  & OM exceeds the allowed records numbers.</b>
    Qn1 Whats the realtion between SAP license and records ?
    Qn2 How to go about in this scenario?
    Qn3. Should i prioritise the existance of records in appraisals and delete the least priority after consulting the client?anyway OM & PA records should not be deleted.
    Please throw some light on the issue.

    Abhilash,
    Usually the SAP Licenses are with respect to named users and their rights to the system....
    If you have N licences of various types and M employees accessing SAp ( M > N ) then it will be an issue .. usually for services like ESS - you have a licence called employee user and for more access you have professional licenses etc...
    You could check the type of licenses that the company has and the number of licenses of each type and also the Contract signed with SAP as to the licensing policy..
    Arun
    Hope it helps...

  • Issue adding records to Infotype 0002

    Hi All,
    I am trying to insert records into Infotype 0002. I am using HR_INFOTYPE_OPERATION to do this. It works fine for all the employees but fot the ones who have Reference Personnel numbers. The system lets me to add the record to those employees through PA30 online or through BDC program with a warning message "No record with the same key for personnel number xxxxxxx",  but if I use the FM HR_INFOTYPE_OPERATION or HR_MAINTAIN_MASTERDATA, it sometimes gives me hard error message " The Social Insurance number already assigned to another employee" in the foreground and when executed in background I get a short dump with exception " CX_HRPA_INVALID_BUFFER_ACCESS".
    I debuged the standard code and the exception occurs in Include UP50RU02 in method IF_HRPA_MASTERDATA_BUFFER~INSERT.
    Short dump:
    The exception 'CX_HRPA_INVALID_BUFFER_ACCESS' was raised, but it was not caught
      anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
      'CL_HRPA_MASTERDATA_BUFFER=====CP' has to be
    terminated.
    Please let me know if I am doing something wrong.
    Thanks,
    Danny.

    Hi Daniel,
    I would not worry about using FM 'HR_INFOTYPE_OPERATION' or 'HR_MAINTAIN_MASTERDATA' for the purpose of inserting PA infotype records for employees. I had developed a generic module last year to insert any PA infotype record which will use the standard PA business logic framework i.e. include all standard checks and validation, calls all Exits/BAdIs before inserting the record as it would when you are saving the infotype record via PA30. I basically created a wrapper FM to simplify the calling of some other standard FMs. Use it if you like (and if it works in your system keeping in mind config is different in every system) but please do handle all the Exceptions after the call (by reading the Message Handler Interface IF_HRPA_MESSAGE_HANDLER) to confirm there was no data inconsistency or other problems at the time of the update. Below is the sample code:
    The generic customer Function Module
    FUNCTION zpa_insert_any_infty_record.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(IS_PNNNN) TYPE  ANY
    *"     REFERENCE(IT_TEXT_TAB) TYPE  HRPAD_TEXT_TAB OPTIONAL
    *"     REFERENCE(IV_NO_AUTH_CHECK) TYPE  BOOLE_D DEFAULT SPACE
    *"     REFERENCE(IV_LOCK) TYPE  SPRPS DEFAULT TRUE
    *"  EXPORTING
    *"     REFERENCE(EIF_MESSAGE_HANDLER) TYPE REF TO
    *"        IF_HRPA_MESSAGE_HANDLER
    *"     REFERENCE(EV_OK) TYPE  BOOLE_D
    *"  EXCEPTIONS
    *"      EX_PERNR_LOCKED
    * FUNCTION...... ZPA_INSERT_ANY_INFTY_RECORD                           *
    * FUNCTION GROUP.ZPA_FG_EMP_LEAVE_BOOKING                              *
    * TITLE......... Insert any PA infotype record for an employee         *
    * AUTHOR........ Sougata Chatterjee                                    *
    * DATE WRITTEN.. 23/08/2010                                            *
    * SAP RELEASE... ECC 6.0                                               *
    * SPECIFICATION. N/A - Reuseable Object                                *
    * =====================================================================*
    * DESCRIPTION... This function is a generic module that will insert    *
    *                a PA infotype record into the employee master data as *
    *                per the import structure IS_PNNNN. This module wil be *
    *                particularly useful when requirement is to create     *
    *                other infotype records for the same employee within a *
    *                User-Exit or a BAdI.                                  *
    * ASSUMPTIONS... Infotype record to be updated is a PA Infotype.       *
    * =====================================================================*
    * MODIFICATION HISTORY                                                 *
    * Date       Userid       Change No & Description                      *
      DATA:
        lif_msg_handler  TYPE REF TO if_hrpa_message_handler,
        lo_msg_handler   TYPE REF TO cl_hrpa_message_list.
    * instantiate the message handler object
      CREATE OBJECT lo_msg_handler.
    * assign a reference to a rereference variable using the CAST operation
      lif_msg_handler ?= lo_msg_handler.
    * insert the infotype record into the employee master data
      PERFORM insert_infotype USING    is_pnnnn
                                       it_text_tab
                                       iv_no_auth_check
                                       iv_lock
                                       lif_msg_handler
                              CHANGING ev_ok.
    * pass back the message handler to the calling program if it was requested
      CHECK eif_message_handler IS REQUESTED.
      eif_message_handler = lif_msg_handler.
    ENDFUNCTION.
    For some reason I couldn't format the subroutine code here in SDN as it is scrambling the whole page but you could use the link here to find the [subroutine code|http://www.mediafire.com/file/9923qui7dm4xqpg/Form%20Insert_Infotype.html] and an [example code|http://www.mediafire.com/file/ihg83agkf0mbc9k/z_calling_program.html] for the program calling this FM including exception handling etc.
    Let me know if the links are not working...I'm happy to email them to you if you want.
    Hope this helps.
    Cheers,
    Sougata.

  • Need to upload employee photos against infotype 0002

    Hi,
    We have an urgent reqirement to load the photos of all the employees agianst the infotype 0002 which need to be accesed by the employees and managers via enterprise portal.
    Can anybody help me....
    Thanks in advance
    Krishna

    The steps provided you are very appropiate , but you can also check the following settings incase you dnt achieve your requirements.
    Q. How to attached the Photo in IT0002
    1.Create a number range for SAP Archive Link :
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain number ranges.
    Tcode OANR. Create range 01 from 0000000001 to 9999999999 without the external number flag.
    2.Document type HRICOLFOTO must exist with document class JPG.
    IMG>Basis Components>Basis Services>SAP Archive Link>System Settings>Maintain document types.
    Table TOAVE, Tcode OAC2.
    3.Document type HRICOLFOTO must be linked to object type PREL and IT0002.
    IMG>Personnel Management>Personnel Administration>Tools>Optical Archiving>Set up Optical Archiving in HR.
    View V_T585O, no Tcode. In all three columns there ara minuses, don’t put a flag in the check box.
    4.Check which content repository (Archive) is linked to document type HRICOLFOTO and object type PREL.
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain Links.
    Table TOAOM_C, Tcode OAC3
    5.Create this content repository with storage type FILE archive.
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain content repositories.
    Tcode OAC0
    Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C:\).
    6.Link photo to personnel number.
    Menu>Tools>Business Documents>Miscellaneous>Stored Documents. Tcode OAAD.
    Click on the Create button. Business object PREL and Docyment type HRICOLFOTO. Click on create (fill in the right personnel number in the pop up and click Continue). Choose the photo (as a JPG file) from the place where it is saved (e.g. hard disk). SAP will notify that the Stored Document was created succesfully. Photo is visible via PA10, PA20, PA30, PA40. Double-click to magnify photo.
    To delete archived document :
    Tcode OAAD, click Find. In docyment type field select HRICOLFOTO and after execute you get a list of all documents. Select appropriate document and click on delete icon.
    thnkx
    bhanu

Maybe you are looking for

  • Quicktime doesn't open

    My PC runs Windows Vista (32 bit). Quicktime does not open when I click on the program or when I try to play a movie I took on my iPhone 4. I uninstalled quicktime then reinstalled the latest version. Anyone have any ideas what's up?

  • Adobe Reader 9.0 not printing

    Cannot use Adobe Reader 9.1.3 to print.  Tried to uninstall to start over and then get message " This patch pakage cannot be opened.  Verify that patch exists........"  Not stupid but also not tech savy enough to know what to do.  Help and thank you.

  • How to fill an oracle CLOB with a XML document using Unicode UTF8

    Hi, I'm working with C# and oracle database v8.1.7 (release 3), and i'm having some problems to fill correctly an oracle CLOB parameter with XML document using UTF8 encoding. It works fine with "Encoding.Unicode" but not with "Encoding.UTF8". The pro

  • Exception thrown by OCIStmtFetch

    Hi. We've run into strange issue with OCIStmtFetch. It throws exception but i didn't find any information about what exceptions could be thrown by it in the documentation. By documentation this function only returns error codes but not exceptions. We

  • PowerShell - Get-MessageTrackingReport how to specify start and end time of current process

    could you please help me? I need to specify start and end time of current process with Get-MessageTrackingReport command. I know you can do it with Get-MessageTrackingLog: $start = (Get-Date).Addhours(-1) $end = (Get-Date) Get-MessageTrackingLog -Eve