Delete overlapping requests from ODS

Hi,
Since it iss not possible to delete overlapping requests from an ods by any automated process like in info cube.
Can we still delete overlapping request using abap code or the only way to do it is to delete  data (selective deletion) in a start routine.
Any tips would be helpful

Hi ,
Try the following logic to delete the ovelapping requests from a particular data source.
*& Report  ZV_DELETE_REQS                                              *
*&Description:This program is for deletion of eixsting Full requests   *
*&            from ODS                                                                     *
REPORT  ZV_DELETE_REQS.
data: RSICCONT like rsiccont,
      rsseldone like rsseldone.
data: begin of i_req occurs 0,
      rnr like RSICCONT-rnr,
      end of i_req.
refresh i_req.
select * from RSICCONT UP TO 2 ROWS
                  where ICUBE  = 'ZCS_D10'
                  order by TIMESTAMP descending.
  i_req-rnr = rsiccont-rnr .
  append i_req.
  clear i_req.
endselect.
loop at i_req.
  select single * from RSSELDONE where RNR eq i_req-rnr and
                  source in ('0CO_OM_OPA_5',
                             '0CS_OM_OPA_1').
  if sy-subrc eq 0.
    CALL FUNCTION 'RSSM_DELETE_REQUEST'
      EXPORTING
        REQUEST                    = i_req-rnr
        INFOCUBE                   = 'ZCS_D10'
      EXCEPTIONS
        REQUEST_NOT_IN_CUBE        = 1
        INFOCUBE_NOT_FOUND         = 2
        REQUEST_ALREADY_AGGREGATED = 3
        REQUEST_ALREADY_COMDENSED  = 4
        NO_ENQUEUE_POSSIBLE        = 5
        OTHERS                     = 6.
    IF SY-SUBRC <> 0.
      MESSAGE ID sy-MSGID TYPE 'I' NUMBER sy-MSGNO
          WITH sy-MSGV1 sy-MSGV2 sy-MSGV3 sy-MSGV4.
    else.
      message i799(rsm1) with i_req-rnr 'deleted'.
    ENDIF.
    do.
      select single * from RSICCONT where ICUBE  = 'ZCS_D10'
                                      and  rnr    = i_req-rnr.
      if sy-subrc ne 0.
        exit.
      endif.
    enddo.
  endif.
endloop.
hope it helps....
regards,
raju

Similar Messages

  • Process Type - Delete overlapping requests from an Info Cube

    I have read many threads on this topic, still have some questions. To give you background, I will be doing delta load (“delta” process chain). But before delta, I want to do setup initialization (“init” process chain). I want to use this process type in my “init” process chain” to delete all data in my cube loaded from a specific ods. I cannot use delete all contents process type because many ods’s feed the same cube.
    1.     Do you put this process type after Load Data or before Load Data. I have seen both cases in SDN forums.
    2.     Variant of this process type is an info package. Does this info package have to be same as in load data step or it can be different.
    3.     I want to delete all data in cube which was loaded from my ods. Term overlapping is confusing to me. Will this process type delete all data or not.
    Tanks in advance.

    Yes, you can do that. Goto RSPC - under process types Load Process and Post Processing, you will see DELETE OVERLAP REQUESTS FROM INFOCUBE option is there.
    Select the proper check boxes like same sourcesystem, same datasource etc...
    If it is one time deletion, why not do that manually?
    Also check: How to delete most recent request in a Cube by using process chain
    Hope it helps..

  • Delete Overlapping Request from InfoCube.

    Hello,
    I am using process Type "Delete Overlapping Request from infocube" in this I am selecting object type as a "DTP"
    Under "Delete Selection" I am selecting following
    1. Only Delete Requests from same DTP
    2. Only Delete Full DTP request
    3. Only Delete DTP Requests from Same Source
    I am using "Full Load" in my DTP.
    My requirements are like  I need to delete old data and load new data every day in to  a cube for that I am using this process type.
    If anybody have better solution please let me know.
    Thanks,

    Also
    I am not deleting Index  OR  Not creating Indexs while using process type "Deleting overlapping request InfoCube"
    what will be the impact on the cube?
    How many index will have infocube?
    If the cube having more than one index if i delete index, which index will be deleted?
    Thanks,

  • Duplicate records: Process : Delete Overlapping Requests from InfoCube

    Hi Experts,
    We are loading data in standard costing cube with standard available option Full upload. In our process chain we have included process type "Delete Overlapping Requests from InfoCube". In our scenario we always load yesterday and today's data. In this case after loading yesterday's data, we need to check and delete the overlapping requests and then upload todays data.
    Many a times this deletion process is failing due to message "Couldn't lock cube" because it is already locked by user "ALEREMOTE". This cause system to duplicate the records in cube.
    How we can avoid this?
    Alok

    I tried running again and it again failed. Checked in SM12 and found this entry
    800     ALEREMOTE     08/14/2007     E     RSENQ_PROT_ENQ     CREA_INDX      ZCCA_C11                      DATATARGET     CREA_INDX                     ######################################     0     1
    This locked is not released since 14th. Is there way to remove the lock using some process.

  • Process Maintenance: Delete Overlapping Requests from InfoCube

    Hi Experts,
    How can I open Process Maintenance: Delete Overlapping Requests from InfoCube Screen? What's T-code? Is that in Process Chain? Please tell me that....
    Thanks in advance,

    Hi
    'Delete overlapping request' is an option(its a process type) in the process chains..
    RSPC>Process types>Load Process and post process folder--->Delete overlapping request from the infocube..
    here you can have more options like 'source systems are same',and infosources are same etc...
    How to delete most recent request in a Cube by using process chain
    Hope it helps
    Thanks,
    Teja
    Edited by: Teja badugu on Apr 28, 2008 11:35 AM

  • Problems with delete overlapping requests from InfoCube in PC

    Hi guys,
    Iu2019m using delete overlapping requests from InfoCube in Process Chains, but Iu2019m not being able to adjust it to my specific requirement.
    For example:
    I execute DTP to load InfoCube XPTO with Fiscal Year 2008 and 2009. After this I have to load again, but only for 2009.
    In this specific example I want my process chain to delete the 2009 data from my first load, because it is overlapped, and leave 2008 data.
    Is this possible? If yes how?
    Thanks in advance
    Jão Arvanas

    It will not work that way.
    It will look if the selections are same then it wil delete if not then it will not do that activity.
    Overlapping settings which you might chosen is based on the delete overlapping for the same selections..
    So in this case the selections are different and hence its not possible.
    Thanks
    Murali

  • "Delete Overlapping Requests from InfoCube" in a Process Chain

    Dear all,
    I encountered a problem when I building the process chain in BW 3.0.
    In a process chain, I schedule daily an InfoPackage to load data to an InfoCube and then delete the previously loaded data by the same InfoPacckage from the InfoCube.
    For example, I have 2 InfoPacakge, A and B, and schedule to load data to InfoCube C. In the process chain, I scheduled daily the following tasks in sequence:
    - Delete index in InfoCube C
    - Load data through InfoPackage A to InfoCube C
    - Delete duplicated request previously loaded through InfoPackage A in InfoCube C
    - Load data through InfoPackage B to InfoCube C
    - Delete duplicated request previously loaded through InfoPackage B in InfoCube C
    - Create index in InfoCube C
    However, when I activate the process chain, a warning message is prompted: No type "Delete Overlapping Requests from InfoCube" process allowed infront of process "Execute InfoPackage" variable ZPAK_4GMFI
    Would anyone tell me why such warning message is prompted?
    Many thanks!
    Best regards,
    Marcus

    Hi all,
    Re Ranjan:
    I previously config the process chain like that:
    (1)   Delete index in InfoCube C
    (2)   Load data through InfoPackage A to InfoCube C
    (3a) Delete duplicated request previously loaded through InfoPackage A in InfoCube C
    (3b) Load data through InfoPackage B to InfoCube C
    (4)   Delete duplicated request previously loaded through InfoPackage B in InfoCube C
    (5)   Create index in InfoCube C
    where (3a) and (3b) is executed simultaneously.
    However, (3b) often reports error. I guess it may be due to the parallel run of (3a) and (3b). So that's why I set the process chain to be executed in serial.
    Re Jacob:
    I found that the process chain can be run even a warning message is prompted when activating the process chain!.
    Thanks you all for your kind support!!
    Best regards,
    Marcus

  • Delete overlapping requests from infocube

    Hi ALL,
    I have loads to infocube from  5 diffrent infopackages loading adhocly or randomly from same source sytem and same infosource.
    Note:infopackages have dynamic selections.(ex calweek,product)
    My requirement: If i load infopackage-1 today,and when i load the same infopackage next time the prevoius load should be deleted .
    I need the same functionality for other 4 infopackages.
    So at given point of time i should have only 5 requests in the infocube.
    These are the settings i have done.
    1)At infopackage level i have selected option Delete existing requests : overlapping
       Without selecting any conditions like infosources,source sytem are same.
    2)Added process type in the process chain delete overlapping requests from infocube
       selected option: Delete existing requests : overlapping.
       Without selecting any conditions like infosources,source sytem are same.
    Are these settings are enough or is there in best way to do this .
    Please suggest me ...

    Kishore,
    Delete overlapping requests means, delete request with same selection only. If data selection not same, i dont think it will delete any previous request.
    You can select infosource, source system. No issues. System only deletes request if data coming from same infosource or from same source system for same selection.
    But in your case selection changing every day or for every load. I dont think it works.... Try once in DEV.
    If i understand correctly, as you only needed latest 5 requests only, why cant you delete data completely before loading / starting new set of requests...?? This is easy, quicker and better approach.
    But only problem is data will not be available during loading of new set of requests.
    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

  • Delete overlapping requests from DSO

    Hi Everyone!
    Is there any function to delete overlapping requests from a DSO in process chain?
    For InfoCube there is one, but how about dso?
    I'm using both delta and full load method in the same dso daily and I want to delete full load requests only and keep delta
    load requests in dso.
    Does anyone have any idea?
    Thanks  in advance.
    Eduardo

    Hi..
    How could you do that since DSO has the overwrite property? For example you are loading from DSO1 or DS to DSO2.
    If u ran a load that goes into DSO2. If u ran same load again it goes into DSO 2 and overwrites the previous request. for that u can verify with display data.
    Is ur DSO additing the records????
    Delete Overlapping Requests Only for Info cubes.
    I request you to post the exact issue so that we can assist you better.
    Regards....KP

  • Delete Overlapping Requests from InfoCube: Before or After the Generate Ind

    Hi,
    Delete Overlapping Requests from InfoCube Before or After the Generate Index of the Infocube? Why?
    I think "After", but the system (transaction RSPC)suggest 1.Generate Index 2.Overlapping Requests from InfoCube ...
    Thanks
    Alessandro

    Hi Alessandro,
       Bottom Line Index will speed up the Process. While loading the Data you need to delete the Index.
    Index will degrade the performence while updating or modifying DB Entries(Loading). Index will improve the performence while reading the DB(Reporting).
    It's not with BW. all RDBMS need this.
    Regards,
    Nagesh.

  • To delete a request from ODS

    Hello all,
    I am not able to delete the request from ODS .
    It gives the error message :no request found in the change log.
    how shlould i delete the request??
    thnx in advance.
    Regards,
    Dhanya.

    Hello,
    thnx sriram n balaji!
    i checked my infosource through the prgm:RSAR_PSA_CLEANUP_DIRECTORY
    the following message appears in the display log:
    PSA: 8ZFIADS11_CA
    Version 000 technical name /BIC/B0000043000
    Partition 0003
    Request Ratio:[Deleted:Total]->1 :2
    Records Ratio:[Deleted:Total]->753943 :1507886 ,50 % logically deleted
    Partition 0004
    Request Ratio:[Deleted:Total]->0 :1
    Records Ratio:[Deleted:Total]->0 :753943 ,0 % logically deleted
    what should i infer from this ?
    can anyone please tell me the step by step procedure to delete the request.
    Regards,
    Dhanya.

  • Need to delete a request from ODS

    HI
    i need to delete a request from ODS Full update,It failed.I forced it to activate for testing and the request turned green.But iam not able to delete the request now as the job log says it has incorrect status and now not able to change the QM action of Request as it has already been activated.Now how do i delete this request.
    Thanks
    RAJ

    Hai,
    I think your request has been partially activated so you are not able to delete the request.
    If u really need that request to be deleted then see that there sholud not be any request above that one.
    Try to make the request red in manage screen and it will pop up a window which is having start no and cancel click no
    and then try to delete the request.
    If not need that request make the qm status red and leave it the data will be available for reporting.
    Regards.
    Vikram Singh

  • Deleting overlapping request from DSO

    Hi there!
    Is there any function to delete overlapping requests from a DSO in process chain?
    For InfoCube there is a step, but how about dso?
    I'm using both delta and full load method in the same dso daily and I want to delete full load requests only and keep delta
    load requests in dso.

    Hi Shanthi,
    I tried using info package but still req havnt delete from info cube.
    It works for DTP as i can see many DTPs in list but not mine thats the issue.
    Thanks from your responce. Hoping for any new suggestion.
    i cant manually delete req from production as process chain runs at mid night.

  • Selective deletion of request from ODS which is activated and updated

    Hi all,
    I would like to delete the request from ODS which is activated and updated into data targets, i.e if i have three resquests 1,2,3 which are activated  and loaded into cube..now i would like to delete the between (2) request from ods, it says we have to delete latest first(3) , cant we delete this 2 nd request by doing some sort of settings plz let me know if any body got come to know this...plz
    Many thanks in advance,
    BRB

    Hi
    Did you look at the Online-Docu (link above)? In the administration of the ODS (I think menue 'Manage' in an english environment -> I've none at the moment) where you see each loaded package there you have a button right of the request id (status of data mart). If you press on this a dialog screen appears. There you can press on the trash icon. This resets the delta queue for the specific request.
    You have to do this for request 3 and 2. Then you can delete the request nr. 2. The bw system will then delete this request from the active data and from the change log. After this you can schedule the delta load again. This process will load request nr. 3 to the connected InfoCubes.
    If you do not reset the delta queue you will not be able to load request nr. 3 from the change log.
    As I supose you want not to delete request nr. 3 because of some long duration to upload and activate the whole request again.
    This works fine. I've done the last weeks often because we loaded request with 3 million records and more.
    Regards,
    H.J.

Maybe you are looking for

  • Did the headphone jack location shift on the 4s?

    I just bought an Otterbox Defender case for my new iPhone 4s (Verizon model).  The case fits well except that the hole for the headphones is a few mm to the right of the jack.  Did the location of the headphone jack shift from the 4 to the 4s?

  • Call report from form 10g (10.1.2.0.2)

    hi i using win 2003 and db 10g and dev10g ( 10.1.2.0.2) and i want to call report from my form as following code : DECLARE dir varchar2(200); repid REPORT_OBJECT; v_rep VARCHAR2(100); rep_status VARCHAR2(20); BEGIN dir:=co$win.get_current_directory ;

  • How to get BIW with NW ABAP7.0

    Hi Frndz.. Actualy am NW EP deveolper , now i started to learn BI and i installed NW ABAP 7.0 Trail version .In this i found BIW and let me suggest this BIW(coming with NW ABAP7.0 Trail) is enough to learn BI. To conform this i given a Tcode RRMX , i

  • VA21 ADD SALES TAX FIELD

    HI,      CAN ANYBODY HELP ME HOW CAN I DISPLAY SALES TAX VALUE IN VA21 MAIN SCREEN IN LINE ITEM TABLE CONROL . WHERE IT DISPLAY NET VALUE I WANT TO ITS TAX VALUE ALSO. THANKS MUKESH

  • Making it easier to cycle through blend modes

    Maybe there is a way to do this that I'm missing. Learning or seeing how all the blend modes work is really tedious. You have to trigger the dropdown, go to the blend mode, click it, then repeat all that to try the next blend mode. Wouldn't it be a l