FM HR_INFOTYPE_LOG_GET_DETAIL

Hi Expert,
I would like to use this FM to get the infotype value change befoer and after.
But I am not sure what value should use as the importing parameter.
For example, I would like to get the change detail of infotype 0008 on 09.02.2010
Relid_pcl4 = What value should i put here
TCLAS = A
Pernr_d = 45000004
INFTY = 0008
DATUM = 09.02.2010
UZEIT = is it optional?
SEQN4 = is it optional?
UNAME = is it optional?
Please help.
Best Regards,
Kelvin

Hi,
Please try this
DATA: t_change_list TYPE pldoc_key_tab,
w_change_item TYPE pldoc_key.
CALL FUNCTION 'HR_INFOTYPE_LOG_GET_LIST'
EXPORTING
TCLAS = 'A'
begda = p_aedtm
endda = p_aedtm
TABLES
infty_logg_key_tab = t_change_list
DATA: t_before TYPE prelp_tab,
t_after TYPE prelp_tab,
w_before TYPE prelp,
w_after TYPE prelp.
LOOP AT t_change_list INTO w_change_item.
CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'
EXPORTING
logged_infotype = w_change_item
TABLES
infty_tab_before = t_before
infty_tab_after = t_after.
ENDLOOP.
LOOP AT t_after INTO w_after.
CASE w_after-infty.
WHEN '0001'.
WHEN '0007'.
etc..........
ENDCASE.
ENDLOOP.
Hope it helps.
Regards
Hiren K.Chitalia

Similar Messages

  • HR_INFOTYPE_LOG_GET_DETAIL function module - fields misssing in log output

    Hi All,
    I am developing a report to caputure the changes done in any infotype.
    The problem I am facing is,
    in the the "FIELDS" internal table the pernr , begda, endda are not captured.
    Say for example there are 30 fields for infotype 0105, in the internal table only 13 fields are captured irrespective of changes done to the fields.
    Missing fields are,
    PERNR, INFTY, SUBTY,OBJPS,SPRPS, ENDDA, BEGDA, SEQNR, AEDTM, UNAME, HISTO.
    I have maintained the infotype in V_T585A,
               field group = 01 and field name = * in V_T585B,
                Doc.field grp = 01, Doc.Type = L and also tried with S and SupFldGr = 00 in V_T585C.
    Begda and Endda are very important for the report .
    Can any one suggest. Is there any setting problem.
    Edited by: Ambily R on Nov 20, 2010 11:09 AM

    Thanks,
    Could you please be more specific.
    Because RPUAUD00 gives detail of each and every infotype in separate manner.
    Like we have to click each record and then we will get the details of fileds.
    But user want a report where on execution of it they can see all the changes done to all infotypes in one screen rather than separately.
    I have succeeded in getting 95 % of the fields .
    But the begda and endda of all the infotypes are also mandatory which is not captured.
    Could you please suggest. Is there any way to get it.
    Edited by: Ambily R on Nov 20, 2010 11:28 AM

  • Need help with HR_INFOTYPE_LOG_GET_DETAIL, before/after tables

    Greetings experts:
    I've searched SDN for assistance with this question before posting but haven't been able to find anything to address my specific question which is, how do I "convert" the data that is in the before and after tables returned by this FM into the appropriate structure?
    I tried concatenating all of the data in DATA1-DATA7 into a string and then using ASSIGN to CAST it into a structure of type P0167 (the particular record I was looking at in PCL4 was a change to this infotype).  I noticed, however, in debug that the data just didn't look right, i.e., the DATA1 began with BAREA but there are many other fields ahead of this in P0167 so it's no wonder when this code executed I got garbage in my data object typed as P0167.
    Any advice would be appreciated!

    Hi Jamie
    Just check that 'FIELD' table is optional/mandatory.
    Also cross-check for 'type' of Exporting/tables parameters with the parameters that you are supplying
    Regards
    Ashish Jain

  • HR ABAP Report: Display employee details changes within a time period!!

    Dear Friends,
    I need urgent help with the below HR-ABAP report.
    Thanks in Advance!
    Joy
    I have to create a report which would display in ALV
    A table containing details of all changes to fields specified iby the user within the selected period
    Details :: ~
    When executing the report, the user will be given the opportunity to select which fields will be displayed in the output of the employee changes table. They will also be given the choice to display the previous value for each field and the date the change becomes effective.
    Please Help !!!

    First of all ensure that the fields that you need to audit have been configured.
    refer to the  documentation of report RPUAUD00.
    You will need to create a report that extracts data fromPCL4.
    If your audit data has been configure as Lond documents then look at using FM HR_INFOTYPE_LOG_GET_LIST  &
    HR_INFOTYPE_LOG_GET_DETAIL
    If not you will to extract the header info & then the BELEGE info - beware of the differnt operas inuse.
    J

  • How to push custom infotype details to Standard Log Report

    Hi Experts,
    i am using S_AHR_61016380 SAP Standard Report for Log Change Data in
    the report development. However, the standard report for logged changes
    does not capture the long term documents run for the custom infotype.
    it is only giving the logged changes for the standard SAP infotypes
    and it doesnot capture any details for the custom infotype.
    We are looking a possibility on how to push custom infotype details to S_AHR_61016380.
    Pls suggest in case you have any inputs for the same.
    Thanks & Regards,
    Kishore.

    Hello Amith,
    As u said i have created a Z program, and also i have used the following FMs.
    1. 'HR_INFOTYPE_LOG_GET_LIST'
    2. 'HR_INFOTYPE_LOG_GET_DETAIL'
    Using these FMs i am able to get log records from the standard infotypes but i am unable to fetch data from the custom infotype tables.
    Please give me any solution to read the log records from the custom infotype tables.
    Thanks,
    Kishore

  • Finding changes in HR infotypes by date.

    Hi All,
    I am required to develop a report giving * changes in HR infotypes by date.
    *I have made use of two Function Modules, HR_INFOTYPE_LOG_GET_LIST and
    HR_INFOTYPE_LOG_GET_DETAIL. I am able to correctly get the table giving
    output of first function module HR_INFOTYPE_LOG_GET_LIST. However, when I am
    passing each record of table retrieved as output of first function module to
    second function module, it is taking a lot of time to process and finally
    gives a dump at the SELECT SQL statement that is responsible for retrieving the data from PCL4 cluster.
    Regards,
    Ameet

    Hi,
    Thanks for the reply.
    Yes, thats true. My requirement is based on report RPUAUD00 infotype audit report.
    Based on this report and Functional Specification given to me, I am required to make use of two Function Modules mentioned earlier.
    I have written a code given below:-
    DATA: t_change_list TYPE pldoc_key_tab,
    w_change_item TYPE pldoc_key.
    CALL FUNCTION 'HR_INFOTYPE_LOG_GET_LIST'
    EXPORTING
    TCLAS = 'A'
    begda = p_aedtm
    endda = p_aedtm
    TABLES
    infty_logg_key_tab = t_change_list
    DATA: t_before TYPE prelp_tab,
    t_after TYPE prelp_tab,
    w_before TYPE prelp,
    w_after TYPE prelp.
    LOOP AT t_change_list INTO w_change_item.
    CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'
    EXPORTING
    logged_infotype = w_change_item
    TABLES
    infty_tab_before = t_before
    infty_tab_after = t_after.
    ENDLOOP.
    Now, when I loop at t_after into its corresponding workarea, just to know the records populated by means of following code.
    LOOP AT t_after INTO w_after.
    CASE w_after-infty.
    WHEN '0001'.
    WHEN '0007'.
    etc..........
    ENDCASE.
    ENDLOOP.
    It gives me dump when report is run, and the dump error screen locates this error at point select * from PCL4.....
    I hope that my problem is more clear to you now. Please help me out to understand what would be causing to give the dump.
    Also I want to ask in case I dont want to use standard PNP selection screen. Inspite of that I want to use the only three select options viz Changed By, Changed On and PERNR from the RPUAUD00 infotype audit report. How can I achieve this. Is there a way to do this.
    Regards,
    Ameet

  • Wage type amounts in cluster PCL4

    Hi all,
    I am trying to capture the wage type amount changes in infotype logging. enables infotype logging. Used function module 'HR_INFOTYPE_LOG_GET_LIST' and HR_INFOTYPE_LOG_GET_DETAIL to retrieve the change data.
    So far so fine. But the structuer returned by these function module contains the amount in some non readable format(this is the value for 4500 --  #E倀ఀ#ఠ ) . Can any one guide me as to how toretrieve the wage amount changes from cluster PCL4
    regards
    sam

    Ahmed,
    thanks for ur reply. I a passing the correct structure. Infact i have retrieved about 20 other fields. I am having problem only with the amount field. As u said my lasyt option woululd be to write maacros as done by the standard program. but was checking whether i can do away without writing a different peice of code altogether.
    I any one has retrieved amount fields from cluster using this FMs, please let me know how.
    Appreictae any suggestions.
    sam

  • Help with log function

    Hallow experts,
    I'm doing an  interface from sap into anther  application and in this interface (log interface) I use two  function  below in program and I have to send to customer in text file in which field of infotype change was made
    This to function helping me but I miss the action like insert was made or update or delete
    Did dome one can help me with that?
    HREIC_GET_LOGGED_INFTY_CHANGES
    HR_INFOTYPE_LOG_GET_DETAIL
    Best Regards

    hi Naveen Bathini
    thankes for your answer
    i thihk u dont understand me ,
    HR_INFOTYPE_LOG_GET_DETAIL bring table fields with all the field that change
    but i dont now if user create new infotype for employee or just take one field and change it like from infotype 0006 just change street or postal code
    i wont to now if it is an insert (create new infotype ) or update or delete fields from infotype.
    Best regards

  • Help with hr function

    hallow
    i have to a log for pa and in table fields i have the fields that have change
    lets say i have lot of employee and i wont to take one employee and check if hire
    (massn = a1 ) what is the best way to take employee and bring all the field yhat change for him?
    regards
    CALL FUNCTION 'HREIC_GET_LOGGED_INFTY_CHANGES'
    EXPORTING
    is_log_key = is_log_key
    IMPORTING
    et_infty_modif = et_infty_modif.
    SORT et_infty_modif BY pernr bdate btime infty.
    LOOP AT et_infty_modif INTO wa_et_infty_modif.
    CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'
    EXPORTING
    logged_infotype = wa_et_infty_modif
    auth_check = 'X'
    use_archive = ' '
    TABLES
    infty_tab_before = infty_tab_before
    infty_tab_after = infty_tab_after
    fields = fields.
    endloop.

    hi Suresh Datti
    i try it but here i have to buield a intrface to other system so i have to use this function
    regards

  • Read cluster PCL4 .. takes lot of time

    Hi guys,
      Though I Know this is a functional related forum, i would want to post  techincal question related HR ABAP.
    I have a report that needs to read data from PCL4 cluster and display master data changes for an employee. Developed a big program to simulate "RPUAUD00" that displays the logged data.
    My concenr is the program that i developed is taking minutes to execute. I am using the 2 function modules "HR_INFOTYPE_LOG_GET_LIST" and "HR_INFOTYPE_LOG_GET_DETAIL" for this purpose. 
    The function module "HR_INFOTYPE_LOG_GET_LIST" takes lot of time to get executed as it checks all the personnel number with hanges even if there was only one personnel number that was changed. Assuming that my personnel area and personnel sub area has 2000 employees, even if one employee's data is changed, the function module reads the cluster for all the employee and takes a few minutes to comeback, before the function module "HR_INFOTYPE_LOG_GET_DETAIL" is executed to  get the exact details changerd. This is irritating the client. Any idea how to reduce the time as i am severely short of ideas as how to.
    regards
    Sam

    Unless you pass the exact pernr, the function cannot determine without looking at all the pernrs for changes..If your program tied to PNP, you can improve the run time passing the pernr list to the function call HR_INFOTYPE_LOG_GET_LIST..
    ~Suresh

  • Standard SAP HR report to give output on change in fields values

    Hi
    Is there any starndard report in sap hr which will give output on changes on the infotype fileds for given two dates.

    Hi,
       Use FM HR_INFOTYPE_LOG_GET_DETAIL .
    Regards,
    Srini.

  • Logged changes in XML format

    Hi,
          I am trying to convert the logged changes into XML file.But the contents are not coming up correctly.Please help me in solving out this issue.
    I have coded is like this :
    CALL FUNCTION 'HR_INFOTYPE_LOG_GET_LIST'
    EXPORTING
       tclas                    = 'A'
       begda                    = sy-datum
       endda                    = sy-datum
       auth_check               = 'X'
      USE_ARCHIVE              = ' '
    IMPORTING
      SUBRC                    =
      TABLES
      PERNR_TAB                =
      INFTY_TAB                =
        infty_logg_key_tab       = test
      DATUM_TAB                =
      UNAME_TAB                =
    LOOP AT test INTO wa.
      CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'
        EXPORTING
          logged_infotype        = wa
         auth_check             = 'X'
      USE_ARCHIVE            = ' '
    IMPORTING
      SUBRC                  =
        TABLES
          infty_tab_before       = test1
          infty_tab_after        = test2
         fields                 = test3
      CHECK sy-subrc = 0.
      ENDLOOP.
    And i am appending  INFTY , PERNR from TEST1 table and FNAME ,NEWDT from TEST3 table into one new internal table called struct and converting that internal table contents into xml.
    For XML conversion*********************************
    CALL TRANSFORMATION ('ID')
    SOURCE tab = struct[]
    RESULT XML xml_out1.
    CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
      EXPORTING
        text            = xml_out1
    IMPORTING
      LENGTH          = lv_length
      TABLES
        ftext_tab       = itab1.
    CHECK sy-subrc = 0.
    After downloading i am getting the xml file like this :
    <?xml version="1.0" encoding="UTF-16"?>
    -<asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml">-<asx:values>-<TAB>-<item><INFTY>0002</INFTY><PERNR>00070297</PERNR><FNAME/><NEWDT/></item>-<item><INFTY/><PERNR>00000000</PERNR><FNAME>ITXEX</FNAME><NEWDT/></item>
    But i want in this way:
    <?xml version="1.0" encoding="UTF-8"?>
    -<NewDataSet> -<PA0002> <PERNR>8000</PERNR> <TITEL>DLEM 6</TITEL> <VORNA>Raj</VORNA> <NACHN>Halli</NACHN> <NAME2>RB</NAME2> <INITS/> <RUFNM/> <SPRSL/> <GESCH/> <GBDAT/> <GBORT/> <GBLND/> <NATI0/> <GBDEP/> <NATI2/> <NATI3/> <FAMST/> <FAMDT/> <ANZKD/> <KONFE/> <BEGDA/> <AEDTM/> </PA0002>
    Regards,
    Helma

    Hi Patlolla,
    Goto SPRO : Personnel Administration -> Tools -> Revision -> Set up change document.
    There, add IT 0021 as an infotype to be logged.
    Best Regards,
    Dilek

  • Logged Changes in Infotype Data (Report RPUAUD00)  DONT WORK!!

    This report is used to display all changes that were made using infotype change documents, but sometimes it doesnt works correctly. 
    For example, if I do hiring action, and execute report rpuaud00, I can see :
    00103266 A 0000   26.10.2007 08:59:56 0001 7RODRIGU
    00103266 A 0002   26.10.2007 09:00:19 0001 7RODRIGU
    00103266 A 0001   26.10.2007 09:00:41 0001 7RODRIGU
    00103266 A 0032   26.10.2007 09:00:47 0001 7RODRIGU
    00103266 A 0105   26.10.2007 09:00:54 0001 7RODRIGU
    00103266 A 0007   26.10.2007 09:01:02 0001 7RODRIGU
    after that, I modify infotype 0002 , but rpuaud00 shows :
    00103266 A 0000   26.10.2007 08:59:56 0001 7RODRIGU
    00103266 A 0002   26.10.2007 09:00:19 0001 7RODRIGU
    00103266 A 0001   26.10.2007 09:00:41 0001 7RODRIGU
    00103266 A 0032   26.10.2007 09:00:47 0001 7RODRIGU
    00103266 A 0105   26.10.2007 09:00:54 0001 7RODRIGU
    00103266 A 0007   26.10.2007 09:01:02 0001 7RODRIGU
    It is the same data. it doesnt work correctly....
    I try work with HR_INFOTYPE_LOG_GET_LIST and HR_INFOTYPE_LOG_GET_DETAIL, but i cant see all changes that I have done in every infoytypes. is this a SAP bug?
    How can I solve this problem?

    Hi Experts,
    As per Ketul reply, it is not possible to get the log changes before enabling the V_T585A/B/C.
    How can I convey the same to the client do I get any document on this for my reference.
    OR
    If any body can give me a detail Explanation on why the LOG is not generated before enabling the V_T585A/B/C.
    Thanks in Advance.
    Regards,
    Prasad

  • Infotype Auditing-Report RPUAUD00 need help urgently.

    Hi,
    I am developing an outbound interface which captures the specific changed data in infotypes 1,2,6,8 and download the same into an excel file on the local hard disk.
    I found the report RPUAUD00 matches with requirement. But did not understand the difference between long term and short term documents.
    My requirement is that I need to capture infotype changes for some specific set of infotype for specific group of employees and I need to capture it in following manner:-
    If the changes happen for an employee number 10 times on 10 different days, then i need to send all these 10 rows into an output file.
    Is the requirement related to short term or long term document?
    What configuration is required related to maintaining views V_T585A, V_T585B, V_T585C respectively.
    Thanks,
    Ameet

    You can test these FM out using SE37
    HR_INFOTYPE_LOG_GET_LIST --> gets the header information
    HR_INFOTYPE_LOG_GET_DETAIL  --> extract the details.
    Check to see if these are being used by sap in an existing report and see how they are being utilised.
    I can't use these where I am as our documents are configured as Short.
    Never be scared to have a go - this is how you learn and improve.
    You have to develop an mentality of I don't know how but it must be possible and go for it.
    J

  • Tracking infotype chnages

    plz reply
    Hello,
    I am coding  to get fileds of  infotpe changes .
    I can not use standard program RPUAUD00 for my requirement.
    for FM  HR_INFOTYPE_LOG_GET_DETAIL  it exports only itab & fields, but i need to fetch head-opera too, which i can not get from this FM.
    Also why  HEAD's aedtm field is showing zeros?
    How to get new field values and old field values by HEADER and BELEGE.
    Will appreciate your reply.
    Thanks.
    Edited by: rita pat on Mar 27, 2009 3:45 PM

    U'll get the changed fields in the TABLES : FIELDS
    CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'
      EXPORTING
        logged_infotype        = logged_infotype
      AUTH_CHECK             = 'X'
      USE_ARCHIVE            = ' '
    IMPORTING
      SUBRC                  = SUBRC
      TABLES
        infty_tab_before       = infty_tab_before
        infty_tab_after        = infty_tab_after
       FIELDS                 = FIELDS
    To know which operation was carried out ..
    If both infty_tab_before and infty_tab_after are filled then it is Update ..
    If only infty_tab_after is filled then it is Insert
    If only infty_tab_before is filled then it is delete .
    check include .. LPA_INFTY_LOGF02 for more details ..
        case header-opera.
        when 'U'.
          append after_image.
          append before_image.
        when 'I'.
          append after_image.
        when 'D'.
          append before_image.

Maybe you are looking for

  • Using Time Capsule to backup a small office network

    Hi all, I am hoping somebody may be able to tell me if this is a good plan or not. I have been really struggling to find a good network backup solution. I've been trying to make a Lacie Ethernet Disc Mini work but have finally given up on that one. I

  • Error when running ireport xml on apex using pL-JRxml2pdf

    Hi, I have created a report and it runs successfully on Jasper ireport but when I copied the xml to the apex in pL-JRxml2pdf and tried to preview it it gave me the error below: ORA-06502: PL/SQL: numeric or value error: dbms_sql.describe_columns over

  • Write file to directory

    Hi, all the while i am able to write file to different apps directories... just recently i asked Basis to create one more directory for which i am not able to write file... I tried to put the same file in older directory, which i am able to do. i tri

  • Strange issue with Notes For Approval field

    Hi All, Scenario one: While creating the shopping cart , in step3 screen there appers s a label Notes For Approval but the inputfield next to it was disabled and the creator can not enter any remarks in it. Login as approver , click on Approval link,

  • Pocket does not mark as read and move to next item

    When I click on the Read Something tab of Pocket on Firefox, it continues to display the same article over and over. It does not mark it as read and move on to the next item on my list.