How to automate the deletion of existing request

Hi ,
I want to delete the existing old requests under Cube . How to automate this process .
Please can anybody help me .

Hi,
This code deletes <b>all</b> requests seuential from one particular cube determined by parameter I_Cube. Please create a variant with name of desired cube
and a batch job processing this variant.
REPORT  Z_DELETE_REQ_FROM_IC.
DATA: I_T_RSICCONT TYPE TABLE OF RSICCONT.
DATA: WA_RSICCONT  TYPE RSICCONT.
PARAMETERS : I_CUBE TYPE RSINFOCUBE .
IF I_CUBE IS INITIAL.
  EXIT.
ENDIF.
SELECT * FROM RSICCONT INTO TABLE I_T_RSICCONT WHERE
         ICUBE = I_CUBE.
LOOP AT I_T_RSICCONT INTO WA_RSICCONT.
  CALL FUNCTION 'RSSM_DELETE_REQUEST'
    EXPORTING
      REQUEST                    = WA_RSICCONT-RNR
      INFOCUBE                   = WA_RSICCONT-ICUBE
    EXCEPTIONS
      REQUEST_NOT_IN_CUBE        = 1
      INFOCUBE_NOT_FOUND         = 2
      REQUEST_ALREADY_AGGREGATED = 3
      REQUEST_ALREADY_COMDENSED  = 4
      OTHERS                     = 5.
  IF SY-SUBRC <> 0.
open for error-handling
  ENDIF.
ENDLOOP.
Please use it carefully 
Regards
Joe

Similar Messages

  • How to retrieve the deleted Transport request (Cust)

    Hi,
    I have deleted the Customizing Transport Request, by mistake. Now, I am trying to get the TR back.
    Could you please let me know if there is any way that I can recover my Transport Request.
    Thanks for the helpful answers.
    PS: I have checked the existing threads for the same. However, I don't see any solution.
    Thanks,
    Sandeep

    Hi Sandeep,
    It;s good if you can involve BASIS consultant or you can check below discription;
    If you have deleted from SAP level. Then you need to check at the OS level in /usr/sap/trans/log directory else you can check for the SLOG and ALOG folder also.
    If total request has been deleted then you can also do the transport manually at OS level.
    or
    If you have simply deleted the the requests from import queue through "Extras-> Delete imported requests" in transaction STMS_IMPORT and have not deleted the logs at OS level, then you can check in "Goto-> Import History" in the same transaction to view the requests.
    Just double click on the request you want and you enter the "Display Object List" screen for the particular request. 
    Here you can click on the secong "Spectacles" icon to display the transport steps of the request in each of your SAP system.
    Just double click on a step, e.g. 'Import', 'Check Version','Export' etc. to display the log for that particular step.
    You can also view the logs from operating system in the directory <TRANSDIR>/log. The logs are named in the format: 
    <Source SID><Step ID><Request no>.<Target SID>, where step ID is a single alphabet denoting a particular transport action.
    Or you can check below link also;
    How to recover the deleted Request / task...
    Regards,
    Kamfrk.

  • How to recover the deleted Request / task...

    Hi all,
    How to recover the deleted Request / task...

    I dont know the procedure for projects and requests, but i know for a report..
    Create a program with the same name as earlier (which is deleted)
    Click on "Utilities" --> "Versions" --> "Version Management"
    Select the version of your earlier program and click on display.
    Your earlier program is displayed here.
    reward if it helps u...
    sai ramesh

  • How to Recover the Deleted Transport Request

    Hi,
    How to Recover the Deleted Transport Request (Customizing and Workbench).

    Hi Manoj,
    those thins will be done by BASIS people.
    for more info  chekc
    How to recover the deleted Request / task...
    hope it helps you.
    Thanks!

  • How to add the delete button

    Hello Guru's and Experts.
    I am working on a change request , the change request is as follows
    Once a cost simulation is run for a maintenance item and the data transferred to BI, it cannot be deleted from BI, only overwritten with an updated cost simulation. In the instance where the such items are no longer required to be included in the simulation, it must be made possible to delete the simulation costs in BI.
    The current design in my project significantly increases the effort required to identify unwanted cost simulations and greatly increases the potential for incorrect data to be used in Budgeting and forecasting.
    My question is how to add the delete functionality in the report. is it acheavable through the portal or WAD,
    iam new to SAP BI , if possible can anyone kindly suggest me the steps to do this functionality.
    Appreciate your quick response..
    Thanks
    Ravi.

    Hi Guru
    Thanks for your valuable information.
    We got the requirment changed now from the users , the delete button should display in the report, i mean in protal, Now the user wants to delete with the selection criteria, for example, once the user hits the row in the report, that means if he selects the Main work center, and selects the delete button , he wants all the data related to that main work center to be deleted.  and another senario is what ever row the user selects  the characteristics in the row, for example, if the user select  for any row, i mean it can be any cost center or fiscal year, maintaiance item, cost elements, ..etc.  
    Once the user  selects the row and hit the delete button,  and he wants to hit the save save button in the report to make sure it deleted, the other way around , if the dont want to hit save, then he wants the data to be in the report.
    In the above  scenario's  can  you please suggest me with the steps how can we acheive it.
    Please reply back if you need any other info., Apprieciate your quick response. its very urgent requirment which we have to start...
    sorry to bother u..
    Thanks
    Ravi.

  • How to recover the deleted SMS message, Contacts, CallHistory and Photos from ipad.

    how to recover the deleted SMS message, Contacts, CallHistory and Photos from ipad.

    If you did the backup of your data before deleting then you can easily get back the data by the following steps:
    1. First don’t connect your iPad directly to computer because the iTunes only saves the most recent backup
    2. Now make sure that you have a valid backup as listed iTunes> preferences> devices
    3. Before connecting your iPad make sure to check iTunes>preferences> devices "prevent iPad from syncing automatically." Because this will ensures we don't erase the previously stored backup. Then select ok and close the window after checking " don't sync"
    4. Now connect your iPad to your computer .
    5. Select the iPad as seen in the left bar of iTunes, as listed under the devices .
    6. Select version and click on restore from options.
    7. It takes a while to for iPad to erase itself, reset and restart.
    8. After the iPad is restart you will see Set Up Your iPad in iTunes on your computer, and now just click the restore from the backup and click continue. It will take 10 to 12 minutes to recover your data from iPad, including the deleted sms, notes, photos, music, contacts etc.
    Here is a step by step guide for you: http://www.video-converter-mac.org/recover-deleted-ipad/

  • OB52 Posting Period Close:  Does anyone know how to automate the close?

    Does anyone know how to automate the FI Period Close (trans code OB52)?  Currently, the business users go into the screen and open and close any periods manually.  For the MM period close, we are able to do so because we found the program to use in the batch job.  For some reason, the FI side shows the program SAPL0F00 but this is only a view and will not allow a batch job to be created.  Does anyone know of the actual program used for the FI period close?

    Use program RFPERIOD_OPEN.  It may help.  For further details you may check the following thread.
    RFPERIOD_OPEN

  • How to find the list of existing tables in a schema using DB link?

    Hi
    I know how to find the list of existing tables in a schema using the following query
    SQL> select * from tab;
    but, how to list the tables using a DB link?
    For Example
    SQL> select * from tab@dblink_name;
    why this doesn't work?
    Pl advice me
    Thanks
    Reddy.

    ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
    The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link?

  • How to change the lenth of existing field in sap standard table

    Hi all,
    can anybody help,my requirement is, how to change the length of existing field in sap standard table....
    thanks in advance..

    Which field are you thinking of in particular?  Are you wanting to increase or decrease the length?
    Some fields are used so extensively that a change to their length will mean adjusting many tables, some of them potentially very large, and hence taking a long time to adjust.
    Some standard SAP programs expect certain fields to be of specific lengths and won't work if the length is changed.
    Some screens could cease to work.
    If you decrease length, then you could lose data.
    matt

  • How to recovery the deleted files from hard disk like images,media files

    How to recovery the deleted files from hard disk like images, media files by using c#.net

    It's important to define deleted and recovery. You can recover file from the recycle bin using the Win API. Here's an
    example in C/C++. You need to
    pinvoke SHFileOperation.

  • How to automate the flatten transparency in illustrator?

    How to automate the "Flatten Transparency option" in illustrator via javascript. Please share with me.
    Thanks

    I'm looking for the same thing.
    app.executeMenuCommand('Flatten Transparency'); works in CC but all it does is it brings up the window and you still have to click OK to make the script continue.
    Before anyone asks why do  you want to do it etc. In print thereare instances where you have to open and edit (not text) large numbers of pdfs to change colours, outline fonts etc otherwise there's trouble on print devices.
    My script for instance looks for 100K blacks and replaces them with rich black, looks for empty text frames, overprint, bleed settings, clipping paths etc.
    The only way to edit successfully a pdf without fonts is to place it and flatten transparency outlining fonts and then work on it.
    So back to the point. After the window pops up, is there a way to simulate a keystroke like "Enter" or maybe app.executeMenuCommand('Flatten Transparency'); takes arguments like:
    app.executeMenuCommand('Flatten Transparency',preset_name);...?
    Anyone? Adobe SDK team? :-)

  • How to automate the data load process using data load file & task Scheduler

    Hi,
    I am doing Automated Process to load the data in Hyperion Planning application with the help of data_Load.bat file & Task Scheduler.
    I have created Data_Load.bat file but rest of the process i am unable complete.
    So could you help me , how to automate the data load process using Data_load.bat file & task Scheduler or what are the rest of the file is require to achieve this.
    Thanks

    To follow up on your question are you using the maxl scripts for the dataload?
    If so I have seen and issue within the batch (ex: load_data.bat) that if you do not have the full maxl script path with a batch when running it through event task scheduler the task will work but the log and/ or error file will not be created. Meaning the batch claims it ran from the task scheduler although it didn't do what you needed it to.
    If you are using maxl use this as the batch
    "essmsh C:\data\DataLoad.mxl" Or you can also use the full path for the maxl either way works. The only reason I would think that the maxl may then not work is if you do not have the batch updated to call on all the maxl PATH changes or if you need to update your environment variables to correct the essmsh command to work in a command prompt.

  • How to automate the exchange rates in BI

    Hi Guys
    can any one let me know the step by step approach of how to automate the exchange rates in BI...I know that if we right click in source system and say transfer exchange rates ..we will get those values ....But I want to automate this process in BI with a Process chain...I have created a start variant and connected it to a ABAP process type and calling the RSIMPCURR programm in sync..local....Do I need to call any Program event ? Iam not able automate this..please advice step by stepp
    After ABAP process type do I need to create any other steps ?
    regards

    Hi,
    All you have to do is to define the ABAP Process as new process variant, call mode syncronous, called from local, program name RSIMPCURR, and define a program variant for example number 12 and create it, there you select the update exchange rates., go to attributes, give a meaning and save all. You can automate the start of the porocess chain and select it as period job.
    Regards
    MK

  • How to automate the Acrobat Reader plugin in Internet Explorer

    Hi,
    I have been trying to figure out how to automate the Acrobat Reader plugin in Internet Explorer. My goal is to find a way to allow users of our web application to print PDFs to the default printer without having to go through the plugin's GUI. Our application includes a browser helper component, and I had hoped it would be possible to use the IWebBrowser2 interface's get_Document() method to get at some sort of interface to the plugin (as is possible for, say, a Word document hosted in Internet Explorer) and then use this to print the document. However, this does not work: get_Document(), when called on an IWebBrowser2 instance with a PDF loaded, returns E_NOINTERFACE. I also tried calling the IWebBrowser2 interface's ExecWB() method with OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, and PRINT_DONTBOTHERUSER, and printed a blank page rather than the PDF.
    Is it possible to do what I am attempting? Like I said, my core goal is to print a PDF from within Internet Explorer without requiring user interaction. I'd appreciate any suggestions as to how I might accomplish this -- it doesn't _have_ to be by automating the plugin (maybe that is a the wrong approach... though it sure would be nice if the plugin provided access to its object model via IWebBrowser2->get_Document()).
    Thanks in Advance,
    Steve Mckinney
    Senior Developer
    Paxon Corporation

    IF that were entirely true, then the whole purpose of this thread is moot (automating printing server side). It is possible to load the file via URLs using the following html code:
    "<"body>
    "<"OBJECT id="pdf"
    type="application/pdf"
    width=800
    height=600 >
    "<"param name="src" value="http://localhost/pdfs/vorder_nc.pdf"/>
    "<"/OBJECT>
    "<"script language="JavaScript">
    function waitLoad()
    setTimeout("printFile()",2000);
    function printFile()
    var objPdf = document.getElementById('pdf');
    objPdf.PrintAllFit(1);
    "<"/script>
    "<"/body>
    So, if I used php or some other scripting language on the server to fill in the name of the pdf, I can load it via a URL, wait a couple of seconds for it to load, and then print it without user interaction. I wish that the LoadFile method would load a URL so that when it returns, I know it is loaded and I don't have to put faith in a timer that may not be enough for a large file.
    This is the situation I'm in. This way works but I don't like the timer. I'd rather have the plugin let me know when it's loaded. Is there another method that can help me do what I want?
    Thank again.

  • How to automate the data flow to content servers?

    We have ECC connected to CS. Could you help tell how to automate the data flow into the CS? Thanks a lot!

    What do you use the Content Server for? If its for archiving you need to run the STORE job to send the data to the CS.
    I can't see a reason to automate that process
    Regards
    Juan

Maybe you are looking for

  • How can I get the tablename from a ViewObject extends an Entity?

    I have created an entity and it's default viewobject in the BC4J business components package,and I have built a applictionmodule containing an instance of the viewobject. Now I can use the instance's name to visit the viewobject or the entity in Jdev

  • "credit balance is out of date"...BUT WONT REFRESH!!???

    I got, and used, 2 iTunes gift cards. On the 2nd purchase, I exceeded the balance of credit I had, so i figured it would jsut charge my (checking) account as usual. Well, I was able to purchase and download the songs ok, but my balance is "stuck", at

  • Resizing problems with TestStand OI

    I've attached a number of bitmaps, along with some VIs to better illustrate my problem.  I recently update the Sequence File tab to contain two expression edit (ee) controls to the right of the SequenceView.  One ee is suposed to display the comment

  • Keeps losing user compose settings

    I have selected 'compose int HTML' and have selected 'large Helvetica,Arial' as my working font. Regularly, while creating an email, I will delete a letter or do something and the editor reverts back to the original 'default' font and size. Why? and

  • Send mail alert

    Hi All, does anyone know how to send mail alert from windows box when oracle is down ? I have oracle 10.2.0.4 running on windows 2000 server and wanted to wrote a script in windows to detect if oracle is down, it will send mail alert to my mailbox. I