How to retrive delta changes in Infotype

Dear All
I am working on development of New Interface program from SAP to 3rd party application and this will run on daily.
I want to retrive <b>delta changes</b> record alone in 10 infotype tables.
I checked the Tech.setting of these 10 infotype table and came to know that log data changes & Maintain as transparent table check box is selected.
But i couldn't find any record in the table: DBTABLOG
Is there is any other table where the delta change in the Infotype get saved.
The infotype am checking is IT0000,IT0001,IT0002..etc
Could any one help me to solve this issue...
Definitely I will reward for best answer
Regards
Babu

Hi Babu,
please use RPUAUD00 program.
you can do assign above program in your interface by using SUBMIT.
another way. you create one Z function module, here you do submit RPUAUD00 program.
Please find sample code as below.
RP_PROVIDE_FROM_LAST p0167 space pn-begda pn-endda.
IF p0167-aedtm GT wa_last_create_date.
l_search_text = '.Benefit Plan.'.
l_infotype = '0167'.
PERFORM check_for_change USING l_search_text l_infotype
CHANGING wa_changes.
IF wa_changes EQ c_checked.
RETURN.
ENDIF.
*& Form CHECK_FOR_CHANGE
text
FORM check_for_change USING p_search_text TYPE zdesc_15
p_infotype TYPE choic
CHANGING p_changes.
CALL FUNCTION 'ZHR_GET_INFOTYPE_FIELD_CHANGES'
EXPORTING
search_text = p_search_text
infotype = p_infotype
pernr = p0000-pernr
bypass_type_check = 'X'
IMPORTING
old_value = wa_old
new_value = wa_new
TABLES
date_range = s_datum
EXCEPTIONS
no_change_found = 1
OTHERS = 2.
IF sy-subrc EQ 0.
p_changes = c_checked.
ENDIF.
ENDFORM. " CHECK_FOR_CHANGE
I assigned RPUAUD00 program in Z function module.
Cheers,
Guru.

Similar Messages

  • How to load delta, changing the name of file for every day with open hub?

    Hi gurus,
    I load daily delta data from ODS to flat file, using open hub.
    The file is located on server. Now, if I do delta load from ODS to flat file, every day the file is overwritten, because it has the same name.
    I want to load delta data everyday to different file name, for example BW_20060101 , BW_20060102, BW_2006_01_03 ....
    How do I do that?
    Best regards,
    Uros

    Hi Uros,
    This thread may give you some idea
    Changing the file name n Flat file Extraction
    https://websmp107.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002201112003E
    Regards,
    BVC

  • How to use the change log in ODS to track Delta change?

    People say that historical data (like Delta change) in ODS can be tracked in the Change Log.  How to use the change log to track historic data?
    Thanks

    Kevin
    See if it helps
    Every ODS object is represented on the database by three transparent tables:
    Active data: A table containing the active data (A table)
    Activation queue: For saving ODS data records that are to be updated but that have not yet been activated. The data is deleted after the records have been activated.
    <b>Change log: Contains the change history for delta updating from the ODS Object into other data targets, such as ODS Objects or InfoCubes for example.</b>
    An exception is the transactional ODS object, which is only made up of the active data table.
    The tables containing active data are constructed according to the ODS object definition, meaning that key fields and data fields are specified when the ODS object is defined. Activation queue and change log are the same in the table’s structure. They have the request ID, package ID and the record number as a key.
    Data base structure changes
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/d53ec3efdc9b47a9502c3a4565320c/frameset.htm
    Hope this helps
    Thnaks
    Sat

  • How can we get changed records in delta in case of numeric pointer

    Deall All,
    Thanks to all of you gurus i have been able to Get delta update for my query.
    There is one last issue how can i include changes records in my delta update when i am using numeric pointer for data selection.
    or
    It can only be doen by time stamp.
    can you explain me details of using time stamp.
    Thanks & regards,
    Gaurav Sood

    Dear Gaurav,
    Here we have three options for delta updation:
    Time Stamp:   If we want to update change in the records with respect to the time interval then this option is selected.
    Calend. Day:   If we want to update change in the records with respect to day to day basis then this option is selected.
    Numeric Pointer:  If we want to update in case of record which is completely new with respect to Field name then we use this option.
    And we have got some settings like:
    Safety Interval upper limit:
    This field is used by Data Sources that determine their delta generically using a repetitively-increasing field in the extract structure.
    The field contains the discrepancy between the current maximum when the delta or delta init extraction took place and the data that has actually been read.
    Leaving the value blank increases the risk that the system could not extract records arising during extraction.
    Example: A time stamp is used to determine the delta. The time stamp that was last read is 12:00:00. The next delta extraction begins at 12:30:00. In this case, the selection interval is 12:00:00 to 12:30:00. At the end of extraction, the pointer is set to 12:30:00.
    A record - for example, a document- is created at 12:25 but not saved until 12:35. It is not contained in the extracted data but, because of its time stamp, is not extracted the next time either.
    For this reason, the safety margin between read and transferred data must always be larger than the maximum length of time that it takes to create a record for this DataSource (with a time stamp delta), or it must display an interval that is sufficiently large (for determining delta using a serial number).
    Safety Interval Lower Limit
    This field contains the value taken from the highest value of the previous delta extraction to determine the lowest value of the time stamp for the next delta extraction.
    For example: A time stamp is used to determine a delta. The extracted data is master data: The system only transfers after-images that overwrite the status in the BW. Therefore, a record can be extracted into the BW for such data without any problems.
    Taking this into account, the current time stamp can always be used as the upper limit when extracting: The lower limit of the next extraction is not seamlessly joined to the upper limit of the last extraction. Instead, its value is the same as this upper limit minus a safety margin. This safety margin needs to be big enough to contain all values in the extraction which already had a time stamp when the last extraction was carried out but which were not read. Not surprisingly, records can be transferred twice. However, for the reasons above, this is unavoidable.
    Data Source Is Real-Time Enabled
    The 'real time enabled' indicator determines whether a delta-enabled Data Source can be used as a supplier of data for a real-time daemon.
    And there are two options provided like
    1)     New Status for changed records:
    If you select this option each record to be loaded delivers the new status for the key figures          and characteristics. DataSources with this delta type can write to ODS objects or master data tables.
    2)     Additive Delta:
    The key figures for extracted data are added up in BW. Data Sources with this delta type can supply data to ODS objects and Info Cubes.
    Hope this helps u..
    Best Regards,
    VVenkat..

  • How to retrive the data from a sqlite file(.db3) in windows phone 8.1(runtime)

    hey guys
    i installed the sqlite and sqlite-net as requested in other answers i found, changed to x86, and add the .db3 file in my project.
    but the problem is how to retrive the data that already in the file( i am not creating any table or data in the app, just read)
    all the answer i found is to create a table first and then read the table, i tried to skip the step of creating a table, and read from the table directly, but failed with " no such table", by the way, i set the property of the .db3 file as "content",
    "copy if newer"
    can anyone please help? i appreciate that !

    Hello,
    From your description, you want to read data from available sqlite file. When you add the sqlite file into your project, you need to change the sqlite file build action to content. After deploying to device, the sqlite file is located in installation folder,
    you need to copy that file into storage folder before reading data. Please try the following code snippets.
    private async void Button_Click_9(object sender, RoutedEventArgs e)
    //check if file exists in storage folder, and then copy to local storage
    bool flag = await FileExistsAsync("Data.db3");
    if (!flag)
    var folder = await Package.Current.InstalledLocation.GetFileAsync("Data.db3");
    await folder.CopyAsync(Windows.Storage.ApplicationData.Current.LocalFolder);
    // open sqlite and read data
    public async Task<bool> FileExistsAsync(string fileName)
    try
    await Windows.Storage.ApplicationData.Current.LocalFolder.GetFileAsync(fileName);
    return true;
    catch (FileNotFoundException)
    return false;
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Error: while configuring logs for changes in infotype data

    Hi All,
    I am configuring the following Tables for maintain logs for changes in infotype data.
    V_T585A, V_T585B and V_T585C
    While configuring V_T585B, when i input * in 'field name' column it gives me an warning message " All data fields in **** infotype 31 will be deleted.
    Please let me know, what does this warning message means?
    Also, How is the report RPUAUD00 read?
    Regards
    Simran

    Hi Simran,
    you are not suppose to give the IT 0031-Reference Personnel Numbers in these tables. why because this will done at the time of Employee hiring only and we don't change this. if you change you will lost the old data in the IT.
    Normally we assign only the IT which we change frequently for the master data. example like 0 1 2 7 8 9 27 582 - 589 2001 2006.
    if you are configuring today means from today on-wards any changes had made to these IT's you can see in the report. before changes will not be seen. in the report you have to choose either long-term document / short-term document and remaining fields as per the requirement.
    Regards,
    Praneeth kumar

  • How to Add data in HR infotype 2011 through ABAP

    Hi All,
    Can any one please give me an idea about how to insert time record in Infotype 2011 through ABAP. I cannot use the front end recording (SHDB) as it locks the person's master data. I need to Add the record through ABAP Query. I have inserted record in Table TEven and it works fine but then there is a conflict of sequence number field and system does not allow to change the data in infotype 2011 and gives error message.
    Thanks

    Hi amit
           even i have same requirement i tried with the same code but i'm getting error No data stored for infotype 2011 in the period.
    code:
       CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
            EXPORTING
              number        = wa_modify-pernr
           IMPORTING
             RETURN        = return
          clear return.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty                  = p_infty
              number                 = wa_modify-pernr
    *         SUBTYPE                =
    *         OBJECTID               =
    *         LOCKINDICATOR          =
    *         VALIDITYEND            = wa_modify-ldate
    *         VALIDITYBEGIN          =
    *         RECORDNUMBER           =
              record                 = wa_modify
              operation              = 'MOD'
             TCLAS                   = 'A'
             DIALOG_MODE             = '0'
    *         NOCOMMIT               =
    *         VIEW_IDENTIFIER        =
    *         SECONDARY_RECORD       =
           IMPORTING
             RETURN                 = return
    *         KEY                    =
          CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
            EXPORTING
              number        = wa_modify-pernr
    *       IMPORTING
    *         RETURN        =

  • R/3 Delta changes in BW

    Hello Everyone,
    When we do an Init or Full data extraction from R/3 to BW for the first time for any extractor, the data gets loaded in BW. When we load delta changes from R/3 by doing a delta load into BW, how does BW know to extract only the changed R/3 records and not all records.
    How are R/3 changes tracked in BW? where is the previous request information stored in BW?
    Thanks in advance

    Hi,
    After initial full upload if there is any change in the records or any new records found then only the delta will work, if there is no new records then even u do the delta there is no updation..
    One morething in RSA7 of detail view u will get the previous posted records and next delta records..the old records will me maintained untill the old request is successful and a new request was reached in r\3 from BW.
    Regards-
    Siddhu

  • IDOC :: how to send data from Custom Infotype in SAP HR to third party

    Hi,
    I have created one custom Infotype by number 9020. How to send data from this infotype to third party system and also change pointers need to trigger for this infotype.
    Please help me in doing it.
    I am using one Custom Message type ZTALENT and Custom Idoc Type ZTALENT.
                                                                                    ZTALENT                        Talent Management                                                                               
    5  E1PLOGI                        Header for an HR Object (Master Data or Organizational Data)                                                                               
    5  E1PITYP                        HR: Transported Infotypes and Subtypes for an Object                                                                               
    ZPUSER                         User base Data File                                          
                    ZPERSON                        Personal Information File Segment                            
                    ZPOST                          Position File                                                
                    ZOPE                           Overall Performance                                          
                    ZPWORK                         Outside Work Experience                                      
                    ZPEDUC                         Education Details of Employee                                
                    E1P0000                        HR: HR Master Record Infotype 0000 (Actions)                 
                    E1P0001                        HR: HR Master Record Infotype 0001 (Org. Assignment)         
                    E1P0002                        HR: HR Master Record Infotype 0002 (Personal Data)           
                    E1P0016                        HR Master Record: Infotype 0016 (Contract Elements)          
                    E1P0022                        HR Master Record: Infotype 0022 (Education)                  
                    E1P0023                        HR Master Record: Infotype 0023 (Other/Previous Employers)   
                    E1P0041                        HR Master Record: Infotype 0041 (Date Specifications)        
                    E1P0105                        HR: HR Master Record Infotype 0105 (Communications)       
                   ZE1P9020
                    ZPLANG                         Language Details                                             
                    ZACTION                        Actions Changes            
    Regards,
    Krishna

    Hello Shankar,
             Technically TEMSE files are read by calling the following 3 function modules in sequence,
                  1) RSTS_OPEN_RLC or RP_TS_OPEN: open the temse object
                  2) RSTS_READ : read the object
                  3) RSTS_CLOSE: close the object
    Regards,
    Rajesh

  • How to set delta load in process chain

    hello all
    The scenario is i created process chain for transaction data and all the infopackages are in initial load now I want to do delta,how to set delta in process chain,bcoz only the new records should load?
    kindly anyone let me know.
    regards
    balaji

    Hi Balaji,
    In most projects thay dont have the "init" infopackages in the process chain. They have 2 infopackages for a load - One for init and the other for delta. Now that you have created the process chain what I suggested was to change the infopackage settings to delta load and change the description of the infopackage.
    The other option would be to create a new infopackages for delta and include them in the chain replacing the "init" ones.
    Bye
    Dinesh

  • How to Identify Delta Field in DS

    Hi Gurus,
      1. My understanding is if a field in datasource(DS) is
      set as Delta, whenever that field value changes in DS
      then the delta process will initialize. (please correct
      me if i am wrong) Do we need to replicate everytime
      the field value is changed so that the value is updated
      in the data target, if so is there a process to
      automate it...  
      2. Can someone tell me how to identify Delta Field in a
      DS for example in 0FI_AP_4. i tried to search for it in
      help.sap.com but all i could find is that 0FI_AP_4 is
      delta capable but couldn't find which field is set to
      delta...
    Thanks,
    SM

    Sri Mal,
       1. Yes, there should be one field enabled enabled for delta.
       2. no need to replicate every time when ever data changes. we need to replicate when DS changed. i mean not business data, if meta data changes we need to replicate the DS. let us assume you made one field for selection and one field as hide. then  you need to replicate this.
      3. OFI_AP_4 is standard DS. you can't enable delta for this one if SAP didn't provide that. we need to active data for this. in the SAP Documentation you can see whether it is delta capable or not.
    comming to 0FI_AP_4, IT IS DELTA CAPLABLE.
    Hope this helps.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • BUS1065 - SAP HCM - Employee changes in infotype 0000 + infotype 0001

    Dear all,
    I have a problem with the customizing in order to recognize the changes in infotype 0000 + infotype 0001 for employees.
    What do I want?
    If there is a new hire, a rehire, a retire or a company-left action, I want to start ONE workflow in order to dispatch the employee data to several satellite systems considering the new validity dates.
    What happens currently?
    I maintain a rehire action through transaction PA40 and the system raises several events so that the workflow start multiply, meaning raises event hired, rehired, companyleft, ...
    My customizing:
    TCode: SWETYPV
    BO BOR-Objekttyp     BUS1065     COMPANYLEFT     WS91000007     0
    BO BOR-Objekttyp     BUS1065     HIRED     WS91000007     0
    BO BOR-Objekttyp     BUS1065     POSITIONCHANGED     WS91000007     0
    BO BOR-Objekttyp     BUS1065     REHIRED     WS91000007     0
    BO BOR-Objekttyp     BUS1065     RETIRED     WS91000007     0
    TCode: SWEHR1
    P     Person     0000                                                                      BUS1065
    P     Person     0001                                                                      BUS1065
    TCode: SWEHR2
    P     Person     0000     Maßnahmen                                        APP          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0000     Maßnahmen                                        DEL          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0000     Maßnahmen                                        INS          0     BUS1065                                          HR_EVENT_RULES_PA0000
    P     Person     0000     Maßnahmen                                        INS          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0000     Maßnahmen                                        UPD          0     BUS1065                                          HR_EVENT_RULES_PA0000
    P     Person     0000     Maßnahmen                                        UPD          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0001     Organisatorische Zuordnun                                        APP          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0001     Organisatorische Zuordnun                                        DEL          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0001     Organisatorische Zuordnun                                        INS          0     BUS1065                                          HR_EVENT_RULES_PA0001
    P     Person     0001     Organisatorische Zuordnun                                        INS          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0001     Organisatorische Zuordnun                                        UPD          0     BUS1065                                          HR_EVENT_RULES_PA0001
    P     Person     0001     Organisatorische Zuordnun                                        UPD          100     BUS1065                                          CACS_LOG_HRINFTY
    TCode: SWEHR3 (For testing purpose only one entry)
    P     Person     0000                                                                      INS          1     BUS1065     HIRED
    Can anybody tell me how I can customize our system so that the system raises only event hired for a new employee hire and e.g. companyleft event for a termination action?
    Thx you all in advance for your support!!!
    In case you need more information, don't hesitate to contact me!
    Kind regards,
    André

    Hi
    TCode: SWETYPV
    BO BOR-Objekttyp BUS1065 COMPANYLEFT WS91000007 0
    BO BOR-Objekttyp BUS1065 HIRED WS91000007 0
    BO BOR-Objekttyp BUS1065 POSITIONCHANGED WS91000007 0
    BO BOR-Objekttyp BUS1065 REHIRED WS91000007 0
    BO BOR-Objekttyp BUS1065 RETIRED WS91000007 0
    Iam not sure about what you have done in the customizing but, the above settings represents that the same workflow is set as receiver for different events.
    Now As per my understanding what ever you have posted, I feel like you want to restrict the workflow intiiation only for some of the events. and for the remaining events you do not want to start the workflow.
       If this is the case then I would suggest that to over come any kind of issues, I suggest you take a copy of the workflow WS9100000070 and assign the new workflow template to each different event, in this way you can differentiate which workflow is acting as a receiver for the event.
    and accordingly you activate the Event Linkages in SWE2 txn too.
    Regards
    Pavan

  • 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

  • S_AHR_61016380 - Logged Changes in Infotype Data-Restrict Authorization

    Dear friends
    I am facing a problem in S_AHR_61016380 - Logged Changes in Infotype Data.
    I am working on two company codes, Company A and B.  The number range for Company A starts from 1 to 10,000 and number range for company B from 10,001 to 20,000.  When HR Administrator of Company A runs this report, he is able to see the changes made for Company B too.  How can I restrict this in authorization.
    Please help
    Regards
    Santhosh.S

    Dear Andy
    Thank you for the reply, its working fine now, but I am able to track the changes from now onwards only, I mean to say I performed the configurations just 2/3 days back , while executing the report, its showing the only those infotypes which are changed from last 2/3 days only.
    But I want to track all the changes since beginning of the infotype creation. Any way to track the entire history of the infotypes
    Regards
    Kiran

  • How to retrive the deleted data in Z table

    Hi Gyes,
    How to retrive the deleted data in Z table.
    Thanks & Regards,
    Suresh

    Hello Suresh
    If you have not activated the technical setting "Log data changes" in the definition of your z-table (which is unlikely) then there will be no change documents available.
    If you have downloaded your z-table entries sometimes you could use these data for recovery.
    Otherwise your last change is to ask your <b>basis team</b> when the last backup has been made.
    Regards
      Uwe

Maybe you are looking for

  • Navigational attribute issue-time dependent

    Hi all, I am working with 0PA_C01, I included some additional navigational attribute(time dependent )to 0employee, but when i am checking all these navigational attribute at cube level or Report  , i can find only the latest values ,for eg i added  D

  • I like the quick collapse function on open windows by double clicking on upper bar. Can I do that in Yosemite?

    In previous Mac OS I was able to set it up where if I had an open window and I wanted it to collapse or shrink from view for a moment I would just double click on the top bar of the window and it would collapse to the bottom doc.  It was quick and ea

  • Document Header Field Control

    Dear Forum Members, I wanted to clarify that what controls the document header field status (other than document type to controll documnet date, posting date, company code, ledger group, doc type, exchange currency, transalation date to make suppress

  • Create Content in Portal SneakPreview installation

    Hello, I have got a huge starting problem! I have just started with SAP and my first aim is to try out the Enterprise Portal. For this purpose I have installed the SAP NetWeaver Sneak Preview including the SAP Web Application Server, the SAP NetWeave

  • How to insert varchar type value to date type value

    Hai All There are two table T1,T2 T1 has these fields code varchar,time varchar, date date T2 has these fields intime date, outtime date intrin date ,introut date I have tried to move time to intime Ie from T1 to T2 update T2 set intime= to_date((r1.