BW - DELETE_FACTS - ODS

Guys,
What's the steps to do a selective deletion in DELETE_FACTS???
I need to create a process chain and to delete all datas <= 360 days (0calday) in ODS...
I didn't understand, how can i use the variants after to generate the selection program...
Thanks...

I've followed the steps the post, generated the selective program, create the variant, today <= -360, but the problem is: the variant parameter (in my case 0calday), it isn't written in the generate program...
Is it possible to write the parameter in SE38???
Below, my generated program...
REPORT ZBW_SEL_DEL_ZSDO_AT .
TYPE-POOLS: RSDRD, RSDQ, RSSG.
DATA:
  L_UID       TYPE RSSG_UNI_IDC25,
  L_T_MSG     TYPE RS_T_MSG,
  L_THX_SEL   TYPE RSDRD_THX_SEL.
  L_UID = '48CY84SN23K9G8ZOJ5XLJY649'.
  IMPORT I_THX_SEL TO L_THX_SEL
    FROM DATABASE RSDRBATCHPARA(DE) ID L_UID.
  DELETE FROM DATABASE RSDRBATCHPARA(DE) ID L_UID.
  CALL FUNCTION 'RSDRD_SEL_DELETION'
       EXPORTING
            I_DATATARGET      = 'ZSDO_AT'
            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.
  export l_t_msg to memory id sy-repid.
  UPDATE RSDRBATCHREP
    SET  DELETEABLE = 'X'
    WHERE REPID = 'ZBW_SEL_DEL_ZSDO_AT'.
Thanks...
Edited by: Eduardo Olinto on Feb 13, 2008 9:32 PM

Similar Messages

  • How to automate selective deletion of ods in process chain

    Hi,
    How can we automate selective deletion of ods in Process chain. I tried with the proceedure. Using T-code "delete_fact" I gave selection parameters and Name of the program and saved this as variant and gave the same program and variant in Process cahin. But it is not deleting data. So plz guide me whether I have missed anything in this proceedure.

    Hi purushottam,
                           you have to give to program variants in the process chain for data deletion to take place. in the first program variant include the rsdrd_delete_facts as program name and in the program variant give a variant for your infoprovider selection.
    Now again select another program variant and include the name of the program which you get after selecting the infoprovider name and  the generate selection program  option in the "program for deleting selected entries from the data target" screen " and press execute.
    again give another variant for your field selection.
    now try execute the process chain.

  • View data in ODS

    BW Experts,
    I have a new ODS and have loaded data in it. When I rt click on the ODS and choose manage and then if I want to see the contents of the ODS I am getting the following error.
    <b>System error: RSDRC / FORM AUTHORITY_CHECK USER NOT AUTHORIZED ZSD_O01 ZSD_O01
    Message no. DBMAN100
    Diagnosis
    A system error with the following parameters has occurred in the data manager:
    Parameter 1 = &v1&
    Parameter 2 = &v2&
    Parameter 3 = &v3&
    Parameter 4 = &v4&</b>
    However, I can still see my data through my active data table tab.
    Any thoughts on why I am getting this error when I want to see it directely through manage ods?
    Thanks
    Ashwin

    Hi Ashwin,
    Is the ODS enabled for reporting? I came across a similar situation recently and it was because I did not have the auth for data access for that particular ODS. I could look at the data through SE16 and the active data table, but not if I did a LISTCUBE for it.
    After it was added to a role and assigned, the error message was removed. (Auth object: S_RS_ODSO)
    Hope this helps...

  • Dsatsource /ODS/Cube for Open PR and Open PO"

    Dear Experts
    I want to build a report in which I need to show "Open PR and Open PO" but I could not locate these fields in the BW CUBE / ODS / DATASOURCES. Can anybody tell me where I can find these fields..........
    Dinesh Sharma

    Dear,
    There is no specific standard data source is not available to fetch us "Open PO" or "Open PR". first vll talk about PO.
    For open PO,
    case - 1
             Need to report count of all PO's which are in open status.
    Case-2
            Need to report TBQ ( to be delivered Qty ) against each over due PO.
    Basically we have - EKKO - HEADER , EKPO - ITEM AND EKET - SCHEDULE LINE ( GRC -  GOODS RECEIVED ) is available,
    so create a view, take all these three tables EKKO, EKPO and EKET.
    EKPO     
    1     DELIVERY COMPLETED INDICATOR     ELIKZ
    1     DELETION INDICATOR IN PD     LOEKZ
    1     ARTICLE NUM     MATNR
    1     SITE     WERKS
    X     PO DOCUMENT NUM     EBELN
         PURCHASING ORDER QUANTITY     MENGE
         PURCHASING ORDER UOM     MEINS
         NET ORDER VAL IN PUR ORDER CURRENCY     NETWR
         NET PRICE IN PURCHASING DOC IN DOC CURRENCY     NETPR
    no     PRICE UNIT     PEINH
    X     ITEM NUMBER OF PURCHASING DOCUMENT     EBELP
    EKKO
         DATE ON WHICH RECORD WAS CREATED      AEDAT
         PURCHASING DOCUMENT DATE     BEDAT
         DELIVERY DATE     EQ_EINDT
         RELEASE INDICATOR PURCHASING DOC     FRGKE
         RELEASE STATUS     FRGZU
    0PO_UNIT     PURCHASING DOCUMENT NUM     EBELN
         CURR KEY     WAERS
    EKET
         QUANTITY OF GOODS RECEIVED     WEMNG
         PURCHASING DOC NUM     EBELN
         ITEM NUM OF PURCHASING DOC     EBELP
    Logic - create a generic DS, by view, FIRST send the data to DSO, there mention a field like TDQ ( to be deliver qty ), TDQ = po qty - goods received qty. -
    create  a cube above DSO, set a filter, allow only those records who has TDQ <>0, so your cube contains only pending PO.
    hope it helped u.
    Thanks,

  • Error while activating ODS Object

    Hi,
    I have loaded the data from R/3 to a ODS Object and the activation of ODS failed due to the following errors as shown below..
    -Value '20060 ' of characteristic 0CALQUARTER is     not  plausible
    -Error when assigning SID (details in long text)
    -Activation of data records from ODS object ZODS_02 terminated
    -Error getting SID for ODS object ZODS_02
    I could see that Calendar Quarter as 20060 in PSA. How should i get rid of this error. Any idea would be appreciated.
    Regards,
    Raj

    Raj,
       you are getting this calender qurter from SAP right... check in RSA3 fro the your Datasource. if you are getting same value like '20060'. you can do one thing... you can set 'No Update' in Transfer Rules. you can write a routine in Update Rules for populating the data for calender Week.
    you can call some standard function modules or you can write a small routine. If you want to write a routine check this thread...Re: Date to Quarter
    Possibilites:
    1. updtae rules
    2. if RSA3(PSA) shows the value of the Quarter as '20050', if it is custom extractor(Generic using FM) you can change this.
    3. If it is Standard Extractor or Generic Extractor (using either view/table or Infoset) you can enhance this. you can do the same thing in SAP Side.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • Error while activating ods

    Hi all,
    i have the following errors turning up while activating ods.
    1. creation of export data source failed
    2. rfc connection to source system b3tclnt800 is damaged - no meta data upload
    3. error when activating ods object
    Can anyone let me know how to rectify it.
    regds
    hari

    Hi,
    The problem is with ur Source Sys connection..
    Above problems will be solved by restoring Source System Connection...  Ask your Basis team to restore SS.
    Thanks

  • Error While Activating ODS in BW

    Hai Experts
    While Activating the ODS the following errors are occurs
    The creation of the export DataSource failed
    RFC connection to source system B3TCLNT800 is damaged ==> no Metadata upload
    Error when creating the export DataSource and dependent Objects
    I am using IDES BW 3.1C.
    Kindly suggest me a solution.
    Balaji VK
    09342501065
    Error when activating ODS Object SALEODS

    hi,
    also take a look this
    Re: "RFC connection to source system [our R3 TEST system] is damaged ==> no Met

  • Error while updating data from PSA to ODS

    Hi Sap Gurus,
    I am facing the error while updating data from PSA to ODS in BI 7.0
    The exact error message is:
    The argument 'TBD' cannot be interpreted as a number
    The error was triggered at the following point in the program:
    GP44QSI5RV9ZA5X0NX0YMTP1FRJ 5212
    Please suggest how to proceed on this issue.
    Points will be awarded.

    Hi ,
    Try to simulate the process.That can give you exact error location.
    It seems like while updating few records may be no in the format of the field in which it is updated.
    Regards
    Rahul Bindroo

  • Error while resetting the delta in ODS  (BI 7.0)

    Hi all,
    I face a problem in delta resetting...need your help... Thanks..
    I have an ODS-1  which has target cube1, cube2, cube3....One week back a new target has been added as ODS-2....All complete data from ODS1  has been piped into ODS 2..(Note.. ODS2 has many more inputs from other cubes/ODS too)
    NO issues till now....
    I found a data problem in ODS-1 which got loaded 15 days back..... I have removed all 15 requests from cube1, cube2 and cube3... Now I am trying to reset the delta in ODS1...
    I am getting the following error....Infoprovide ODS2 still contains request... Delete this first....
    Since ODS2 has many other data alongwith ODS1... If I try deleting request from ODS2,, I need to clean it totally and redo... I dont want to do this...
    Is there any way to disconnect this delta link between ODS1 - ODS2..... So that I will reload the data in ODS1 and populate into all targets...
    Let me know your suggestions.... Thanks!
    Regards
    Ayyappan.V

    Is there any way to disconnect this delta link between ODS1 - ODS2..... So that I will reload the data in ODS1 and populate into all targets...
    I dont think you can disconnect the link. just delete the requests originating from ODS1 in ODS2 and you can leave all other requests intact that are from other dataproviders and do a reinit.

  • Error  While  Deleting Data  From ODS

    Hi all,
    We are getting short dump while deleting data from a perticular ODS.
    Part of short dump is--
    trigger Location of Runtime Error
       Program                                 SAPLRSAC
       Include                                 LRSACU75
       Row                                     535
       Module type                             (FUNCTION)
       Module Name                             RSAR_TRANSTRUCTURE_ACTIVATE
    help is desperately required
    Regards
    Srini--

    try to activate InfoSource and later delete data.
    Check if all ODS related objects are consistent and active.
    also pls attached the whole dump for more clarity if this does not work.

  • Error while activating the ODS "Request No longer Exist in ODS".

    Hi All,
    I had deleted one request from four ODS's before completely loaded from R/3. Now when i am trying to activate from one of them using process chain it is giving me the error massage "Request No longer Exist in ODS".
    But when i am manually activating this it is not giving me any error.
    Please suggest solution for the same.
    Regards,
    Rohan Shah

    I had deleted one request from four ODS's before completely loaded from R/3.
    Before deleting the request make QM status red and then delete.
    when i am trying to activate from one of them using process chain it is giving me the error massage "Request No longer Exist in ODS".
    Already you have deleted the request. How can you activate the same request?
    Have you loaded the data again?
    With Regards,
    Kishore.
    Edited by: Siv Kishore on Apr 22, 2009 3:58 PM

  • Can not see ODS infosource in the system

    Hello,
    I am unable to see Infosource of my ODS under the infosources tree. This is only happening in DEV and PROD. In QA system i could see it and also create additional infopackages.
    The bottom line is I want to be able to create extra Infopackages under it other than what system creates.
    Is there any setting i have to do or any ideas?
    Thanks in advance,
    vamsi.

    Do you mean export data source one's 8*...
    go to rsa12... settings-- display generated objects -- click on radio buton show ods generated objects and hit the arrow key..

  • 2lis_11_VAITM not inserting all data in ODS

    Hello Gurus.
    I'm using extractor 2lis_11_VAITM, when I test the extractor in RSA3, it is bringing me all registers of table VBAP, but when I load this extractor into an ODS in BW, It is not inserting all registers into the cube, some "return orders" are missing, how can i solved this problem ????   I'm using in ODS key Doc number and position.
    THANKS IN ADVANCED.

    Hi Sudheer, ther is no selections during data load, and also ther isn't any routine(either in transfer or update rules).  It's supposed that all registers have to be loaded to the ODS no ?? because i'm using key Doc number and positions, so I want all documents with all positions to be loaded, but this is not happening, there are missing the "'return orders'".
    Any other idea of why this is happening ??

  • Data in the cube/ ODS?

    Hi all,
    I would like to ask one simple question. Can someone tell me how to check if infocube/ ODS contains data (instead of checking it by runing reports in BW Analyzer). Thank you.
    Best wishes,
    John

    Hi John,
    In RSA1, find your cube or ODS > right click > Manage > Requests tab. Here you can see the data that has been loaded to the object.
    You can also move to the contents tab and look at the contents from here, or at least click on Number of records to get an idea of the volume of data.
    Or in SE16 > /BI/A<b>YrODS</b>00 for the ODS active data table and /BI/F<b>YrCube</b>for the cube fact table.
    Hope this helps...

  • Data in the cube is showing multiple entries when compared with ODS

    Hello BW Gurus,
    We have a waste report in production planning on Cube and ODS separately. The same info package loads both targets (which means same infosource) but when we run a report on Cube, the records are showing multiple entries (i.e. Key Figures are not matching when compared to ODS) where as the ODS records are showing correctly as it was in R/3. There are totally 6 key figures out of which 4 pulled from R/3 and 2 are populated in BW.
    An Example:
    Waste report in PP run for plant 1000 for 12/2005 and process order 123456. The operational scrap should be 2.46% and the component scrap should be 3.00% for material 10000000. The report is showing 7.87% for planned operational waste % and 9.6% for planned component waste %. These values are not correct. The ODS values for order 123456 matched the data in R/3 for component and operational scrap.
    There is a Start routine to the ODS and also to the cube. I am not good at ABAP so requesting your Help.
    Here is the ODS Code:
    tables: /BI0/PPRODORDER.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    modify data_package.
    endloop.
    Here is Cube Code:
    tables: /BI0/PPRODORDER,
    /BIC/ODS.
    TYPES:
    BEGIN OF ys_mat_unit,
    material TYPE /bi0/oimaterial,
    mat_unit TYPE /bi0/oimat_unit,
    numerator TYPE /bi0/oinumerator,
    denomintr TYPE /bi0/oidenomintr,
    END OF ys_mat_unit.
    DATA:
    l_s_mat_unit TYPE ys_mat_unit,
    e_factor type p decimals 5.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    data_package-agsu = 'GSU'.
    data_package-agsu_qty = 0.
    select single gr_qty
    base_uom
    into (/BIC/ODS-gr_qty,
    /BIC/ODS-base_uom)
    from /BIC/ODS
    where prodorder = data_package-prodorder
    and material = data_package-material.
    if sy-subrc = 0.
    if /BIC/ODS-base_uom = 'GSU'.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    else.
    SELECT SINGLE * FROM /bi0/pmat_unit
    INTO CORRESPONDING FIELDS OF l_s_mat_unit
    WHERE material = data_package-material
    AND mat_unit = 'GSU'
    AND objvers = 'A'.
    IF sy-subrc = 0.
    IF l_s_mat_unit-denomintr <> 0.
    e_factor = l_s_mat_unit-denomintr /
    l_s_mat_unit-numerator.
    multiply /BIC/ODS-gr_qty by e_factor.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    ENDIF.
    else.
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
    EXPORTING
    INPUT = /BIC/ODS-gr_qty
    NO_TYPE_CHECK = 'X'
    ROUND_SIGN = ' '
    UNIT_IN = /BIC/ODS-base_uom
    UNIT_OUT = 'GSU'
    IMPORTING
    OUTPUT = DATA_PACKAGE-gsu_qty
    EXCEPTIONS
    CONVERSION_NOT_FOUND = 1
    DIVISION_BY_ZERO = 2
    INPUT_INVALID = 3
    OUTPUT_INVALID = 4
    OVERFLOW = 5
    TYPE_INVALID = 6
    UNITS_MISSING = 7
    UNIT_IN_NOT_FOUND = 8
    UNIT_OUT_NOT_FOUND = 9
    OTHERS = 10.
    endif.
    endif.
    endif.
    modify data_package.
    endloop.
    some how the AGSU qyt is not populating in the cube and when I dbug the code, I could see a clean record in the internal table but not in the cube.
    your suggestion and solutions would be highly appreciated.
    thanks,
    Swathi.

    Hi Swathi
    In ODs we have option of overwriting and addition however in Cube we have only adition.Thats why you are getting multiple enteries.
    If you are running daily full load on the cube then please delete the earlier requests.
    So at one point of time there should be only one full load request in cube. Hope this will solve your problem.
    Regards,
    Monika

Maybe you are looking for

  • Oracle 10g Express Edition - number of simultaneous connections

    Goodmorning, I'm goingo to test Oracle 10g Express Edition but I ned to know the max numbers of simultaneous connections it supports. Many thanks to all.

  • 320kbps or not?

    I found I have two versions of a song, one I ripped in iTunes AGES ago, and one I ripped only a few years ago. One is 128kbps, and the other is 320kbps, but the waveform in Audacity doesn't look right. (I am no expert in this stuff, it's my first tim

  • Date From and Date TO

    Hi All, I have created two parameters P_Date_From and P_Date_TO. I am using as below in SQL query to restrict data. Where Ordered_On_Date>=:P_Date_From and  Ordered_On_Date<=:P_Date_TO Its working fine if I supply the dates but erroring out when we r

  • STKO and STPO link

    Hi, How to find the link STLAL(Alternative BOM) field in STKO and STPO. Please let me know how to link. Its very urgent. Thanks & Regards, Murali.

  • Query - Business Objects- CMS Cluster internals for load balancing/ sharing

    Hi, We are implementing CMS Cluster solution between two BOE server on Windows 2003 OS. As per documentation, One CMS server is primary, which coordinates with secory CMS server within same cluster. Does both server share equal load without external