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

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

  • 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

  • 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

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

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

  • 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

  • Need a way to permanently delete messages from iphone, even after syncing it with itunes it shows up in search history

    Need a way to permanently delete messages from iphone, even after syncing it with itunes it shows up in search history

    Before iOS 7 I NEVER searched internet for "how to do ... on iPhone ?". Now it's my third time when I cannot find a function to delete all messages on iPhone, that should be and was obvious in previous versions of iOS. To Erase iPhone Contacts, SMS and Photo Permanently,you must to use a iPhone data eraser software.
    This use guide about how to deleted iPhone contacts, message:  How to erase all messages from iPhone permanently

  • 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

  • I deleted pictures from my camera roll using my computer since i didn't have enough space to back up my ipad in my 5 gigs of space. but after deleting a huge amount of pictures. the size of the camera roll is still the same as when i started.

    I deleted pictures from my camera roll using my computer since i didn't have enough space to back up my ipad in my 5 gigs of space. but after deleting a huge amount of pictures. the size of the camera roll is still the same as when i started. some of these same pictures are still on my photostream. I deleted some of them -this time from the ipad itself- but the size of the camera roll remains the same. should i have not remeoved them using the computer for the camera roll.

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

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

  • I purchased songs from 2 different computers using itunes with the same apple id. I had 1 iPod I used for these but I just recently got an iPhone and I was wondering why it wasn't letting me put my purchased songs on my iPhone?

    I purchased songs from 2 different computers using itunes with the same apple id. I had 1 iPod I used for these but I just recently got an iPhone and I was wondering why it wasn't letting me put my purchased songs on my iPhone?

    You can transfer iTunes content from an iTunes library on a single computer only.
    Since these songs were purchased with the same iTunes account, you can download the song that is not in your iTunes library on the computer you will be syncing your iPhone with. Or you can download the song or songs direct on your iPhone.
    http://support.apple.com/kb/HT2519?viewlocale=en_US&locale=en_US

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

  • Can I delete icloud from my iMac and reinstall it with another apple ID?

    Can I delete icloud from my iMac and reinstall it with another apple ID? My original email for my apple id was hacked and I need to get rid of it but is stuck to my icloud on my imac. I changed it on all ios devices but cant on my imac. What can I do?

    Yes you can sign out of iCloud and log in with a different account. (System Preferences > iCloud > Sign Out)

Maybe you are looking for

  • Difference between copied requisiton and a normal requisition

    Hi Is there any way we can find out if a requisition has been created using copy to cart functionality i mean whether it has been copied from old requisition in iProcurement. I want to know the way to distinguish a copied requisition and a normal req

  • PR & PO comparision report

    Hi All, I need a report for comparison of PR qty & price with the PO  qty & price. Here i want to compare at service line level. 1. Is there any standard report is there 2. Any function module is there to get all POs with reference to PR. Regards San

  • ITunes needs DLNA service to share m4v (with Smart TV)

    I am really annoyed with Apple over this one.  Over the years I have spent thousands of dollars legally acquiring DRM-protected content for my personal and home use. I am in the process of acquiring the first 50 Gb of 150 Gb of an old TV favorite. No

  • Ati rage 2c resolution [solved]

    i have installed arch on pentium 3 with this card. arch used "vesa" as driver in xorg.conf and i had only tow options in resolution 480*640 and 600*800. i changed the driver to "ati" and "mach64" and now i have to more resolution - but lower. i also

  • Ken Burns incongruity..making it stop.

    I've loaded a few hundred jpegs into an album of iphoto to give a presentation. It isn't slideshow formatted; I want to manually advance the pegs using my Mac remote that came with my computer. But when I do that, it appears to be applying a Ken Burn