Delete requests in a infocube with infopackage

Hi BW Gurus.
I have to delete a request in a infocube during the loading and I would like to use the option "deleting request from infocube after update" inside the infopackage.
The option "Selections are ...same or more comprehensive" is not what I need because I would like to delete only when the selections in the infopackege are equal and not when they are more comprehensive.
For example, if I load from month 01 to month 03, I want to delete only the prevous request with the same selection and not the request that have from month =01 to month=02 selection.
The infopackage selections are read from a custom table.
Thanks for any help.
S.

Hi. Thank for the reply.
I can't use this option.
Look at the example:
I have a request with "from month 01 to month 02" selection and I would like to load a request with "from month 01 to month 03" selection.
The option "'deleting requests with same or more comprehensive"  deletes the request because month 01 to month 03 is more comprehensive than from 01 to 02 month.
The option 'deleting requests with overlapping selections' deletes the request because because month 01 to month 03 overlapp  from 01 to 02 month selection.
It could be good to have a "delentig request with same selection" option and not with "more comprehensive" in the same option.
S.

Similar Messages

  • Delete Full Requests from an InfoCube with a BIA index on it

    Hello all
    I need to delete certain random Full requests from a cube which has both DB indexd and BIA index on it?
    What will be the steps i should be following in regards to deleting/ rebuilding indexes ?
    Regards
    Sanjyot

    Thanks Vitaliy but I have multiple requests with huge amount of data to be deleted.
    So I was wondering if the following steps are correct
    1. delete DB indices
    2. delete BIA indices
    3. delete requests from cube
    4. rebuild DB indices
    5. rebuild BIA indices
    Are there any steps to ensure that indices are rebuilt correctly? 
    Regards
    Sanjyot

  • Deleted requests from a infocube remain in F table

    I used the manage tab of the infocube to delete seleted requests. The request are no longer visible, but the data for them remains in the F table.
    how can i reconcile this?

    Richard,
    Good thing you posted the basis person's comment. Your next steps are not going to be easy. What you have to do is selective deletion. Find out the remaining request numbers. Try to determine the request numbers you tried to delete.
    It looks like the DB is not able to delete large chunks of data. So, you have to put request number and anything else (say, company code) and begin deleting data in smaller chunks.
    As things get better (and there is more room for DB), you can try deleting individual requests - still using selective deletion.
    Good luck!

  • Delete infoobject from an infocube with data

    Hi,
    I have just added an infoobject to an infocube which has data. Now, I need to delete that infoobject and I think that if the infocube has data I couldnt delete the infoobject.
    How can I delete the infoobject without removing the data?
    Thanks a lot in advance.
    Regards.

    Hi David,
    deleting an infoObject from an database table is everytime difficult. The correct solution depends on different requirements:
    How many datasets are in the infocube - how large is the cube.
    Can you reload the data from a source or an DSO
    Does your release support remodeling.
    The best solution would be - delete the data, transport your change of datamodel to prod system and reload the data. The second solution could be: create an copy of the actual infocube, load the the data from the original cube to copy, delete the data from original cube, transport your changes to prod system, load the data from copy to "new"original cube, delete the copy.
    You can also try to use the remodeling function. But there is no guarantee that this will work correct. We made some good and some bad experiences with this tool.
    Cheers
    J.

  • Deleting Request Routine

    Hello all,
    Im trying to do a routine for deleting requests from the infocube after update.  I was able to do some, but in some cases if the records that ran in the infopackage are less than the previous package, then it means that is wrong, even though it has the green light, and in that case I dont want the system to delete the previous package, I dont know how to specify that, cause the other ones were very simple and Im not an abap programmer, can anyone help me with this please?

    Hi
    Ajay,
    My scnerios is to delete request while loading data into the cube. Here i am loading data from flatfile from application server, using two variants for daily and monthly loads. The monthly request will run once on 1st of the month(at best 2nd) and the request will be retained.The daily loads requst will be deleted on daily basis while loading. Now on reaching 30th of the month the daily loads will remain. Here i again i shall load the monthly load on 1st but have to delete the daily request on 30th to avoid duplication of data. I created two infosource, one for daily loads and one for the monthly loads. I gave the settings respectively but purpose is not served. Then i rgot ur code with minor modification.
    data : zrnr like rsmonictab-rnr,
           zic_id like rsmonictab-ic_id,
           zlnr like rsmonictab-lnr,
           curr_Rec_count type i.
    *loop at l_t_request_to_delete.
    select * from rsmonictab into table rsmonictab1
    where infocube = 'ZCSCRORD'.
    sort rsmonictab1 by timestamp descending.
    read table rsmonictab1 index 1.  "get the latest req
    curr_rec_count = rsmonictab1-req_insert.
    zrnr = rsmonictab1-rnr.
    zic_id = rsmonictab-ic_id.
    zlnr =  rsmonictab-lnr.
    delete from rsmonictab where rnr = zrnr and  ic_id = zic_id and
    lnr = zlnr.
    Please help me. It will be nice if u can me the code to fulfill the above mentioned scenerios.
    Regards

  • Message_type_x short dump while deleting request from infocube

    Hi,
    While deleting one of the erroneous requests from some infocubes,
    system is resulting in short dump "MESSAGE_TYPE_X".
    This is happening only with respect to some infocubes.
    Description of short dump:
    Short text of error message:                                            
    System error in program RSMDATASTATE and form RSM_DATASTATE_CHECK-5- (see long text)  
    Can any one of you please help with this?
    Regards,
    Nilima Rodrigues

    Hi NILIMA,
    I got same problem with my InfoPackage  last month with same error msg.
    that error come due to data inconstancy in data base table.
    in my case i am unable to open my InfoPackage  and after double clicking it was giving dump with same error.
    If u know abap then just change the sy-subrc value from 4 to 0 before dump line code it will resolve your problem.
    for this on dump screen click on debugger button then it opens your code and shows line on which u getting dump with table name check your entry in table ok
    if u unable u find table then do one thing just put break point before dump line and open fresh rsa1 and go to same cube and double click it will stop on your debugger point just press f5 button it shos sy-subrc 4 convert it to 0 and press edit button and press f8 .
    Regards
    Ankit

  • Delete a particular request from a InfoCube  after compression  in sap bi 7

    HI ,
    Issue : I wand to delete a particular request from a InfoCube  after compression  in sap bi 7.0 ; (not in sap bow 3.x).
                can any one suggests me how to do .give me possible solutions.
    Regards,
    EdK...

    Hi,
    You can delete the perticular request from Infocube by useing'RSICCONT'.
    Goto SE16, give the 'RSICCONT' then Select your Cube and Select Execuite.
    It will display the list of requests. you can select the perticular request and deleted from cube.
    Edited by: Suman Reddy.Vuyyuru on Mar 18, 2010 12:38 PM

  • Delete Request in InfoCube

    I would like to delete all the Request in the InfoCube and do the re-load from ECC6.
    I right-click InfoCube ->Delete Content, then it will prompt me the following:
    Do you want to delete the contents of this InfoCube?
    I click Yes, then it prompt me the following:
    Do you want to keep the data in the dimension
    tables?
    I click No
    Is it correct to choose No?
    What is the different between this Delete Contents if I delete all the Request manually in InfoCube ->Manage ->Request tab?
    What happen if the Request has been compressed and also roll-up to Aggregate?
    Which option should I use - 1) right-click InfoCube ->Delete Data or 2) Delete the Request one by one via InfoCube ->Manage ->Request tab?

    Hello Lynn,
    Deleting the Dimensions or keeping then depends on if the data you load again will be similar to what you deleted. Since
    the data loaded are normally very equal to the data you loaded before it makes sense to keep the Dimension tables
    and than most SIDs/DIMIDs in the Dimensions are existing and the loading is faster.                                                                               
    If you want to 'cleen up the cube complety though (maybe you completey redesign it) then its better to delete the
    Dimensions. If you keep dimemsions you also need to check that there ratio to the size of the fact table do not
    get too large, you can check this by  executing the Transaction RSRV   >Transaction Data   > Multiple Entries
    in Dimensions of a (Basis) InfoCube and Entries Not Used in theDimension of an InfoCube.
    If you manually delete the entries from the fact table the difference is that the data will not be deleted from
    the E fact table (this is where the compressed data is stored).
    If you want to delete all data from the cube then the best option to use is to right click on the cube and select the
    option "delete data".
    Best Regards,
    Des

  • With out deleting request can we reconstruct

    Hi,
    can any one tell me With out deleting request can we reconstruct the request.

    Hi,
    loads that come through PSA move to reconstruction tab after deletion so that it can be edited in PSA and loaded again. This is mostly done for delta requests to make sure that we do not loose data in any case.
    There would be no point in reconstructing the load which is already there in the target guess you cant do it rather.
    Thanks
    Puneet

  • Deleted Red Request Reappears in Infocube

    Hi all,
              We are facing one peculiar problem in which, When we delete one Erroneous request from Infocube, It gets deleted. But, again going to manage and if we check, this request reappears. We deleted all the data from Infocube. We checked Job log which shows that, Request is deleted. Still that request appear in Infocube. Please help us to solve the problem
    Thanks and Regards,
    Harpal

    Hi,
    Through SM37 select the job and stop it...it won't stop if it running from long time...for long running job go to SM50 see the process running from your ID....there could be more then one process running ...one is for your session in the system and you cannot kill that....check for the other one and go inside the log to see if it is the right one ...which you want to cancel....just select the process and in the top left you have the option to cancel without core....
    In BW, u could do that by forcing the STATUS to RED Signal.
    You have to stop the load in the source system if u r loading from R/3 System, for that use transaction SM50 or SM51 to kill the process.
    Hope this helps
    Cheers
    Raj

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

  • 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 request in Process chain in BI 70

    Hi Experts,
    I have a load request for the past 12 months in a cube. Since the data can be changed retroactively in the source during 12 months, I have to delete the previous request and load a new one every month. We used to do that in 3.1 by using Process type "Delete Overlapping request" in combination with the InfoPackage, but it does not work in 2004s.
    What are the right parameters that we should use in the DTP, the InfoPackage and Process Type?
    Currently, DTP is Delta, InfoPackage is Full, Process Type is "Delete Overlapping Request" (InfoSource and dataSource are the same. But the previous request does not get deleted.
    Thanks,
    JL

    Hello Jean-Luc,
    As it looks for me the problem ist that "Delete Overlapping Request" is working only with Full DTPs but not with Deltas in 7.0.
    (check note 1147766 herefore).
    According to note 1336410 it is possible again. But then you need to set flag 'Only Get Delta Once' in your Delta DTP.
    If you need this see if you are able to implement note 1336410.
    Hope this helps you.
    Kind regards
    Klaus Weippert

  • Delete Request using a Routine in the Scheduler

    Hi all,
    I have an infocube. Data are loaded into this cube on a <b>weekly basis</b> according to the following requirements.
    Example:
    Let's assume <b>we are in April</b>and <b>April has 4 weeks</b>:
    <b>Week 1 of April</b> - Data for week 1 are loaded
    <b>Week 2 of April</b> - Data for week 1 and 2 are loaded
    (request for week 1 is deleted)
    <b>Week 3 of April</b> - Data for week 1, 2 and 3 are loaded
    (request for week 2 is deleted which were the data for week 1 and 2)
    On the <b>2nd day of the following Month (in our example this would be May 2nd) Data for week 1, 2, 3, and 4 of April are loaded.</b>(request for week 3 is deleted which were the data for week 1, 2 and 3).
    <b>These April data</b> (loaded on the second day of the following month) <b>should stay in the cube then and not be deleted any more.</b>
    The procedure for the following Months (i.e. for May etc) should be the same.
    This means
    <b>Week 1 of May</b> - Data for week 1 are loaded
    <b>Week 2 of May</b> - Data for week 1 and 2 are loaded
    (request for week 1 is deleted)
    etc.
    On the <b>2nd day of the following Month (in our example this would be June 2nd) Data for week 1, 2, 3, and 4 of May are loaded.</b>(request for week 3 is deleted which were the data for week 1, 2 and 3).
    <b>These May data</b> (loaded on the second day of the following month) <b>should stay in the cube then and not be deleted any more.</b>
    CAN ANYBODY HELP ME WITH THIS REQUIREMENT AND TELL ME HOW I CAN DO THAT?
    CAN I DO THAT USING A ROUTINE IN THE SCHEDULER ON TAB DATA TARGETS TO DELETE THE REQUEST BASED ON THE LOGIC DESCRIBED ABOVE? DOES ANYONE HAVE  SAMPLE CODE FOR THAT?

    hi Christian,
    from service.sap.com/bi
    hope this helps.
    User Exit after Data loading
    (a)     Delete old request
    REPORT Z_RSSM_START_SECOND_PROCESS_1 .
    TABLES: RSREQDONE,   " Request-Data
            RSSELDONE,   " Selection for current Request
            RSICCONT.    " Request posted to which InfoCube
    DATA: L_T_SELDONE LIKE RSSELDONE OCCURS 0 WITH HEADER LINE.
    DATA: L_T_ICUBE LIKE RSICCONT OCCURS 0 WITH HEADER LINE.
    DATA: L_LOGSYS LIKE RSSELDONE-LOGSYS.
    DATA: L_SOURCE LIKE RSSELDONE-SOURCE.
    DATA: L_SELDATE LIKE RSSELDONE-SELDATE.
    DATA: L_SELTIME LIKE RSSELDONE-SELTIME.
    DATA: BEGIN OF L_T_RNR_DEL OCCURS 0,
            ICUBE LIKE RSICCONT-ICUBE,
            RNR   LIKE RSSELDONE-RNR,
          END OF L_T_RNR_DEL.
    PARAMETER I_RNR LIKE RSREQDONE-RNR.
    SELECT SINGLE * FROM RSSELDONE WHERE
           RNR = I_RNR.
    IF SY-SUBRC <> 0. "new rquest does not exist, wrong rnr !!!
      EXIT.
    ENDIF.
    SELECT * FROM RSICCONT INTO TABLE L_T_ICUBE WHERE
           RNR = I_RNR.
    IF SY-SUBRC <> 0.     "New request is not posted to any IC
      EXIT.               "nothing will be deleted
    ENDIF.
    L_SOURCE  = RSSELDONE-SOURCE.
    L_LOGSYS  = RSSELDONE-LOGSYS.
    L_SELDATE = RSSELDONE-SELDATE.
    L_SELTIME = RSSELDONE-SELTIME.
    SELECT * FROM RSSELDONE INTO TABLE L_T_SELDONE WHERE
           SOURCE  = L_SOURCE AND
           LOGSYS  = L_LOGSYS.
    DELETE L_T_SELDONE WHERE
           RNR = I_RNR.            "new request will be deleted
    DELETE L_T_SELDONE WHERE     "delete younger requests
             SELDATE > L_SELDATE OR
           ( SELTIME > L_SELTIME AND
             SELDATE = L_SELDATE ).
    *Sort
    SORT L_T_SELDONE BY SELDATE DESCENDING SELTIME DESCENDING.
    REFRESH L_T_RNR_DEL.
    LOOP AT L_T_SELDONE.   " Requests to be deleted
      LOOP AT L_T_ICUBE.   " Request existing in InfoCubes
        SELECT SINGLE * FROM RSICCONT WHERE
               ICUBE = L_T_ICUBE-ICUBE AND
               RNR   = L_T_SELDONE-RNR.            "check if posted to IC's
        IF SY-SUBRC = 0.
          L_T_RNR_DEL-ICUBE = L_T_ICUBE-ICUBE.
          L_T_RNR_DEL-RNR   = L_T_SELDONE-RNR.
          APPEND L_T_RNR_DEL.
        ENDIF.
      ENDLOOP.
      IF NOT L_T_RNR_DEL[] IS INITIAL. " something found for rnr
        EXIT.
      ENDIF.
    ENDLOOP.
    LOOP AT L_T_RNR_DEL.
      CALL FUNCTION 'RSSM_DELETE_REQUEST'
           EXPORTING
                REQUEST                    = L_T_RNR_DEL-RNR
                INFOCUBE                   = L_T_RNR_DEL-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.

  • 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

Maybe you are looking for

  • JEditorPane HTML link in the same page

    Hi, I want to show an HTML page in JEditorPane. The HTML page have <a> tags that link to a bookmark in the same page, but I can�t show this because I get an error like this: MalformedURL or similiar. I try to do somethig like this: public void hyperl

  • Ipad audio and sound out of sync

    For a few months my iPad's audio has been out of sync with videos as well as the sounds like the keyboard clicks. Sometimes it is more out of sync, sometimes less. I have tried turning the device off and on again, resetting preferences, and searching

  • Cleaning marker off a LCD monitor?

    My son decided to draw on my 20" Apple cinema display with an orange Sharpie permanent marker? I know you are not supposed to use ammonia or alcohol based products but, will iKlear get this off? What can I use that will do the least amount of damage

  • Finder window is frozen, how do I fix this?

    I open Finder and the Finder window comes up, but the window doesn't respond to anything - mouse clicks, scrolling, resizing by grabbing the corner - no response, except the green, yelllow and red buttons at the top left display color when moused ove

  • Why stops photoshop elements 12 after a while?

    After a while photoshop elemants 12 stops. I cannot do anything in the program. Only stop it by taskmanager and restart it. The computer is normal availeble, not in hangup.