How to delete cube old request by using abap code?

Dear experts,
Here is one thing need your help:
We have one cube need to delete the old request. This cube is loaded daily and only need to delete the request of that month.
I know there is one "Delete Overlap Requet" type in the process chain, but my concern is: in our DTP filter, different day the selection will have different values, let's say A and B, and A and B are not even overlap at all.
So my question is:
1. Can I still use "Delete Overlap Request" to delete the old request?
2. If so, I see it can be implemented by abap routine, can anyone give me some sample code? Like how to delete request only in this month. And how to delete request whose selection is equal to a specific value.
Note: one of the source cube is real time cube so can not delete the request from infopackage.
Any post will be appreciated and thank you all for your time in advance!
Regards.
Tim

Here is the intial code when I choose "Request Selection through Routine", please help me on how to choose the specific request and delete them in this routine.
program conversion_routine.
Type pools used by conversion program
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line  -
TABLES: ...
DATA:   ...
$$ end of global - insert your declaration only before this line   -
    InfoCube        = ZPC_DEL_REQ_ZBPS_C01
form compute_ZPC_DEL_REQ_ZBPS_C01
  tables l_t_request_to_delete structure rsreqdelstruc
  using l_request like rsreqdone-rnr
  changing p_subrc like sy-subrc.
*Insert Source Code to decide if requests should be deleted.
*All Requests in table l_t_request_to_delete will be deleted
*from Infocube ZPC_DEL_REQ_ZBPS_C01.
*Add new requests if you want to delete more (from this cube).
*Remove requests you did not want to be deleted.
$$ begin of routine - insert your code only below this line        -
     loop at l_t_request_to_delete.
     endloop.
     clear p_subrc.
$$ end of routine - insert your code only before this line         -
endform.

Similar Messages

  • How to delete the duplicate requests in a cube after compression.

    Hi experts,
        1. How to delete the duplicate requests in a cube after compression.?
        2. How to show a charaterstics and a keyfigure side by side in a bex query output?
    Regards,
    Nishuv.

    Hi,
    You cannot delete the request as its compressed as all the data would have been moved to E table ..
    If you have the double records you may use the selective deletion .
    Check this thread ..
    How to delete duplicate data from compressed requests?
    Regards,
    shikha

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • How to delete the old code in the EXIT_SAPLRSAP_001

    Hi All,
    In R3 system, I wrote an exit for 2LIS_11_VAHDR  by using T-code CMOD in the function exit EXIT_SAPLRSAP_001 and the code does not meet my requirement today i want to delete the code and i will write the fresh one. now my problem is i am not able to delete the code can any body suggest me how to delete the old code.
    and can we create new project and can we assign to the Enhancement RSAP0001.
    Can anybody suggest me in this
    Thanks in advance......
    Narendra

    Hi Narendra,
    You can put the code in comments, if you don't want to use the old code..You can delete also..But be sure that code belongs to you only..
    SE38>zxrsau01>change-->find out your data source
    Comment(Or can delete) the code starting from WHEN '2LIS_11_VAHDR'. to the end of the code that you have written..
    If you really want to delete the assignment of RSAP0001 to your old project>goto CMOD>your project name>change>delete assigment
    Then create a new project and assign the enhancement RSAP0001 to your new project and write the code in Include 'ZXRSAU01'..
    Hope it helps
    Thanks
    Teja

  • How to delete a single request from DSO in BI 7.0

    Dear Experts,
    Could you please tell me how to delete a single request from DSO?
    I mean, in DSO if we delete one request it also delete the requests which are above it. But i don't to delete the above it.
    Please suggest me this issue.
    Regards,
    Prathap

    IN DSO--its a very basic thing....
    ACTIVE TABLE and CHANGELOG tables are overwritten after activation of each request.
    So ,each new request has a realationsip with the older request.
    So in the cases:
    1.If you activate the older request it will delete the new one ,because changelog entries have been written from the data of new request on the basis of the older one.
    e.g older request  entries:
    a x 1
    new request
    a x 2
    change log
    a x 1
    a x -1
    a x 2
    so its quite obvious you can't have  a x 2 directly (because in the infocube you will be sending wrong entries by deleting the just the older request and loadning new request).
    2.If you have activate new and old request toghterh then also system will not allow you to delete the newer request alone and you will have to delete both the requests.
    I guess already someone proposed correct solution to you ...thats selective deletion...but rahter than doing selective deletion there is a better way if you want to cancel out a particular request:
    thats request reverst posting
    IN the process monitor of any particular request you can find out the option for request reverse posting..Its good for individual request cancellation(keyfig values will become 0 for that particular request)
    regards,
    rk

  • How to delete an old app in DPS App Builder?

    Hi,
    I was wondering how to delete an old app in DPS App Builder when the delete button is inactive?
    I had purchased a single edition and build an iPad App. After download the Developer app from DPS App Builder and tested on my iPad, I'd found some page number errors so I'd created a new app. Inorder to activate app, I need to insert the serial number. But it says "this serial number already been redeemed".  Is it because I already use it to build the old app? If so, how to delete the old app because the delete button is inactive for the old app but the new one?
    Thank you so much for your kindly help, really appreciated!!!

    You need to call product support and have them reset your serial number. In the future you should test your content thoroughly using Adobe Content Viewer before building your app with the serial number. We make it rather painful to update when you are using a serial number for single edition
    Neil

  • How to delete the old schedule line release in apo

    How to delete the old schedule line release (from current date) in apo which is having schedule  firmed?
    Please suugest.
    Sunil

    How is it possible to delete old purchasing schedule lines in APO (that do not exist in R/3)?
    Though used successfully before, /SAPAPO/CCR will not reconcile our discrepancy in this case.
    Thanks in advance,
    Jim

  • I have a new apple ID but if i want to buy music or free games in the apps store but they want me to log on my old iD and password but is not working anymore please give me a solution how to delete my old apple ID.

    How to delete my old apple ID? If i want to buy musics or free games in the apps store ,the old ID still show up to sign me but is not working anymore.please help!

    Go to settings, iTunes & App Store, tap on your ID, sign out, then sign in with your new information. You cannot delete an old ID, you just stop using it.

  • Can't back up my Iphone5 to my macbook pro, it tells me it may be corrupted, also I don't know how to delete the old backup to redo it

    Can't back up my Iphone5 to my macbook pro, it tells me it may be corrupted, also I don't know how to delete the old backup to redo it

    Hi Caveman337,
    Welcome to the Support Communities!  The resource below will explain how to delete an old iTunes backup.  Before you do this, I would suggest creating an iCloud backup of your iPhone. 
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    http://support.apple.com/en-us/HT203977
    Back up using iCloud
    If you're using iCloud, it can automatically back up your content. Use these steps to turn on iCloud Backup:
    Tap Settings > iCloud > Backup. If you're using iOS 7 or earlier, tap Settings > iCloud > Storage & Backup.
    Tap iCloud Backup to turn it on.
    Tap Back Up Now.
    After you turn on iCloud Backup, iCloud will back up your content automatically. You can return to this screen to see when the last back up happened.
    Create and delete iPhone, iPad, and iPod touch backups in iTunes - Apple Support
    http://support.apple.com/en-us/ht4946
    Where your backups are stored
    The folder where your backup data is stored depends on your computer's operating system. Make sure the backup folder is included in your data-backup routine. iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Delete a backup
    If you want to delete a backup created by iTunes:
    Open iTunes Preferences:
    Mac: Choose iTunes > Preferences.
    Windows: Choose Edit > Preferences. Learn how to turn on menus in Windows 7 and 8.
    Click Devices. (The iOS device doesn't need to be connected.)
    iTunes will show the phone number, International Mobile Equipment Identity (IMEI) number, and serial number of the backed up iPhone when you position your mouse pointer over a backup. (Only the serial number will be shown for iPad and iPod touch). You can use this to find the backup you want to delete.
    Select the backup you want to remove.
    Click Delete Backup.
    When prompted, confirm that you want to remove the selected backup by clicking Delete Backup.
    Click OK to close the iTunes Preferences Window.
    Backups that have a date and time stamp in the backup name are copies of backups created by restoring the iOS device. The date and time in the left column are when the restore-from-backup occurred. The date and time in the right column are the last synced date; this shows how current the data is.
    I hope this information helps ....
    - Judy

  • HT204074 I want to delete my old email and use my new email and trying to update but old email keep coming back

    I m having trouble with a person not speaking well English .  I had fraud on my bank acct and my phone has all info. And I deleted old email and create all new gmail address. Now on my ipad I create new email address. And how will I delete my old email and use my new email, I can't even update cuz my old email still there.  Please help me.

    Go into the Settings> and then tap on Mail contacts and calendars.
    One that screen tap on the email account you want to delete. On the next screen at the bottom it should give you the options to "Delete Account" in red. Tap on that and delete the account from your iPad.

  • How to delete an old locked appleworks (.cwk) word processing document?

    How to delete an old locked appleworks (.cwk) word processing document? This is merely a startup file to make AppleWorks come up with text formatting etc all set to desired styles. AppleWorks doesn't work in Mavericks. I cannot find how to use Get Info to unlock this file so that it may be shoved to the trash.

    Eustace,
    1. Yes, the screenshot did not survive the trip into the text entry box after I hit send or whatever. Maybe I should upload it to my Flickr account and give it its own set and then insert the URL for that set here.
    Thanks for the link. I've never used Terminal before so I tried out your link twice. I was able to follow the directions but I did not see an icon for the created file appear on my desktop. Then I added two screenshots to my desktop and those did not appear either. So, I restarted and both the file names that I'd created with terminal and the screen shots appeared on the desktop. Then I tried to use Terminal to make the added file disappear and it would not. However, I was able to select the created filenames and the screen shots and dump them all in the trash and empty the trash.
    This morning I tried the method to create a file on the desktop a third time and it still does not appear on the desktop. What is the command for showing a listing of all the files in a directory? Suppose I wanted a listing of all the files on my desktop. I probably should be looking on the internet for a tutorial on using Terminal.
    I understand your suggestion that I can use Terminal to delete the unwanted locked files but my computer is not acting quite the way the tutorial in your link suggests.
    Thanks for the idea. It tells me I need to learn a bit about using Terminal.

  • How to delete the Transport Request?

    Hi all,
       I want to delete the Transoport Request from Production Box( we have 2 request number... one child another one parent). I released the Child Request. Now i want to delete that request. we don't have setup in our production Box i think(in order to release that we don't have setup in Production Box).
    Any Idea? I know how to delete that Transport Request. If i try to release that i'm getting TP(Transport Profile error) <b>with return Code 12</b>. it suppose to handle by Basis. My basis consultant is not aware of how to work on this?
    Regards,
    Nagesh Ganisetti.

    I am not sure I understand.
    You release the request in the system you created, not in another system (in your case production). It will then go to the import queue of the target system.
    Transports will be configured in all the systems in your landscape (including production).
    Just by releasing a request, it will not go to the target (unless it is configured so, not likely if the target is production), someone has to import it into the target. I assume you do not want this request to go to target. In this case, release it, then go to STMS, import queue, and delete it from there.
    Added -
    I now see that the request is in production.
    Igore the above in that case.
    If you are not able to release it, let it be. If you are doing an upgrade/support pack, you will need to release it.
    When you try to delete, what message do you get?
    Message was edited by: Ajay Das

  • Please guide me how to delete the OLD claimed trip details

    Hi SAP Gurus
    We have corrected the all the cliams by newly created an posted properly today , how ever they are struck now and since they are form old employees (2007-2008) , few are still active / terminated/ retiree staus cant delete them nor make it zero. But appear in our report as pending...
    Please guide me how to delete the old trips.. your support really appreciated..
    Thanks
    Shan

    Hi Shan,
    As per my knowledge, no table should be deleted. Check the below link for more info.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/73/6bf037f1d6b302e10000009b38f889/frameset.htm
    <<removed>>
    Thanks,
    Praisty
    Edited by: Matt on Jul 26, 2011 3:11 PM

  • How to delete the old schedule line release?

    Hello,
    How to delete the old schedule line release in apo?
    Generally GR has to be carry out  schedule line release  in r/3 which reduces the Schdule line release.
    But i do want do GR against old schdule line release instead i want to delete the old schdule line release.
    Please suggest.
    Regards,
    Sunil Patil

    Sunil ,
    /sapapo/cmds_del  is the tcode to deleted sales scheduling agreement confirmations and releases
    /sapapo/display_conf  is the tcode for displaying sls. sch.agr confirmations and releases
    The above two are in the supply chain collaboration menu
    /sappao/cmds_sc02 is the tcode to delete sales scheduling agreements . This tcode is in the application specific master data menu
    Thanks
    Saradha

  • How to delete the compressed request in bi 7.0?

    how to delete the compressed request in bi 7.0?
    Reverse Posting option available in BI 7.0?
    Thanks,
    Pramod

    Hi Pramod,
    Check this Thread,
    Re: Selective deletion after compression
    before posting a thread pls check in the forum.Lots of threads are already been posted related to your Query.
    Hope this helps..........

Maybe you are looking for

  • Re-sizing and annotations do not mix?

    Can someone confirm this behaviour? In LV8 open "Programmatically Annotate a Graph.VI" in ...\labview\examples\general\graphs Right click on Waveform Graph and select "Scale Objecth Pane". Run it. Re-size window of VI by dragging right edge OR bottom

  • IOS 6 Update ruined my 4s.

    I bought my iphone 4s on December 25th 2011. It worked perfectly, I absolutely love my phone. Although, ever since I downloaded the IOS6 Update, it has been glitching, crashing, and I've had to reboot it about 5X a day. It's not fair.. I payed 700$ f

  • Itunes does not install or update on my computer or any other one i've tried

    I have been trying to install itunes on my mums windows 7 laptop for the past two weeks, and nothing is working. I first try to update it but this did not work. so I unistalled it and then removed all temp files etc, this has not worked. I've tried t

  • Document Management System: Unique ID relation to RMS_ID and SPS_ID,

    Hi, I am working on a program related to records management system, where in I need to retrieve the details such as RMS_ID and SPS_ID related to the unique identification number provided. Can anyone please let me know how to retrieve the RMS_ID and S

  • How to use a file as storage

    Hi, I am creating an online address book system.I want to use a text file to store the details of users(Not a database). How can I accomplish this.Should i create a file for each entry.there will be fields like username,password,address,phone number,