Deleting Request from cube based on Selection Condition

HI All,
I have a scenario where i have three selection condition while i update from ODS to CUBE . I keep getting differnet versions of the file so the latest version should replace the old version , to do this i tired using the option
Delte Request from Info Cube after Update in the Data Tagets tab
And the Radio button Overlapping is checked  . ( This is not working )
The three selection conditions in Info Pacake are
Reduest id from ODS : 11111
Cal Month                 : 20072
File Type                   : B
The selecion condition for the second Version in Info Pacake of the same file that should replace the first file in cube is
Reduest id from ODS : 22222  ( The request id is RID in the ODS for second file )
Cal Month                 : 20072
File Type                   : B
so can any one let me know how can i achvie this ........

Hi Abraham,
   You select the variable deletion conditions when you schedule the InfoPackage that is going to load the new data. On the Data Targets tab page in the Automatic Deletion of Similar/Same Requests from InfoCube column, you click on the pushbutton to go to the Deletion of Requests from the InfoCube After Update dialog box.
Here you determine under which conditions existing requests are deleted from the InfoCube:
·        You can include update modes, InfoSources, DataSources, and source systems for requests.
Example
Requests are deleted when the appropriate deletion conditions are met if existing requests and new ones were loaded from the same DataSource.
·        You can determine whether the selections for the new request need to be the same as or more comprehensive than the selections of the request that is to be deleted, or whether the selections for the new request need to completely or partially overlap the selections of the request that is to be deleted.
·        You can specify deletion restrictions according to date. This means that, when the deletion conditions are met, only those requests that were loaded within a specific time period are actually deleted.
Example
If you choose Data for the Request from the Last Seven Days, only those requests are deleted that have been loaded in the last seven days.
·        You can specify situations in which a request is not to be deleted, even if the appropriate deletion conditions are in place.
Example
If, under Exceptions, you choose the Today is …the Last Day of a Month, existing requests are not deleted, if the new request is loaded on the last day of a month.
·        Another option for determining deletion conditions is creating a user routine for the InfoPackage and the InfoCube.  In this routine you can exclude requests from a deletion process or include additional requests for deletion.
Check conditions again, it will work, if selection and data source is same.
Hope it Helps
Srini

Similar Messages

  • Delet request from cube

    Hi,
    I need your help,
    i want to delete a request from a cube with the process  "delete request in Infocube". But my problem is I want the deletion sections Is yesterday or today, only delete  request from same DTP, New request will be loaded on (2 day of a month) BUT I dont want the selection restriction, because every day I want the last view (sy-datum - 1). I only want to save the last day of the month.
    example
    load from 31.08.2010
    load from 30.09.2010
    load from 01.10.2010 (deleted the day 02.10.2010)
    load from 02.10.2010 (deleted the day 03.10.2010)
    load from 03.10.2010 ...
    any suggestion?
    regards,
    victoria

    Hi,
    Check the process "Delete overlapping requests from infocube".
    Select radio button "Edit All infocubes with following delete selections" & press button Delete Selections > Delete existing requests>conditions : data sources are the same --> selections are : same or more comprehensive -->Request date is in the current month --> Exceptions : new request will be loaded on 1st day of the month (if it's running everyday including weekends)
    --Akashdeep

  • Deleting requests from Cube with code using infopackage with two targets

    hi experts,
    Working on BW 3.5.
    I am creating a process chain to load from a table in a source system to two Infocubes.
    In the start routines of the update rules depending on the date of load, if it is not the last day of month InfoCube A will be loaded with data and InfoCube B will have Datapackage deleted but a request will still load but will contain no data.
    And vice versa if it is the last day of month.
    In InfoCube A I only want to retain a rolling 15 days of data and have entered a "Delete Overlapping Request from Cube" step.
    In the "Deletion-selections" of this step I have added a "Request Selection through Routine" and put in the following code;
      del_date = sy-datum - 15.
      loop at l_t_request_to_delete.
        if l_t_request_to_delete-timestamp+0(8) GT del_date.
          delete l_t_request_to_delete.
        endif.
      endloop.
    My question is, how can I ensure this delete code will only work for InfoCube A, as I only want the rollings 15 days of data in here, in Infocube B I want to store all the requests that are loaded here for the end of month.

    Hi
    Try in some sql browser with outer joins and you will see the problem.
    select *
    from (select nvl(leverklant.klant_code,'-1') fk_cube_abonnementen_kla_code,
         nvl(factuurklant.klant_code,'-1') fk_cube_abonnementen_kl2_code
         from ods_titsub
         left outer join dim_klant leverklant on (leverklant.klant_code = ods_titsub.cust)
         left outer join dim_klant factuurklant on (factuurklant.klant_code = ods_titsub.sta_cust)
         where (case substr(ods_titsub.isbn,1,8) when 'FBVISTAQ' then 'J' else 'N' end) = 'N'
         and ods_titsub.rec_sta <> 'X'
         and ods_titsub.curr_start >= to_date('01011999', 'DDMMYYYY')
         and ods_titsub.curr_start <= to_date('01022008', 'DDMMYYYY')
         and (leverklant.klant_sk is null or leverklant.klant_sk = leverklant.dimension_key)
         and (factuurklant.klant_sk is null or factuurklant.klant_sk = factuurklant.dimension_key)) a
    left outer join dim_klant b on
         b.klant_code = a.fk_cube_abonnementen_kla_code and
         b.dimension_key = b.klant_sk and b.klant_sk is not null
    left outer join dim_klant c on
         c.klant_code = a.fk_cube_abonnementen_kl2_code and
         c.dimension_key = c.klant_sk and c.klant_sk is not null
    Regards
    Result will be like:
    FACT_TABLE DIM1 NULL
    FACT_TABLE NULL DIM2
    but never like:
    FACT_TABLE DIM1 DIM2
    Message was edited by:
    Armands

  • Delete overlapping requests from cube not working in processchain.

    In a process chain, 'deletion of overlapping requests from the cube ' step is used.
    Before this step a DTP step runs with a full update to load the cube. This process chain is scheduled every day.
    Issue is, the process chain failed at the DTP step and after correcting and repeating, the step got executed.
    However, the next step after the DTP,'delete overlapping requests from the cube'
    gets executed but without deleting the previous day's request.
    In the step details a message that 'No request for deletion were found' can be seen.
    Then next day when the DTPstep is executed without any problem the 'delete overlapping requests from cube' step is successful
    and the previous requests from cube are deleted.
    the deletion selections in the step ' delete overlapping request from infocube' is
    Delete existing requests
    Conditions:
    only delete requests from same DTP
    Selections
    Same or more comprehensive
    Because of this issue on a particular day because of the presence of 2 days requests the data is getting aggregated and shown as double in the reports.
    Please help.

    Hi Archana,
    When you delete the bad request from target and before repeating your DTP in PC, make sure the bad request deleted from table RSBKREQUEST also.
    If you find the same request in table, first delete the request from table and repeat the DTP in PC.
    Now Delete overlapping step should work.
    As this is not the permanent solution, please raise an OSS for SAP
    Regards,
    Venkatesh

  • Delete Overlapping Reqeust in DTP deletes more than one request from cube

    Hi all,
    I have selected the following options in delete overlapping request as we need only one request in the cube.
    Delete existing requests
    Only delete request frm same same DTP
    Selections are
    Same or More comprehensive
    Scenario is:
    DSO>DTP>Cube
    I have set this delete overlapping request in the DTP (in a processchain).
    Now at the time i added this step in Process chain, there were two requests in the Cube (both with the same DTP but first one was 2009 data and second was 2010 data)
    Need was to delete only the latest request from the cube ie 2010 data.
    As per my understanding, i assumed delete overlapping will delete only ONE request i.e. the latest one from the cube with 2010 data.  But when i ran processchain, it deleted both the requests.
    Is that the functionality or is there something I am missing? We need to retain 2009 data and overwrite 2010 data with the new request.
    Suggestions please.

    Hi,
    I suspect that you have not set any DTP filter criteria. Is this the case?
    Are these requests delta DTPs or full DTPs?
    Have you read/applied these notes:
    1155723 P18:DTP:PC: Deleting overlapping DTP requests in PC
    1318438 P21:DTP:PC: Change of instance when DTP in PC repaired
    1147766 P18:PC:DTP:Select only full DTPs for overlapping deletion
    1336410 70SP22: Enhancements to CL_RSBK_DTP=>GET_ALL_BY_PROPERTY
    Rgds,
    Colum

  • What is the difference between methods of deleting data from cube

    Hi,
    Is there any differences, pros and cons for deleting data from cube by:
    1) deleting the specific request loaded into the cube
    2) using selective deletion with specific characteristic values
    Assumption for the above is both the options will delete the same data set.
    Thanks and regards.

    Hi BW Beginner,
    Yes, of course, there are differences.
    Selective Deletion:
    PROS: You can use to delete data that satisfies a certain criteria (e.g. some characteristic values).
    CONS: I think this locks the whole cube during deletion
    Deletion by request id:
    PROS: You can easily delete all data that belongs to a certain request id (i.e. you can easily delete a bad load).
    CONS: If you have already compressed the cube, you can not use deletion by request id to delete a certain request.
    Hope this helps.

  • Unable to delete requests from ODS

    Hi Experts,
    I am trying to delete requests fwhich is having some added records rom an ODS. I changed the status of QM to RED and in the monitor screen as well. Now, when I try to select the request and delete, a trash can appears and after hitting the refresh button the reportinng availability appears against the request.
    I deleted the entries in the change log table...then I was able to delete the request from the ODS. Now when I try to reconstruct those deleted requests from the Reconstruct tab by changing the QM status in the monitor to green, the status of these request are in Yellow and there are updated records but the added records are 0. When I try to change the QM status it give s message "Request is already (partially) activated, no further QM action is possible.
    How do I change the request QM status to Green and the get all the added records as there were in previous instead of 0's with out reloading the ods from r/3.
    Thanks in advance,
    HT

    Hello,
             This error may be  RSMPC141 error.
    Please see Note 643880 and Note 849857
    this may occur  becos of loss f records in change log.
    You will need to reload to fix this problem
    regards,
    karthik

  • Unable to delete request from ODS - BW 3.5

    Hi experts,
    I am not able to delete request from ODS in BW 3.5, patch level 21. I put the request red, but it does not help to delete it. The request is full load and quite hudge (16GB). Deleting actually takes too long (several hours), but does not finish, so I cannot tell you any error description. It seems that this job can run forever... I was trying to activate the request before, but because of a tablespace limitations I received some short dumps. That is why I am trying to load it agin in smaller parts. It is strange thou that in Manage/requests tab the request has flag 'available for reporting' but the data cannot be viewed as active (only as new data). Any ideas, OSS notes?
    Thank you,
    Michal

    Hi,
    If you want to delete  requests manually from the ODS tables.
    1. tcode se16.
    2. delete the request in these tables : RSICCONT (delete activated requests OR
    Make the selective deletion of the contents of that request), RSMONICDP, RSODSACTREQ (give the name of the ODS and the
    request ID and delete all the entries pertaining to this selection in that table.), RSODSACTUPDTYPE.
    You can check OSS Notes 947481
    Regards.

  • Recover deleted requests from DSO

    Hello BI Experts,
    We have been deleted requests from standard DSO accidentally. The data has been deleleted for 3yrs and we have been trying to recover from Reconstruction tab but could not found anything there.
    Can any body tell me how to recover recover deleted requests from DSO? I would really appreciate your great help.
    Thanks in advance,
    Regards,
    Venkat

    HI BI Experts,
    When we personalize Query language to another language in the SAP Portal, the variable selection fields are not displaying with description and they are displaying in the technical name.
    Example: Opened BI report from the SAP Portal and selected Personalized settings, from there selected Portal language as French. when I selected French language, the vaiable selection screen field names started appearing with technical field name in the French language but it should display the field description not the technical name.
    I hope you understand my question.
    End user does not understand the technical names when they have selected personal language. Can any body tell me how can the fields displays with description from the variable selection screen. I would really apprecite your help.
    Thanks,
    Venkat

  • Where can we see the deleted requests from the DSO

    Hi all, i have deleted a red request in the DSO , which stopped the process chian, so i manuallly loaded DTP and activate , repeated the pc and its fine now, but i need the information regarding the red request i deleted from the requests tab, can u please help me finding where can we see the deleted requests from the DSO, thanks in advance...

    Hi Raghu,
    Open the PC in SE38,goto PC logs on which day DTP failed.right click on DTP-->select Process monitor
    Click on filter buttor>select last oneweek>Execute
    Then select the failed request(It shows status as deleted) You find the details here itself -->take the request number from this
    goto RSRQgive req id>Execute
    Hope this helps.
    Regards,
    Venkatesh.

  • Error while deleting request from DSO: S:RSODSO_ROLLBACK:259

    Hi,
    While deleting request from DSO, we face following errors:
    S:RSODSO_ROLLBACK:259                129 transaction rolled back by an internal error: fail
    Message no. RSODSO_ROLLBACK259
    Job is getting completed with message:
    Deletion of request REQU_3HHPSMIMMVRF87FI0EGC5CS4B from data target ZPR_ODS failed
    Deletion of request REQU_3T80EDOBQR7CWSC8QKKHAMH5N from data target ZPR_ODS failed
    Deletion of request REQU_8JIMF8SRDOG0T3QG6AGRA63Q3 from data target ZPR_ODS failed
    Deletion of request REQU_CMCCHOZGOF3KXNMVXB94ZHMCB from data target ZPR_ODS failed
    Deletion of request REQU_BPCAB8LY6V4CMC3XQ12AWN7MJ from data target ZPR_ODS failed
    <Message short text RSODSO_ROLLBACK 259 does not exist>
    Parallel processes (for Rollback); 000003
    Timeout for parallel process (for Rollback): 000600
    Package size (for Rollback): Dependent on Activation
    Task handling (for Rollback): Backgr Process
    Server group (for Rollback): No Server Group Configured
    Job finished
    FYI:
    Kindly help us to resolve the error.
    Regards,
    Antony Jerald.

    Hi Dinesh,
    Thanks for your reply.
    We have Netweaver 7.30 with BW on hana on SP 9.
    First 3 SAP notes doesn't meets the need.
    Shall I use 1007717 note? 
    Which says:
         use transaction SE16 to delete all entries for this request and for this Operational Data Store (ODS) object from the RSICCONT, RSMONICDP, RSODSACTUPDTYPE and RSODSACTREQ tables. Then set the 'from-date' in the administration of the data target to a value older than the oldest request loaded in this ODS object. Choose 'Refresh'. This corrects the administration.
    Will it resolves the problem?
    Kindly suggest.
    Regards,
    Antony Jerald.

  • Problem while deleting overlaping request from cube

    Hi experts,
    I have one process chain in which i have one step where i am executing one DTP to load one cube and in next step deleing overlapping requests from same cube.
    i am getting error at that step "Error when deleting requests for comparison request DTPR_4CCDXZLK1OIGCVGGE1PP31Z3Y"
    what could be reason?
    plz help

    Hello,
    I guess you have not defined the overlapping variant properly.
    Please goto the definition of the variant and check for the right DTP input.
    Then at the bottom, select second option "Edit all Infocubes with Following Delete Selections"
    Click on deletion selections -> select delete existing requests.
    Also select if same datasource and source system. and importantly select the radio button as overlapping.
    Then save the variant. and try to use it.
    Regards,
    Shashank

  • How to delete perviously loaded request from cube

    Hi All,
    I am loading a standard cube from r3 w/o PSA through DTP.
    1 ) how to delete data automatically from cube w/o using Process chains.( previously we have a facility in Infopackage to delete old loaded data ) .In BI7 how to delete the same automatically.
    2) How to schedule the DTP to run on daily basis( w/o process chain ) .I am not able to schedule it via RSRDA ?
    What might be the reason ?
    Regards
      KK

    Chivukula,
    I'm curious as to why you aren't using the process chains.  There's now a "delete overlapping request" process type within rspc.
    You are right thought, the DTP does not offer a facility to delete out the old loaded data.  This feature is not in BI 7.0
    As for scheduling a DTP to run daily, there's no way I know of to run it daily without rspc.  Yes I understand that rspc could get very messy but just create a separate holding area, say DAILY DTPS and put your DTP's in there.
    Cheers,
    Pom

  • Deleting data from another table with multiple conditions

    Hi frnds
    I need to delete some data from a table based on multiple condition I tried following sql but its deleteing some rows which is not meeting the criteria which is really dangerours. When i trying = operator it returns ORa- 01427 single -row subquery returns more than one row
    delete from GL_TXNS
    where TRN_DT in (Select trn_Dt from GL_MAT)
    and BR in (select ac_branch from GL_MAT)
    and CODE in (select CODE T from GL_MAT)
    and (lcy_amt in (select lcy_amt from GL_MAT) or
    fcy_amt in(select fcy_amt from GL_MAT)
    rgds
    ramya

    My answer is the same as Avinash's but I will explain a little bit more.
    ORa- 01427 single -row subquery returns more than one rowmeans that you have a subquery that Oracle is expecting one value from that is returning multiple values. In your case you need one value for the equijoin ("=") and you are getting more than one value back. The error happens even if all the values are the same - multiple values being returned will cause the error.
    The solution is to either allow multiple values to be returned (say, use the IN condition istead of "=") or only return one value if possible (say, forcing one value by using DISTINCT, GROUP BY, or a WHERE clause condition of ROWNUM=1) - but these workarounds must be checked carefully to make sure they work correctkly

  • Identify ODS change log request from Cube update rules init routine

    Hello all.
    I need to use a logic in the Start routine of a cube, whcih change log request are move from an ODS when doing a delta.
    Anyone knows if this is possible???
    Thnaks and best regards,
    Alofnso.

    Hello Oscar.
    Basically my requirement is to do a selective deletion of the cube, before I load the new data, but the selective deletion has to be done according to some fields of the data that is going to be load to the cube.
    That´s why I need this.
    Best Regards,
    Alfonso.

Maybe you are looking for