Detect change in Infotype records

Hi All,
Is there any FM or std program through which we can detect any change(modification/deletion/delimit) in Infotype records. If not then please suggest how it can be achieved.
Any pointers in this regard would be helpful.
Thanks,
Saher

Hi Saher,
       Use FM : HR_INFOTYPE_LOG_GET_DETAIL
Regards,
Srini.

Similar Messages

  • Difference between changes in OM/PA infotype records

    Hi people,
    can you pls help me with one topic.
    Is there any way to diference changes infotype records between changes done by program upload (lsmw or custom programs) and manually via pa30/pa40.
    Can it be stored somewhere in the infotype structure that records are done by mass uploading.
    Thanks for ideas.
    Best regards,
    Romano

    Hello Romano,
    As mentioned in the earlier posts that all entries have a UNAME attached to it in the Infotypes which tell us the owner who marked/initiated the change.
    There are options to achieve the type of design which you want. Lets say we maintain a Custom Table which would store the UNAME , T-CODE and DATE fields.
    In the PA User Exits we develop the copy that in each PAI action update the Custom Table. It should solve your case.
    It is not a very staright forward solution , but it would serve your cause.
    Thanks & Regards,
    Rohit Sharma

  • Report to track changes to infotypes prior to running the  payroll interfac

    wants a report to track changes to infotypes prior to running the  payroll interface.  The attached report looks like it should work but it returns nothing.  Is there config that turns on "Track Changes": for select infotypes?  If so, can they be activated for key infotypes so this report will run?
    Name, Address, position, etc.
    Not attendance and absence ITs.

    Hi,
    IMG – Personnel Management – Personnel Admin – Tools – Revision – Set up change document:
    This node has three items:
    Infotypes to be logged
    Field Group Definitions
    Field Group Characteristics
    Using these three options you define which infotypes you wish to log, then which fields, then you define which groups of fields are to be saved. Click each link, or see the sections below:
    Infotypes to be logged
    Here you define which PA infotype numbers you require logging. Select New Entries and enter a transaction class (A for Pers Admin, B for recruitment), then enter the infotype number and save.
    Field Group Definition
    When changes are made to a logged infotype, the field contents before and after are recorded. This is the very reason for logging the infotype, but there is an overhead in performance and disk space used so it needs to be given consideration. Typically you will want to record fields that are pay relevant.
    Using the field group definition, you specify which fields you wish to record changes in. When any of the fields in the group are changed, all the fields in the group are saved. You can use an asterisk to log all the fields of the infotype but this is not recommended for space and performance, also there are many fields on an infotype that you will not be using, that will be saved also. Ideally you will pick individual fields of the infotype and enter them like so:
    The field group number is a freely defined number you allocate to the group, it will be used in the next step. For normal use, simply pick any number not already used in that infotype. All fields with the same field group number are recorded in the log, even if they have not changed.
    Click New Entries and enter the infotype number, field group number and field names that you wish to record.
    Field Group Characteristics
    When you have set up the field group numbers, use the field group characteristics to activate the logging of those fields. You can also specify a supplementary field group; this means that the contents of another field group can also be saved at the same time, even though the contents have not changed. In practise it is not used much. Simply select new entries, enter the transaction class, infotype, and in the DocFieldGr enter the number you assigned to the field names that you want to store, then enter L for Long Term Documents (short are not supported)
    The Audit Report
    To access the report showing the logged infotype changes, use the HR report tree available from various menu paths, including:
    Main Menu – Human Resources – Pers Management – Administration – Info System – Reports - Documents – Infotype change – logged changes in infotype data. (RPUAUD00).
    When you run the report, select the infotypes you require, and select and execute.
    Cheers
    Prasanth

  • Creating / Updating Custom Infotype Records

    Hello everbody,
    We implement alot of custom HR infotypes in our system, both PA &  HRP.
    For the past several we have been using BDC (Batch-Input) recorded functions in order to update / create the records in our infotypes.
    We're currently facing an upcoming ECC upgrade , and I would like to lead a change that will eventually lead to us using generic SAP supplied functions.
    I've researched a few functions that might do the trick:
    RH_INSERT_INFTY:
    This one is giving me an SY-SUBRC 2 error code - Insert error, I tried to select a current record and insert it as different objid but this doesnt work.
    HR_INFOTYPE_OPERATION:
    I've read of several people that recommended using this function, but it is not released by SAP and I couldnt get it to work as well.
    BAPI_HRMASTER_SAVE_REPL_MULT:
    This one seems to work for sap infotypes but I dont think it suits custom infotypes.
    What is the "official" way of doing such operations?
    thanks in advance,
    Eli.

    Hello Dilak,
    Im currently trying to insert a new infotype record of infotype HRP9226.
    First I call function RH_GET_NEXT_NUMBER to get an objid.
    then I fill an HRP9226 line.
    after this i call the function:
    call function 'RH_INSERT_INFTY'
    exporting
    FCODE = 'INSE'
    vtask = 'S'
    ORDER_FLG = 'X'
    COMMIT_FLG = 'X'
    AUTHY = ' '
    PPPAR_IMP =
    OLD_TABNR = ' '
    REPID = ' '
    FORM = ' '
    KEEP_LUPD =
    WORKF_ACTV = 'X'
    tables
    innnn = hrp9226_line
    ILFCODE =
    EXCEPTIONS
    NO_AUTHORIZATION = 1
    ERROR_DURING_INSERT = 2
    REPID_FORM_INITIAL = 3
    CORR_EXIT = 4
    BEGDA_GREATER_ENDDA = 5
    OTHERS = 6
    I'm getting an "Error_During_Insert" and Im out of options regarding what I can possibly do.

  • Table for the report RPUAUD00  Logged Changes in Infotype data

    Hi
    I have a query with the program RPUAUD00 Logged changes in Infotype Data.  In which table stores the details of the program RPUAUD00.  for example in the 1st period there is a LWP record for the employee.  If in the 2nd period the LWP entered in 1st period has deleted, in the log the LWP displays for 1st period  new field contents, Action Indicator I.  The deleted information displayes in Old field contents with the Action Indicator D. We want to know in which table the LWP insert and LWP delete (d) details are stored.
    This information required to create a report for ESI.  In the report No of days (payroll processed for) has to mention.  To know the no of days need to access the report RPUAUD00.  From the RPUAUD00 the details of LWP insert and delete can be known.
    Request to help in solving the issue
    Thanks & Regards
    EKP Yadav

    Hello:
    Logged changes in Infotype Data are stored in cluster table PCL4 ID  LA and SA for employee and LB and SB for applicant. Maybe L is for longterm and S for shorterm
    Cheers.
    Antoine

  • Performance issue while updating the  custom  infotype records

    Hi All
    i have the info type with 80,000 records my requirement is to change the infotype wage type value to the  certain hard coded values .
    after populating the final internal table , in loop i am passing the records and updating the info type by using the hr_infotype_operation function module
    i have done the coding like bellow .
    loop at lt_infotype assigning     < x>
    at new pernr.
    bapi_employee_enquee
    endat.
    hr_infotype_operation
    at end of pernr .
    bapi_employee_dequee.
    endat.
    end loop.
    but it is taking nearly 15 hours to update all the records .please suggest me better solution for reducing the execution time .
    Thanks & Regards ,
    pramodh.m

    The delay problem can be solved with HR_INFOTYPE_OPERATION by using it with another FM i.e. HR_PSBUFFER_INITIALIZE the delay happens because of buffer problem. Use HR_PSBUFFER_INITIALIZE inside the loop just before you call HR_INFOTYPE_OPERATION and you wont see that much delay.

  • FM for delimit the infotype record

    Hi
    I'm new to HR-ABAP.I need to develop function modules to delimit the some infotype records (eg: 0167,0168,0014,2006 etc)
    Presently i developed the function module that has following source code.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number        = empno
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
         tclas                 = 'A'
          pernr                 = empno
          infty                 = '0167'
          begda                 = delimitdate
          endda                 = delimitdate
      BYPASS_BUFFER         = ' '
      LEGACY_MODE           = ' '
    IMPORTING
      SUBRC                 =
        TABLES
          infty_tab             = itab "itab is of the structure p0167
    enddate = itab-endda.
    MOVE delimitdate TO itab-endda.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty                  = '0167'
          number                 = empno
          subtype                = itab-subty
          objectid               = itab-objps
          lockindicator          = itab-sprps
          validityend            = enddate
          validitybegin          = itab-begda
          recordnumber           = itab-seqnr
          record                 = itab
          operation              = 'LIS9'
          tclas                  = 'A'
          dialog_mode            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
       IMPORTING
         return                 = return
      KEY                    =
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number        = empno
    when i use 'MOD' operation in FM 'HR_INFOTYPE_OPERATION' that FM runs perfectly.it changes the enddate to delimit date in the table PA0167.
    But, when i use 'LIS9' (delimiting) operation FM is throwing following error message
    "E PG  428 A complex application error has occurred".
    I need help regarding this error statement.can i use 'MOD' operation to delimit the records (time constraint of most of the infotype record to be delimited is 2).In which case we use 'LIS9'??
    Also any SAP function modules for delimiting IT2006 infotypes????
    Pls suggest.
    Thank u,
    shrinivas
    Message was edited by: Shrinivas

    For 167 & 168 have you looked at HR_BEN_TERMINATE_HEALTH_PLAN & HR_BEN_TERMINATE_INSURE_PLAN?
    The error message you got is actually mapped to (00)344 ie "No batch input data for screen & &"
    For the delimit operation, you probably,need to pass the delimit date separately..
    I have a feeling this function call cannot be used for the delimit operation le 'LIS9'.AS the delimit date is usually entered on a pop-up box when you do it via PA30.
    ~Suresh

  • Report for logged changes in infotype data

    Hi
    Can anybdy suggest me the steps for configuring  logged changes in inotype data.
    My client wants a report to view the changes in any infotype record, specially in 0008 and absences.
    Reagrds
    Waseem

    Hi
    I already config these table but it is not refelecting
    In table V_T585A
    maintain Transaction Class is A and maintained IT
    in table V_T585B
    Maintained field group 01
                     Field Name is * (for all)
    In tabel V_T585C
    Maintained Doc Field Gr. 01
                     Doc Type is S
                     SupFldGr. is blank
    After this run report RPUAUD00
    and TC S_AHR_61016360
    But nothing to display.
    Please Help me.
    Regards
    Waseem

  • Reporting changes to Infotype 2001 data

    Can anyone advise me how write a program to report Additions, Amendments and Deletions of Infotype 2001?  I know this must be held somewhere because the report Logged Changes in Infotype Data (S_AHR_61016380) shows this but I can't see where this data is held or how to report it. 
    I'm fairly new to ABAP so the more help (& code?) you can give me the better.
    Thanks in advance, Gill

    Thanks for the replies.
    Rich - When we delete a record in 2001 the corresponding record in PA2001 is also deleted. 
    We need to be able to see any deletions (& amendments & additions).  Is there a way to see this
    in PA2001 - perhaps there's some config we need to do? 
    Suresh - I hadn't thought of using the output of the RPUAUD00 report but you're right - we could
    use this - I just hoped we could get the data in a more easily useable format.  e.g. if we could
    get it directly from a table as Rich suggests that would be easier than reformatting the output of
    RPUAUD00.  Do you know how we could access the tables behind RPUAUD00 directly?
    All the best, Gill

  • Infotype records not saving when action is performed.

    Hello all-
    We have an action named: personnel information changes which is having Infotype 0002, 0006, 0105 to show up one after the other.
    When we perform the action and click on save, its saving the data and moving to next infotype, but after the action is completed, the infotype records in PA20 or the table pa0002, pa0006 etc does not contain any data.
    Please advice!
    The employee is having a reference personnel number.
    Thanks,
    Chakri.

    Hi Chakri,
    Go to SPRO> Personnel Management>Personnel Administration--> Customizing Procedure -->Actions --> Define Infogroups and then click the Infogroup.
    Give your action number "same used for Personnel Information Changes"
    Check the following items,
    1. check the Reference User Group... is it similar to your required one?
    2. Check the "operation" column....it should be COP, INS or MOD.
    Please check it ...hopefully it will work...Award points if you think so....
    Regards
    Rao

  • Changes in infotype action

    HI,
    I want to terminate a particular employee from a position. Can anyone tell me what all are the steps required. I made changes in the infotype action. But position no is not reflecting. only default no is  reflecting.
    Regards
    Darsana

    Hi,
    These are all the brief setup, you need to set the following:
    1.Configure the Personal Action Termination in IMG for your UGR.
    2. Configure the set of infotypes need to call during this action and with action LIS9, that is to delimit the Infotype record. Don't delimit the master record especially 0008.
    3. Then in Action, set the required settings like default the Employments status as 0, withdrawn, MSN action.
    4. Then go for, Easy Access, PA40, select the employee and perform the action Termination, select the appropiate Reason and execute the action.
    I hope, you will understand the process.
    Good Luck.
    Om.

  • Changes in Infotype 0001

    Hi,
    Is it recommended to make all changes in Infotype 0001 like PSA, Administrators through action like "Organization Reassignment" or should be changed through PA30.
    What is a recommended practice especially when there is a need to change the admin?
    Regards
    Yashika

    Hi Yashika,
    When you open IT 01 in PA30 in change mode, some fields will be grayed out, these fields can not be changed without any personal actions.
    But the fields which are open for change, there we need to decide whether the employee was any time in that PSA or Administrator job.
    If he was there for some period of time then we need to create a new record in IT 01 by copying the old record and changing the specific field. If the data was maintained wrongly then we can simple change the existsing record.
    Br/Manas

  • Modifying SPRPS field in an infotype record

    Hi experts,
    I have a requirement in which i need to modify the lock indicator value of an existing 2001 infotype record. That is, initially when a record is created, i need to update the lock inidicator field as 'X'. Then after few approvals, i need to read the same recoed from infotype 2001 and need to modify the lock indicator with blank. Can the same requirement be achieved using HR_INFOTYPE_OPERATION ?
    Is it possible to modify the SPRPS field with the value blank ' ' using HR_INFOTYPE_OPERATION'?
    Regards,
    Shanthi

    Yes it is. All you need is to provide correct key fields of the record vis this FM exporting parameters and for record parameter pass structure for the record with all the target data (new data for the record).
    So basically the structure will hold all the information as it is right now + field SPRPS with changed value. To ensure you provide correct data, you can first read appropriate record entry with HR_READ_INFTY -> get required entry from result list -> then change only field SPRPS and pass it back to HR_INFOTYPE_OPERATION on input.
    Please refer http://www.sapdev.co.uk/fmodules/fms_HR_INFOTYPE_OPERATION.htm.
    Regards
    Marcin

  • Problem in creating 0027 infotype record in background

    Hi Experts,
    I am facing the problem in creating 27(Costs distribution) infotype record in back ground.
    Whenever there is a change in position of the employee or when we hire a new employee (Through PA40)
    i have to ctreate 0027 infotype record in background.For that i am using IN_UPDATE method of BADI
    HRPAD00INFTY.
    Here i am getting 2 problems.
    1. I am unable to get the latest positions that is assigned to the employee.
       Through NEW_IM AGE structure we can get the latest position but if a person is assigned to multiple   positions for the same period then i am getting only one position from NEW_IM AGE but not all.can any body help me?
    2. I am calling HR_INFOTYPE_OPERATION FM to create the IT0027 record in background in the above method (IN_UPDATE). but it is not updating the PA0027 table. any idea?
    Full points will be rewarded.
    Regards,
    Sai.

    I am sending a sample program , which is on infotype 0105 (communication). I hope that this program will help u out............
    REPORT ZSAPHR_SAMP.
    tables: pa0105.
    infotypes: 0105.
    DATA : I_RETURN TYPE BAPIRETURN1,
    I_KEY TYPE BAPIPAKEY,
    PERNR TYPE P0001-PERNR,
    I_P0105 TYPE TABLE OF P0105 WITH HEADER LINE,
    ENDDA TYPE P0105-ENDDA,
    BEGDA TYPE P0105-BEGDA.
    MOVE '00000010' TO PERNR.
    BEGDA = SY-DATUM + 1.
    ENDDA = SY-DATUM + 1.
    i_p0105-pernr = PERNR.
    i_p0105-infty = '0105'.
    i_p0105-subty = '0002'.
    i_p0105-endda = ENDDA.
    i_p0105-begda = BEGDA.
    I_P0105-USRTY = '0002'.
    I_P0105-USRID = '[email protected]'.
    APPEND i_p0105.
    CALL FUNCTION 'DEQUEUE_ALL' .
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = PERNR.
    IF SY-SUBRC = 0.
    WRITE 'Employee Locked Successfully'.
    ENDIF.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0105'
    NUMBER = PERNR
    SUBTYPE = '0002'
    VALIDITYEND = BEGDA
    VALIDITYBEGIN = ENDDA
    RECORD = i_p0105
    OPERATION = 'INS'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT = 'X'
    IMPORTING
    RETURN = I_RETURN
    KEY = I_KEY.
    IF SY-SUBRC = 0.
    WRITE : 'FM returns sy-subrc 0'.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING

  • CREATE/UPDATE Infotype Records

    Hi,
    Am using the following code to insert records into InfoType PA0001 ,its not creating a new record and giving this Dump ....Any suggestion or Examples on this Please ...
    Dump :
    The source field is too short.                                                             
    In the running program "SAPLHRMM" a field should have been assigned to a field             
    symbol, which is shorter than the type of the field symbol.                                
    This is not possible.                                                                      
    It is a statement of the form ASSIGN f TO <fs> CASTING...                                  
    or ASSIGN f TO <fs> with a field symbol that was created with the                          
    STRUCTURE addition.                                                                        
    *******************my code *************************
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(EMPNO) TYPE  PERSNO
      DATA: RETURN LIKE BAPIRETURN1.
      DATA: P0001 TYPE P0001.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          NUMBER = EMPNO
        IMPORTING
          RETURN = RETURN.
      IF NOT RETURN IS INITIAL.
        WRITE: / EMPNO, 'Enqueue failed'.
        EXIT.
      ENDIF.
      DATA: WA_PA0001 TYPE PA0001.
      SELECT SINGLE * FROM PA0001 INTO WA_PA0001
            WHERE PERNR = EMPNO
            AND   ENDDA = '99991231'.
    WA_PA0001-ENDDA = '20090422'.
    *CHANGE THE EXISTING RECORD FROM PA0001.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '0001'
        NUMBER                 = EMPNO
       SUBTYPE                = WA_PA0001-SUBTY
      OBJECTID               =
      LOCKINDICATOR          =
        VALIDITYEND            = WA_PA0001-ENDDA
        VALIDITYBEGIN          = WA_PA0001-BEGDA
        RECORDNUMBER           = '01'
        RECORD                 = WA_PA0001
        OPERATION              = 'INS'
      TCLAS                  = 'A'
        DIALOG_MODE            = '0'
        NOCOMMIT               = '1'
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
       RETURN                 = RETURN
      KEY                    =
    IF return-id NE space.
        WRITE: /   EMPNO,
                20 'Create was unsuccessful',
                    return-id,
                    return-message+0(40).
      ELSE.
        WRITE: /   EMPNO,
                20 'Create was successful',
                    return-id,
                    return-message+0(40).
      ENDIF.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
      EXPORTING
        NUMBER        =  EMPNO
    IMPORTING
       RETURN         = RETURN
    Thanks,
    Kumar

    Hi,
    Correct this
    Operation should be 'MOD'
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0001'
    NUMBER = EMPNO
    SUBTYPE = WA_PA0001-SUBTY
    OBJECTID =
    LOCKINDICATOR =
    VALIDITYEND = WA_PA0001-ENDDA
    VALIDITYBEGIN = WA_PA0001-BEGDA
    RECORDNUMBER = '01'
    RECORD = WA_PA0001
    OPERATION = 'MOD'              "Correct this
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT = '1'
    VIEW_IDENTIFIER =
    SECONDARY_RECORD =
    IMPORTING
    RETURN = RETURN
    KEY =
    Regards
    Krishna
    Edited by: Krishna Gowrneni on Apr 22, 2009 6:21 PM
    Edited by: Krishna Gowrneni on Apr 22, 2009 6:22 PM

Maybe you are looking for

  • Dynamic Documents in ABAP

    Hi, I have a doult about Dynamic Documents. It seems very good and better than normal reports, and it's not very hard to implement. My doult is, whether it's so good, why it's not very very used? does it have some big problem ou limitations? Thanks,

  • Editable and Non editable portion in JTextArea

    hi all i have following problem: in my application i m using JTextArea and JButton when button is clicked some text is added as follows with append method textarea.append("darshan"); textarea.append("\n\n"); textarea.append("gajjar"); now i want the

  • Don't have Window Library menu option. [was: Getting Adobe Shape into Photoshop cc photography bundle

    The Shape tutorial says to open a new document in PS, go to Window tab and select Library.  My Window tab doesn't display Library as an option.  Help!

  • 10.0.2 Failed to install

       Not sure what to do - anyone else having this issue?  It's not telling me what went wrong.

  • MySQL + apache2 + PHP Database connection error

    Hi Folks: I am trying to connect to the database and keep getting a 500 internal server error. here is the setup Database server -- mysql 4.1 (linux) on a gentoo linux server -- IP 192.168.0.10 -- srvdb-01 Webserver - Apache2 + PHP 5 on Gentoo Linux