Delete data from infocube which is older than 7 days.

Hi Gurus,
I have a Cube with the time dimension characteristic as 0CALDAY. This cube gets data from a DSO ,which has 0calday as one of its key fields, in Delta mode. I am in a need to delete the data with calday in the previous week. i.e SY-DATUM - 0CALDAY >= 7 in the infocube.
I just tried to create a transformation such that both the data target and the source is the above mentioned DSO and used the technical rule group to set the record mode as "D" for the older records and it works fine with the DSO.
But the Cube still has the data. Just the keyfigure becomes zero. But i want to completely delete the data. I do not want to use "DELETE-FACTS" or the FM "rsdrd_sel_deletion."
Please help me get out of this problem.
Thanks in advance,
Rajesh.

Hello Rajesh
Not sure if I understood the problem correctly, but what I understood is you need to keep only last 7 days data in the cube and anything else got loaded earlier should need to be deleted.
If this is correct then can you delete the whole cube content and load only last 7 days data from DSO to cube via DTP filter ( or some start routine).
In this case first time delta ( or full) will never read from change log table but it will read from active table of DSO only
Regards
Anindya

Similar Messages

  • BW Statistics: Deleting Data from InfoCubes.

    Hi,
    I want to see data in BW Statistics: Deleting Data from InfoCubes.
    I am working on  BI 7.
    I have set the infoprovider in Tcode RSDDSTAT.Marked 2 Infocube statistics ( X) and OLAP(2).
    Already activated the BI Statistics.
    I am deleting data from one of the cube . But when I go to cube 0BWTC_C11(BW Statistics: Deleting Data from InfoCubes)
    It is not showing any data .
    I can't see any data in RSDDSTATDELE table also
    Do I need to do any other setting ? Am I missing any steps?
    I need to dislay the log for deleted request /deleted data  ?
    I need to display the log for deleted infoobject/infopackage also? Where can i get this ?
    Pls guide  .
    Regards
    Nilesh

    Hi Venkat,
    I can not able to see in the report also . I have tried 0BWTC_C10/0BWTC_C10_Q251 to 254.
    Whenever I am doing to delete it individullay it goes to table SDDSTATDELE .But whenever I am deleting whole data from cube or request ID  it is not updating  table RSDDSTATDELE.( which is further used to get data )
    <b>I got this from SAP help .</b>
    The characteristic can have the following characteristic values C,N,D and T:
    C (Choose): The system automatically chooses the best delete mode. This is N or D.
    N (Create New): If over 10% of an InfoCube’s data records are to be deleted, the system replaces the InfoCube fact table with a table with data records that are not to be deleted.
    If you want to delete more than 10% of the records, the system creates a new table, copies the data records you want to keep to the new table, deletes the old table and then renames the new table.
    D (Delete): If you want to delete less than 10% of the data records, the system deletes these individual records directly from the InfoCube fact table.
    <b>T<b> (Truncate): If you want to delete all data records, the system deletes all data records from the tables, but retains the tables in the database.</b></b>
    So how to see these records? I am doing full upload to cube 0BWTC_C11(BW Statistics: Deleting Data from InfoCubes).
    Before this do I need to extract data for other CUBE also.
    Pls suggest .
    Regards
    Nilesh

  • Delete Data in Infocube which come from the same datasource before loading

    Hi,experts
    We would like to delete the data in infocube which come from the same datasource--0CO_OM_CCA_1  before we load it again.
    and would like to using a process chain to do it.but it seems difficult in BI7.0
    Could you give some suggestion,thanks
    Best Regards
    Jero

    Hi Ian,
    have you tried to use the "Get Delta only Once" flag in the DTP.
    Please see for example thread
    <a href="https://forums.sdn.sap.com/thread.jspa?threadID=370427">https://forums.sdn.sap.com/thread.jspa?threadID=370427</a>
    for some details.
    Nevertheless, the process type 'Delete overlapping requests' is most of the times needed in conjunction with this flag and should work. If in doubt please send me a private EMail containing the customer problem number. Maybe you have a specfic scenario.
      Cheers
         SAP NetWeaver BI Organisation

  • Delete data from Cube which is uploaded to Open hub

    Hello Friends I am required to delete the data from GL Cube, But it is connected to 2 Open Hub
    which has one as table /BIC/OHZZIGL_C10 defined in Open hub destination. I deleted the data from this table in SE14, but still when I try to delete the data from cube it throws the below error
    Please help me how to now delete the data from cube, when should i go in open hub t delete all the uploaded requests.
    Request 1.882 already updated in target 3.913 by DTP request DTPR_4CU6JHRJ7MY889A7XBUJ0GDVK(ZZIGL_C10)
    Thanks
    soniya

    just check on your datamart status for that request. Go to the manage screen of your infocube and check where all that request got updated using datamart status.

  • Deleting Data from Infocube before loading

    We are doing full loads by "Plan Version" into our CCA cube. We do these full loads each night. Eventually a "Plan Version" will stop changing and we can discontinue loading.
    My question is there a way we can delete data in the cube by "Plan Version" before the new request is loaded. Right now it deletes overlapping request after the load but this is inefficient.
    We would like to delete the data before we load.
    We are doing this using a process chain in order to drop indexs first then reload and update statistics.
    Thanks
    Richard
    Message was edited by: Richard Carrier

    Richard,
    You can do full replacement load of your plan data by changing your plan data load infopackage which persumably have the selection to load plan data i.e. 0vtype 20-90. 
    In the Data target tab of the infopackage, select the update data target for the cube(s) in question and click on the automatic loading of identical/similar requests from the infocube (the column to the right of the pencil) and click on delete existing requests button and tick
    a) full or initial data load  and selection are the same or more comprehensive.  I typically like to tick also the
    boxes for infosources are the same, datasources are the same and source system are the same. 
    This will load the infopackage as you normally do and after that immediately delete any same or encompassed requests.  i.e. if current value type selection is 20-90, it would delete a request for 20 as well as a value type for 40 and one for 50...
    Hope this helps,
    Mary
    Hope this helps.

  • Can not delete data from table which is queried in my stored procedure

    Hi,
    Anyone knows how to fix it:
    I have a table. In a stored procedure, I have a simple query running on this table.
    When I want to delete one record from that table, I got error message:
    ORA-04091: table *** is mutating, trigger/function may not see it.
    Thanks first.

    Rick, the only time you should get a mutating table error is when a trigger is involved. FK problems have separate error codes (and would be a different problem than the one that started this thread). Using a DBA id check all the tables subject to DML by your function and by whatever calls your function for triggers. Only the owner or a DBA can see the existence of triggers on a non-owned table. This has caused some of the developers I work with to think tables that had triggers do not have them since they do not work under the owning or a DBA ID.
    By your description of what you are trying to do in the function we do that all the time without problem.
    How large is the function? How/When is it called?
    Mark D Powell

  • What's the exact trigger for when updating/inserting/deleting data from one DB to another DB which contains same info?

    Hi guys,
    I have created a copy of the AdventureWorks2012 DB called AdventureWorks2012_new on the same instance.
    I have created the following trigger below but my friend who is a DBA told me that this is not correct and I should be using the inserted table when creating this trigger. I would like AdventureWorks2012_new DB to be updating/inserting/deleting data from
    the same tables that have been updated/inserted/deleted in the AdventureWorks2012 DB. How exactly should I do this for all the tables in the whole database ? What I have written below is just for one of the tables, is there a quicker way to do it for all tables
    in this DB so that it performs the actions mentioned above, automatically ? Help would be greatly appreciated so I can understand how this works, thanks
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterUpdate]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    UPDATE AdventureWorks2012_new.HumanResources.Department
    SET Name = t2.Name,
    GroupName = t2.GroupName,
    ModifiedDate = t2.ModifiedDate
    FROM AdventureWorks2012.HumanResources.Department AS t2
    INNER JOIN AdventureWorks2012_new.HumanResources.Department AS t1
    ON t2.DepartmentID = t1.DepartmentID
    END

    For insert it's easy:
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterInsert]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER INSERT
    AS
    BEGIN
    SET NOCOUNT ON;
    Insert INTO AdventureWorks2012_new.HumanResources.Department
    (DepartmentID, Name, GroupName, ModifiedDate)
    SELECT DepartmentID, Name, GroupName, ModifiedDate
    FROM Inserted;
    END
    I didn't verify column names, so you may need to make sure to use correct column names for that table.
    Setting replication is a bit advanced topic although BOL is clear and you may start here
    http://technet.microsoft.com/en-us/library/ms151198.aspx
    If it will be complicated for you, you can ask extra questions in the MSDN Replication forum.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Error while deleting data from a write optimized DSO using a Process Chain?

    Dear Bwers,
    I am facing a strange error while using process chains to delete data from data target which is a write optimized DSO. The process shows as failed but the data gets deleted in the DSO. The error message is as below. Did anybody have a similar problem? Any suggestions.
    Thanks
    Raj
    Error while deleting content of InfoCube/DataStore object ZLSD_G03
    Message no. RSDODSO153

    Please, check if you get any short dump in ST22 related to this issue.

  • How can i Read and Delete data in Infocube

    Can some help me how to read and delete data in infocube before loading data from direct DSO.
    I should be able to read and delete condition with combination (0FISCPER, 0COMP_CODE).
    Let us say we load JAN, comp _ code : 0001 (10 records )and JAN comp _ code :003 (30 records ) and JAN, comp _ code : 004 (20 records ) to infocube
    second time if DSO gets data of JAN, comp _ code : 0001 (40 records ) it doent need to be 10 old + 30 new, it can be 9 old 21 new lay i need to delete 1 old rec which i dont need. so that is the reason i want delet all JAN, comp _ code : 0001  recods before loading.
    Can some one help me

    Hello,
    You could use the selective deletion available with the cube to get the selective data for 0FISCPER, 0COMP_CODE combination deleted.
    If you go in the manage of cube & Content tab, you would find the selective deletion option at the bottom of screen.
    If you enter the option, you could give your selections for deleting the records and run the job.
    Please let me know if you need any more help.
    Regards,
    Pankaj

  • Deleted data from iphone thanks to itunes synchronisation

    Yesterday, without realising it, I synchronised my iphone (thanks to this automatic synchronisation service offered as a default on itunes, grrrr) to my husband's itunes account which had NOTHING on it. I have now lost everything on my iphone, including apps, photos, purchased itunes, saved contacts, everything. The setting on the iphone has gone back to basics. Can someone please tell me if there is a way for me to recover everything that itunes deleted from my iphone? I have searched through itunes and my iphone, and there is nothing that specifically answers the issue of accidentally deleting data from iphone due to itunes synchronisation. HELP!

    In regards to iTunes content, an iPhone can be synced with an iTunes library on a single computer only, and photos can be transferred via the iTunes sync/transfer process from a single computer only.
    Even with iTunes set to sync an iPod or iPhone automatically when connected, when connecting an iPhone to iTunes on a different computer than is used to sync with the iPhone, a warning message is provided along with a warning message that all iTunes content on the iPhone will be erased first, which must be approved.
    Contacts on your iPhone are not touched unless you select to sync contacts with a supported address book application on the computer which is selected under the Info tab for the iPhone sync preferences with iTunes, which is not selected automatically.
    3rd party apps can be downloaded again with iTunes on a computer that is logged in with your iTunes account or with your iPhone and you won't be charged again for a purchased app as long as you use the same iTunes account to download the app that was used to purchase the app originally, but not the same with music, which can be downloaded once.

  • Deleting data from DSO(0FIGL_O10) & IC(0FI_GL_C10)

    Hi All,
              I would like to know whether Deleting Complete data from InfoCube(0FI_GL_C10)/DSO(0FIGL_O10) & then doing Fresh init-Update from the Source-Systems(We have two) would create any problems.
    If there isn't going to be any problem apart from the time, Please explain the Procedure?
    Please Reply.
    Regards,
    Srikar

    Hi all,
            Thanks for the replies.
            The reason I wanted to delete the entire data was because by accident someone had deleted the Initial source-system
    assignments for one SS(We have two SS; the other one is working properly). So i have decided not to delete the entire data from the Data-Targets(0FIGL_O10 & 0FIGL_C10) as the data from other SS is working properly.
           Data has been loaded only once(Init-Update) from the SS in which i am having the problem. However it was Loaded a long way back & has been data-marted to the InfoCube. Moreover, Init-Load is still present in the PSA.
          1.  I want to know whether reloading the PSA(Init-load) data to ODS is going to reassign the Initial SS assignment.
               A) If yes, Do i need to first delete the Init-Data Request from the DSO(which has been data-marted) & from the InfoCube
                      as  well. and do i need to change the Requests from Green to Red(In both IC & DSO).
               B) If No, then what am i supposed to do?
    Regards,
    Srikar

  • Update/insert/delete data from xcelsius to Database via web service

    Hi,
    I need to create dashboard that go function can <b>update/insert/delete</b> data send to <u>Database</u> thru <u>web services</u>, as i know got 2 xcelsius add-on software which support those of function <b>InfoBurst</b> and <b>flynet </b>
    <b>InfoBurst</b>
    http://www.infosol.com/azbocug/minutes/4-Writeback%20to%20a%20Database%20with%20Xcelsius.pdf
    <b>flynet </b>
    http://www.flynetviewer.com/public/community/Blogs/FlynetXcelsiusServerUser/default.aspx
    Except this 2 purchase add-on xcelsius, any other solution ?  
    Maybe need to write some in MSSQL or C# programming which enable insert, update, delete ...etc  ?
    *note: i not use Xcelsius Engage Server , i use Xcelsius Engage only
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Mar 1, 2011 6:06 AM

    Hi,
    As of now in Xcelsius/Dashboard Design there is no feature or functionality to insert/update/delete data from database.
    Solution:
    Create a Web service in let’s say C# or Java, which will perform insert/update/delete operation.
    In Xcelsius add Web Service connection and user above web service.
    Xcelsius Web Service connection provides option to pass input values to a Web Service (Input Pane) and get the result (Output values pane).
    We can pass values to be written to the database as a input to Web Service via Web Service connection from Xcelsius and write data to the database.
    Note:
    Performing delete operation from Xcelsius Dashboard could be risky and may delete important data from database. I would not prefer giving delete option/functionality in Xcelsius dashboard.
    Hope this helps!
    Thank you.
    Regards,
    Vinay Mhaske

  • Delete data from archive server

    Hello,
    we have following question : How do you delete data from archive server which has passed the retention time and need to be removed from archive server.
    Have you any ideas?
    Thanks,
    Stefan

    Hi Planung,
    For deletion of data SARA transaction is used. Also deletion indicator is required to set for the documents which you are not using. Use the bapi BAPI_DOCUMENT_DELETE  for deleting the documents which are set with deletion indicator.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • Delete data from DSO only with a part of the key

    Hi experts,
    I have a DSO with 9 key fields and i want to delete some entrys. Our source system only provides 2 fields of the key. My problem is, that the BI is not able to delete from DSO unless I have the full key.
    Now I want to get the rest of the key fields from the active table of the DSO. Can sombody help me please with the ABAP Code? Or is there another possibility?
    I already found this thred in SDN but this is for BW 3.5:
    Delete data from ODS with only part of the key
    Thanks
    Ralf

    Ralf,
    the thread pointed out by you is for passing deletion entries to the DSO / target using the deletion entries .. namely recordmode = D.
    Are you looking at deleting data from the DSO as a one time activity or you want to handle the same using a start / end routine ...? and pass deletion entries to other data targets which get the data from this DSO ?
    Arun

  • Unable to Delete Data from PSA

    Hi Experts,
    I have a process chain which delete data from PSA on weekly basis . it running good . Since one month one of data target PSA data not deleting.
    it gives me error like DDL time(___1): .........2 milliseconds
    Delete request REQU_03RM2LOJ284N3GLM7Q574WLAO from PSA 8Z0MM_O39_OA: Error - subrc: 2
    When i am tring to delete manually it gives me above error only.
    I used programme (RSAR_PSA_CLEANUP_DIRECTORY)
    for deleteting PSA Data this programme gives me errors request already deleted from data base. But still those request available when i am looking into PSA data.
    it's happen only quality system not in the Production.
    Kind Regards,
    ve.

    Hi Srinath,
    when i am looking into system there is no programeme with name(SAP_PSA_ZEROCORREC) But another programme RSAR_PSA_CLEANUP_DIRECTORY is available i tried with these programme for deleting PSA it gives me error like request deleted from database.
    But it gives me an error indicator only.
    i  am tried to delete manually by selectiong those request from PSA it gives me error DDL Time (______1) 2 milliseconds.
    Kind Regards,
    ve.

Maybe you are looking for

  • How can I remove all JavaScript content from a form created in Adobe LiveCycle ES?

    Dear all, I have created a form from scratch (blank A4) that doesn't have any events with scripts. Nevertheless I still get the usual error message in Adobe Reader where we have disabled JavaScript: In Acrobat Pro 9 I can see 3 document level scripts

  • Moowing focus with the tab key (swing)

    Hi. I have a JFrame with 4 text areas in. I want to be able to "hop" to the next text area by pressing the tab key. Most internet pages says this is default, but when I press tab, I get a tab space inside the text area I'm in.. Any ideas on how to do

  • Fade effect applied to HTML panel plus onobtrusive JS

    At first, I'm not a programmer, so sorry if I'm not clear as desirable, and sorry for my English. I'm trying to make fade an HTMLpanel one a user clicks any of the links I have on my page, I have 2 sets of links, one one the top called #tab and anoth

  • Using a list to rs

    PHP/MySQl Dear All, how do I achieve the following. The field, "general.emails", contains a list such as "1, 3, 5". The rs only produces the first email name. SELECT email.emlID, email.fname, email.title, general.emails FROM email INNER JOIN general

  • I m learning matte painting with photoshop cs5 I need tablet??

    Hi! I m Graphic Designer now I m studying on Matte Painting, few months I have confusion about Tablets, Tablet PCs, Graphic Pens..etc. please give me any suggestions on what are they which product will help me on matte painting-my budget is from 50 t