Automate the selection delete in infoprovider

Hi All,
Can we automate the process of selective deletion in infoprovider. I mean I need to do the selective delete every week from info provider and data may or may not overlap in different request.  So can we do this through process chain or some other way.
Thanks
Vishal

Hi
data can be deleted Selectively and keep that as part of process chain, creata process variant as ABAP progam and when this process is triggered it will call the program T-code SE38 mentioned and in that program use
program RSDRD_DELETE_FACTS . You just need to provide the selections and generate the ABAP program.
Regards
Daya Sagar

Similar Messages

  • Can we delete the selective deletion in PSA

    can we delete the selective deletion in PSA

    Hi,
    In the <b><i>Maintenance of PSA data request</i></b> you can selectively delete the records which you don’t want to update in the data targets.
    i.e.
    In the <i><b>Maintenance of PSA data request</b></i> except the <i><b>Data Packet Number</b></i> and <b><i>Data record Number</i></b> (which can’t empty) you can empty the every filed of the record, so that the record will not be posted in the data target.
    Cheers
    Pagudala

  • How to go for selective deletion if the request is rolled up???.. URGENT!!!

    hi all,
    we a have a data target which was compressed and rolled up...
    please do suggest us how to go for selective deletion  if the data target was rolled up???
    on what basis we need to do the selective deletion ??
    thanks for ur understanding...
    suggestions would be highly rewarded
    regards
    Prince

    Hi,
    in the subsequent datatargets of your ODS:
    if the requests are only rolled up, then you can delete those requests; now if your aggregates are collapsed then you'll have to dactivate them and reactivate them after. If not you can simply delete them.
    then delete all the requests from your ODS up to the request right after the missing one. This will deactivate you ODS delta init. This is not a problem since when you'll have finished with the above your ODS and subsequent targets will have a consistent status in terms of data.
    Reinit your ODS delta without datatransfer, reconstruct your missing request and the subsequent requests in your ODS.
    Reactivate them (not all together as a single activation, but separately).
    Then load the delta into your subsequent targets.
    Now if the subsequent datatargets are collapsed then you'll have to either reinit with full load or selective delete them. the missing request in your ODS still must be reloaded before!
    If you go for selective deletion you'll have to find the right selection criteria based on the data of your ODS. For instance if you can ensure that only a selected period is incorrect (all the ODS requests from the missing one to the last only contain data for JAN08) then you can selectively delete JAN08 from your subseq targets and perform a FULL load selecting JAN08 from your ODS.
    Then perform an INIT without data transfer... you can then continue your deltas as usual....
    hope this helps....
    Olivier.

  • Regarding the Generic Selective deletion Program

    Hi Gurus,
    I have to create a deletion program for any target CUBES/ODS. The program should do selective deletion for ther target on the basis of the parameters provided.
    e.g.:
    Usually target ZXXXX_XXX is requested to load. ZXXXX_XXX  is loaded from DSO ZYYYYYY. So first we have to selectively delete data from both the target and then start loading data. Create a program that should accept the target and selection conditions and then delete the data from the target according to input conditions.
    We can consider FM RSDRD_SEL_DELETION for reference.
    Please help me with the details of the FM RSDRD_SEL_DELETION & its parameters. Please also suggest if any other solution.
    Thanks in Advance,
    Sourabh Deo

    Check the following details :
    Suppose selective deletion on the basis of company code
    data: L_THX_SEL TYPE RSDRD_THX_SEL.
    data: LN_THX_SEL like LINE OF L_THX_SEL.'' this will contain InfoObject  which is to be refered for sel deletion and the range of values for that info object .
    data: L_RANGE TYPE RSDRD_S_RANGE. " used for internal calculations
    data: L_T_MSG     TYPE RS_T_MSG.
    data: T_TR_RELOAD TYPE ZIB_TR_RELOAD OCCURS 0 WITH HEADER LINE. "used for internal calculations
    SELECT * FROM XYZ  into TABLE T_TR_RELOAD. "retrieve company codes from a database table
    LN_THX_SEL-IOBJNM = '0COMP_CODE'. '' infobject for company codes .
    L_RANGE-SIGN = 'I'.
    L_RANGE-OPTION = 'EQ'.
    L_RANGE-KEYFL = 'X'.
    "affect all the company codes for  selective delete retrieved previously by a select to a DB table
    Loop at T_TR_RELOAD.
      L_RANGE-LOW = T_TR_RELOAD-COMPANY.
      APPEND L_RANGE to LN_THX_SEL-T_RANGE. range of values for company code for which data is to be deleted.
    endloop.
    insert this selection to a table
    INSERT LN_THX_SEL INTO TABLE L_THX_SEL.
    "call the function for selective deletion
      CALL FUNCTION 'RSDRD_SEL_DELETION'
           EXPORTING
                I_DATATARGET      = 'Cube1 ' "InfoCube you want to do the selective deletion
                I_THX_SEL         = L_THX_SEL "table containing details abt values to be deleted for the given infoobject
                I_AUTHORITY_CHECK = 'X'
                I_THRESHOLD             = '1.0000E-01'
                I_MODE                  = 'C'
                I_NO_LOGGING            = ''
                I_PARALLEL_DEGREE       = 7
                I_NO_COMMIT             = ''
                I_WORK_ON_PARTITIONS    = ''
                I_REBUILD_BIA           = ''
                I_WRITE_APPLICATION_LOG = 'X'
           CHANGING
                C_T_MSG                     = L_T_MSG.

  • Selective deletion frm DSO based on selection in csv file on AL11 directory

    Hi Experts,
    I have a requirement where I have to automate the Flat File Upload coming from AL11 SAP directory followed by the selective deletion from DSO with the selection in the Flat file (.csv) on the directory.
    The csv file having fixed name and column. We have to take first selection i.e. Date (single entry) from second column and Comp Code from the 4th column (multiple entry).
    based on both the selection i have to perform selective deletion and then file upload.
    Could anybody please help me to write code and steps.
    Thanking you.
    Regards
    Ajay

    check this where i have written in start routine
    CALL METHOD P_R_REQUEST->get_TGT
           RECEIVING
              R_TGT = I_TGT.
    CONCATENATE '/BIC/A' I_TGT '00' INTO ACT_TABLE.
    CONCATENATE '8' I_TGT '_VA' INTO ACT_TABLE_RSTSODS.
    DATA: SOURCE_PACKAGE1 LIKE LINE OF SOURCE_PACKAGE.
    READ TABLE SOURCE_PACKAGE INTO SOURCE_PACKAGE1 INDEX 1.
    DELETE FROM (ACT_TABLE) WHERE /BIC/ZVERSION =
    SOURCE_PACKAGE1-PL_VERSION.
    SELECT SINGLE ODSNAME_TECH FROM RSTSODS INTO ZDSNAME_TECH WHERE ODSNAME
    = ACT_TABLE_RSTSODS.
    DELETE FROM (ZDSNAME_TECH) WHERE /BIC/ZVERSION =
    SOURCE_PACKAGE1-PL_VERSION.

  • Selective Deletion from Infocube Only (Not from Aggregates)

    Hi,
    For the Selective Deletion, i used the FM 'RSDRD_SEL_DELETION' in program. But this FM deletes the data first from Infocube then from aggregate.Because of this, deletion took more time to delete and adjust the Aggregate.
    I need an way in which i can delete the data from Infocube only and after i reach to my reconcile period then i will deactivate and actiavted the aggregate, so the data will be consistent in Infocube and aggregate.
    is there any to Delete(Selective Deletion) the data only from the Infocube not from its aggregate (for the Performance Point of View)?
    Thanks in Advance.
    Regards,
    Himanshu.

    Hi
    You can try manual selective deletion which will delete data from cube only. check out the below thread.
    steps fro selective deletion for cubes and ODS
    If you want to delete data from FM only, then try to deactivate your aggregates before you start your selective deletion.
    Once deletion is done, you can reload the aggregates
    Regards,
    Venkatesh

  • Selective deletion job taking very long time

    Hi All,
    I am performing the selective deletion on cube for the year 2011 and the deletion job is running for a long time (14 hrs). Generally this job takes few mins to execute.
    Could you please provide your inputs?
    Regards,
    Venkat
    Job log overview for job:    BI_INDX4OSEBBLUUTR6KUTWHGHZLY5ID / 13193500
    ime     Message text                                                                 Message class Message no.
    3:19:35 Job started                                                                       00           516
    3:19:36 Step 001 started (program RSINDEX1, variant &0000000000718, user ID ECW7752)      00           550
    3:32:48 SQL: 26.02.2012 13:32:48 ECW7752                                                 DBMAN         099
    3:32:48  DELETE FROM DDSTORAGE WHERE DBSYSABBR = 'ORA'                                   DBMAN         099
    3:32:48 AND INDEXNAME = ' ' AND TABNAME = '/BIC/FZCOG_C06                                DBMAN         099
    3:32:49 SQL-END: 26.02.2012 13:32:49 00:00:01                                            DBMAN         099
    3:32:53 SQL: 26.02.2012 13:32:53 ECW7752                                                 DBMAN         099
    3:32:53  DELETE FROM DDSTORAGE WHERE DBSYSABBR = 'ORA'                                   DBMAN         099
    3:32:53 AND INDEXNAME = ' ' AND TABNAME = '/BIC/FZCOG_C06                                DBMAN         099
    3:32:54 SQL-END: 26.02.2012 13:32:54 00:00:01                                            DBMAN         099
    3:32:54 SQL: 26.02.2012 13:32:54 ECW7752                                                 DBMAN         099
    3:32:54  CREATE TABLE "ZBICZFZCOG_C06" PCTFREE 10 PCTUSED                                DBMAN         099
    3:32:54 00 INITRANS 001 TABLESPACE PSAPPBP NOCOMPRESS                                    DBMAN         099
    3:32:54 STORAGE (INITIAL     0000000016 K NEXT                                           DBMAN         099
    3:32:54 0000001024 K MINEXTENTS  0000000001 MAXEXTENTS                                   DBMAN         099
    3:32:54 2147483645 PCTINCREASE 0000 FREELISTS   001                                      DBMAN         099
    3:32:54 FREELIST GROUPS 01) PARTITION BY RANGE                                           DBMAN         099
    3:32:54 ("KEY_ZCOG_C06P") ( PARTITION "/BIC/FZCOG_C060"                                  DBMAN         099
    3:32:54 VALUES LESS THAN (0) , PARTITION                                                 DBMAN         099
    3:32:54 "/BIC/FZCOG_C060000001798" VALUES LESS THAN                                      DBMAN         099
    3:32:54 (0000001798) , PARTITION                                                         DBMAN         099
    3:32:54 "/BIC/FZCOG_C060000001799" VALUES LESS THAN                                      DBMAN         099
    3:32:54 (0000001799) , PARTITION                                                         DBMAN         099
    3:32:54 "/BIC/FZCOG_C060000001801" VALUES LESS THAN                                      DBMAN         099
    3:32:54 (0000001801) , PARTITION                                                         DBMAN         099
    3:32:54 "/BIC/FZCOG_C060000001802" VALUES LESS THAN                                      DBMAN         099
    3:32:54 (0000001802) , PARTITION                                                         DBMAN         099
    3:32:54 "/BIC/FZCOG_C060000001806" VALUES LESS THAN                                      DBMAN         099

    check notes
    Note 991372 - Selective deletion from InfoCubes takes a long time
    Note 481238 - Selective deletion ends with dump and ORA-00918

  • Error in Selective deletion of cube

    HI
    I want to delete all the records in a cube based on the values in a field say VGUID.
    i have generated the selective deletion pgm from 'RSDRD_DELETE_FACTS' and i am submitting all the values in the field VGUID to this in a report program.
    SUBMIT gp46pdkfwf255w7uqo4y2i8sx2h WITH c007 IN ra_vguid.
    ra_vguid  contains all values that need to be deleted from the cube.
    this works fine for a small number of VGUIDs but fails for large sets(3,000 records) giving system error.
    System error: CREATE_TABLE_AS_SELECT/RSDU_EXEC_SQL /BI0/0100000074 0
    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&
    How can I delete all my candidate records from the cube?
    Thanks in Advance
    Biyaz

    Hi Srinivas
    i tried to split the VGUID list ( 100 records ). first 100 records are deleted but the rest records are not deleted . is there a problem with my code?
    REFRESH ra_vguid.
    CLEAR wa_vguid.
    CLEAR wf_count .
    LOOP AT tb_vguid INTO wa_vguid.
      wf_count = wf_count + 1.
      ra_vguid-low = wa_vguid-/bic/yc1vguid.
      ra_vguid-sign = 'I'.
      ra_vguid-option = 'EQ'.
      APPEND ra_vguid.
      CLEAR wa_vguid.
    IF wf_count = 100 OR
      sy-tabix = wf_max.
    Now call the Deletion program and pass the ranges as parameters.
    SUBMIT gp46pdkfwf255w7uqo4y2i8sx2h WITH c007 IN ra_vguid.
        REFRESH ra_vguid[].
    CLEAR wf_count.
    ENDIF.
    ENDLOOP.

  • Selective Deletion and Compression

    Hello Folks,
    I have cube with some selective deletions, how can I compress the requests if I have selective deletions? Please advise.
    Thanks,
    Krishna

    Hi Kris,
    Was this request already compressed from which the selective deletion is performed?
    You should have tick mark in your manage section of infocube as highlighted in yellow. If this is the case then you will not be able to compress again.
    Else if this request is not compressed and still giving error. Can you provide the screenshot of error? Is it available in ST22? Or can you check the long text of the error when it is displayed?
    Thanks
    Amit

  • Selective deletion and plan data

    Hello Gurus,
    I am having some doubts
    Any one of  them,could you please  clarify my doubts.
    1.By using the selective deletion (for Infocube),I have deleted some records.
    when i checked it on the log,In Deletion mode its showing the different values such as D,N and R....
    When I deleted the records,it has created 2 requests in log .
    onething its showing the status as 'N' and another thing as 'R'
    What is this mean.why its differing by requests.
    2.Reg plan data,How we are getting this plan data.(I know,based on actual data we are creating),But what is the procedure,how and  where we are creating this plan data like R/3 or BW.
    Will assign points.
    Thanks in advance
    Brgds
    Kumar

    Hi,
    As far as plan data is concern, there would be various plan data requirements for an org. let's say 'sales budget' / 'Production Planning' / 'Procurement plan' /
    'inventory status'..and so on so forth..
    basically when ever there is plan data requirement normaly the concern department has to prepare the paln data for the quater/Half/fiscal year, on either
    a legacy system or R/3 system..
    If it is from R/3 you are suppose to create a DS and then an infosource and so on..
    If it is a Legacy system - then go for the File Upload, after making your flat file
    infosource.
    Hope this helps..
    assign points if useful..
    cheers,
    Pattan.

  • 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

  • How can we automate the process of selective deletion in process chain

    Hi,
    I got to delete data from ODS and InfoCube selectively every Tuesday. So I am aware that there is an ABAP program through which we can automate the process of selective deletion in Process chain. So plz let me know the proceedure to automate this process.

    Hi,
    Try this.
    Need to genrate the deletion program using tcode Delete_Facts.
    steps : 1 run the Delete_Facts tcode and give your cube name in the input parameter
    step2 . select deletion program and execute . you will get the system genarated program
    step 3 copy this prg and save as zprg.
    step4 : run the program with selection
    step 5. if your selection is date then you need to create dynamic varient needs to be populate the value for the date fields
    step 6: you need to maintain the date values in the TVAR table if necessary
    step 7. you need to use this custom prg in your process chain after completion of test
    source : SDN.
    Thanks,
    JituK

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

  • 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

  • Code to verify the number of records before selective deletion

    In order to archive some old data, I would like to do a selective deletion in the source cube after their transfer in the archive cube  by launching a program.
    I’ve seen in this forum that the name of the function module to do a selective deletion is RSDRD_SEL_DELETION.
    Nevertheless, I would like to check before if the <b>number of records</b> of the <b>archiving period</b> in my archive <b>cube</b> is the same as in my source cube.
    Who can help me to write the code to do this check with a selection of time? Thanks in advance

    Hi Domi,
    You can do it via the cintents tab in the management function of the infoprovider.
    There also is an selective deletion function button.

Maybe you are looking for

  • Ringtones

    iTunes keeps saying "song can no longer be made into a ringtone" But it is saying it for every song. I have on multiple song from my library clicked on the little ringtone thing and it keeps coming up saying "this song can no longer be made into a ri

  • Macbook Pro with the HP 2100TN

    I'm interested in running the Macbook Pro using leopard with the HP 2100TN. I've been using the Laserwriter 8 print driver via the Ethernet port using OS 9.2.2 with a Power G3. What are my options? Would I need to use OS 9.2.2 And if I need to use OS

  • "IMAQdxOpenCamera" function execution time is particularly long,why?

    I install VAS2011 in CVI2010 environment, running IMAQdx the samples  <Grab and AttributesSetup>,  "IMAQdxOpenCamera" function execution time is particularly long, more than 7 seconds,why? Thanks! Solved! Go to Solution.

  • HT201272 How do I re-download songs to my PC

    My most recent purchased downloaded correctly to my iPhone but not my PC, several songs didn't download completely.  When I did a sync the songs are now not complete on my iPhone also.  How do I re-download songs to my PC to have them as complete son

  • Globally Assign Previews Location

    Is it possible to permanently choose a default location for PPro CS5 render/preview files?  In CS3, there was a preference to change this, but in CS5, that preference is gone and you now have to choose the previews location when creating the job. Is