Selective Deletion on Inventory Cube 0IC_C03 via Calendar Day

Hello Group
I am trying to do a selective delete to our inventory cube 0IC_C03 and found there is not an option to select day.
Does anyone have any thoughts on how do delete using day? Please note that my cube has been compressed and I do not have a request in the cube.
Thanks
Frank

Hi Frank,
REPORT  ZRSDRD_SEL_DELETION                     .
DATA:
    l_thx_sel   TYPE rsdrd_thx_sel,
    l_sx_sel    TYPE LINE OF rsdrd_thx_sel,
    l_s_range   LIKE rsdrd_s_range,
    l_t_range   TYPE rsdrd_t_range,
    l_t_msg     TYPE rs_t_msg.
******************* 0CALDAY *****************
l_s_range-sign   = 'I'.
l_s_range-option = 'EQ'.
l_s_range-low    = '20030308'.
*l_s_range-high   = .
l_s_range-keyfl  = 'X'.
APPEND l_s_range TO l_t_range.
l_sx_sel-iobjnm   = '0CALDAY'.
l_sx_sel-t_range  = l_t_range[].
INSERT l_sx_sel INTO TABLE l_thx_sel.
CLEAR l_s_range.
REFRESH l_t_range.
************** 0PLANT **********************
l_s_range-sign   = 'I'.
l_s_range-option = 'EQ'.
l_s_range-low    = 'PLNT'.
*l_s_range-high   = .
l_s_range-keyfl  = 'X'.
APPEND l_s_range TO l_t_range.
l_sx_sel-iobjnm   = '0PLANT'.
l_sx_sel-t_range  = l_t_range[].
INSERT l_sx_sel INTO TABLE l_thx_sel.
CLEAR l_s_range.
REFRESH l_t_range.
************** 0MATERIAL ****************
l_s_range-sign   = 'I'.
l_s_range-option = 'EQ'.
l_s_range-low    = 'MATERIAL'.
*l_s_range-high   = .
l_s_range-keyfl  = 'X'.
APPEND l_s_range TO l_t_range.
l_sx_sel-iobjnm   = '0MATERIAL'.
l_sx_sel-t_range  = l_t_range[].
INSERT l_sx_sel INTO TABLE l_thx_sel.
CLEAR l_s_range.
REFRESH l_t_range.
CALL FUNCTION 'RSDRD_SEL_DELETION'
     EXPORTING
          I_DATATARGET      = 'ZICRT_C37'
          I_THX_SEL         = L_THX_SEL
          I_AUTHORITY_CHECK = 'X'
          I_THRESHOLD       = '1.0000E-01'
          I_MODE            = 'C'
          I_NO_LOGGING      = ''
          I_PARALLEL_DEGREE = 1
          I_NO_COMMIT       = ''
     CHANGING
          C_T_MSG             = L_T_MSG.

Similar Messages

  • No Selective Deletion on Inventory Cube 0IC_C03 via Calendar Day

    Hi,
    I need to repair my Inventory Cube <b>0IC_C03</b> for a certain date. To do that, I need to perform a <i><b>Selective Deletion</b></i> on the Cube and perform a <b>FULL REPAIR REQUEST</b> limited on that day only.
    But to my surprise, I could not find a Calendar Day entry in the "<i>DeletionSelection</i>".
    Is there a workaround or do I need to switch on anything?
    --Jkyle

    Hi Roberto,
    You are too humble! Everybody knows you are the <b>ONE</b>
    (he heh from the <b>MATRIX</b> movie)
    Anyway, I dont think Export Datasource would help. As you may know, Inventory Cube <b>0IC_C03</b> uses 2LIS_03_BX and 2LIS_03_BF data sources. This <b>CUBE</b> is somehow special.
    To cut this problem short, I'll go straight to the point. <i>How could I perform INIT via 2LIS_03_BX and 2LIS_03_BF w/o R/3 downtime at all</i>? The reason I came to this <i>Selective Deletion</i> thing is to patch up the mess the INIT would introduce when there are users around by using a REPAIR FULL REQUEST only for that single day...
    I hope you get what I mean...
    Thanks!
    --Jkyle

  • Selective deletion for Inventory Load

    Hi Guru's
    I have done loading for Inventory cube 0IC_C03 using the 2LIS_03_BF with Delta load and made mistake in last delta load Compression(No Marker Update).. till July 2011 the Data is fine for our report for calculating the TOTAL QUNATITY STOCK..  so we planned to done the selective deletion for August 2011 to till date.. but we cant find the Time Characteristics in selection to done Selective deletion. Please share your valuable ideas...
    Thanks,
    Satish.M.R

    Hi,
    You can delete all the requests from the cube which have been updated from 1st of August onwards.
    Just go to the MANAGE screen of the cube and select all the requests which are loaded from 1st of August onwards and delete all of them.
    Navesh
    Edited by: navsamol on Oct 6, 2011 7:00 AM

  • Selective Deletion of the Cube contents in Abap Program of the PChain

    Dear Experts
    I need to selectively delete the contents in Basic Infocube using Process Type - ABAP Program in the Process Chain in BW 3.5
    For this I have to give the Variant and Program name in the Process Type - ABAP Program in the Process Chain
    The ABAP Program for this purpose can be generated automatically by the system in the the below navigation
    info cube> Manage>contents > system menu(in the Top)> Status
    but this abap program is changing dynamically every time and hence in the Process chain ABAP Program node is failing with error saying that that program is not available
    I have tried the same way  in the selective deletin navigation path also in the cube manage
    Please let me know how to get the system generated program to use in the Process type-ABAP Program in Process Chain
    Thanks for all in advance
    KSR

    Hi KSR,
    Try this.. start a selective deletion on the cube. you will get a background job running. Get the job name from SM37.
    Now write a ABAP program with the below code.
    parameter: p_Job_Name type sysuuid_c.
    CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
    EXPORTING i_barepid = l_jobnam.
    Execute the above program. Pass the job name which you got from SM37.
    Create a variant with that job name.
    Now schedule this newly created program. This should solve your issue.
    Note : The job name might vary from one server to another (Dev / Qual / Prod). So if you are planning to move your process chain from Dev, then pass the Job name (in prod) as the variant in yr Dev system and then transport it.
    Cheer,
    Balaji Venugopal

  • Selective deletion on info cube taking long time.

    We have a cube with line item dimension and partioned on Fiscal year. When we are doing selective deletions on the cube on 0fiscper (removing the old redundant data) it is taking quite long time (approx 10 hours) to do this selective deletions as there is huge data in the E fact table ,Request older than 4 days are compressed in the cube and it has some millions of records in this table.
    Is there any way we can improve the performance of this selective deletion? Any improvements suggestions we are on sap BW 3.5 system.

    Hi,
    The issue is very specific .
    I recommend to check if there are defined matching indexes which fit to the where clauses of the delete statements. This will make the access to the record most effient.
    All other indexes need to be just deleted for the time-being and re-created after the clean is completed. This will save the time for updating the indexes.
    The deletes should be performed in bulks - i.e. many, e.g. 25, 100, more at once. If deletes sqls are send from ABAP to database one by one there is huge overhead in the network traffic time.
    Best Regards,
    Sylvia

  • Selective deletion for particler cube and rebuild of aggrigates in Psystem

    Hi Friends,
    1.In my manage data target screen i have 8 cubes but i want do selective deletion from 1st cube ..how i can do ..?
    Im thinking like...IN DETILS column i will select.one data target and then i will go to contents tap and then selective deletion for paricler requst ID...is correct to do selective deletion for particler data target out of 8 cubes..plz tell me
    2.in production ...while doing selective deletion ...aggregates are failed...means status is in red color...
    now,how can i create or build or rebuild those aggrgates again...please and my qns...
    Thanks in advance

    Hi
    1. technically Yes its ok to do selective deletion of only 1 cube, incase of delta load you will have to do selective reload to only that cube otherwise data for that perticular selection will get doubled in rest of 7 cubes.
    Actually depends on situation in which you plan to do so.
    2. its possible to aggreegates get affected due t selective deletion.
    Just go to manage->rollup tab of cube and rebuild agreegates.
    Hope this helps.
    Regards
    Sudeep

  • Selective deletion in info cube

    is there any option to do selective deletion in info cube.
    i need step by step detail.
    thanks
    ks

    Yes indeed there is step to delete selectively in Cube.
    http://help.sap.com/saphelp_nw70/helpdata/en/d4/aa6437469e4f0ae10000009b38f8cf/frameset.htm
    Its in Manage cube- Content tab- deletion
    Thanks

  • How to revert request posting in inventory cube 0IC_C03

    Hi Experts,
    We are doing inventory at our storage. We have one problem
    By mistake 2 delta requests are posted in 0IC_C03 cube and it is compressed.How to revert back the last delta request.
    Thanks

    Hi ,
    You can revert bcak by doing Selective Deletion.
    You search for a field Load Date in cube, If ypu have that field pls go ahead and give yesterdays or todays load date as per your requirement as selections and delete the data selectively.
    Else if you dont have load date then, you need to do small work around........Go to PSA and put filter on Posted date or created on date or some time fields and figure out the list of dates.
    Based on above dates you can clean up the previous records from cube by doing selective deltion.
    Regards
    SujanR

  • Inventory cube 0IC_C03 ,Stock on particular date

    Hi All,
       We are trying to get the stock on a particular date using cube 0IC_C03 ,but we are unable to get the total stock on a given date.
    1)Ex: I want stock on 01.12.2009 ,but in the query output I am getting  null values.
      I am only getting the total stock quantity on the loaded date for ex:04.01.2010(which is my data loading date in to the cube).
    2)And when we restrict 0calday with <=01.12.2009 ,i have to get the total stock till 01.12.2009
    Thanks&regards,
    Sunitha

    Hi,
    Check
    Treatment of historical full loads with Inventory cube
    Setting up material movement/inventory with limit locking time
    1)Ex: I want stock on 01.12.2009 ,but in the query output I am getting null values.
       I am only getting the total stock quantity on the loaded date for ex:04.01.2010(which is my data loading date in to the cube).
    For 2LIS_03_BX it will give the extracted date only
    2)And when we restrict 0calday with <=01.12.2009 ,i have to get the total stock till 01.12.2009
    try with below options.
    Use :
    0VALSTCKVAL   " for Value
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month
    Use the above combinations in New Selections in columns and go it.
    For Qty Opening:
    New Selection bad drag abd drop following things
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month and restrict with less then or equalto option variable (single value, user input)  and set the offeset
                                   value = -1 bcoz if user will give 12.2009 , so it will display 11.2009 closing stock, this is opening for 12.2009.
    For Qty Closing:
    New Selection bad drag abd drop following things
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month and restrict with less then or equalto option variable (single value, user input) .
    In the same way build for Value and other Keyfigures on 0IC_C03.
    And
    Drag & drop
    0MATERAIL
    0PLANT  " Give some Input Variable.
    See the steps.
    Treatment of historical full loads with Inventory cube
    Setting up material movement/inventory with limit locking time
    If it is BI 7 then for BX in in DTP in Extraction Tab you need to select Extacrion mode = NON-Cumulative option.
    Thanks
    Reddy

  • Difference between Inventory cube 0IC_C03 and 0CP_IC_C1

    Hi Gurus
    I'd like to ask what's the difference between this 2 cubes in inventory? 0IC_C03 and 0CP_IC_C1 ? Any help will be much appreciated. Thanks in advance
    - Kit

    Hi,
    Well I am not an expert on Inventory but this is what I know:
    0IC_C03 - LO Cockpit cube - Standard Inventory qty and values. This can be used for all purpose on a generic basis. This is not customized for any specific Industry sector. A standard ECC can use this as well as Retail can use this.
    0CP_IC_C1 - This is also an Inventory cube containing value and quantities but this is more specifically designed for CP industry sector (Consumer Products). Here the BW transaction keys are different meaning that events/movement types specific to CP industry transactions will generate these transaction keys which gets updated to BW.
    Also the cube 0CP_IC_C1 KPIs are average figures on the stock quantities and values (Exception Aggregation: Average Over Calendar Days). Whereas in 0IC_C03 the KPIs (NCKFs) are based on last value (Exception Aggregation: Last for Calendar Days)
    Therfore if you are not aiming at Consumer Products Industry specific implementation, I would recommend 0IC_C03 cube.

  • Customization of Inventory Cube - 0IC_C03

    Hi gurus,
    I need to implement the Inventory for my client using the Std cube 0IC_C03.
    Here the client wants me to take the Total stock as the sum of the following stocks in MARD Table
    LABST - Unrestricted
    UMLME - Stock in Transfer
    EINME  - Restricted Use
    SPEME - Blocked
    RETME - Return              
    In the Standard Content we are considering only Stock in transfer & Blocked stock.
    Please help me in suggesting what are the changes needed in Transformations for both 2LIS_03_BX and 2LIS_03_BF.
    Thanks in Advance
    Seshu

    Hi ,
    The fields LABST - Unrestricted
    UMLME - Stock in Transfer
    EINME - Restricted Use
    SPEME - Blocked
    RETME - Return
          The fields other than blocked and Stock in transfer are not present in the datasources  2LIS_03_BX and  2LIS_03_BF .
      If you need these fileds , you can go ahead with a function module datasource based on MARD , MSEG tables from where you can take these fields directly .
    You can also refer to the links below for other options
    Datasource for MARD table
    Re: MARD Table  -  Not giving Stock in Transit Value
    If in case the relevant fields are not seen in the datasource , you can go to transaction LBWE, CLICK ON 03 :Inventory Controlling(your case), click on maintainence tab and just drag the required fields to the left .
    Also you need to delete and fill the setup tables after this step.

  • Damaged inventory cube 0IC_C03

    Hi all,
              My inventory cube is damanged because some data is not loaded via delta.
    what i done is i stopped the back ground job which is running for compression of the request.i done Init with full repair request loaded missing data.(_03_BF). full load.
             now my question is setting up marker for BF . my opening stock is around 2006. I loaded from 02.2007 to till the date. It is not a historical data(Because it after 2006). current data.
    can i do compression with marker or without marker.
    pls help me this is very important for me.
    thanks .

    Hi
    About the Marker - understood........I did....without checking it.   that is not the issue. Please see below the detail of the error log. Listcube does not show any entries. the range of posting dates i loaded was 1/1/2000 to 1/10/2010....valuated stock only..........
    this is the error message..........
    Multiple entries found with NCUMTIM 'unlimited'; compression not possible
    Message no. DBMAN380
    Diagnosis
    The time dimension contains multiple entries for which the time
    reference characteristic (NCUMTIM) is set to 'unlimited'.
    The value 'unlimited' is the maximum possible value for the time
    reference characteristic. This value is reserved for markers in
    non-cumulative InfoCubes and cannot be used for standard transaction
    records.
    System Response : Compression is terminated.
    Procedure : Contact your system administrator.
    Procedure for System Administration
    To allow compression to be carried out, the entries must first be
    removed from the InfoCube.
    To do this, you can proceed as follows:
    1. Delete all packages that contain records in which the time reference
    characteristic has the value 'unlimited'. You can identify these
    packages by using transaction LISTCUBE.
    2. Reload these packages and create a rule in the transformation that
    maps the value 'unlimited' to a year before 9000.
    3. Using transaction RSRV, then delete all entries that are no longer
    used from the time dimension.
    The InfoCube can be compressed again.

  • Valuation class in Inventory cube 0IC_C03

    I have to include valuation Class in standard cube 0IC_C03.Please help me with your inputs.
    what are the keyfigures I should assign in the update rule for valuation class chracteristics?.
    Thanks in advance for your time and help
    null

    Hi,
    hope that you already included the valuation class object in the Infocube and communication ( source structure ), the it should assign automatically. if not please go to the update rule and assign to the key figure which are not active using charateristics tab in the update rule. suggestion is assign for all the Key figures and then activate the update rule.
    Regards,
    Vishwanath.

  • Query on Inventory Cube 0IC_C03

    Hi All
    When running a query on Inventory Cube, I get some of the values like this "[2,000]" and the value is not taken into account in the total row.
    Any Idea about the "[Value]"?
    Thanks
    Dror Golani

    Hi,
    Probably it could be a NUMC data type.Just check.
    venkat

  • Inventory Cube 0IC_C03

    How do we compare the date BW with R/3 for the cube 0IC_C03?

    Hi Krish,
    Check this link to get document
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14
    Regards
    Prakash

Maybe you are looking for