Process chain delete index from TABLE

is it possible to put a step in a process chain (/rspc) to delete and rebuild indexes from a normal table?
I can only find a way to do this for cubes... ?
thanks!

Hi,
You have to export the table name and index name using the following str to FM :RSDU_DROP_INDEX
begin of rsdu_s_index,
    tabname              like ddstorage-tabname,
    indexname            type rsdu_indexname,
    dbidxname            type rsdu_index,
    fieldname            type rsd_fieldnm,    "like dd17v-fieldname,
    type_expected        type rsdu_indextype,
    type                 type rsdu_indextype,
    type_check           type rsdu_check,
    unique_expected      type rsdu_indexunique,
    unique               type rsdu_indexunique,
    unique_check         type rsdu_check,
    partitioned_expected type rs_bool,
    partitioned          type rs_bool,
    partitioned_check    type rsdu_check,
    status               type rsdu_indexstatus,
    status_check         type rsdu_check,
end of rsdu_s_index,
so, you need to pass table name and index name through this structure.
hope it help....
Regards,
Raju

Similar Messages

  • Process Chain - Delete File from Application Server

    Hi Gurus,
    Im working with Process chain, and i have a load from a flat file, so my question is :
    How can i delete that file from the application server after was loaded ?
    THANKS IN ADVANCED !!! I REALLY APRECCIATE YOUR HELP.
    Marcos

    hi,
    I have gone through the forum you have posted for deleting files from application server through process chain.
    I have similar reuirement in my project.
    Can you please provide me the solution?
    Your inputs will be highly appreciated.
    Thanks in advance.
    Regards,
    Lavanya.

  • Open HUB ( SAP BW ) to SAP HANA through DB Connection data loading , Delete data from table option is not working Please help any one from this forum

    Issue:
    I have SAP BW system and SAP HANA System
    SAP BW to SAP HANA connecting through a DB Connection (named HANA)
    Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
    Executed the Open Hub service without checking DELETING Data from table option
    Data loaded with 16 Records from BW to HANA same
    Second time again executed from BW to HANA now 32 records came ( it is going to append )
    Executed the Open Hub service with checking DELETING Data from table option
    Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
    If checking in SAP BW system tio SAP BW system it is working fine ..
    will this option supports through DB Connection or not ?
    Please follow the attachemnet along with this discussion and help me to resolve how ?
    From
    Santhosh Kumar

    Hi Ramanjaneyulu ,
    First of all thanks for the reply ,
    Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
    in that there is check box i have selected already that is what my issue even though selected also
    not performing the deletion from target level .
    SAP BW - to SAP HANA via DBC connection
    1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
    2. second time again executed from BW - now hana side appaended means 16+16 = 32
    3. so that i used to select the check box at OH level like Deleting data from table
    4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
    Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
    Thanks
    Santhosh Kumar

  • Delete records from tableA which are not in tableB

    Table A contains milions of records which is the best way to delete records from tableA which are not in tableB
    delete from tableA where empno not in (select empno from tableb)
    or
    delete from tableA where empno not exists (select empno from tableb
    where b.empno=a.empno)
    any help

    Hi
    If you can do this, do with this:
    create table tableC
    as select a.*
    from tableA a,
    (select empno from tableA
    minus
    select empno from tableB) b
    where a.empno = b.empno;
    drop table tableA;
    rename table tableC to tableA;
    Ott Karesz
    http://www.trendo-kft.hu

  • How do you delete records from table with data in a select option

    how do you delete records from table with relevant to data in a select option..how to write coding

    Hi,
    Try
    if not s_select_option [ ] is initial.
    delete * from table
    where field in s_select_option.
    endif.
    commit work.
    Be careful though. If select option is emty, you will delete the entire table.
    Regards,
    Arek

  • How to trigger the Process Chains in BI from ECC

    HI Friends,
    Can let me know  How to trigger the Process Chains in BI from ECC. Please let me know.........

    Hi,
    1) Define a Custom ABAP Program (eg : Z_EVENT_RAISE)..........call the FM : BP_EVENT_RAISE or RSSM_EVENT_RAISE..........and trigger an event towards BW .........specify BW as RFC destination...........
    2) Create a R/3 Job in SM36>> use the Program Z_EVENT_RAISE ......
    3) In BW schedule the PC..........and in the Start variant use this Event..........
    http://sapbiwtutorials.blogspot.com/2009/03/how-to-trigger-process-chains-in-bw.html
    It can be help full
    Regards,
    Edited by: subba2010 on Aug 19, 2010 6:51 AM

  • Deleting records from table MVER

    We are experiencing performance issues when adding data to table MVER.  We have data on there that is over 5 years old which could be deleted.  As we have not been able to find any standard program or process that carries out housekeeping on MVER we are considering writing an ABAP program to delete the records.   Has anyone had any problems when deleting records from MVER or does anyone know of any reason why we should not delete these records in this way ?

    Well, I wouldn't delet data from a standard SAP table based on information from the internete. I'd look at other alternatives.
    Are you maintaining custom indexes on this table?
    Are your database statistics up to date?
    Consider a databse re-org.
    I don't think simple inserts should cause a problem.
    Rob

  • Triggering of Process Chain in BW from R/3 system

    Hi,
    We have a special requirement where in the R/3 system (Project systems), the business user creates and saves a project.
    Currently we have a process chain for this master data which loads every 10 min on a daily basis, but many times it happens that the new chain starts before the first one gets finished, thereby creating a lock with the loads.
    To counter this we are trying to use a functional module at R/3 which gets triggered whenever the business user creates and saves the project in R/3. Though this program worked for us, but a new issue came. If the user creates 2 projects and saves it two times in a span of just 2 or 3 min, then once again the collision of chain occurs.
    Our purpose is that, once the old chain finishes, then only the new chain should get triggered. To achieve that we tried to find some options and found a table called RSPCPROCESSLOG which is present both in BW system and R/3 system. This table consists of the start and end time of a chain. So based on these fields of the table we can achieve the above. But this table is not configured to capture the logs in R/3 system.
    Please do let me know how to configure the RSPCPROCESSLOG table in R/3 system to capture the chains timing of BW. Otherwise suggest a way to achieve this task.
    Regards
    Vishwanath

    in rough :
    create table in r/3 (eg z_chain_status) : via se11. insert two fields : - Process_chain char 60
                                                                        - Active : char 1
    R/3 create FM : via se37 (eg Z_update_chain_status)
    import parameter = status
    process chain can be hardcoded or also defined as varaible, as you wish...
    select status from z_chain_status.
    status = import parameter
    modify z_chain status
    BW : create program : via se38 z_update_status_in_r3
    parameter = status
    call function z_update_chain_status destination R/3 system status
    create two variants of program :
    varaint z_active : with parameter status = 'X'
    varaint z_inactive : with parameter status = ' '
    process chain
    step 1 = start
    step 2 = abap process type
             progam : z_update_status_in_r3
             variant z_active
    step 3 - n : your loads
    step n + 1 : abap process type
             progam : z_update_status_in_r3
             variant z_inactive
    R/3 user-exit  or business addin : slect from table z_chain_status;
    if active = 'X'. exit. else trigger BW pc (I suppose as it works do today)
    M.

  • Removing Index from Table in SAP level

    Hi All,
    I want to remove the Index from SAP level as in Oracle level Index is already remove / not there.
    Please provide the solution how it can be removed.
    Waiting for reply ....
    Regards
    Punit

    Hi Punit,
    Use the transaction SE14 to do this.
    Put the table name for which you need to remove the index at the input box (obj. name) ->select the radio button "Table"-> click on EDIT button->in the next screen->click on the "index" button->a screen will pop-up with all the available indexes for the table->select one(double click)-> in the next screen, you will have the "Delete database index" button, click this and the index will be deleted.
    Note: You can't delete the indexes which are not defined as DB index in the ABAP Dictionary.
    Regards,
    Srihari

  • Deleting rows from table based on value from other table

    Hello Members,
    I am struck to solve the issue said below using query. Would appreciate any suggestions...
    I have two tables having same structures. I want to delete the rows from TableA ( master table ) with the values from TableB ( subset of TableA). The idea is to remove the duplicate values from tableA. The data to be removed are present in TableB. Catch here is TableB holds one row less than TableA, for example
    Table A
    Name Value
    Test 1
    Test 1
    Test 1
    Hello 2
    Good 3
    TableB
    Name Value
    Test 1
    Test 1
    The goal here is to remove the two entries from TableB ('Test') from TableA, finally leaving TableA as
    Table A
    Name Value
    Test 1
    Hello 2
    Good 3
    I tried below queries
    1. delete from TestA a where rowid = any (select rowid from TESTA b where b.Name = a.Name and a.Name in ( select Name from TestB ));
    Any suggestions..
    We need TableB. The problem I mentioned above is part of process. TableB contains the duplicate values which should be deleted from TableA. So that we know what all values we have deleted from TableA. On deleted TableA if I later insert the value from TableB I should be getting the original TableA...
    Thanks in advance

    drop table table_a;
    drop table table_b;
    create table  table_b as
    select 'Test' name, 1 value from dual union all
    select 'Test' ,1 from dual;
    create table table_a as
    select 'Test' name, 1 value from dual union all
    select 'Test' ,1 from dual union all
    select 'Test' ,1 from dual union all
    select 'Hello' ,2 from dual union all
    select 'Good', 3 from dual;
    /* Formatted on 11/23/2011 1:53:12 PM (QP5 v5.149.1003.31008) */
    DELETE FROM table_a
          WHERE ROWID IN (SELECT rid
                            FROM (SELECT ROWID rid,
                                         ROW_NUMBER ()
                                         OVER (PARTITION BY name, VALUE
                                               ORDER BY NULL)
                                            rn
                                    FROM table_a a
                                   WHERE EXISTS
                                            (SELECT 1
                                               FROM table_b b
                                              WHERE a.name = b.name
                                                    AND a.VALUE = b.VALUE))
                           WHERE rn > 1);
    select * from table_a
    NAME     VALUE
    Test     1
    Hello     2
    Good     3Edited by: pollywog on Nov 23, 2011 1:55 PM

  • Delete data from table

    hi gurus,
    i am new to abap.
    i am create a report using
    select-options: apoid,
                           material,
                           location to.
    parameters:      days .
    user want to delete entries from the DB table
    from system date to behind 5 days left entries
    for ex. as today is 25.06.2008 he wants data in DB table
    of only 20.06.2008 to 25.06.2008
    if other data from left these dates are deleted.
    and also in output shows the
    2.     Report output should contain :
    a)     Number of entries selected for deleting from table
    b)     Number of entries deleted from the table table
    c)     Number of entries remaining in the table table
    i am do some coding
    plz help me in this case
    TABLES: zapolp22.
                          INTERNAL TABLE                                 *
    TYPES: BEGIN OF it_output,
           ordid           TYPE ZAPOLP22-ordid,       "APO order id
           schedid         TYPE zapolp22-schedid,     "APO schedule line id
           matnr           TYPE zapolp22-matnr,        "Material Number
           locto           TYPE zapolp22-locto,  "APO Destination location
           lfmng           TYPE zapolp22-lfmng,        "Delivery quantity
           lfdat           TYPE zapolp22-lfdat,        "Shipping date
           locfr           TYPE zapolp22-locfr,     "APO Supplying location
           rqmng           TYPE zapolp22-rqmng,        "Required quantity
           rqdat           TYPE zapolp22-rqdat,        "Delivery date
           prckz           TYPE zapolp22-prckz,  "Data element processing
           blkstk          TYPE zapolp22-blkstk,       "Blocked Quantity
           oppdelqty       TYPE zapolp22-oppdelqty,    "Cumulative order qty
           zzapologmod     TYPE zapolp22-zzapologmod,   "Logistic Model
           zzflagurgent    TYPE zapolp22-zzflagurgent,  "APO Urgency Flag
           zzapottype      TYPE zapolp22-zzapottype,    "APO Transport Means
           zzndays_l_time  TYPE zapolp22-zzndays_l_time,"Lead Time Transport
           END OF it_output.
    DATA : itab1 TYPE STANDARD TABLE OF it_output." WITH HEADER LINE.
    DATA : itab  LIKE LINE OF itab1.
                  SELECTION SCREEN / PARAMETERS                          *
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME.
    SELECT-OPTIONS: s_ordid FOR zapolp22-ordid,
                    s_matnr FOR zapolp22-matnr,
                    s_locto FOR zapolp22-locto.
    SELECTION-SCREEN END OF BLOCK a1.
    PARAMETERS: p_days LIKE sy-datum.
                                DATA
    DATA: days TYPE i.
                       START OF SELECTION                                *
    SELECT mandt
           ordid
           schedid
           matnr
           locto
           lfmng
           lfdat
           locfr
           rqmng
           rqdat
           prckz
           blkstk
           oppdelqty
           zzapologmod
           zzflagurgent
           zzapottype
           zzndays_l_time
    FROM zapolp22 INTO itab
    WHERE ordid IN s_ordid  AND
           matnr IN s_matnr  AND
           locto IN s_locto.
    ENDSELECT.
    p_days = sy-datum - days.
    DELETE zapolp22 FROM itab.
    IF sy-subrc = 0.
      WRITE:/ 'DEleted'.
    ENDIF.
    gururs plz help me its urgent.
    thanks
    jayant

    His employer may be aware he's a newbie.  He should of course be looking to his colleagues to help.  But at least he's made an attempt.  Martin is right though - this isn't a problem that requires a guru - it's a beginner task.
    For starters try FROM zapolp22 INTO TABLE itab and remove the ENDSELECT.
    Then LOOP AT itab...ENDLOOP.
    READ the ABAP help for any keywords you don't understand.  And DON'T use itab as a name for your internal table.  Use a MEANINGFUL name.  like t_apo_data.
    matt

  • Process Chains are running from 3 days

    Hi BW experts,
    Daily our process chains run in the night time.
    But Friday's jobs are still running. So i stopped all process chains on saturday.
    Friday's jobs did not finish till now. Still these are running. These are in active.
    Some process chains are stopped at CREATE INDEXES.
    Some process chains are stopped at ODS Activation.
    These are in yellow status.
    Please can anyone tell me the solution for this. I have to start our process chains today night.
    How can i rectify this problem? Can we stop the yellow status jobs
    Thanks & Regards
    Anjali

    Hi 
    check the loads in the process monitor whether it has completed or not??
    Some times it will show yellow if it gets completed also.Otherwise check for the source systems from where u r getting data.There may be a problem with that.
    Cheers
    Sunil Reddy LCP

  • DSO cannot be activated when process chain is launched from BPC

    Hello,
    we are facing the following issue in our project: we have created a process chain that loads transactional data into a DSO and then a BW cube. From there we will be launching the data into BPC.
    The process chain that we have built is working and loading OK when this chain is launched from the RSPC trx. However, when launched via the datapakage "Execute Process Chain in BW" data are loading OK from the source system up to the DSO, but the activation does not take place.
    The error that we are getting on the BPC data package is:"An exception with the type CX_SY_DYN_CALL_PARAM_MISSING occurred, but was neither handled locally, nor declared in a RAISING clause
    Call of the method IF_RSPC_GET_PARALLELIZATION is SINCHRONOUS of the class CL_RSPC_CHAIN failed; the obligatory parameter I_VARIANT has not been filled."
    Has anyone faced this issue before? could you please help on this topic? I have tried several options and all of them are pointing to the parameter I_VARIANT.
    Thanks in advance.
    Kind regards,
    Begonia

    Hi Reddy,
    I've deleted deltas load from DOS, then I launched and activated a repair full load from ECC, it worked well.
    After that I went for delta load so the load was OK but the activation failed.
    The message 'Type of data update' was: Repeat of the last delta and the Nº of Transferred and Added was zero.
    ¿Do you think I could solve the problem if I do a repair full load from ECC then I delete the Delta init and create a new Delta init?
    Any another idea?
    In conclusion I'm not yet solved the problem so advices are welcome.
    Regards,
    Jorge

  • Reg:-How to delete PO from Table

    Hi,
        I need to know how to delete PO from the table.I know for item deletion.
    Edited by: Venkadesh on May 22, 2009 2:53 PM

    Hi
    PO's cannot be deleted from the table, we can only archive them from the data base being used.
    Deletion flag in the PO will not remove data from table.
    Thanks & Regards
    Kishore

  • Oracle  deleting rows from tables starting with the name PQ

    hai friends
    we are given access rights to delete only tables starting with PQ. HAVING PQ_NUM as primary key for all the PQ tables.
    totally we have 6 tables. PQ_01,PQ_02, PQ_03,PQ_04,PQ_05,PQ_06.
    ALL This tables will have one primary key. for example pq_01 willl have pq01_num as primarykey and pq_02 table will have pq02_num as primary
    key.
    pq01_num value will exist in all the primary key of pq tables.
    i want query to delete rows from the pq tables based on the input value i give.
    for example if i give primarykey value 122 then that value in pq tables should be deleted.
    One more problem is there. pq_06 table does not have pq02_num column. here the column differs. it is pq06_num_req.
    so give your idea of deleting the rows from pq tables
    waiting
    S

    I dont have access to databse,this is untested
    declare
      v_cmd  varchar2(2000);
      columnname varchar2(30);
    input_value number:=??;
    tabowner varchar2(30):=???
    begin
    --step 1 identify table
      FOR sub IN (SELECT table_name table_to_delete
      FROM all_tables
    WHERE table_name LIKE 'PQ%'
    and owner=tabowner
    ) LOOP
      ----step 2 identify column
    v_cmd :='select t.column_name from all_constraints S,All_Ind_Columns T where
    S.OWNER=T.TABLE_OWNER
    AND S.TABLE_NAME=T.TABLE_NAME
    AND S.INDEX_NAME=T.INDEX_NAME
    and s.owner=tabowner
    AND S.TABLE_NAME='||table_to_delete||'
    and s.constraint_type='''P'';
         execute immediate v_cmd into columnname; 
         --step 3 delete records
        v_cmd := 'delete from '||tabowner||'.' ||
                 sub.table_to_delete || '
       where '||columnname||'='||input_value; 
         execute immediate v_cmd;
        commit;
         END LOOP; 
    end;Edited by: user5495111 on Aug 11, 2009 6:35 AM

Maybe you are looking for

  • Strange problem with MySQL database

    Hello, I'm totally puzzled by a strange error occurring with PHP/MySQL on my website... I hope someone has got an idea of what's going on and can let me know. In short, I have a MySQL database set up on the remote server where the website is hosted.

  • Report Server and ORA-03135 - Connection Lost

    Hello, We are running Oracle 10gR2 (AppServer, Report Server and Database) and we notice that in the error log of the database, we getting many error ora-03135-Connection Lost. After investigating a bit on this, i think i found the cause of those err

  • Importing videos from enhanced cd's

    is it possible to import videos from "enhanced cd's"? if so how do i do it.

  • Consuming initial click in TableCellEditor

    When I create a custom cell editor for my JTable, I would like the first click in the cell to bring up the cell editor but be ignored by the editor itself. For example, if I make a JSlider editor, the initial click inside the cell not only brings up

  • Can I build report based on 2 subject areas?

    Hi, How can I build report or analytics basedon 2 subject areas. Example: I have opportunity-Products and Activities Thanks Pallavi