Delete reduntant PSA data

Hi All,
For an Absence Quota Infocube, we are using pseudodelta mechanism. For automizing this process, we have built process chain. We have used the process type -Delete Overlapping requests, to delete reduntant data in the infocube.
This is a Time Management infocube, it fetches huge amount of data every week. So the PSA also gets bulky over a period of time. The PSA size should be controlled and this should be automatic.
Also, this datamodel has a ABAP routine at Infopackage level. The code logic fetches data of last year and the current month's data if the Calendarmonth of dataextraction is JAN, for all other months it fetches data of current and previous month data.
Due, to the above routine. We cannot use the process type -Delete PSA Request. If we use it, then the infoprovider will have only few months data.
Can you please suggest me a way to delete the PSA contents automatically and at the sametime should not loose any data
Regards,
Vasavi

1. If you are doing this in BI 7.0, write a routine at infopackage level.
Take 0REQUID and 0calday as two parameters. Put a check on request ID which is loaded on which date.
Suppose request ID 12345 is loaded on jan 30th and req ID 67890 is loaded on 3rd Feb.
Now as per your scenario, it should take data for current & previous month only. SO this code will chk for req ID along with the date. If date is greater than 2 (here if calday format is yyyymm, the it considers month older than two months)., it'll delete it.
Here it'll chk req iD 12345 and date as 201001, which is older than 2 months, it'll delete it.
Remember - you can delete data from PSA only request wise and not record by record.
2. If you are doing this in 3.5, then it is much simpler every end of the month, go to PSA , rt click > Deleet PSA Data> teher is an option- OLDER THAN..> put the last date from where you want to keep data till date.
I hope it'll help you.

Similar Messages

  • Deleting of psa data

    hi experts,
    i loaded maste data to the info object. i found some errors.
      so i want delete the data in psa first.
    when i went to data source manage it is showing the psa requests.
    but it is unable to select. previously in 2 days back it is allowing. but  now it is not allowing me.
    iam using bi 7
    can any one tell me the reason.
    thanks in advance.
    kumar

    hi,
      thanks for ur reply. iam loading data to the info object.
    for ods or cube, we can delete the request first and we can delete the psa request.
    for loading to info object, it dose'nt need.
    correct me if iam wrong.
    regards
    kumar

  • PSA data deletions

    There are scheduled loads to a data target via a meta chain.
    I want to include deletion of PSA data as part of the scheduled loads.  Just wanted to check the following:
    1. There are Process chain process to delete PSA tables
    2. It is better to collectively delete the PSA tables
    3. Should I include the PSA deletion as the last step for each individual process chain or as a new process in the meta chain
    Thanks

    Hi,
    If you put all PSA tables deletion in one process, then system will delete one by one PSA & process will take more time.
    So group PSA tables like Master data PSA, transaction data PSA, PSA in between source system & BI , PSA tables with in BI etc....
    Then do analysis on data volume on each PSA. If any table will recieve more volume, then better to keep it alone in single process type where as smaller ones can be grouped. Again it depends on your server work processors available, regular PC design & data volume.
    Hope you might get an direction.
    Regards,
    Arun Thangaraj.

  • SAP-BW Oracle tablespace for ODS/PSA data

    Hi Experts,
    Could you please give some knowledge on the below " Releasing table space " issue:
    We r on BW 3.5  with Data base system as ORACLE 9.2.0.8.0.
    We've deleted all ODS/PSA data (  /BIC/B0000590000 - Transfer Structure Application 8ZSDDLITM ( It’s an ODS ) and even after refreshing the DB02 statistic,  it's still the same , Space is not getting released.
    The partitioning is set up with the field “PARTNO”. But this field has only one value:
    SQL> select partno, count(*) from sapr3."/BIC/B0000590000"
      2  group by partno
      3  having count(*) > 1000000;
             0   67616209
    SQL> select count(*) from sapr3."/BIC/B0000590000";
      67616209
    All the records have a value “ 0 “ for the partno field, so each record is placed in the same partition. In this way partitioning is useless.
    So , Do the space can be regained by reorganization?...Will this reorganization effects anything?...
    I have also found some notes on this : 565176 , 733371
    Please suggest ...
    Regards,
    KANTH

    Dear Oliver,
    Thanks for response and sorry for the late reply.
    I have checked our ODS/PSA DDIC table ( /BIC/B0000590000 ). It has huge number of records ( More than 6 million ) although i have already deleted the PSA data from BW administration.
    I did the RSRV for consistancy check but there is no inconsistancy i found  Between PSA Partitions and SAP Administration Information## .
    I think i will approach BASIS on this but what should i exactly request them. I am afraid of any reorganization from there side will result in problems..
    Thanks a lot..
    Regards,
    KANTH

  • Setting for the PSA Data

    Hi,
    I would like to know where the settings is made in such a way that the data resides in the PSA according to the defined Period of Time.
    If we are deleting a request from the InfoProvider,it can be Reconstructed provided the request is present in the PSA.
    I think by default the request presents for 30 days.
    Is there any setting in such a way that the Number of Days can be increased or decreased.
    If so,where is the setting being made.
    Thanks,
    Rajesh Janardanan

    Create a weekly Process Chain for Deletion of PSA data.
    Now in the Process Chain variant for PSA deletion enter these settings
    1.For delta load keep the no. of days =14(requests of only last two weeks will be available for reload/reconstruction)
    2.For full load keep the no. of days =2(requests of last two days will be residing in PSA  when the chain is run)
    to create the PSA Deletion variant you have to metion the PSA table name which you can get by entering the Concerned datasource name.
    regards,
    rocks

  • How to delete the duplicate data  from PSA Table

    Dear All,
    How to delete the duplicate data  from PSA Table, I have the purchase cube and I am getting the data from Item data source.
    In PSA table, I found the some cancellation records for that particular records quantity  would be negative for the same record value would be positive.
    Due to this reason the quantity is updated to target but the values would summarized and got  the summarized value  of all normal and cancellation .
    Please let me know the solution how to delete the data while updating to the target.
    Thanks
    Regards,
    Sai

    Hi,
    in deleting the records in PSA table difficult and how many you will the delete.
    you can achieve the different ways.
    1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
    2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
    3.you can restrict the cancellation records at query level.
    Thanks,
    Phani.

  • How to delete all the PSA data in one go

    Hello Guys,
    I want to clear all the data from all the PSA tables at one shot, how can i do this??
    I have tried following things:
    1) I have gone to PSA root node and right click and then clicked on delete PSA data, but its showing me all the datasources and when i am executing that, it is deleting one by one(that i means i need to select individual datasource, which i do not want).
    2) Above specified step runs RSPSADEL1 in background , so i doubt whether it deletes psa data only or complete Table?
    3)I got the info from other posts that there is a fm which is RSATREE_PSA_DELETE_BATCH, but i need to make myself clear whether this fm deletes only data or complete Table?
    I am using sap-bw 3.5.
    Regards,
    Dolly

    Hi,
    there is one easy way to delete data from PSA .You can create a process chain have one delete data from PSA step where you need to give PSA table name and request older than (no of days before which you want to delete data ).
    Execute it and it will delete all the data before specified no of days .You can add multiple PSA tables here and can delete whole data in one go .
    Regards,
    Jaya

  • How to delete PSA Data from any Table

    Pls specify the steps to delete PSA Data from any specific table.

    You can delete the PSA requests manually one by one as specified in the previous posts.
    You can also trigger the deletion of PSA periodically by using Process chain.
    'Deletion of PSA request' is the process type that need to be used.
    By this way you can delete all the PSA requests of the table, that are older than certain number of days.
    you can also schedule the PSA deletion for more than one table at a time, by including the tables in the same Process chain.

  • PSA Data Deletion in SAP BW running on Oracle

    Hi,
      I deleted 2 failed requests (10000000 Records) from PSA Tables because of the disk space issue for our BW System.
    RSA1—PSA –DELETE PSA DATA –
    The requests are deleted from the PSA, In BW in can see that there not requests in that particular PSA.
    But Basis/Database team raised an issue that the data has been added to the Database…
    What is this mean and how can I proceed with this
    Thanks

    This is probably not an Oracle issue.
    refer to your other topic at PSA Data Deletion in SAP BW running on Oracle

  • PSA Deletion for Hierarchy Data sources

    Hi All,
    We have a 0customer_hier data source whose PSA needs to be included in the process chain for deletion of PSA on regular basis. I could find one table on the F4 search funcitonality while adding the PSA table in process chain variant.
    But if i look into RSRV i can 4 PSA tables. How do i get to assign all the 4 tables in the deletion variant ? Any pointers? Thanks !
    Regards,
    Vidya.

    Hi Vidya,
    In EHP1 , the deletion of PSA Tables can be done by specifying the selection patterns.
    You can check the new features in EHP1 for the same.
    -Vikram

  • How can i  delete PSA data in BI 7.0

    Hi all,
    you know in BW 3.5, Modeling - PSA - right click in PSA - delete PSA data, you can program how often you want to delete de data of the PSA , Example: 2 Days or from some date  or a selective data request,  now in my client we are now in BI 7.0, i find the PSA but i can get to this option that i had in BW 3.5, can you help me to find it, step by step please,
    Jorge Ayllon

    Hi,
    Pls Goto Datasource Tab in RSA1 - You can see PSA on the top click that you will have the PSA requests there click on it and delete.
    IF you want , use a process chain just as an addition information:
    You have a process type - Delete PSA request
    Please go thro' the link below:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_whm/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393236323035%7d
    Regards
    CSM Reddy

  • Data Deletion from PSA Tables

    Hi,
      I deleted 2 failed requests (10000000 Records) from PSA Tables because of the disk space issue for our BW System.
    RSA1—PSA –DELETE PSA DATA –
    The requests are deleted from the PSA, In BW in can see that there not requests in that particular PSA.
    But Basis/Database team raised an issue that the data has been added to the Database…
    What is this mean and how can I proceed with this
    Thanks

    Hi,
    Thanks for the info provided.
    So according to the info provided the Deleting the request from the PSA  marks as ‘To be Deleted’
    ‘When the last of all requests in one partition gets deleted,’ what do you mean by this.
    There are 2 requests in our PSA,I deleted 2 of them and in BW when I go to PSA there I don’t find any requests available in PSA.
    But our basis team complained that some data has been added to data base
    Thanks

  • PSA data not getting deleted

    Hello, I have an issue with the data in the PSA table not getting deleted.  I went to the datasource manage screen and deleted all the PSA requests, but the data still remains in the PSA table.   Do you know the reason and how to get rid of the PSA data from the table?
    Thanks.

    You may check if there isn't any inconsistency in the PSA. Happens sometimes.
    There are a few reports to check and repair them, like:
    - SAP_PSA_PARTNO_CORRECT
    - RSAR_PSA_CLEANUP_DIRECTORY_MS (RSAR_PSA_CLEANUP_DIRECTORY_MS if your db is MSSQL)
    Check the following SAP Notes and read them carefully:
    [1150724 - Consolidated note on the check & repair reports for PSA.|https://websmp107.sap-ag.de/sap/support/notes/1150724]
    [1051664 - Check and repair program BW7.x for Note 849857.|https://websmp107.sap-ag.de/sap/support/notes/1051664]
    [1063105 - Program 'RSAR_PSA_CLEANUP_DIRECTORY /_MS'.|https://websmp107.sap-ag.de/sap/support/notes/1063105]

  • Data deletion in PSA tables

    Hello Folks,
    I am trying to delete Older than 7 days data in my PSA tables, with Process chains I am able to delete the requests ID but actual data is not getting dropped. I can write an ABAP program but that will delete the entire content of PSA tables. I went through lot of SDN messages in this regard but I did not find a solution. Could you please throw some suggestions on this?
    Kris

    Hi,
    There is a process type called "Deleting requests from PSA" and there you can set the frequency i.e. how many old data you want to retain.
    And as I seen once the request is deleted, all the data belonging to that request also get deleted otherwise there is no point in just deleting request ID's.
    I guess there must be some issue with your process chain. Try manually deleting PSA request if they are still available in PSA table.
    Regards,
    Durgesh.

  • 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

Maybe you are looking for