How can I delete all loads for a specific infopackage in a process chain?

Good day all,
I've got a BW 3.5 system. and I have a cube which is loaded by two infopackages, I will call them "Current" and "History" which load each month.  On an ongoing basis I only want one "Current" infopackage load and many "History" infopackage loads.  At the beginning of a month before I load a new "Current", I would like to delete any loads in my cube that were loaded by "Current".  It's not an overlapping selection request, so the automated delete won't work - so I'm open for suggestions.
Thanks,   Ken

In the InfoPackage settings - Data Target tab, use the Automatic loading of similar/identical requests option.
Instead of deleting "overlapping", you can request selection through the routine using the following tables:
rsreqdone contains the request numbers and the InfoPackage technical name.
rsseldone contains request numbers and their selection criteria.
Use something like this:
TABLES: rsreqdone, rsseldone.
DATA:   itab_rsseldone TYPE rsseldone,
        itab_rsreqdone TYPE SORTED TABLE OF rsreqdone WITH NON-UNIQUE
        KEY rnr WITH HEADER LINE,
        v_date TYPE sy-datum.
*selecting all requests from RSREQDONE that were loading from this infopackage
select rnr from RSREQDONE into table itab_rsreqdone
where LOGDPID = 'Current Infopackage Technical Name'.
loop at itab_rsreqdone.
*selecting all these requests + selection criteria from RSSELDONE
select single * from rsseldone into itab_RSSELDONE
where rnr = itab_rsreqdone-rnr.
if sy-subrc EQ 0.
v_date = sy-datum.
*if the Month Selection criteria is less than the current system month
*then delete request from target.
if itab_RSSELDONE-low(6) < v_date(6).
*all requests remaining in l_t_request_to_delete are deleted from the data target
l_t_request_to_delete-rnr = itab_rsreqdone-rnr.
append l_t_request_to_delete.
ENDIF.
ENDIF.
endloop.
*do not delete the actual request
DELETE l_t_request_to_delete WHERE
rnr = l_request.
clear p_subrc.

Similar Messages

  • I bought this apple ipad from pawn shop and have receipt. its locked by previous owner and pawn shop had no info on previous owner to contact. how can I delete all content and start fresh so my grandson can use for college?

    i bought this apple ipad from pawn shop and have receipt. its locked by previous owner and pawn shop had no info on previous owner to contact. how can I delete all content and start fresh so my grandson can use for college?

    If it's activation locked, you can't; go back to the shop and ask for a refund.
    (120778)

  • How can I delete all my mail from my computer, but leave it all on .Mac ?

    How can I delete all my mail ( 3.5 ) on my computer ( original G4 ) but leave it all on the .Mac servers?

    backup the device and restore it as new.
    If you already have or don't need a backup:
    Erase your device
    Erasing all content and settings will delete all the data from your device, including songs, videos, contacts, photos, calendar information, and any other data. All device settings are restored to their factory condition.
    To remove all settings and information from your device, tap Settings > General > Reset > Erase All Content and Settings. For more information about this feature, see iOS: Understanding 'Erase All Content and Settings'.
    If you are unable to erase your device, restore the device using iTunes.
    See: http://support.apple.com/kb/HT4137  for the exact steps.
    Transferring ringtones isn't supported, as far as I know...

  • How can I delete all this information, or can I restore the Ipod?

    My daughter is 9 has an Ipod. I put my email on his device and than she have access to all my contacts and messages. Question: How can I delete all this information, or can I restore the Ipod? Second question: How can I create an e-mail for her, in order she has access to Face Time, Imessages and download games, but I need to have track of this?

    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • Time capsule intern.1TB hard drive.How can I delete all files

    Hello How can I delete all files from my timecapsule.
    I have connectet it with Wifi or ethernet. It is not possible.
    I have made a reset.
    I have tried it often.
    Please help
    Greetings from Vienna
    Pepimeier

    If you open Macintosh HD > Applications > Utiltiies > AirPort Utility and click Manual Setup, are you able to access the settings for the Time Capsule?
    Or, does AirPort Utility scan for the Time Capsule and then not find it?

  • How can I delete ALL contacts on my iphone and replace with an updated file from my Outlook on PC

    how can I delete ALL contacts on my iphone and replace with an updated file from my Outlook on my PC

    iTunes running, your phone connected, on the Info Pane, scroll down to "Advanced". Put a check in the box labeled "Replace Info on this Phone for Contacts" on next sync. Hit the apply/sync button.

  • How can I delete all my music from my iPhone 4s

    How can I delete all the music from my iPhone?

    I finally went to Apple Care tech support (the best!) for help.
    Plug your phone into the computer.
    I-Tunes should open.
    Toward the top left of the page, click on the small I-Phone icon.
    Select Music in the sidebar.
    In the right window, your music should appear.
    De-select what you don't want, then click Sync.
    Voila.
    I am running Yosemite 10.1.1
    I-Phone 4S  8.1

  • How can i delete all of the emails in my inbox at one time?

    How can I delete all of the email messages in my Inbox all at once?

    You can't. You highlight each one, then hit delete. Once in your trash, you'll have the delete all button.

  • How can i Delete all foto from my iphone and after some time get them one more time on it but not as a new album :)?

    How can i Delete all foto from my iphone and after some time get them one more time on it but not as a new album, i want them in the camera roll ?

    How can I delete EVERY THING off my Mac and have it like new?
    Boot from the software install DVD and do an "erase and install" when prompted.

  • HT5500 How can i delete all contacts on both iphone 4 and ipad mini 2

    How can I delete all contacts on an iphone 4 or ipad mini 2

    Open a contact.  Click "Edit".  Scroll to the bottom.  Choose "Delete contact".  Repeat.

  • How can i delete all my photos and music easily?

    how can i delete all my photos and music easily?
    I have changed to a new macbook and given the old one to my partner (generous?) and want to delete a lot of my stuff on the old one (iphoto and itunes) without losing safari and mail data, settings etc so I dont want to a clean reinstall.
    Jo

    Jhunior wrote:
    HI
    I need help
    Please
    But i need talk too you, i don´t speck english very well, I´m a Brazilian Guy
    Then post your question in your native language.  This is a multi-lingual forum.

  • How can I delete all the files in the Adobe CS4 Master Collection from my machine?

    How can I delete all the files in the Adobe CS4 Master Collection from my machine. I have tried Control Panel but it will not do anything, there are no error messages, it is like as if it is ignoring my instruction. Why should it be so difficult to delete programs one does not want. Any ideas please.

    Moved from Cloud forum to Downloading, Installing forum
    Try running the Adobe Cleaner Tool
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • How can you delete all the e mail at one time instead of one at a time?

    How can you delete all the e mail at one time instead of one at a time?

    you'd have to do it from the computer,

  • How can I delete all the email from a user's account?

    I have a user account with a huge amount of mail (around 50K messages) that Apple Mail can't deal with... it constantly hangs and/or crashes whether I use POP or IMAP to try and delete all the mail from the client.
    How can I delete all the mail from the mailbox on the server? I don't want to delete the account entirely, I just want to empty everything out of it.
    Thanks!

    sudo -u _cyrus /usr/bin/cyrus/bin/ipurge -d 0 -f user/mailboxname
    HTH,
    Alex

  • How can I delete all photographs in stream of my iPhone 4 without loosing them on my mac?

    How can I delete all photographs in stream of my iPhone 4 without loosing them on my mac? Because I have too much photographs
    in my phone's memory and I need to know a simple methode to get them off.

    Login to iCloud.com, hit the "Reset Photo Stream" button. This will delete all photos stored in iCloud, but not any photos pushed to any devices. Then, on your phone, Settings>iCloud>Photo Stream>Off. This will delete all photos in your Photo Stream album, on your phone. This will leave them on your Mac as long as you don't turn Photo Stream off on your Mac. If you first import them to your iPhoto library, you can then turn Photo Stream off on your Mac & they will remain in your iPhoto library.

Maybe you are looking for

  • Help needed in Multiple Receivers sceenarios using BPM

    Hi, I am new to BPM. As per my requirement, based on a business logic i may split the messages into two at message mapping. If i have spitted the messages into two, it should go to different receivers. Or if my logic hasnt splitted the mesaage means

  • How can I export a graphic slide with a quicktime movie from Keynote?

    I export a title slide with a quicktime movie from Keynote to my desktop and it plays fine with audio. Once I insert or drag the clip into iWeb the resolution is degraded and very choppy. The resolution is 320x200 and I'm exporting from Keynote as a

  • IDVD won't read nor import DVD-R movie

    I have a very old version of iDVD, 2.1.2. I have trying to create a highlight film for my girls basketball team. I know I don't have a combo drive but I'd like to create something they could watch on my old ibook. I have recorded a few of our games o

  • IPod touch 4th generation freezes

    My iPod Touch has just frozen at the start screen when the slider was slid across to the right.  It stayed there, the clock time stopped advancing and it will not respond to anything.  I cannot slide it back, turn it off, slide the camera button up t

  • Hyperion Planning 11.1.2.4

    Dears, I created an epma application but I am not able to see the application when i login from HyperionPlanning url. Please some one suggest something. Thanks.