Automatic Deletion of Infopackage

hii Experts...
I have an issue...
I have a cube. And an IP for loading data daily to the cube.
This IP takes the load to the cube for four years with the fiscal year selection as from (Current year u2013 3)/001 to (Current Year/012), here as example it will load from 2005/001 to 2008/012.
When the first load from this IP happens to the cube in the month of January here say 2009,
This IP will load the data for above selection, in this case it will load from 2006/001 to 2009/012
In this case, data for year 2006/001 to 2008/012 will get duplicated.
Thus we have to delete the IP with the selection 2005/001 to 2008/012 as mention above.
Then do the adhoc load for year (Current Year - 4)/001 to (Current Year - 4)/012, here the adhoc load will be from 2005/001 to 2005/012.
So, can i write a routine at the infopackage level to automate the IP deletion?
This is done manually now.. If it is possible, can you help me with the code?

Hello,
You have issues like so better create four infopackages
IP1 : current fiscal period  -  3
IP2 : current fiscal period  -  2
IP3 : current fiscal period  -  1
IP4 : current fiscal period
2009
IP1 : 2006
IP2 : 2007
IP3 : 2008
IP4 : 2009
DTP1,DTP2,DTP3,DTP4 with same logic.
DTP1 : 2006
DTP2 : 2007
DTP3 : 2008
DTP4 : 2009
If any load happened again with in the same year we will have delete overlapping requests  in process chain and there wont be any problem.
If in Next Year 2010
IP1 : 2007
IP2 : 2008
IP3:  2009
IP4 : 2010
DTP1,DTP2,DTP3,DTP4 will have same logic.
DTP1 : 2007
DTP2 : 2008
DTP3 : 2009
DTP4 : 2010
The delete overlapping requests will not delete for the first time after year change as the selections are not matching.
At year change you need to delete DTP2(selection for DTP1(2007) loaded in current year ),DTP3,DTP4 load values of this previous year.
So at first year change these dtp needs to be deleted . You can make a logic to delte the load of DTP2,DTP3,DTP4 at year end change.
Thanks
vamsi
Edited by: vamsi talluri on Oct 13, 2010 9:18 PM

Similar Messages

  • Automatic Deletion in Infopackage

    Hello all,
    I have this problem, Im writing an ABAP routine in an infopackage for automatic deletion.  The code ran with no errors but in the code I specified that I didnt want the previous package to be deleted if the new package has less records than the previous.  The code is as follows:
    <i>program conversion_routine.
    form compute_ZSD_DESC
      tables l_t_request_to_delete structure rsreqdelstruc
      using l_request like rsreqdone-rnr
      changing p_subrc like sy-subrc.
    TABLES: RSMONICTAB.
    DATA: rsmonictab1 LIKE RSMONICTAB OCCURS 0 WITH HEADER LINE.
    DATA: curr_records type i,
          prev_records type i.
       select * from rsmonictab into rsmonictab1
       where infocube = 'ZSD_DESC'.
         sort rsmonictab1 descending by timestamp.
           read table rsmonictab1 index 1.
           curr_records = rsmonictab1-req_insert.
           read table rsmonictab1 index 2.
           prev_records = rsmonictab1-req_insert.
           multiply curr_records by '.8'.
      loop at l_t_request_to_delete.
           if prev_records <= curr_records and RSMONICTAB1-rnr = l_t_request_to_delete-rnr .
             delete l_t_request_to_delete.
           endif.
         endloop.
       endselect.</i>
    Im not sure if this routine in the infopackage runs before the new record is added to the table, because if it is, then I wont be able to use a routine in the infopackage.  If thats the case, does any body know another way to do this?.
    Thanks so much
    Message was edited by:
            Pizza Girl

    Ok so Ive been doing some changes to my program that Im including in my process chain, the code reads as follows:
    <i>REPORT  ZPAQUETES_TEST.
    data: irsiccont LIKE RSICCONT OCCURS 0 WITH HEADER LINE.
    data: rsmonictab1 LIKE RSMONICTAB OCCURS 0 WITH HEADER LINE.
    data: l_lines type d.
    data: v_SELECTIONS type table of  BAPI6109SEL,
          v_INFOCUBES type table of  BAPI6109IC,
          v_THIRD_PARTY_PARAMS type table of  BAPI6109TCP,
          v_RETURN type table of  BAPIRET2.
    DATA: curr_records type i,
          prev_records type i.
    DATA: RNR1(30) TYPE C,
          RNR2(30) TYPE C.
    DATA: V_INFOCUBE TYPE TABLE OF RSICCONT-ICUBE.
    SELECT * FROM RSICCONT INTO TABLE IRSICCONT
    WHERE ICUBE = 'zsd_desc'.
    DESCRIBE TABLE IRSICCONT LINES L_LINES.
    IF L_LINES GT 0.
    SELECT * FROM RSMONICTAB INTO TABLE rsmonictab1
    FOR ALL ENTRIES IN IRSICCONT
    WHERE RNR = IRSICCONT-RNR.
    ENDIF.
    CALL FUNCTION 'BAPI_IPAK_GETDETAIL'
    EXPORTING
       INFOPACKAGE              = 'ZPAK_A7U7VI5RNB5N5A87RBWXFBMEA'
      TABLES
        SELECTIONS               = v_SELECTIONS
        INFOCUBES                = v_INFOCUBES
        THIRD_PARTY_PARAMS       = v_THIRD_PARTY_PARAMS
        RETURN                   = v_RETURN.
    SORT rsmonictab1 descending  by TIMESTAMP.
    read table rsmonictab1 index 1.
      MOVE RSMONICTAB1-REQ_INSERT TO CURR_RECORDS.
      MOVE RSMONICTAB1-RNR TO RNR1.
    READ TABLE RSMONICTAB1 INDEX 2.
      MOVE RSMONICTAB1-REQ_INSERT TO PREV_RECORDS.
      MOVE RSMONICTAB1-RNR TO RNR2.
    IF SY-SUBRC EQ 0.
    CALL FUNCTION 'RSSM_DELETE_REQUEST'
      EXPORTING
        REQUEST                  = RNR2
        INFOCUBE                 = 'ZSD_DESC'.
    ENDIF.</i>
    but its still not doing anything, can anyone help me please?????
    Message was edited by:
            Pizza Girl
    Message was edited by:
            Pizza Girl

  • Help automatic delete of request after update

    Hi all,
    i need to configure an InfoPackage so it automatically delete a previus request on this condition:
    - The previous request is on the same month or..
    - The new request is into the five days of the next month.
    So if an old request is from 23/12/2006 and new request is form 04/01/2007 the old request must be deleted.
    But if the new request is from 06/01/2007 or beyond, the old request must not be deleted.
    How can i solve this ?
    thx in advance

    I dont have a sample code, but I can give you the logic which can help you program. Copy the infopackage id which will be something like...ZPAK_3V1PWX599NZE5NR5W2XD5BEU9. Now go to the table RSREQDONE, give this infopackage id for the field logdpid and it will show you all the requests that are loaded using this infopackage. Now sort the entries in the table in a descending order using TDATUM and TUZEIT fields (first by TDATUM and then by TUZEIT). Once this is done, select the first entry (which will be the latest load) and write the routine based on the TDATUM field. If TDATUM lies in the same month, then delete the request whose Request ID number is the same as the RNR number in the record you selected from RSREQDONE (the request id will be like...REQU_449W4IE405ZSI25W9WLXAB3FH). Else do not delete.
    Hope this helps. Also, please paste the code here for future reference incase you were successful deleting the requests according to your selections.

  • How to transport deletions of InfoPackages

    Hi,
    After migrating the datasources to 7.0, I am deleting the infopackages under the datasources. Some of them are prompting for a transport request, but some do not. What is the procedure for transporting those deleted infopacks that did not prompt for a transport request? Is there a place in transport connection for deleted infopacks? I could not find any thread on this. Please help.

    Hi Latha
    "I tried that in vein. I captured the original infopackage first and then deleted, but when I deleted no prompt popped up."
    This will work. Once you added the infopackage in one of the transport request, whatever changes you made to this , will be automatically saved into the same transport...
    Cheers
    Chanda

  • I've given my sister my old phone but where she has gone to deleted contacts and pics of photo stream they have then automatically deleted on my recent phone... HELP ME!!

    I upgraded my iPhone 4S to iPhone 5c... My sister is planing to have my old 4s but we have gone to delete stuff eg contacts but those contact have then automatically deleted of my iPhone 5c ... I'm not sure if this is to do with the same icloud account being on both phones..
    I have backed up iPhone 5c on the computer and have backed up iPhone 4S but not sure if backing up the 4s made a difference. I am then worried that if I delete the iCloud of the 4s it will then delete all my stuff of iCloud and of my 5c
    When I got the iPhone 5c I used EE clone phone app so not sure if that has affected all this
    Please help
    Thanks
    Hope all the correct info is there

    This information will explain it:
                 http://support.apple.com/kb/HT1495
    Hope this helps

  • My e-mail automatically deletes read e-mail in my inbox every 14 days without my permission. How do I get this to stop?

    I switched e-mail clients from windows live to thunderbird in mid december to alleviate problems in sending group e-mail. I have thunderbird on a different laptop and the product works flawlessly. The client works flawlessly with one exception: It automatically deletes any read e-mail in my inbox every 14 days without any input from me. I have had ITOK & Hughes.net look at the problem as I am using my inbox as a staging area for for pending business that tracks progress of different events. I have checked settings and there are no evident features that I can switch on or off with that time frame. This has occurred 3 times since December and I have resorted to printing e-mails to prevent loss of data.
    The desktop uses windows 7, IMAP for incoming mail...

    Log into your account at the providers web mail page and look for any retention options that might be there. Do not put too much into what their help desk tells you. Most help desk agents are lucky to know that the ringing sound means to answer the phone.

  • How can I stop music and movies from being automatically deleted from my phone and saved on the cloud? I've just tried to watch a movie on my 2 hour commute, but yet AGAIN it has been removed. I do NOT want to spank all of my data allowance

    How can I stop music and movies from being automatically deleted from my phone and saved on the cloud? I've just tried to watch a movie on my 2 hour commute, but yet AGAIN it has been removed. I do NOT want to spank all of my data allowance downloading it again, especially because (believe it or not) I added it to my phone because that's precisely where I wanted it!! Any help much appreciated

    FYI I had to put this link into firefox to reply - because **** back safari just wouldn't register my clicks to any of the links on the post... Despite reloadeing and even restarting my computer. Totally annoying and a massive pain in the ***.
    But in terms of my initial query; thanks for responding. But no, this is NOT the cause of the problem. I have auto sync and sync over wifi activated, but have also selected manually manage music and videos. Plus, all of my music and videos are on my macbook, absolutely all of it, so if it my phone was syncing with my macbook everything would still be on the phone. Life would be peachy if my phone jsut copied everything that was on my macbook, but unfortuantely it keeps deleting tracks for no apparent reason.
    Any thoughts greatly welcomed, because at the moment i can only conclude that my iphone is crap.

  • How to delete my email on my iPad and have it automatically delete the same email on my iPhone and iMac?

    How to delete an email on an apple device and have that deleted email automatically delete from my iPhone and iMac?

    You need an IMAP type email account a opposed to POP 3. Google the two words together to find out more.

  • If I delete an email on my iPhone, how do I sync it where it will automatically delete on my macbook and iPad.  By the way, I have no idea how to change my email (which was a mobileme account before it became iCloud) to an IMAP format, so be specific!

    How do I set up my macbook pro where it mail that I delete off my iphone will be automatically deleted off my macbook pro and ipad?  Be specific; I have no idea how to set up mail in IMAP.  This is a mobileme account I've had since 2007 and is now set up with icloud, but for over a year now, no syncing (deleting) mail i've deleted off my phone.

    Try this to change the deleted folder on the ipad to the same as on your mac
    http://ipad.screensteps.com/m/mail/l/13040
    The steps are pretty much the same as the gmail account used in the instructions, you may also be able to refresh the email folder list on the mac

  • How do i get my iPhone to automatically delete and email that has been deleted on my macbook

    How do I get my iPhone to automatically delete an email that was deleted on my macbook pro?

    Set up your email account as IMAP on both devices.
    ~Lyssa

  • HT2905 Is there a way to automatically delete exact duplicates in iTunes 11

    Has anyone found a way to automatically delete Exact Duplicates from iTunes 11.  As I read the instructions, it can only be done by comparing the songs with the same title, making sure that it is the same album, etc.  Then I have been going through the duplicates and pressing CTRL in Windows to select the next duplicate song to delete.  I have a very large library and this is going to take hours.
    I guess I didn't get the instructions correctly when I backed up my Library to move from an old laptop to a new one.  I am going to have to go back and read those again because this brand new HP is having problems like the past few that I have received from HP.  I will never recommend an HP Product, I can tell you that.
    Thanks to all for reading this and I hope someone has an answer to automate it.

    When deduping use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks. If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    See also HT2905: How to find and remove duplicate items in your iTunes library.
    (Duplicate link)
    If you still have the original library on the old laptop see this  migrate iTunes library post. It may be easier and/or better to redo the transfer...
    tt2

  • Is there a way to automatically delete photos from a shared photo stream

    I have a shared photo stream with almost 4k photos. I would like to set it up so that any photo older than 90 days or greater than 1000 photos is automatically deleted. Any way to do this?

    Your shared photo streams always sorted by the date you added them. If you view them, the oldest photos are at the top of the window and the newest an the bottom, with the total number showing in the upper right corner.
    if you select one of the photos and open the info panel, you can see, when you posted the photo.  You could just select a photo, from the top of the list, and if it is older than 90 days, delete all photos from the beginning of the stream up to the photo you selected.

  • Reg: To automate deletion of data in two cubes at a time

    Hi,
    I want to automate deletion of two cubes at a time using abap code. The selection criteria will be same for both the cubes.
    Will it be possible to do?
    Please help.
    Regards,
    Sameer.

    HI,
    please see the below link
    How can we automate the process of selective deletion in process chain
    and there is a good PDF document is there on this
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/603a9558-0af1-2b10-86a3-c685c60071bc#rating
    thansk & Regards,
    Sathish

  • How do I get Itunes to automatically delete programs I dont want?

    I use Replay Radio to download my favorite radio shows and that program automatically puts them into Itunes for me!
    I am trying to figure out a way that I can get itunes to delete shows once I have listened to them...I have figured out how to delete them off of playlists, but I want them to automatically delete them from itunes once listened to!
    Thanks for your help!

    Well, I guess a good parallel would be Tivo! Do any of you have tivo!?!?
    On Tivo, you can delete the show, the very minute you watch it! However, on the ipod, I cant delete the radio shows until Im back on my pc! Unless you know of a way that I can delete them from the ipod as soon as I listen to them...
    Otherwise, when you have about 4-5 different radio programs listed by date, it gets confusing as to which one you have listened to...

  • Automatic Deletion of Files in FRA

    Ok, I am about fired up right now. I have read over and over how Oracle will reclaim space in the FRA if it is running low yet I can't reproduce this behavior to save my life.
    - I have archive logging enabled.
    - I am using the FRA.
    - I have a recovery window of 1 day set.
    - I have full incremental (level 0) backups for the past three days.
    - I am also backing up archivelogs and have "all not backed up" specified as well.
    "report obsolete" does indeed report the backups that fall outside of my recovery window correctly. When I run another backup I receive the following:
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 9163505664 bytes disk space from 16106127360 limit
    All I have at this moment is a strong desire to repeat the word "derp" over and over. Can someone explain what I am missing (or perhaps misconstruing) or point me at some docs that clearly spell this out for me?
    Or is it simply that what is being stated implies that I run the following to cause Oracle to "automatically delete files" to create space for new FRA additions:
    allocate channel for maintenance type disk;
    delete noprompt obsolete device type disk;
    release channel;
    Cheers!
    Edited by: 909736 on Feb 14, 2013 11:10 AM

    Alrighty then... I think this paints the appropriate picture:
    select file_type, space_used*percent_space_used/100/1024/1024 used, space_reclaimable*percent_space_reclaimable/10 /1024/1024 reclaimable, frau.number_of_files from v$recovery_file_dest rfd, v$flash_recovery_area_usage frau;
    FILE_TYPE                  USED RECLAIMABLE NUMBER_OF_FILES
    CONTROL FILE                  0           0               0
    REDO LOG                      0           0               0
    ARCHIVED LOG          8277.5077           0              36
    BACKUP PIECE           3864.931    2938.875              13
    IMAGE COPY                    0           0               0
    FLASHBACK LOG                 0           0               0
    FOREIGN ARCHIVED LOG          0           0               0
    7 rows selected.So it appears that I cannot create new backups due to the Archived Logs being ineligible for space reclamation and NOT the backupsets.
    Edit: I shall now work on recreating my test scenario (appropriately).

Maybe you are looking for

  • How do you lock the screen on iphone 4?

    How do you lock the screen on iphone 4 while on a call? I mute calls, activate face time and I have even called someone by accident during a call. I know there has to be a way to fix this. Please HELP!

  • Satellite Pro A120: What is a part number of mother board

    Hello, I want to know the part number of my Toshiba Satellite Pro A120-223 systems board, I've been trying to look for it on actual board, but I can't seem to find it written anywhere. Is there a database of part numbers anywhere online..? I've been

  • ITunes Setup Assistant Error!

    Running Windows 7 and Nero 9 and receiving this error when starting newest version of iTunes. "Warning - The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing ot

  • ORA-01242 error

    Here is the log on alert_orcl.log: Sun May 09 03:17:14 2010 KCF: write/open error block=0x3ae47 online=1 file=33 D:\ORCL\ORADATA\AXIDX_10.ORA error=27072 txt: 'OSD-04008: WriteFile() failure, unable to write to file O/S-Error: (OS 33) The process can

  • Single Sign-On Error while uploading file via WEBADI

    Hello, I am getting error while uploading the file via WEBADI. Below is the error message. Error Message: The Single Sign-On server registration is invalid. Please contact the System Administrator. I noticed that this template is uploading data when