Delete older data via process chain

Business needs only data for the past 45 days at any given time and the data loads are daily basis via process chain.
so I would like to have a step in Process chain to delete any data older than 30 days from today's date , on a daily basis.
How can I do that in the Process chain?

Hi,
You can use a process type called Delete overlapping request from Infocube in process chain. To delete requests older than 30 days select Deletion selections and write ABAP routine under Request selection through routine using following template.
Routines for determining the old requests to be deleted after successfully loading a new request.
form compute_<InfoCube-Name>
  tables l_t_request_to_delete structure rsreqdelstruc
  using l_request like rsreqdone-rnr
  changing p_subrc like sy-subrc.
*Insert Source Code to decide if requests should be deleted.
*All Requests in table l_t_request_to_delete will be deleted
*from Infocube <InfoCube-Name>.
*Add new requests if you want to delete more (from this cube).
*Remove requests you did not want to be deleted.
$$ begin of routine - insert your code only below this line-
     loop at l_t_request_to_delete.
     endloop.
     clear p_subrc.
$$ end of routine - insert your code only before this line-
ENDFORM.
hope it helps...
regards,
Raju

Similar Messages

  • How to delete master data via process chain

    Hi All,
    I have to delete master data before loading it again via a process chain.
    In the process chain I chose the process " complete deletion of the data target content" but here I did not find infoobject as the data target option to delete the data.
    Please suggest how to solve this.
    Thanks,
    Harini

    Hi Harini,
    P_CHABNM - It is for the reference characteristic.
    I think if you dont have a ref characteristic then give the info-object name.
    This is what I fetched fom help.
    Reference characteristic
    The reference characteristic has the technical properties of a characteristic such as data type and length, as well as the master data (attributes, texts and hierarchies). The characteristic itself also has buinesses semantics.  Several characteristics can refer to the same reference  characteristic. Such characteristics automatically have the same technical properties and master data.
    Example:
    The characteristics sender cost center and receiver cost center use the reference characteristiccost center and with it the same values and the same texts.
    Bye
    Dinesh

  • Deleting Master Data via Process Chain

    I am in the midst of creating a process chain and am able to create process for deleting ODS Contents, but am not able to do the same for Master Data. Is this possible?

    Firstly, why do you want to delete master data.
    You cannot delete master if the same is used across other transaction and master ( attr )data.
    You may use :
    Prg - > RSDMD_DEL_BACKGROUND
    FM - >RSDMD_DEL_MASTER_ DATA.
    To my knwldge you cannot delete MD using process chains.
    You can delete data in PSA periodically..is that you are looking for ?

  • Delete Master Data using Process Chain?

    Hi Friends,
    How do I delete Master Data using Process Chain?
    Thanks,
    Pradeep

    Hi Bhanu,
    I am not sure why we would want to delete MD. But that is the task given to me. I actually know it is not possible. But is there a way to delete MD using chains?
    Thanks,
    Pradeep

  • Loading master data via process chain

    hi experts,
    I have to load data in infoObject via process chain, my infopackage has update mode as full update. Now my question is do I have to delete the previously added data from infoObject and then run this full update infopackage in process chain or system will only fetch the newly added records from source.
    regards,
    ray

    You can not delete the data from master data once the transcational data is posted against the master data value. Attribute value can be deleted, but you can not delete the value of the main characteristics from master data table.
    Moreover, you dont need to delete the data when loading master data. Master data always overwritten with the new reocrds.
    As described, first load the full load and then on daily basis you can load the delta.
    DO NOT FOGET TO SCHEDULE ATTRIBUTE CHANGE RUN to activate the newly loaded data into master data.
    Make sure that your master data is not enhanced, otherwise any change in the enhanced field will not generate delta record. If this is the case, then load in full mode everyday.
    - Danny

  • Require Q1 2012 data via Process chain

    Hi ,
    I want to trigger a process chain daily which will get only Q1 2012 data.
    Is it possible via sm36 tcode.
    how can i achieve it.
    please suggest.
    Thanks.

    You can give selection at infopackage level.
    1>Either you can use standard variable.
    2>You can write a routine.
    Please find the sample code for previous month load :-
       data: l_month(2) type c,
            l_month_prev(2) type c.
              l_month = sy-datum+4(2).
              l_month_prev = l_month - 01.
            l_t_range-low = l_month_prev.
            l_t_range-high = l_month_prev.
            l_t_range-sign = 'I'.
            l_t_range-option = 'BT'.
                modify l_t_range index l_idx.
    Regards,
    Saveen Kumar

  • How to delete Master data using Process Chain

    I need to delete data in respective data targets such as Infocubes, DSO’s & Master data Infoobjects. It was fine with Infocubes & DSOs  using respective process type. But the issue is with Master data Infoobjects.
    Is there any process type by using which I can delete data in Master data Infoobjects using process chain?

    Murali,
    Master data object process type is not there because in BW, master data is conformed or is shared by other infoproviders. Due to this dependency, master data loading is a bit more complex. You need to drop all the data from all the infproviders which are using the master data you want to delete.
    -Saket

  • Deleting PSA data  using process chain doesn't delete records from psatable

    Dear All,
    We have an issue where by the process chain runs and deletes the PSA records and upon checking that's what we thought it had done from the monitor but it didn't actually delete the records from the PSA Tables!
    Does anyone have any clues about this ?
    Thanks
    Craig

    Chetan,
    Yes you read correctly the actual table content for the PSA records are not physically removed.
    By monitor I meant the entry in the requests for PSA.
    It's a strange one for sure.
    Cheers
    Craig

  • Unable to delete PSA data through process chain.

    Hi Everyone,
    I have got a problem in PSA deletion. We have got few PSA and change log deletion jobs which run at daily or fortnight basis. We planned to add few PSA tables to each daily and fortnight jobs depending on requirement.
    We added in development and could see jobs deleting PSAs properly. Now on transporting to testing, we could see that PSA tables are not being deleted and there is no change in data. We have checked the PSA table names properly, in table RSTSODS and confirmed PSA is given properly only.
    Anyone faced this problem or have idea about this issue, please let us know and suggest us.
    Thanks and regards,
    Shashidhar.

    Hi Shashidhar
    Just check for the PSA requests as below:
    Go to PSA in RSA1/ RSA1OLD -
    > Select the PSA -
    > Settings -> Display selection for PSA tree -> give start date and end date or any other selecetions as per your requirement-> it will show you all the details.
    Hope this helps.
    Cheers
    Chanda

  • Automate Deletion of Infoobject Data in Process Chain

    Dear BW Experts,
    We refresh our QBI (Testing system) system every 4 months. Hence we have to drop all the data and refresh it again.
    I have built a process chain to automate deletion of cubes and DSOs. I am unable to include deletion of Infoobjects (Infosources) in the process chain.
    Could you please suggest as to how to do this via process chain (and not manually) since we have more than 20 Infoobjects where data has to be deleted.
    Thanks,
    Sai
    Edited by: Sainath Vadathirthanathan on Aug 13, 2010 10:33 AM

    Leavte it blank or enter source object
    From help  ..Press F1 on that paramter to understand
    Reference characteristic
    The reference characteristic has the technical properties of a characteristic such as data type and length, as well as the master data (attributes, texts and hierarchies). The characteristic itself also has buinesses semantics.  Several characteristics can refer to the same reference  characteristic. Such characteristics automatically have the same technical properties and master data.
    Example:
    The characteristics sender cost center and receiver cost center use the reference characteristic cost center and with it the same values and the same texts.

  • Deletion of changelog data using process chain

    Hi All,
             I have a requirement where i have to delete the changelog data for particular set of data using process chain.we have an option of deleting the entire data from changelog but how to delete only a particular set of data?????

    If you are on BI 7 than,
    Choose "Deletion of Requests from the Change Log" from process category Further BI Processes by double-clicking.
    Create a new process variant and in the variant maintenance screen select Type of Object as Change Log Table
    Under Name of object select DSO name
    Specify the requests that need to be deleted by determining the days or dates. You also have the option to specify whether you only want to delete successfully updated requests, and/or only incorrect requests that are no longer updated in an InfoProvider.

  • How to automate selective deletion of ods in process chain

    Hi,
    How can we automate selective deletion of ods in Process chain. I tried with the proceedure. Using T-code "delete_fact" I gave selection parameters and Name of the program and saved this as variant and gave the same program and variant in Process cahin. But it is not deleting data. So plz guide me whether I have missed anything in this proceedure.

    Hi purushottam,
                           you have to give to program variants in the process chain for data deletion to take place. in the first program variant include the rsdrd_delete_facts as program name and in the program variant give a variant for your infoprovider selection.
    Now again select another program variant and include the name of the program which you get after selecting the infoprovider name and  the generate selection program  option in the "program for deleting selected entries from the data target" screen " and press execute.
    again give another variant for your field selection.
    now try execute the process chain.

  • Process Type ABAP does not work properly via process chain

    Dear SDNers
    I am running a process chain and it contains process type ABAP program. ABAP program was running correctly till now via this process chain. ABAP program process type generally takes approximately 2 hours to run. But now, this process type for ABAP program just run for less than 1 minute and finishes successfully. The issue is that ABAP program does not run at all.
    I ran the ABAP program in background and it took approximately 2 hours to run. ABAP Program is local means in our BW system and does not involve Remote Function call. We have BI7.0 system
    Has some one came across this type of issue?
    Best Regards
    Pradip

    Has the aleremote user or which ever user you have defined for background scheduling changed permissions recently?
    What happens if you create an adhoc chain and include this ABAP variant, does it run then?
    What does the log say in SM37 when run via process chain?
    Cheers
    Craig

  • How to design data load process chain?

    Hello,
    I am designing data load process chains for the first time and would like to get some general information on best practicies in that area.
    My situation is as follows:
    I have 3 source systems (R3 and two for which I use flat files).
    How do you suggest, should I define one big chain for all my loading process (I have about 20 InfoSources) or define a few shorter e.g.
    1. Master data R3
    2. Master data flat file system 1
    3. Master data flat file system 2
    4. Transaction data R3
    5. Transaction data file sys 1
    ... and execute one after another succesful end?
    Could you also suggest me any links or manuals on that topic?
    Thank you
    Andrzej

    Andrzej,
    My advise is to make separate chains for master & transaction data (always load in this order!) and afterwards make a 'master chain' where you insert these 2 chains one after the other (so: Start process -> Master data chain -> Transaction data chain).
    Regarding the separate chains; paralellize as much as possible (if functionally allowed). Normally, the number of parallel ('vertical') chains equals the nr of CPU's available (check with basis-person).
    Hope this provides you with enough info to start off with!
    Regards,
    Marco

  • UTF-8 file via process chain doesn't load

    Hello all!
    I've a big problem. I try to load a UTF-8 file via process chain. I have a script which generate the correct name and the process chain will load the file daily. The file format is UTF-8. I've created a info package with the adapter OPEN_DS load text type file from application server and the character set is 4110 (Unicode UTF-8) but it doesn't work. I try it directly - not via routine - and it works perfect but I can't load with the adapter GUI-UPLOAD load text type file from local workstation via process chain.
    I switched the code page back to 1100 sap internal ISO 8859-1 but with this settings I have a lot strange chars in my texts. Any solutions?
    Regards, Thomas

    Hi,
    no solution?
    Regards, Thomas

Maybe you are looking for

  • I want to constantly display my bookmarks in V6.0.2 on left side of screen

    I just upgraded to FF v6.0.2 and love the new look, however I would like to display my bookmarks on the left side of the screen such as I was able to do in 3.6. I know how to display them by clicking on the button top right. Using Win 7 64 bit on Asu

  • AP Extreme only letting on one computer at a time

    My wife recently got a MacBook instead of her old HP laptop, and we got the AP Extreme base station so we could share our laser printer. However, I have yet to be able to have both computers on the network at once. If one is online, the other one can

  • Can I register operation breakes in Logistics execution module of SAP

    Good Morning, We are making a SAP implementation in our company, there is a logistics operation covering on this implementation and so far we have not found how to record this breakes in the logistics operation in logistics execution module, we need

  • Disk size is drastically reducing after the Dense restructure

    After Clearing empty blocks the number of blocks are coming down by 10% showing that empty blocks were existing in the database. At this point in time total size of .PAG file remains constant (Before and after clearing empty blocks). We did a restruc

  • Calling Tandberg endpoint from CUCM

    Hi I am having trouble establishing a video call between E20 registered to VCS running software version X6.1. I have a E20 and a 9971 registered to CUCM version 8.0.3. When I make a video call, the call gets connected but I dont get any video.  I als