How to catch Delta Initialization and Delta Update in a Function Module

Hi Experts:
I'm developing a FM to extract data from R3. I wonder if anybody knows how to catch when i'm making a delta initialization and a delta update in my FM, because i have different parameters and routines from each one.
Thanks in advanced.
Points for helpfull answers.

Hi,
Keep one dummy date field in the structure. Make this dummy date field as delta enabled field. When you do Init load this date field value will be blank and next time when you do load it will have the last upload (in this case init load) date. You have to write a code before open cursor as below:
      LOOP AT s_s_if-t_select INTO l_s_select.
                              WHERE fieldnm = '(dummy date field name)'.
         l_date = l_s_select-low.
      ENDLOOP.
l_date will have the last upload date. This you can use to select the delta records from the table or for the further processing.
If you want to check the value during Init or delta load, go to RSA3 and debug it(Don't use F - Full load. Use I or D in the update field).
Hope this helps.
PB

Similar Messages

  • To get evt_creation_date and _evt_creation_time data in a function module

    Hi gurus,
    How do we get evtcreation_date and evtcreation_time data into check function module or implementation of object type? I am using cdhdr and cdpos and able to write my own logic.
    Thanks in advance!!!
    Xevi G.

    I think check FM's contain these value in any paramters.
    Otherwise check CDHDR/CDPOS with appropriate OBJECT number etc.
    This question can more appropriately answered in WORKFLOW forum.
    Try [this|http://www.*******************/2007/09/work-flow-2.html] link also.

  • Delta Initialization vs Delta Update

    We're having some issues with performance when loading our GL cube.  What I would like to do is perform many delta initializations, each delta inititialization containing one month/period.
    My confusion is in the fact that the last time I attempted this, when I subsequently went to run my delta UPDATE the same selection criteria was automatically inserted into my delta update.
    So for example my INIT may look like this;
    REQUEST1: Selection = 001.2005
    REQUEST2: Selection = 002.2005
    etc........etc...
    REQUEST12: Selection = 012.2005
    Next the UPDATE info package seems to inherit the same criteria... doesn't this mean it will not update anything beyond that criteria??
    I'm just wondering if it is possible to do an incremental initialization and still be able to enable delta updates for future periods?
    Thanks!

    Hi Patrick,
    The delta update will load the data as per the selections made in the Init run. A delta requested after several initializations, contains the sum of all the successful initial selections as a selection condition. This selection condition can then no longer be changed for the delta.
    Take a look here for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a65dce07211d2acb80000e829fbfe/content.htm
    Hope this helps...

  • ODS to ODS initialization and delta

    Hi All BW Gurus,
    We have recently started our BW implementation for COPA module and after successfully loading all the historical data, started running into issues with delta loads. Here is the scenario. R/3 --> PSA --> ODS1 --> ODS2/Cubes. Even though ODS1 and ODS2 are exactly the same, the reason for having ODS2 was to restrict drill down reporting to transaction level detail only for the last 6 months of data. The other advantage (I think) was to do a direct update instead of going through all the logic in the start routine again.
    R/3 --> PSA --> ODS1 has been succesful so far with the full loads, initialization and delta updates. Full loads from ODS1 to ODS2 and Cubes have been successful too. Once we triggered initialization without data transfer from ODS1, it errors out with a message that ODS2 already has a full update and hence we cannot trigger an initialization. Researching OSS notes, found a note (689964) for the same issue but the solution was to change all full request loads to repair requests and then trigger the initialization. At the same time they mention that we could end up with other issues with this procedure where we might have duplicate records or even loose data if we ever have to run initialization again.
    Any one face this issue? Solutions or work arounds?
    Thank You.
    Shri

    Hi Sreedhar,
    It would have been simplar to have followed the OSS 689964 by changing the full loads to repair requests. I ve done it in our production boxes and have not faced any issues yet. If an administrator takes good care of his dataloads then why would a question of duplicate records come in to picture.
    But since data has been deleted from ODS2 already, you could follow the step1 and step2 as mentioned, it would work. If you see the Selection Criteria completely greyed out, then please right click on the Infopackage and choose the CHANGE option, this will enable the selection criteria for that Infopackage.
    But if you ask my suggestion I would advice you to load the ODS2 using Full Loads from ODS1 and then use the OSS to change full to Repair Full, then run an Init Without Data transfer.
    Hope this helps.
    Thanks and Regards,
    Praveen Mathew

  • How to do delta detection and delta creation

    Hi
    i am new to OWB , please help me in
    how to do delta detection and delta creation using OWB
    Thanks

    Hi Bassem,
    for delta detection in your data source there are three possibilities:
    1. the source data has some identifier when it has been modified and deleted data is marked an not physically deleted
    In this case you just filter the data that has been changed in your owb mappings.
    2. you use some change data capture technologies
    You have to install this manually when using owb 11.1 or older versions (google for oracle and cdc). owb 11R2 brings built in support for change data capture.
    3. you get all the data and identify the delta manually
    In the owb mapping you left outer join the data from your source with the existing data in your target and filter for the data that is new or has been modified. In a second step you identify the deleted data by selecting the data in your target minus the data from your source.
    Which approach is the best depends on your specific system architecture.
    Regards,
    Carsten.

  • How to thinApp Adobe Cloud and run updates....

    I'm needing guidance/direction on How to thinApp Adobe Cloud and run updates on clients end. Running vSphere 5.5. Thanks.

    Cordova1126 Adobe Creative Cloud applications are not supported or designed to operating in virtual environments.  Please see Technical support boundaries for virtualized or server-based environments.
    You can find the system requirements to run the Adobe Creative Cloud applications at System requirements | Creative Cloud.

  • How to Call a standard screen with in a custom function module

    Hi Guru,
    I am copying a standard function module SWU_WF_TASK_DISPATCH in to Z function module in that they where calling a standard screen.
    Some one help me how to copy or call this standard sceen within the function module.
    Regards
    Paul

    Hi,
               for that you have to create screen from SE51 same number in standard and program name should be the name of Z function group's main program and declare all varriable in function group's top inclue.
    I think copy is not possible u have manually create screen for that.
    Regards
    Gagan

  • How Procurement cost can be captured in product master through functional module?

    Hi
    I have following Queries
    1) How Procurement cost can be captured in product master through functional module in SAP APO?
    2) How we can transfer procurement cost to product master in SAP APO through BAPI?
    Thanks
    Poorna

    Hi Poorna,
    Could you please check FM /SAPAPO/DM_PRODUCTS_POST.
    Table it_matloc of this FM can used to update Cost .

  • How to do Delta upload using Generic Extractor built on Function Module?

    Hello Guys,
    I have never created a Generic Extractor using a Function Module. I wanted to know how can we support Delta mechanism if we create Generic extractor using Function Module.
    Regards,
    Abhishek

    Hi Abishek,
    Please check the standard Function Module RSAX_BIW_GET_DATA for your delta mechnism.
    Hope it will help you.
    Thanks,
    Chandra

  • Step-by-step instructions on how to do offline patching and offline updates

    I have a computer that has not been updated since Nov 2013.
    The computer cannot be connected to the internet at any time.
    I have already downloaded the .cab file (per instructions from another person) but I cannot figure out how to install anything.
    Essentially, I need step-by-step instructions on how to proceed with offline patching and offline updates.
    Please Help.

    Hi,
    What does your mean by "The computer cannot be connected to the internet at any time"?
    Did you mean that you are suffering a network connection problem when checking Windows update or this computer couldn't connect to network all the time?
    To install Windows update package offline, since you already download the update packages, just choose and click them to install these updates.
    If there is any difficult to install these packages, please feel free let me know.
    Roger Lu
    TechNet Community Support

  • How to identify update mode in function module for generic extractor

    Hi All,
    I have created generic extractor using function module which supports delta load.
    Delta logic is handeled in coding...by using ROOSGENDLM table.
    Now problem is we need to identify the update mode, requested from infopackage in our function module in order to apply logic for Repair full.
    I would like to know table or parameter in source system, which contain the update mode (Init , Delta , Full).
    Thanks,
    Niraj

    Hi Niraj
    You can use the FM import parameter "i_updmode" (This is of type "SBIWA_S_INTERFACE-UPDMODE") to determine if infopackage triggerred in full or delta mode.
    I_REQUNR     TYPE     SBIWA_S_INTERFACE-REQUNR                                                                               
    I_ISOURCE     TYPE     SBIWA_S_INTERFACE-ISOURCE                               InfoSource Name
    I_MAXSIZE     TYPE     SBIWA_S_INTERFACE-MAXSIZE                               Data Packet size
    I_INITFLAG     TYPE     SBIWA_S_INTERFACE-INITFLAG                               Initial Flag
    I_UPDMODE     TYPE     SBIWA_S_INTERFACE-UPDMODE                               Update Mode
    I_DATAPAKID     TYPE     SBIWA_S_INTERFACE-DATAPAKID                               Datapacket Id
    I_PRIVATE_MODE                                                                               
    I_CALLMODE     TYPE     ROARCHD200-CALLMODE                               Single-Character Flag
    I_REMOTE_CALL     TYPE     SBIWA_FLAG                                                                               
    Cheers
    Vasu Sattenapalli

  • How to export and import variants of a function module

    Hi
    I have created a function module and saved input to the same as variant. I want to export these variants back to external world and then import it back whenever its needed.
    Any pointers or help will be highly appreciated.
    Thanks in advance
    - Sriram.

    Just a example
    SQL> $expdp system/sys directory=data_pump_dir dumpfile=tests.dmp tables=scott.emp
    Export: Release 11.2.0.1.0 - Production on Tue Mar 8 10:39:57 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYSTEM"."SYS_EXPORT_TABLE_01": system/******** directory=data_pump_dir dumpfile=tests.dmp tables=scott.emp
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 64 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "SCOTT"."EMP" 8.570 KB 14 rows
    Master table "SYSTEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for SYSTEM.SYS_EXPORT_TABLE_01 is:
    C:\APP\MAZAR\ADMIN\ACEME\DPDUMP\TESTS.DMP
    Job "SYSTEM"."SYS_EXPORT_TABLE_01" successfully completed at 10:40:01
    SQL>

  • Material group updation by using function modules

    Hello All,
    I would like to add , update and delete material group From  database tables T023 and T023T  according to the given Excel input file.Could you please suggest me any function modules are there apart form MATL_GROUP_UPDATE .
    if i am using this function module i am getting the follwing error
    'Class does not exist or is not valid on this date'.
    Could you please send me any sample code.
    Thanks in advance,
    Arvind.

    Hello Narendran,
    Thanks for your quick reply.
    i need to do the following fucntions to the tables t023 and t023t.
    1) adding material group
    2) Updating the material group
    3) Deleting the material group
    according to the status field in the excel input file as shown below
    Status     ungültig     Referenzen     MGS     Beschreibung deutsch     Beschreibung englisch     中文     Beschreibung russisch
    N               H4***     Kohlen     Carbon     炭     Уголь
    N               H4100     Kohlebürsten                                                               Carbon brushes     炭刷     Угольные щетки
    N               H4900     Sonstige Teile aus Kohle, techn. Kohle                                     Other parts made from carbon, techn. carbon     由炭,工程用炭制成的其他零件     Прочие виды изделий из угля, технический уголь                     
    U               J2100     Polyphenylenether (PPESIB)                                                    Polyphenylene oxide (PPO)     聚苯氧化物(聚苯撑氧,聚苯撑氧化物)(PPO)     Полифенилэфир (PPESIB)                                              
    D     x          J2400     Sonstige styrolhaltige Polymere                                 Other Polymers Containing Styrene     其他含苯乙烯聚合物     Прочие виды полимеров, содержащие стирол                  
    Note:Status :N means add the corresponding material group H4***
                               U means update the material group Description in t023t
                               D means delete the material group form  the table t023t
                                in all languages
    Could you please tell me any other fucntion modules are there.
    As per your suggession we can add the material groups then what about Updation and deletion of material groups.
    Also suggest me shall i go for normal modify , delete and update  statements in my program to aceive the above functionality
    2) The excel file format is also not constant they can change the columns
    as per their wish i mean for exp in the above excel  at col1 Status field is there and  at col4 (MGS ) material group and remaining columns are description of the material group in different languages(sorry the excel alignment is not clear above)  .
    They can change this and they can place status at col5 and MGS at col6 .
    Could you please advice me how to handle this situation in my program
    Thanks in advance,
    Arvind.

  • Doubt in  export, import and table para when creating Function Module

    Dear fellow ABAPers,
    I have a doubt in defining export, import and table parameter while creating a function module.
    I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
    Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
    After that function module fills an error structure with values depending on some check.
    1)
    How do I pass this internal table to function module ? 
    When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
    2)
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Please clear my doubt..
    Relevant points will be awarded.
    Regards,
    Tushar.

    Hi Tushar,
    1. How do I pass this internal table to function module ?
       I assume u are creating your own Y/Z FM.
       Pass it thru TABLES parameter.
    2. When I am creating function module in se37 where do I define this iternal table type
       Define this in TABLES interface.
       What Type ?
       THE SAME TYPE WHICH HAS BEEN DEFINED
        WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
       IF U SEE THE FM OF THE USER-EXIT,
       U WILL COME TO KNOW.
    3.
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Define it in TABLES interace. (not in export, import)
      (Since what u are going to return is an internal table)
      U can take for eg. BDCMSGCOLL.
      OR u can create your own Y/Z structure
    for the same purpose.
      (or u can use the structure type T100)
    I hope it helps.
    Regards,
    Amit M.

  • How to capture the User input value to user exist function module.

    Hi,
    How can i capture user input value.Here i am using User exist in BPS variable.
    Calculating days using user exist functin module and my input is another variable i.e user defined value.
    How can i capture user defined vaule into my function module.
    This is very urgent can you help me..
    Thanks....

    Hi!
    You can get the instance using the method get_instance of the class cl_sem_variable, and call the method get_value with the return. Check the example:
          CALL METHOD cl_sem_variable=>get_instance
            EXPORTING
              i_area       = (planning area)
              i_variable   = (variable name)
            RECEIVING
              rr_variable  = lr_var
            EXCEPTIONS
              not_existing = 1
              OTHERS       = 2.
          CHECK sy-subrc IS INITIAL.
          CALL METHOD lr_var->get_value
            RECEIVING
              rto_value = et_value
            EXCEPTIONS
              error     = 1.
    After this, read the first line of the table et_value (it should be the value that the user choose on the screen).
    seeya!
    Robson

Maybe you are looking for

  • Vendor invoice report

    hi experts, I have an issue. I want to get the 'vendor invoice reporting' having the volume and as per the company code. i am unable to get it using the BSAD, BSID tables. if I use BSEG for vendor type K, i am unable to get doc type, or posting date.

  • Problem with reports...

    Hi all, 1) How to handle double click event in interactive report ?    and when we double click on field which event will call?    and we have emp id in basic list then how to pass that into secondary list? Thanks in advance.. sudharsan.

  • Ssi issues with nested table

    Hi ssi newbie question here. I wanted to include an ssi section in a embeded table layout, have used the ssi include code and inserted it where i want the ssi to work etc . So the it works which is nice but when you look at the physical page in dream

  • Distribution Model BD64

    Hi all, I am new to Idoc and all other related stuff. I have a small doubt. Af far as I know, to send Idoc's from sending system to recieving system  we need to configure ports(WE21) and partner profiles(WE20) on both sides. But my team lead says it'

  • How to disable super drive in macbook boot?

    i would like to know if there is a way to disable optical drive in boot sequence? like in windows you can set the boot sequence and then the boot is quicker. and also the noise the optical drive makes is a bit annoying. any idea anybody? thanks