Delete previous specific request

Hi all,
My scenario is like if i am loading data through two info package where one info package take the data for yesterday and second info package take data for two day before yesterday. now my requirement that before loading data, i need to delete that two day data which i have loaded with second info package.
can i Delete from Active table or change table or is there any other way to indentified specific request and then we can write a code to delete that ? Please suggest.

Hi Viral,
   Can you tell me what is your exact requirement.
Like if you are going to upload data today on 23rd march then from Info package A , you upload the 22nd march data and
using info package B, you upload the 20th mrach data.
and now next time on 24th march when you want to upload data at that time you want to delete 20th march data, m i right??
If i am right then what is this scenario, if you have upload the data on 21st then you have alread uploaded the data of 20th via using infopackage A.
Then y u again upload that data?? what is the functional logic behaind that??
Regards,

Similar Messages

  • ABAP to delete a specific request (last one) from a Cube

    Hello Experts,
    In a process chain, I would like to delete the last request in a cube before proceeding through with the rest of the PC. For that purpose, I have an ABAP program which will retrieve the "last request ID" from the cube, then call FM RSSM_DELETE_REQUEST to delete that request using that ID and the cube name.
    Once in a while, this deletion doesn't work: the request status is set to erroneous and the PC goes on with its life.
    I am currently investigating this issue and have no mean to easily test it, including getting the actual error code from the deletion FM if there is any, so I'm looking for leads or ideas on the possible reasons of such a problem : the cube is fairly simple and doesn't use compressed requests or aggregates. When I delete the request manually, there are no problems.
    Is there any other FM more appropriate to delete a specific request such as the last one? Or some best practices associated with this particular task... I'm very new to SAP Netweaver so don't hesitate to point out the obvious.
    Regards,
    Guillaume

    Hello Matthew,
    I may be wrong, but it seems that "Delete Overlapping Request" won't be enough to obtain the specific behavior I am looking for.
    To give a more detailed description of the context, this specific Cube is used as a history cube, and until a specific date, the latest request, and only this one, not the previous ones which came from the same DTP, must be deleted and then replaced with the new data loaded in the process chain. This data is a value which gets updated everyday but after a specific date (loaded from a table), it's no longer updated and considered "history" and the new data won't replace the previous request but will be added to the cube. Not sure if that was clear
    Here is an example.
    The cube contains three requests, A, B and C.
    At D1, a new request, D, is loaded and since D1 isn't the "specific day", C is deleted (being the last request) and replaced with D. => The cube contains A, B, D.
    At D2, a new request, E, is loaded, and this time time D2 is the "specific day", so D isn't deleted and E is loaded into the cube which now contains A,B,D,E.
    I hope this cleared up the actual purpose of this routine.
    Do you think there is a way (some conditions or something like that?) to set a "Delete Overlapping Request" to achieve this? This would be much simpler than the current solution.
    However, it would still be nice if I could understand what is wrong with the straightforward ABAP program we use in the first place.
    Regards,
    Guillaume

  • Program to delete a specific request from a Cube

    Hi Everyone,
    I've been trying to delete a certain DTP request from a cube but I'm unable to delete it. Is there any ABAP program to delete a specific request from a cube by provinfing requeset ID as the input.
    Thanks,
    Ram

    HI
    SE37RSSM_DELETE_REQUESTGIVE YOUR REQUEST NO & INFOCUBE NAME here. and execute.
    Table is :RSBKDTP contains DTP and target details.
    Hope it helps

  • How to delete a specific request from ODS

    Hi all,
    We have an ODS which we're loading invoices from legacy system. In legacy system, there are two tables for invoices. First one is daily records which is archived on last day of each month. As you guess, second table is  for archive records. We need all of the records from  both tables. Because of performance issue , we don't want to load both tables everyday . So we created two transformation. Since there is no delta option, we need to delete the first table request from data targets before extraction. And delete the request from the second table only last day of month. We're created process chain. But there is no option for deleting only the request from a specific data source or transformation. Are there any solution for this?
    thanks,
    Yigit

    Hi,
    Thanks for your code. But is there any function module to delete most recent request from the ODS.
    I had 2 requirements...One in need to delete from ODS & Other one from Cube.
    FM - 'RSSM_DELETE_REQUEST' will be used to delete from Cube only.
    Can please you send FM & ABAP Code to delete request from ODS.
    Thanks in advance.
    Yigit
    Message was edited by:
            Yigit

  • How to delete a specific request out of the InfoProvider

    Hi all,
    we have a generic datasource to extract our CO-PA data. Unfortunately this datasource can not deliver any delta at the moment. This is why we need to have a full upload. In InfoPackage we select the single period 001, 002, or 003.
    Now in March we only need to load the period 003 daily. In my process chain I would like to have a function that deletes only the request of this infopackage and not also the requests of the previous months, so I don't need to load all everyday, but only the current month.
    Do you know such a process type?
    Thanks in advance!

    Hi Sandra,
    1. Try "Delete Overlapping Requests from InfoCube" process type.
    2. You can also do this in the InfoPackage. Goto Data Targets tab "Automatic Loading of Similar/Identical Requests"
    These two are only possible for a Cube.
    Anup.

  • Delete previous months request

    Hi,
    I have a cube with 2 infosources.From 1st infosource the load is weekly load.My requirement is to delete the previous months requests from this 1st infosource.Any one have some idea on how to delete the Previous months request?

    Hi ChndraShekar,
    you can do this by using that cube's infopackage. whre ther is option in data targets tab " selective deletion(s) double click it thr you get many options of data selection for deletion of your required request.
    hope it surly solves your problm, assn pnt if it helps.
    Regards,
    Neelima.

  • Delete previous ODS request

    Hello,
    I am currently doing a full load from source to ODS every night. I want to delete the previous data from this source and then reload with the new source. Does anyone have any idea on this. I cant delete all the data as there are other sources to the ODS that i dont want to disturb.
    Your inputs would be appreciated and points rewarded
    Thanks
    Laura.

    Hi Laura
    It is impossible to selectively delete requests from an ODS once they have been activated. Once the records have been activated they are added or updated to the active data table and the request ID disappears.
    Have a look at this link for how the ODS activation works:
    http://help.sap.com/saphelp_nw70/helpdata/en/03/c97842b180c153e10000000a1550b0/content.htm
    The only option is to do a full delete and reload of the ODS each night. If that is not acceptable you may have to think about remodelling it.
    Try having 2 ODS, one for current data which gets deleted and reloaded every night and another for history?
    Hope that helps
    Chami

  • Delete Previous Request

    Hi All
    Can some one tell me , how can i delete previous requests from a cube in an automated fashion. I tried the options that are available in the info package but they are helpful when the same request is run again .In my case I want to delete previous days request on an ongoing process.
    Thanks

    hi,
    so maybe sth like this:
    think about such sequence in process chain:
    1.ABAP program to delete from infocube fact table records from yesterday request
    -you would have to think about way to get this request number (maybe way proposed in step 3)
    2.execute new data request
    3.ABAP program to write in custom table request number to know what to delete next day
    in such way you can not compress infocube because you will loose requests numbers
    Regards,
    Andrzej

  • Deletion of last request from PSA & Cube

    Hello Experts,
    I have one Z Infocube in which daily full data had been uploaded....Now in PSA, i have uploaded monthwise data via full load process. but for the current month i have to daily delete the request and then execute the process chain. Is there any method or process type which I can add into process chain that deletes the last date request and same for the DTP Request.
    Please help me out from this as i cant take full load daily.
    Thanks in advance
    Neha

    Hi,
    You can create a selective deletion program using the t-code DELETE_FACTS. Use this program in the process chain and provide variant to delete the previous request.
    PSA Data Deleteion:
    You can delete the request onderthan no.of Days.In the pC Process Types you will find option for Delete the PSA Data.
    Deleting Requests from the PSA :
    http://help.sap.com/saphelp_nw70/helpdata/en/b0/078f3b0e8d4762e10000000a11402f/frameset.htm
    ABAP to delete a specific request (last one) from a Cube  :
    ABAP to delete a specific request (last one) from a Cube
    Process Chain to Delete a previous request with overlapping values :
    /message/6161074#6161074 [original link is broken]
    Regards
    Ram.
    Edited by: Ramakanth Deepak Gandepalli on Dec 10, 2009 7:18 AM

  • Load Transactional Data Current Year: 0PM_OM_OPA_1" doesn't delete previous

    Hi Experts,
    We are doing load monitoring on dailiy basis, As we are doing some testing in the BW Development system, we are loading data into the cube 0PM_C01. we want to load the current year data (2007-2008). but whenever we are trying to load through the InfoPackage "Load Transactional Data Current Year: 0PM_OM_OPA_1" it doesn't delete previous load requests.  It was initially configured with this option not selected.  we recently changed it, but it still doesn't delete.  The only difference we see between this load and others that do delete is that this one is executed from a process chain rather than an InfoPackage Group.  What do we need to do to make it delete previous load requests?
    So please help me in this regard. points will be assigned.
    thanks
    sekhar

    Hello,
    I think as you are running this in process chain, you need to add the step "Delete Overlapping Requests from InfoCube" after the load step so that the previous request will be deleted.
    regds,
    Shashank

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

  • Delete Previous Version - file associations

    Have a question on file association problems when deleteing previous version of PS.
    For example user bought CS5 and  installed.  File Associations now changed by defauilt to CS5.
    If user un-installs CS4, the file associations now revert back to CS4, even though that version is not on computer.
    Changing file associations is Bridge and in the OS does not solve file association problem.
    One either has to uninstall PS and wipe Adobe files, then re-install latest version, or go into OS registry and make changes.  Registry changes can be difficult for many.
    I am sure when CS6 is released we will again have this same scenero, as outlined above, repeated unless the code has been changed.
    The question is:  In CS6 will this bug have been eliminated?

    Just because it's happend to multiple people doesn't make it not machine or user specific (a problem with user permissions on one computer can happen on another as well). I've never seen this behavior on any of my systems and I have to install and uninstall random versions of the software all the time. The most recently installed version of the software should always have the file type associations, regardless of what versions have been removed.
    Have you been able to reproduce the issue on your own machine during testing?

  • Is it mandatory to delte all the previous delta request.

    Hi Gurus,
    I got strucked up with the following issue. Please help
    We have two infocubes called regional and global cubes.
    We are loading data from regional infocube in to global info cube through delta update.
    But the values did not tied up. so I ran the INIT and loaded the data succesfully. Now Is it mandatory to delte all the previous delta request which are already loaded in to the global infocube.

    Hi,
    You need to delete the data from cube and need to do init accrodingly load the data.
    Thanks & Regards,
    Ramnaresh.

  • Deletion on DSO request

    Hi All,
                    first we loaded the one DSO with delta load.because of data consistency converted that into full load after doing "Initialization Delta process".But for the DSO we need to delete the old  request for having present data request.For we need to delete the Old request before loading the data into DSO or After the load. suggest me .Since it is below level ods. Data goes from here to above level DSO.
    when should we delete befor load starts or after load starts (OVerlap request).Please help me on this.
    Thanks
    Prem.

    Hi.
    Please check the following link which contain rich information about thia matter.
    http://help.sap.com/saphelp_nw70/helpdata/EN/f8/e5603801be792de10000009b38f842/frameset.htm
    I would sugges you also to create a process chain to perform this operation.
    In the BI7.0 we have a process type to remove previous requests using the same criteria.
    Thanks,
    Walter Oliveira.

  • DELETE A DELTA REQUEST THAT WAS COMPRESSED !!

    Dear Experts,
    I've some inconsistent data that i'm trying to address.
    So, I've delted a few requests out of ODS_1  >> which sends delta's to CUBE_1.
    After that I went to manage for CUBE_1 and deleted couple of those common requests from CUBE_1.
    Except one request XXXXXX for 11/1/05. When i'm trying to delte this request it says "This request has been aggregated, compressed or Scheduled".
    It said the same thing for the few of the previous req's that i deleted. But after few minutes, it allowed me to delete them successfully.
    This request is adamantly not going any further. So, I went ahead to the RSMO and changed the status from green to red on the STATUS tab. But it's still not letting me delete it.
    I'm concerned that about two things:
    1. how do i delete this delta request XXXXXX.
    2. If resend the data from datastage to ODS_1 from 11/1 to date, it'll then send delta's to CUBE_1.
    But the CUBE_1 already has this request XXXXXX for 11/1/05, it would create duplicate records. What would i do at that point.
    Please guide me thru this.
    Thank you,
    Ti
    Message was edited by: TI

    You need to check to see if the Request you are trying to delete has been compressed in the base cube. Once a Request is compressed in the base cube, you can not delete it.
    As Dinesh, mentions, the cause could also be that you have an agrregate that is set to automatically compress after the rollup, and you can not delete Requests from an aggregate that has been compressed either. Now if the Request has NOT been compressed in the base cube, and the problem is just due to the aggregate, then you can deactivate the aggregate, whihc should allow you to then delete the Request from the base cube.
    If the request has been compressed in the base cube, I think you really have only a couple of options -
    Reload the cube - might be the easiest if the cube is not to big.
    Selective Deletion might work if you can identify criteria that would only point to the data that had been loaded in that Request. Possible, but not likely - depends on the cube design and data.
    If you still have the data in the PSA you use that to create a flat file that you would reverse all the key figure signs and then load that to the cube from a flat file data source you define to offset the data from the Request that you can not backout.  Another variation would be to try to generate a similar reversing flat file from the source ODS. The PSA is probably a better approach if you have the data still there.
    So ...
    The first thing is to identify why you can not delete th Request - due to is compression in the base cube or compression in an aggregate.
    This is why you shouldn't compress Requests in the base cube until you have verfied the data.

Maybe you are looking for

  • Split project? to make the file smaller?

    Hi We have just started to use Captivate and we want to use voice and video caption But we are a bit affraid that the file size will be a problem for or network /Lines Will it be a problem do you think? And if it will - how can we split them so that

  • Bbm problem

    i have a problem with my bbm, everytime i try send a bbm a red x comes up, does anyone know what this means??

  • Re: Archiving of purchase orders

    Hi all, Can i delete  purchase orders by the means of archiving? Please provide details regarding the archiving object. Thanks in advance Sowmya

  • Forced or abrupt (crash etc) server shutdown - What is this?

    Hi We are having the following issues in the prod environment...which doesnt seem to be that promising...BPEL is stopping and starting itself with the following message: 07/08/01 14:55:29 Forced or abrupt (crash etc) server shutdown detected startin

  • Suggestions welcome...what all reports needed to monitor DB performance

    Hi All, Could you all please let me know what reports would you need to monitor a database. I am writing something that one could use to monitor database. not like statspack which would take snaps at regular intervals but a GUI where in you would cli