Doubt in creation of Index

Hi frnds,
    Plz tell how to make INDEX in se11 tcode.
        wht is Secondary index how to create?
Thanks,
Gowri

There are 2 types of secondary indexes...
1) Primary index
2) Secondary index .[we need to create]
Index will be used to improve the performance when you fetch the data from the table.
Entering content frame
Procedure documentation Creating Secondary Indexes Locate the document in its SAP Library structure
Procedure
   1. In the maintenance screen of the table, choose Indexes.
      If indexes already exist on the table, a list of these indexes is displayed. Choose This graphic is explained in the accompanying text.
   2. In the next dialog box, enter the
      index ID and choose This graphic is explained in the accompanying text
      The maintenance screen for indexes appears.
   3. Enter an explanatory text in the field Short text.
      You can then use the short text to find the index at a later time, for example with the R/3 Repository Information System.
   4. Select the table fields to be included in the index using the input help for the Field name column.
      The order of the fields in the index is very important. See What to Keep in Mind for Secondary Indexes.
   5. If the values in the index fields already uniquely identify each record of the table, select Unique index.
      A unique index is always created in the database at activation because it also has a functional meaning (prevents double entries of the index fields).
   6. If it is not a unique index, leave Non-unique index selected.
      In this case you can use the radio buttons to define whether the index should be created for all database systems, for selected database systems or not at all in the database.
   7. Select for selected database systems if the index should only be created for selected database systems.
      Click on the arrow behind the radio buttons. A dialog box appears in which you can define up to 4 database systems with the input help. Select Selection list if the index should only be created on the given database systems. Select Exclusion list if the index should not be created on the given database systems. Choose This graphic is explained in the accompanying text.
   8. Choose This graphic is explained in the accompanying text.
Result
The secondary index is automatically created in the database during activation if the corresponding table was already created there and index creation was not excluded for the database system.
You can find information about the activation flow in the activation log, which you can call with Utilities ® Activation log. If errors occurred when activating the index, the activation log is automatically displayed.
regards,
Dj
reward for all useful answers.

Similar Messages

  • Doubt in creation of a new object

    Hi All,
                 I have one doubt in creation of a new object.If a new object is to be created and it is not a subtype
    of any existing object, then what should we enter in the Program field for creating the object?
    I hope I am clear with my question.
    Thanks in Advance,
    Saket.

    Hi Saket,
    Following will be required for created a custom business object.
    1. Object Type - ZTEST (Internal Techincal Key)
    2. Object Name - ZTESTNAME (Technical Key Name)
    3. Name - TEST (Name of BO, it is used while selecting the object type)
    4. Description - (Short Description of BO)
    5. Program - ZTESTPROGRAM (ABAP program in which the methods of the object type are implemented)
    6. Application - A or B.. etc (Area to which your BO is related)
    Please remember that you can learn these basic things by giving F1 help on those fields and in HELP.SAP.COM.
    Regards,
    Gautham Paspala

  • Creation of indexes in tables

    SAP 4.7      6.20       Oracle 10g       Windows Server 2003
    Our SAP system was based on SQL.
    Last month it was changed to Oracle 10g.
    We really have a lot of developments ( Z programs ), and it's normal for us to create indexes some times.
    But I don't know if we are supposed to change our habits from now on because of Oracle.
    I have 2 questions :
    1) Is the creation of indexes in tables so effective in Oracle as it was for SQL databases ?
    2) When I create an index, Am I supposed to use the field MANDT as part of the index ?
    Eduardo

    Hi,
    We are on Oracle 10.2.4.0 .My answers for point
    1. Ensure that oracle patches are up-to-date. Also oracle parameters are set correctly.There is one S-note(do not remember right now) which has script file which you can run on your system to find if oracle parameters are set according to recommendation.
    2. Mandt can be used in Z programs.Not a problem.
    For future: Analyze Expensive SQl statements with the help of St03N and St04 for next2-3 months and tune them.
    Does it help

  • Failing creation of indexes in prosess chain

    Hi gurus
    The last few days we've had a problem with one of our process chains.
    The processtype INDEX CREATION fails.
    The error-message says: 'Index construction for InfoCube 0RT_C01 went wrong'. Message no. RSMPC025
    I've not been able find any solution to this failure.
    Any ideas on how to solve this error?
    Thanks in advance,
    @nne Therese

    Hi Anne,
    for creation of index's in process chains. first you need to create "delete index" and then info package after that only create " generate index".( here when you drag this generate index it automatically shows delete index..so disable that link and keep that delete index process before IP and keep "generate index"at lower).
    this "delete index" is need before loading of data into the cube because ,if you keep index 1st it gives performence/loading problem (means it takes much time n problomatic of creation idex while loading data ).
    hope it solves your problem,
    Reagrds,
    Neelima.

  • Creation of Index taking lot of time!!

    DB:10.2.0.3.0
    OS:AIX 64 bits
    Application Server:10133
    Hi All,
    When we try to create Normal Index, it takes more than 9 hrs to create whereas on other similar environment instance it takes not more than 3 to 4 hrs.
    We modified PGA_AGGREGATE_TARGET to 2000m from 300m and set WORKAREA_SIZE_POLICY to 'Auto' from 'manual' and now the index creation is faster.
    Could someone explain this.
    Appreciate your time and effort!!
    Regards,

    Setting PGA_AGGREGATE_TARGET to a nonzero value has the effect of automatically setting the WORKAREA_SIZE_POLICY parameter to AUTO. This means that SQL working areas used by memory-intensive SQL operators (such as sort, group-by, hash-join, bitmap merge, and bitmap create) will be automatically sized. A nonzero value for this parameter is the default since, unless you specify otherwise, Oracle sets it to 20% of the SGA or 10 MB, whichever is greater.
    Note: 464045.1 - How To Increase Speed of Index Recreation
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=464045.1
    Note: 102339.1 - Temporary Segments: What Happens When a Sort Occurs
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=102339.1
    PGA_AGGREGATE_TARGET
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams157.htm

  • Creation of index in BW

    Hai Experts,
    pls tell me what is the purpose of index and how can we create indexes in sap bw
    when we are going to create indexes in real time projects(bw).
    for best answers points will be rewarded.
    Regards
    djreddy

    Hi,
    Indexes are data structure sorted values containing pointer to records in table.
    Indexes are use to improve data reading performance / query performance improvement but decreases data loading/writing performance .We delete/drop them during the data loading to data target and create again after loading finished. In BW normally we include this in process chain.In process chain before loading the data to cube use the delete index process and load the cibe and create index.
    If you perform index creation for cube in the perforamence tab it is created automatically by the sysem.
    What are indexes
    what are the indexes of info cube and use
    Infocube > Manage > Performance > Create(Repair) Index/Delete Index.
    Database Indexes
    With an increasing number of data records in the InfoCube, not only the load, but also the query performance can be reduced. This is attributed to the increasing demands on the system for maintaining indexes. The indexes that are created in the fact table for each dimension allow you to easily find and select the data. When initially loading data into the InfoCube, you should not create the indexes at the same time as constructing the InfoCube, rather only afterwards.
    The indexes displayed are the secondary indexes of the F and E fact tables for the InfoCube. The primary indexes and those defined by the user are not displayed. The aggregates area deals with the associated indexes of the fact table for all aggregates of an InfoCube.
    Checking Indexes
    Using the Check Indexes button, you can check whether indexes already exist and whether these existing indexes are of the correct type (bitmap indexes).
    Yellow status display: There are indexes of the wrong type
    Red status display: No indexes exist, or one or more indexes are faulty
    You can also list missing indexes using transaction DB02, pushbutton Missing Indexes. If a lot of indexes are missing, it can be useful to run the ABAP reports SAP_UPDATE_DBDIFF and SAP_INFOCUBE_INDEXES_REPAIR.
    Deleting Indexes
    For delta uploads with a large quantity of data (more than a million records), you should not align the database indexes of the InfoCube with every roll up, rather delete the indexes first, and then completely reconstruct them after rolling up.
    Repairing Indexes
    Using this function you can create missing indexes or regenerate deleted indexes. Faulty indexes are corrected.
    Build Index
    You can delete indexes before each data load and then rebuild them again afterwards. You can also set this automatic index build for delta uploads.
    Thanks,
    JituK

  • Reg creation of indexes

    Hi All,
    cud anybody pls let me know abt the <b>creation and maintenace of indexes</b>??
    any screenshots or step-by-step procedure.....!!!
    its quite urgent..
    regards,
    abc xyz

    HI,
    1.In SE11 Transaction display your table.
    2.press button index... in tool bar, it will ask you
    to create a new one.
    3.give the index name
    4. give short text description
    5. in bottom table give the field name on which
    you want index.
    6. save and activate.
    check this.
    http://www.oreilly.com/catalog/sapadm/chapter/ch01.html
    To create Secondary Index --> http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm
    Also Check the below links.
    http://help.sap.com/saphelp_erp2005/helpdata/en/1c/252640632cec01e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/c7/55833c4f3e092de10000000a114027/frameset.htm.
    Regards,
    Sesh

  • Doubt in creation of capacity

    Hi All
    I have a doubt as what effect the "Active version" field has in the creation of capacity.I have created a capacity with 20 number of individual capacities within it and maintained all details pertainng to individual capacity correctly.Now when look for CM07 I am not getting the cumulation of 20 capacities as Available capacity whereas getting only one capacity value.In the creation of the capacity (in the header screen) I have not amended any value against the active version field.
    Might this be the reason for the above.Please advice

    Hi.Thanks for the reply.I have not proceeded upto routing.On checking only one capacity value i have stopped proceeding further.
    Another unusuall thing is SAP help says if you have not enter anything against Active version field then the system will take the 'standard available capacity' for capacity planning.Hence i have the doubt as the standard available capacity viewed in cr13 is cumulative of the 20 capacities,but still in cm07 i am getting only one capacity value as available capacity.
    Please advice.
    thanks in advance

  • Doubts in creation of purchasing gruops

    Hi everyone,
    We have a pair of doubt in the creation and use of the purchasing groups in SRM 70. Can you help us? Our doubts are:
    - Can we create a Backend Purchasing group and define Local purchasing groups below this? Example:
          - BEPG (vvv)
               - LocalPG1
               - LocalPG2
    - In a Purchasing group you can assign more than one user. In transaction SoCo, these users can see all the SC assigned to the Purchasing group. Is there any way to assign some SC to a one user and some SC to another user in order to only view their own SC in SoCo?
    - In SRM 7 still exists the BBP_PGRP_ASSIGN_BADI?  When is  execute this badi , after the SC is released or before the WF is activated?
    - Our client has the requirement to assign the purchasing group according the product category of the SC. Is mandatory to use the BBP_PGRP_ASSIGN_BADI or can we use another way?
    Thanks,
    Ivá

    Hi Muthu,
    Let me explain a little more. Tipically you have the organizationa structure as follow:
    Root
    |---Company
    >>>>>|------ Purchasing Organitation
    >>>>>>>>>>>>>>|----
    Purchasing Group
    In this case, the purchasing organitation is the child of the company, and the purchasing group is child of purchasing organitation.
    My question is if I can have purchasing groups as a child of another purchasing group.
    BR,
    Ivá

  • Creation of indexes?

    Hi,
    How can we specify the creation of all indexes should be done in a particular tablespace?

    Hi Sumit,
    You can refer Oracle Doc.
    Following is the syntax for specifying tablespace.
    create index index_name on table_name(column)
    tablespace tablespace_name.
    Hope This helps
    Prashant

  • Problem during creation of index

    Dear All,
          I want to create index for MSEG table. This index i have created and activated also. I have used index fields as MJAHR,AUFNR and BWART. Same i have written in select query in where condition. But i think it is not working because select query takes same time as before created index during run time.
    One warning message is coming in index like.
    "Index does not exist in database system MSSQL"
    I don't know why it is coming. I have create simple index and also extension index. In both case same warning message is coming. when i have to create index and extension index.?
    Please give me any solution.
    Regards,
    Shivam.

    Hello,
    I suppose you have created the index via transaction SE11.
    When the database table is too big and you generate/activate the index via SE11 the index will only be created in the SAP repository not in the database (this should be in the log of SE11).
    You have now to start transaction SE14, select your index there (you will see that it does not exist in the DB) and create the index via transaction SE14 (preferably in background to prevent a possible time out).
    Success.
    Wim Van den Wyngaert

  • Creation of Index for Primary & Foreign Key required?

    hi,
    i would like to find out if a column is defined as the primary key, do i need to create a separate index for it? or defining a primary key will tell the db to automatically create an index for it?
    does foreign key have the same behavior as the primary key constraint?
    thanks!

    i would like to find out if a column is defined as the primary key, do i need to create a separate index for it? No
    or defining a primary key will tell the db to automatically create an index for it? Yes
    See
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg05itg.htm#7265
    does foreign key have the same behavior as the primary key constraint?No. See http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg05itg.htm#1574

  • Creation of index putting to_char in

    Hi
    Trying to create inxde on concatentated columns and it is putting to_char on by default trying to make index numeric column but even to_number in front not putting to_number on
    Using 11.2.03
    Tried
    create index MEDIA_PLIS_HANDLED_IDX on MEDIA TO_NUMBER((TO_CHAR(PLIS_HANDLED_YEAR)||LPAD(TO_CHAR(PLIS_HANDLED_WEEK),2,'0')))
    tablespace BI_DW_DATA
    create index MEDIA_PLIS_HANDLED_IDX on MEDIA TO_NUMBER(PLIS_HANDLED_YEAR)||LPAD(PLIS_HANDLED_WEEK,2,0) )
    tablespace BI_DW_DATA
    Any ideas how to avoid to_char as want users quering it a snumeric.
    Thanks

    The problem is with the function outside the parentheses - it's just ignored.
    It's a known syntax oddity that this doesn't raise an error.
    SQL> create table t1
      2  (yr number
      3  ,wk number);
    Table created.
    SQL> create index i1 on t1 to_number(yr||lpad(wk,2,'0'));
    Index created.
    SQL> select column_expression from user_ind_expressions where index_name = 'I1';
    COLUMN_EXPRESSION
    TO_CHAR("YR")||LPAD(TO_CHAR("WK"),2,'0')
    SQL> drop index i1;
    Index dropped.
    SQL> create index i1 on t1 (to_number(yr||lpad(wk,2,'0')));
    Index created.
    SQL> select column_expression from user_ind_expressions where index_name = 'I1';
    COLUMN_EXPRESSION
    TO_NUMBER(TO_CHAR("YR")||LPAD(TO_CHAR("WK"),2,'0'))
    SQL>

  • Creation of index on DSO

    Hi,
      How to create a INDEX on a DSO and how does it improve dataload performance
    Thanks

    hI,
    to create index on DSO
    GOTO DSO>Rightclick>change-->under Nav attri option u wil find Indexes->There you can create indexes.
    When you activate DSO, the system automatically creates an index based on the keyfields. Thsi is called Primary Index.
    Primary Inedex is created automatically when a table is created in the Dataabase.
    You can create Inedex on your own to improve performance, these are called Seconadary Indexes. This is necessary if the table is frequently accessed in a way that does not take advantage of the sorting of the primary index for the access. Different indexes on the same table are distinguished with a three-place index identifier. 
    We will take one example:
    suppose we have one DSO and we have primary key as customer number, calendar day. lets say these are unique. and lets say if you want to run queries  frequently where u select data based on Customer area and customer type.
    In this case we can create secondary index on customer area and customer type.
    Now if we run query, instead of having to read every record, it will use index to select records which contain Customer area and customer type.
    Here query saves time.
    Regards,
    Marasa.

  • Creation of index takes longer than deletion ?

    Hi,
    i deleted index from the cube was very quick just 7 mins. and it took 7 hrs. to create it back.
    why it took so long?
    i know if there are more data then it might take longer but how come deletion was that quick ?
    thanks,
    KS

    Hi,
    we have split the cube and transfer old data to new cube. now I am trying to delete data from original one. selective deletion for each year is getting failed/ canceled with
    following error message:
    DBIF_DSQL2_OBJ_UNKNOWN    
    CX_SY_NATIVE_SQL_ERROR    
    Error analysis                                                                      
        An exception occurred. This exception is dealt with in more detail below        
        . The exception, which is assigned to the class 'CX_SY_NATIVE_SQL_ERROR', was   
         neither                                                                        
        caught nor passed along using a RAISING clause, in the procedure "DELETE"       
         "(FORM)"                                                                       
    after getting error if i repeat the deletion batch job it works fine for 2nd time.
    what would be the reason ? what are other option for deletion.
    i tried it by each year
    by deleting index first
    then deactivate aggregate.
    but still it happens.
    any suggestions ?

Maybe you are looking for

  • Iphone 5 not syncing to itunes

    When I try to sync the iPhone 5 with iTunes for the first time it says I need to update to 10.7.  When I try updating to 10.7 it says, "This software requires Mac OS X version 10.6.8 or later." I have a 10.5.8. Do I need to update to 10.6.8 to sync t

  • Hard drive format?

    Hi I've got 3 internal hard drives on my Mac pro -1 x 320 and 2 x 750 - my Macintosh HD is the 320, my Media A - has all video, Media B is time Machine BU...so the 320 and Media B are both Mac OS Extended (Journaled)...but the Media A drive is only f

  • Can't get wireless connection to Gateway laptop

    My wife has a school-district issued Gateway laptop- state of the art. We can't get connected to the internet at home using our new airport express. The imac gets on fine, and the gateway gets on if we simply plug the modem into the computer, but not

  • H.264 and other compression

    apple makes H.264 sound like its loss-less. Is it? is there any compression codec out there thats loss-less besides Animation?

  • CG-OAM integration for Sites Visitors

    Hi Gurus, I m doing the webcenter sites and community gadget integration to do comments on sites. we want user to get authenticated via OAM before submitting comments on pages. I know this integration for visitors is not supported. I am seeking guida