Selective deletion of 3 month back data in Process chain

Hello,
I have one dso which should contain only 3 month of data.
If i load current month dat it should delete three months back data for eg if i load data for april month then it should delete january month data. I want to do this step in process chain.
How can i do it plz help me.
regards,
Naveen

Hello Naveen
If the DSO is of type Write Optimized, then you could use the following option in the process chain.
1. Include the Step ABAP program ( General services) into the process chain.
2. Enter standard program: RSSM_DELETE_WO_DSO_REQUESTS. Click on Create button for the variant and enter the following details: Enter the name of the WODSO name, Check the box for Delete Requests, Enter the number of days ( in this case 30) for deletion, Check the box if the Requests are delta updated on the WO DSO. Find the snapshot attached.
Also, remember that PSA data should be deleted regularly (30 days in this case). This step should be inlcuded as the first step in the housekeeping activity.
Thanks and Regards,
Ningaraju

Similar Messages

  • Unable to delete the Requests in the data target---Process chain

    Hello Gurus!
                          Can anyone plz help me out knowing this issue...
      <b>Let me explain the whole scenario:</b>
    Like when monitoring the process chains,one of the process chainhas a  sequence of variants like:
    load info-package1>ODS1 activation>load infopackage2-->load infopackage3..
    due to some problems they scheduing it manually.all the infopackages loads data into one ODS1......suddenly info-package3 failed.
    so....when i looked into the datatarget ODS1->manage->requests.
    <b>i found that the info-pack1 requests status was RED.
    info-pack2 requests status was YELLOW.
    info-pack3 requests status was RED</b>.
    ALL THE THREE R FULL UPDATES ONLY.
    so suddenly one of our cologue  deleted the all the three requests by making ino-pack2 requests to red.
    when we r loading again the ino-pack1  again its failed.we deleted it onceagain(removing the requests from the ods),when we are trying to load ino-pack2 for some priority ,automatically the info-pack1 requests with red were seemed in the ODS.so how to solve this issue and also how to load these three ino-packs..
    i hope that all understand the scenario..plz suggest me how to work on it
    Thanks in advance!!!
    Dilip

    Hi,
    Your loads are running on back ground you have to kill this porcess in SM50 or SM51 check which are all jobs are running with your user name and ALEREMOTE if jobs are running with ALEREMOTE you can check wether it is your load or some body else in SM37 so kill your jobs in SM50 or in SM51 and make request into RED of your 3 loads, delete the requests from ODS and repeat the loads it will go with out any issues, as i under stood your question when your colegue deleted the request without killing the process he simply made it to red and delete its wrong he has to kill the process and then make it to red.
    Regards
    Sankar

  • Iphone is deleting ical 3 months back how do I change this

    iphone is deleting ical 3 months back how do I change this

    Go to Settings>Mail,Contacts>Calendars, scroll down to the Calendars section, tap on Sync, set to Events 6 Months Back or All Events.

  • 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.

  • 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

  • ABAP Routine for Deleting and creating index for ODS in Process chains

    Any pointers for the ABAP Routine code for deleting and creating index for ODS in Process chains.

    Hi Sachin,
    find the following ABAP code to delete ODS ondex.
    data : v_ods type RSDODSOBJECT.
    move 'ODSname' to v_ods .
    CALL FUNCTION 'RSSM_PROCESS_ODS_DROP_INDEXES'
      EXPORTING
        I_ODS = v_ods.
    To create index:
    data : v_ods type RSDODSOBJECT.
    move 'ODSname' to v_ods .
    CALL FUNCTION 'RSSM_PROCESS_ODS_CREA_INDEXES'
      EXPORTING
        I_ODS = v_ods.
    hope it helps....
    regards,
    Raju

  • 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

  • Loading master data through process chain

    Hi Gurus
    I am designing the process chain , I know that I have to start by loading master data first for that I am planning to load attribute first and then to load text and then Hierarchy. Is that the right sequence?
    Also how can I make sure that once the master data is loaded , the transaction data loading start automatically?
    I am planning to put attribute chage run as last process in every master data loading . Is that correct?
    Also i would appreciate if you can tell me the very first step I should follow to start my design, I have already identified the master data and transaction data and their respective dependancies.what would be my next step?
    Thanks for your help in advance.
    Kris

    Hi Kris,
    Make two seperate Process Chains for Master Data and Transaction Data
    For Master Data:
    Your sequence is absolutly correct, Identify what all Master Data Objects and make a list of InfoPackages and Start creating Process Chain as
    Start --> Attribute --> Text --> Hier --> Attr Change Run
    For Transactional Data:
    Identify the Data Targets and the Sequence of loading, then create the Process Chain
    NOTE: Always Master Data should be loaded before Transaction Data
    After Creating different Chains for Master Data and Transaction Data, Make a one Super Chain called Meta Chain where you can put all these process chains,
    Meta Chain  --> Process Chain 1( Master Data Chain) --> Process Chain 2( Transaction Data)
    also check these threads for process chain creation
    Re: Process Chain : Master Data
    Re: process chains ?
    Hope this helps,
    Sudhakar.

  • Select records based on monthly anniversary date

    Hi,
    I have a table with a date_added field and I want to select records based on the monthly anniversary date of this field.
    eg. ID, Date_added
    1, 10-DEC-2012
    2, 11-NOV-2012
    3, 10-MAR-2012
    4, 28-FEB-2012
    5, 30-DEC-2012
    So For the 10th of Jan 2013, I would want to return records 1 and 3 only
    I started looking at the extract function, but this soon falls down for records at the end of the month. For example, on the 28th Feb, I would also want to include records where the date_added day is the 29th, 30th or 31st. So, in the table above I would want to return records 4 and 5, but extract would only return 4.
    Is there a simple function to do this month anniversary query - am I missing something very obvious? Or, do I need to write a query to explicitly cope with dates at the end of the month? So far I haven't found a sensible simple solution!
    I'm using 11g
    thanks

    I didn't look into leap year, but this should give you a starting point:
    select  *
      from  t
      where 1 = case last_day(to_date(:target_date,'mmddyyyy'))
                  when to_date(:target_date,'mmddyyyy')
                    then case
                           when to_char(date_added,'dd') >= to_char(to_date(:target_date,'mmddyyyy'),'dd')
                             then 1
                         end
                  else case
                           when to_char(date_added,'dd') = to_char(to_date(:target_date,'mmddyyyy'),'dd')
                             then 1
                         end
                end
    /For example, target date is 1/10/2013:
    SQL> variable target_date varchar2(8)
    SQL> exec :target_date := '01102013';
    PL/SQL procedure successfully completed.
    SQL> with t as (
      2             select 1 id,to_date('10-DEC-2012','dd-mon-yyyy') date_added from dual union all
      3             select 2,to_date('11-NOV-2012','dd-mon-yyyy') from dual union all
      4             select 3,to_date('10-MAR-2012','dd-mon-yyyy') from dual union all
      5             select 4,to_date('28-FEB-2012','dd-mon-yyyy') from dual union all
      6             select 5,to_date('30-DEC-2012','dd-mon-yyyy') from dual
      7            )
      8  select  *
      9    from  t
    10    where 1 = case last_day(to_date(:target_date,'mmddyyyy'))
    11                when to_date(:target_date,'mmddyyyy')
    12                  then case
    13                         when to_char(date_added,'dd') >= to_char(to_date(:target_date,'mmddyyyy'),'dd')
    14                           then 1
    15                       end
    16                else case
    17                         when to_char(date_added,'dd') = to_char(to_date(:target_date,'mmddyyyy'),'dd')
    18                           then 1
    19                       end
    20              end
    21  /
            ID DATE_ADDE
             1 10-DEC-12
             3 10-MAR-12
    SQL> And target date is 2/28/2013:
    SQL> exec :target_date := '02282013';
    PL/SQL procedure successfully completed.
    SQL> with t as (
      2             select 1 id,to_date('10-DEC-2012','dd-mon-yyyy') date_added from dual union all
      3             select 2,to_date('11-NOV-2012','dd-mon-yyyy') from dual union all
      4             select 3,to_date('10-MAR-2012','dd-mon-yyyy') from dual union all
      5             select 4,to_date('28-FEB-2012','dd-mon-yyyy') from dual union all
      6             select 5,to_date('30-DEC-2012','dd-mon-yyyy') from dual
      7            )
      8  select  *
      9    from  t
    10    where 1 = case last_day(to_date(:target_date,'mmddyyyy'))
    11                when to_date(:target_date,'mmddyyyy')
    12                  then case
    13                         when to_char(date_added,'dd') >= to_char(to_date(:target_date,'mmddyyyy'),'dd')
    14                           then 1
    15                       end
    16                else case
    17                         when to_char(date_added,'dd') = to_char(to_date(:target_date,'mmddyyyy'),'dd')
    18                           then 1
    19                       end
    20              end
    21  /
            ID DATE_ADDE
             4 28-FEB-12
             5 30-DEC-12
    SQL> SY.

  • 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.

  • 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

  • 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

  • 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 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 ?

Maybe you are looking for

  • Create a new line in the xml-header structure.

    Hi, Can any one tell me how to create a new line in the xml-header structure. I am doing a IDOC-XI-HTTP scenario. Actually my mapping create this file: <b><?xml version="1.0" encoding="utf-8"?> <ORDERS05>   <IDOC BEGIN="1">     <EDI_DC40 SEGMENT="1">

  • Sap R/3 4.6c and BW 3.0b installation snapshot steps both on one server

    hi gurus, i want to install R/3 4.6c and BW 3.0b on to my laptop my laptop configuration is 2bg RAM 160 HDD Intel centrino Duo mobile 1.66ghz processor i also need the connectivity steps to be working between R/3 and BW for me to extract data from R/

  • GR from Maintenance Order

    Hi All, Please help in the below issue, there's a spare part material valuated with split valuation as follows: Defected avg price 10/EA Used      avg price 20/EA New       avg price 30/EA From PM module, one EA from defected valuation type issued an

  • Print JTable with multi line header

    I need to print a JTable with multi line header, I want to know if I can use the method jTable.print(int, MessajeFormat, MessageFormat) by manipulation of the MessageFormat. How I can manipulate it? Otherwise, How I can print this?

  • Hissss in monitors

    trying to determine if i have damaged my bx5 studio monitors. i have been really cranking them recently. i have no prior experience with studio monitors. my setup is firepod-->imac-->bx5monitors and when i crank the main level on the firepod, there i