Is it possible to delete data selectively from Business content cubes

Dear Experts,
         Requesting you to help me out to know, is it possible to delete data selectively from Business content cubes.
When I'm trying to delete selectively from Business content cubes, the background job gets cancelled with ST22 logs stating
A RAISE statement in the program "SAPLRSDRD" raised the exception  condition "X_MESSAGE".                                                                               
Since the exception was not intercepted by a superior program, processing was terminated.  
and i tried  with few more Technical content cubes but the same thing happens.
Pls let me know how to selectively delete data from Business content cubes if it's possible?.
Thanks in advance for your favorable assistance.
Regards,
Ramesh-Kumar.

Hi Ramesh,
Follow below steps for selective deletion:
1.     Transaction code: Use the Transaction code DELETE_FACTS.
2.     Generate selective deletion program:
A report program will be generated of the given name, here .
3.     Selection screen:
Take the deletion program u201CZDEL_EPBGu201D to the transaction code SE38 to see/execute the program.
After executing it will take you to a selection screen:
As we need to carry out deletion selective on Calendar week, we need to get the screen field for the field Calendar week. For this, click on the Calendar week field and press F1.
Click on the technical information button (marked in red box above) you will get below screen:
     ABAP program to carry out the Calendar week calculation
Problem scenario: As stated earlier the requirement is to delete the data from the cube based on the calendar week. Thus a code must be developed such that the number of weeks should be taken as input and corresponding calendar week should be determined. This calendar week should be then passed to the deletion program in order to carry out the data deletion from the InfoCube.
     Transaction code: Use T-code SE38 in order to create a program.
Logic: Suppose we need to delete the data older than 100 weeks.
a.     Get the number of weeks and system date in variables and calculate the total number of days :
lv_week = 100.      *number of weeks      
lv_dte = sy-datum.     *system date
v_totaldays = lv_week * 7.      *total days
b.     Get the corresponding calendar day from the total days. This is obtained by simply subtracting the total no. of days from the system date.
lv_calday = lv_dte - v_totaldays. *corresponding calday.     
c.     Now in order to get the calendar week corresponding to the calculated calendar day we must call a function module 'DATE_TO_PERIOD_CONVERT'. This function module takes input as Calendar day and Fiscal year variant and returns the appropriate fiscal period.
Get the sales week time elements
  call function 'DATE_TO_PERIOD_CONVERT'
    exporting
      i_date                      = lv_calday
      i_periv                     = lc_sales
    importing
      e_buper                     = lv_period
      e_gjahr                     = lv_year
    exceptions
      input_false                 = 1
      t009_notfound               = 2
      t009b_notfound              = 3.
  if sy-subrc = 0.
    ls_time-calweek(4)      = lv_year.
    ls_time-calweek+4(2)    = lv_period.
  endif.
v_week = ls_boots_time-calweek.
Note: We can pass the fiscal year variant which can be obtained from the table T009B.For e.g. here fiscal year variant lc_sales = Z2. LS_TIME will be any table with suitable time units.
d.     Now we have obtained the required calendar week in the v_week variable. This calendar week is the week till which we need to keep the data. And older data than this week will be deleted. This deletion will be done by the deletion program
Submitting the Data deletion program for ZEPBGC01 and key field
SUBMIT ZDEL_EPBG WITH C039 LT v_week.
          Here the calendar week value is submitted to the deletion program ZDEL_EPBG with the screen field of calendar week.
Hope ... this will  help you..
Thanks,
Jitendra

Similar Messages

  • Is it possible to create a copy cube from business content cube

    Dear Experts,
    I have to  create the new cubes which is a copy of Business content statistics cubes .
    Request you to let me know how can i create a copy cube from Business content cube. My doubt is,weather is't the same as normal customized cube creation by giving copy from option.....
    Thanks in advance for your valuable assistance.
    Regards,
    Ramesh - Kumar.

    for copying the cube whose copy is to be made should be available in infoprovider tab in modelling of RSA1.
    first you have to install the business content cube ,so that it is found in the Info-providers tab in modelling .
    for that,first go to business content option found in the modelling tab of t-code RSA1 .
    find the cube and transfer it to the right and execute . It will be available in infoprovider tab of modelling .
    then you can create a copy as we do normally .

  • Is it possible to select an area on a graph and to delete data directly from it?

    Hi,as written in the message subject, I'm interesting in the possibility of delete data directly from a graph, using two cursors on the x-axis, or selecting directly an area.
    In fact I don't know how to link the cursor position to the data position in an array, in fact if I'm able to do this, I can use the cursors to select an interval on the x-axis and then with the help of a control on the front panel, delete the data from the array, and obtain a new graph without the selected area.
    Thanks for your kindly attention
    Best regards
    Michele Maria Marotta
    PhD students
    University of Salerno-Italy

    I'm assuming from your question that you have an XY graph built from an array, and I'm also assuming the array is sorted by the X axis.
    Create a property node for the graph (Right-click on the terminal and select Create>>Property node). Now you can either select the Cursor>>Cursor position and Cursor>>Active cursor properties to get the coordinates of the cursor(s), or you can select the Cursor List property to get an array of clusters that holds the data for all the cursors. Assuming you only have two cursors, you can use a for loop and place an Unbundle by name VI in it to get the cursor position. Now that you have the positions for both cursors, go back to the original array and remove the data that's between these values.
    Try to take over the world!

  • How to create a copy cube from Business content statistics cube

    Dear Experts,
           I got a requirement to create the new cubes which is a copy of Business content statistics cubes.
    Request you to let me know how can i create a copy cube from Business content cube. My doubt is,weather is't the same as normal customized cube creation  by giving  copy from option.....
    Thanks in advance for your valuable assistance.
    Regards,
    Ramesh - Kumar.

    for copying the cube whose copy is to be made should be available in infoprovider tab in modelling of RSA1.
    first you have to install the business content cube ,so that it is found in the Info-providers tab in modelling .
    for that,first go to business content option found in the modelling tab of t-code RSA1 .
    find the cube and transfer it to the right and execute . It will be available in infoprovider tab of modelling .
    then you can create a copy as we do normally .

  • Is it possible to delete a relationship from the BP ?

    Hello experts,
    I'd would like to replace a function partner SH (having the same number as the DO) by another  from R3 to CRM5.
    At the begining i have in R3 this partner
    AG 3901007
    RE 3901007
    RG 3901007
    WE 3901007
    In R3 by the transaction VD02, I replace the partner SH by another
    After the modify i have in R3.
    AG 3901007
    RE 3901007
    RG 3901007
    WE 5000000
    When the replication is done in CRM using BDOC, i can see, by the transaction BP
    the new ship to party partner(5000000) .
    The trouble is :
    When customer access to ISA (standard version) to order product, he can select the partner 3901007 as shipping adress.
    By ISA, he should have the partner 5000000 only.
    Is it standard or is it a sap trouble ?
    Is it possible to delete a relationship from the BP ?
    I don't want to delete the BP partner, i just want to delete the relationship when then BDOC arrive in CRM.
    i have found the oss note 596334 497146 757955 too but it doesn't bring me a solution.
    Best regards
    Christophe

    Hello
    When you delete a Partner Function in R/3 the corresponding relationshipdoesn't get deleted in CRM. This is standard SAP behavior and not a
    bug. Reason for this behavior has been explained in Note 490454.
    You can change this behavior by implementing Note 497146. Also check
    the note 682427 which will help you in clearing old data.

  • Is it possible to delete a folder from my Time Machine backups?

    Hi. I have Time Machine running on my office computer. It has backed up all my data since September. Problem is that I need to delete a folder from the backups that contains personal work. Is it possible to delete 1 folder from all the backups? If not, where are the instructions for erasing the Time Machine hard drive (in my case, it's Time Capsule) and starting from scratch?
    Thanks!

    Emily Kessler wrote:
    Hi. I have Time Machine running on my office computer. It has backed up all my data since September. Problem is that I need to delete a folder from the backups that contains personal work. Is it possible to delete 1 folder from all the backups? If not, where are the instructions for erasing the Time Machine hard drive (in my case, it's Time Capsule) and starting from scratch?
    Thanks!
    Yes, but never do it directly with Finder or any tool other than TM itself.
    Here's how:
    Run TM and access the folder you are interested in with the Finder that pops up when you run TM
    When you find the folder you wish to remove select it and then click the small gear in the TM Finder menu and have TM remove that folder and all corresponding folders.
    Again, never to into the TM backup directly or you can corrupt the database and make it useless.

  • Is It Possible To Delete Certain Clips From An Archive?

    After successfully completing an Archive, I noticed there are certain clips that I will never use and would like to get rid of them.  I realize that i don't have to import them into my Events  but don't see a reason to have them taking up HD space.  The Archive was built from a mini DV tape cassette which means they are already stored there.  Is it possible to delete certain clips from an Archive?  If so, can't figure out how to go about it.  Any help would be greatly appreciated. 

    I would try this on a small archive first and on a duplicate, just to make sure you don't damage the entire archive by using this technique.
    You can open an archive by right clicking on the archive icon and Show Package Contents. You should get a regular finder file structure. Find the files you want to discard, select them and Move to Trash.  That should be all there is to it.  I don't see where this should cause any problems, you should be able to import the files into FCPX without any problems (but** I have not tried this for myself — that's why I recommend trying this out on a duplicate archive first.)

  • HT201812 In the past it was possible to delete songs/tones from iTunes but this no longer seems to be the case.  Is it possible to delete songs or tones if they are not duplicated - I just no longer want them in my library?

    In the past it was possible to delete songs/tones from iTunes but this no longer seems to be the case.  Is it possible to delete songs or tones if they are not duplicated - I just no longer want them in my library?

    Howdy SJHocking,
    It sounds like you want to know how to dele songs and ringtones from iTunes. Take a look at the article linked below, it’ll walk you through the process of deleting content from iTunes.
    Delete songs, playlists, or other items - iTunes Help
    If you have iTunes Match enabled, take a look at this article which will walk you through the process of deleting songs from iCloud.
    iTunes Store: How to delete songs from iCloud - Apple Support
    Cheers,
    -Jason

  • Populate select list when a date selected from date picker in tabular form

    Hi Guys,
    I have a situation where user picks a date from a date picker in tabular form.
    So as soon as he picks a date say 05/31/2011 from the date picker I want to populate a select list with 2 values : Tuesday AM , Tuesday PM.
    I have gone through the forums a lot and figured we can write a Dynamic Action using JQuery Selector. But I am not sure how to figure out the day from a date picker.
    I appreciate if some one can give your thoughts on how to proceed. It seems to be simple but looks like a tricky one. I am not familiar with writing Java Script.
    Thanks ,
    Raj

    I was thinking your date selected from CALENDAR ended in a list_item.
    I don't know I thinking that
    well,
    :master_block.itemdate is your text_item where calendar return date selected.
    and then , following Gerd's step
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :master_block.itemdate := calendar (.........);
    go_block ('master-block');
    execute_query;
    end;
    or set a global or parameter variable date selected from calendar :parameter. xxxxxx
    in a PRE-QUERY
    :master_block.itemdate := :parameter. xxxxxx
    and
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :parameter. xxxxxx := calendar( ....);
    go_block ('master-block');
    execute_query;
    end;
    regards

  • Is it possible to delete iCloud drive from ios8 device

    I updated my iPad to IOS8,  not thinking I said yes to iCloud drive.  I use my iPad to type minutes at a meeting and then complete them on my iMac.  Since I do not have Yosemite yet, if I type on my iPad will I not be able to access the document on my Mac?  I have all my completed documents saved on my mac but will any new ones be lost in space if they are started on the iPad?    Is it possible to delete iCloud drive from the iPad.  I know I can turn it off, but that won't help.  Maybe I will be lucky and Yosemite will come out before my next meeting.  It looks like I could probably email a copy from my iPad to my iMac as a pages doc. and then be able to open it in pages.
    Thanks
    Judy

    Hi David:
    Thanks.  I see that I could open in icloud pages and I guess work on it there.  I have never worked that way before.  Can you save it back to the mac?  or just to  iCloud?  And I have to send out copies to board members which, I guess, can be done there.  Thanks for your input.  I feel so stupid,;  I even saw the "small print".  Oh well.
    Judy

  • Is it possible to delete a song from 5th generation Ipod?

    Hi All
    Is it possible to delete a song from 5th generation Ipod, if so, how can this be done?

    Connect your iPod Nano to your computer.  Go into iTunes & click on Music or your playlist under "Devices." 
    Delete the songs from iTunes.  Once deleting is done, eject your iPod Nano.
    Check out the following thread:  http://discussions.apple.com/thread.jspa?threadID=2276586

  • Excute_query when new date selected from calender

    hi,
    i have a mater detail form. form is displaying current day values as default.
    i put a calendar to form for users can be select date.
    now,
    i want to excute_query when new date selected from calender.
    i writed below code to text_item(calendar) when_validate_item trigger but it nor woring
    .giving frm-40137 error.
    code is;
    :parameter.GUNLUK_TARIH := Name_In('PARAMATRELER.TARIH_SON');
    SET_RECORD_PROPERTY(1,'XXMOB_YAPBOZ_TAHTASI_GV',STATUS,QUERY_STATUS);
    go_block('XXMOB_YAPBOZ_TAHTASI_GV');
    DO_KEY('Execute_query');
    any help please
    best regards
    aykut

    I was thinking your date selected from CALENDAR ended in a list_item.
    I don't know I thinking that
    well,
    :master_block.itemdate is your text_item where calendar return date selected.
    and then , following Gerd's step
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :master_block.itemdate := calendar (.........);
    go_block ('master-block');
    execute_query;
    end;
    or set a global or parameter variable date selected from calendar :parameter. xxxxxx
    in a PRE-QUERY
    :master_block.itemdate := :parameter. xxxxxx
    and
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :parameter. xxxxxx := calendar( ....);
    go_block ('master-block');
    execute_query;
    end;
    regards

  • Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?

    Colleagues,
    Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?
    Which will be the maximum transfer rate for continuous data recording?
    Thank you,
    Sergey
    Sergey

    Sergey,
    The PXI-8210 can connect to any SCSI 2 compliant device. If the RAID controller is SCSI 2 and appears just like a hard drive in the operating system, then you can send data directly to the RAID array. The problem is that the driver for the PXI-5112 does not yet support continuous acquisition. The on-board 16MB or 32MB buffer stores the data until the entire acquisition is completed. Once the acquisition complete, all of the data is transferred from the on-board buffer to the hard drive. After that happens, the NI 5112 is ready for another acquisition.
    Best Regards,
    Jace Curtis
    NI Applications Engineering

  • Problem while installing a query from Business Content

    Hi all of you,
    I am trying to install this particular query Inventory Turnover from the cube 0IC_C03 (Material/Stock Movements) from Business Content. Now in the third pane in Business Content under Active version available column across the name of this cube there is a calendar symbol.
    a.     So does it mean that the cube 0IC_C03 (Material/Stock Movements) is installed along with all the objects that are dependent on the cube and all those objects on which the cube is dependent. (NOTE: I had selected the grouping option as “In data flow afterwars”)
    b.     When I collapse Query Element I find that some of the queries are not installed. So I expanded Inventory Turnover query, right clicked on it and selected Install All Below.
    c.     I am getting this error, “Abort system error in program SAPLRRI2 and form LI_SETZEN-01-“ when I execute the query Inventory Turnover. However in Business Content when I installed the report Inventory Turnover under the cube Material Stock/Movement I didn’t get any error anywhere. Everything was activated successfully without any errors.
    Please tell me how do I install this Inventory Turnover from business content and how do I execute this report from BEx.
    Thank you.
    TR.

    Hi Arun,
    Thank you for that quick reply. I want to activate only the query and not the cube. I did as you advise me but still I am getting the same error when I run the Inventory turnover report from BEx.
    I am able to run other reports from the cube IC_C03. But not this report Inventory turnover. I have also checked the cube and there is data in the cube.
    Kindly adivse what to do.
    Thank you.
    TR.

  • Can't create DTP for cube migrated from business content to 2004s

    I am in the process of converting 3.5 Business Content InfoProviders to the new model for 2004s.
    Master data was not a problem, but I’m having a hard time getting InfoCubes to migrate.
    I installed 0PUR_C03 from Business Content and replicated the DataSource into the Data Warehouse.
    I right-clicked 2LIS_02_S013, selected Additional Functions, then chose “Transformation erzeugen” (a.k.a. Create Transformation in English).
    The transformation is generated with no errors and it was activated.  The DataSource is migrated automatically in the process.
    Then, I went to add the Data Transfer Process and that is where I got stuck.
    I right-clicked the cube and took Create DTP.  For source type, I selected datasource.  A dialog box then shows the objects associated with the cube, including the converted infosource, but nothing is highlighted for me to choose from, and I can’t complete the process of creating the DTP.
    Can anyone tell me where I might have gone wrong?

    u got it...
    Message was edited by:
            Raman
    Message was edited by:
            Raman

Maybe you are looking for

  • My apple ID has been disabled and I don't know why!

    I can't update my apps or download anything. what should i do?!

  • How can I sync my iPod classic to another iTunes library

    I need to sync my iPod classic to a new computer shared with my wife how can I sync my music to her library?

  • Unable to open any programs in ABAP editor

    Hi folks i'm unable to open any programs in ABAP Editor. When ever i try to open any program it goes to short dump. Even when i try to open STO4 to view error log. it shows following message Short text     Runtime error, short dump could not be writt

  • The creat account adapter ,i need help .thank you!

    I am fairly new to IdM and have had little training on it. I need assistance with a Resource Adapter design question. I need to create an adapter that will associated the cvs/ftp resource, i just want to create,delete account and create,delete,update

  • Flip clock effect in InDesign?

    Hi all, I'm trying to achieve a flip clock effect in InDesign and export it as a SWF file. I've looked through all the options in the Animation palette and there isn't one that come close. Any suggestions? Cheers, Trish ======== Mac 10.6.8 InDesign 7