How to use secondary index

Hi abapers,
Iam creating secondary index for the database table MSEG. ....How to write select query for the secondary index that i have created..
Regards,
Ramya

how to create secondary index in tables
https://forums.sdn.sap.com/click.jspa?searchID=933015&messageID=2971112
Guidelines to create secondary index
https://forums.sdn.sap.com/click.jspa?searchID=933015&messageID=2009801
Secondary index;
http://help.sap.com/saphelp_47x200/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm
this will definitely help you, dont forget to award points if found helpful

Similar Messages

  • How to create Secondary Index?

    Hello All
    Can anyone let me know how to create secondary indexes?
    I hope Primary Indexes are being created automatically?V can'nt able to create this.
    regards
    balji

    Hi,
    1) Go to Se11 select table /BI0/A<ODS>00 > Utilities> Data bse Object --> Check.
    2) If you are using ODS Active table in any Start routine ,Make sure that the order of objects to be seleccted (select statement) should be in same order of index fields.
    In Query, Use RSRT to know the SQL statement of the Query .and follow same logic explained above.
    3) No need to create Secondary Index for Cube.
    4) IT recreates the Index.
    With rgds,
    Anil Kumar Sharma .P

  • How to use secondry index

    Hi Experts,
    I have a requirement to improve the performance of report,So i got some select querys there non primery keys are used for table VBAK,VBAP,LIKP,LIPS so i want to create secondry index for that,Any one can help me for that means after create secondry index how to use that index in report and for create secondry index required any MANDT field or Not.
    Thanks.

    Hello Ram,
    Before creating secondary index you need to know the below points.
    1) Do not create more indices on table
    2) What is the frequency of table access
    3) You should not create too much columns(should be less than 120 characters)
    4) Cant you use existing indices?
    5) DML operation will be delayed if you create index
    Before moving to Production system please consider below the points.
    1) Ask BASIS to create index in DB level then move your DDIC transport which will be faster
    2) While creating index if the DB size is like more than 500 GB then downtime is required
    Regards,
    Vadamalai A

  • How to use the index method for pathpoints object in illustrator through javascripts

    hii...
    am using Illustrator CS2 using javascripts...
    how to use the index method for pathpoints object in illustrator through javascripts..

    Hi, what are you trying to do with path points?
    CarlosCanto

  • How to use secondary method in workflow?

    Hi friends,
    can anyone plz let me know how to use secondary methods in workflow? it would be helpful if u explain with an example..
    thanks and regards,
    Arun.S

    Hi Arun Kumar,
    The Sec Method can be used in the user decision step. The secondary methods are executed along with the user decision step. You have 3 options. Either execute a secondary method before executing the user decision step or after execution of user decision step or while executing the user decision.
    For this define the methods either in Methods before execution of workitem execution to execute it before user decision step or Methods after execution of workitem so as to execute it after the execution of user decision.
    In order to execute a method along with user decision step execution use secondary methods (amodal call.)
    Let me know if you have any queries.
    Regards,
    Raj

  • How to delete secondary indexes

    Hello Guru's.
    I want to delete secondary indexes for my copa cube ZCOPA_CO1.where to see the secondary indexes for this cube..please give me step by step for deleting secondary indexes as well as creating secondary indexes .Its really urgent please give me some good suggestions on this as i was stuck up with this issue.......waiting for your valuable suggestions on this...
    Thanks.
    sri.

    Hi,
    Secondary index: Additional indexes could be created considering the most frequently accessed dimensions of the table.
    How to create secondary index :
    1. Go to se11 --> Enter Tablename --> Display --> Click on "Indexes" button on Application Toolbar --> Select "Table Fields" button --> Select field on which you want to create index on (Compound index can be created on more than 1 table).
    Generally indexes are created at database level to optimize performance (Select Non-unique Index --> Index on all database systems)
    Hope it helps
    Regards
    Srikanth

  • How to find Secondary Index

    Hi Friends,
    I have a select query, my where condition is built on3 secondary indexes. So how do i know which secondary index is going to is taken into consideration first time and fetches the data.
    KNK.

    Hi ,
      You can find it using ST05.
    1. Open ST05. Activate trace.
    2. Open se38 in other window and run the program.
    3. In ST05 deactivate the trace and display the trace.
    There we can find the indexes used.
    Only one can use the trace at one point of time. In the trace all the operations which the server did at that time will be displayed. Search for your program and find the result.

  • How to use cfloop index value as part of another variable

    Hello,
    I have a RATE form that first asks "how many rates will you
    be adding?" that answer generates a series of form elements based
    on the answer. You then have a form grid to populate, 3 values for
    each rate (price, code, name).
    This part works fine. The issue is now I need to INSERT the
    values into the table, so I need to use the INDEX value of the
    cfloop to recreate the amount (and names) of the fields in the
    INSERT statement. How do I escape, or re-create the evaluated form
    elements ( in which their count is #i# as the loop goes) when I
    need to evaluate for #i# AND evaluate for #form.sku_i_name# at the
    same pass?
    I am passing, for example, #form.sku_2_Name# where that might
    equal "Half Page". The number 2 in that variable was assigned
    during the form creation by the current index of a cfloop. Since my
    action (insert) page does not know how many (out of 50 possible)
    sku's are coming, how do I use the skuCount (another hidden value
    passed as well) to create a proper INSERT SQL command when I need
    to eval the form element and the index at the same time?
    Obviously #sku_#i#_Name# does not work, and #sku_i_Name# does
    not either... I know this can be done, and that I am just doing it
    wrong.
    Thanks for any help!

    bigbrain28 wrote:
    > Thank You, cfsearching! I don't quite understand 100%
    how it works
    As all three of us indicated you use array notation for this
    type of
    requirement. In ColdFusion you can use array notation or dot
    notation
    to access structure data. Almost all data in ColdFusion is
    now some
    type of structure.
    I.E. #Form['myField']# is the same as #Form.myField#.
    The advantage is that with array notation you can do things
    you can not
    do with dot notation. You can reference elements that have
    keys that
    are illegal variable names such as one with a space.
    I.E. #url['my field'] is allowed, #url.my field# would fail
    or course.
    And you can concatenate the key string as we did with your
    example.
    I.E. #Form['aString' & aVariable]#
    There are many powerful things one can do with this
    knowledge. One can
    access record sets with array notations. This can allow for
    very
    sophisticated parsing of a record set.
    I.E. #myQuery['column'][row]#
    You can dynamical call a variable. Thus creating dynamic code
    that does
    not even need to know what variables exist until run time.
    I.E. #variables[anyName]#
    This just scratches the surface.

  • Using Secondary Index

    Hi,
    I have a secondary index with 3 key fields.While wrting the select query with these 3 key fields I am providing 2 more non-key fields. Now the problem is that the secondary index in not used in this case. Can anybody help me why it is not using the secondary index.
    For example:
    Seconday Index fields are : fd1, fd2, fd3
    In select query:
    select A B C from  <XYZ> into table I_XYZ
    where  fd1 = 'a'     " key field
    and fd2 = 'b'         " key field
    and fd3 = 'c'         " key field
    and fd4 = 'd'         " non-key field
    and fd5 = 'e'.        " non-key field
    Problem : Query is not using the seconday index.
    Regards
    Sanjay

    hi,
    Check if your secondary index is having mandt field or not.
    system changes your select as
    select A B C from <XYZ> into table I_XYZ
    where <b>mandt = sy-mandt  and</b>
    fd1 = 'a' " key field
    and fd2 = 'b' " key field
    and fd3 = 'c' " key field
    and fd4 = 'd' " non-key field
    and fd5 = 'e'. " non-key field
    so, secondary index will be chosen only if mandt is there in the list of fields in secondary index.
    Regards
    sailaja.

  • Use secondary index in internal tables.

    what are the uses of secondary index in internal table?

    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm
    Creating Secondary Indexes
    Proceed as follows to create a secondary index on a table:
    In the field maintenance screen for the table, choose Goto --> Indexes.
    1. If you went to the field maintenance screen of the table in display mode, only correct the index (and not the table).
    If indexes already exist on the table, a list of these indexes is displayed. Choose Create. A dialog box appears in which you must enter the three-place index identifier. If there are no indexes, go directly to the dialog box.
    2. Enter the index identifier and choose Continue.
    You will go to the maintenance screen for indexes.
    3. Enter an explanatory short text in the field Short text.
    Choose TabFields.
    4. A list of all the fields of the table is displayed.
    5. Select the fields which you want to copy to the index.
    6. Choose Copy.
    The selected fields are copied to the index.
    7. If the values in the index fields already uniquely identify each record of the table, select Unique index.
    A unique index is automatically created on the database during activation because a unique index also has a functional meaning (prevents double entries of the index fields).
    8. If it is not a unique index, leave Non-unique index selected. In this case you can use the corresponding radio buttons to define whether the index should be created automatically on the database for all database systems, for selected database systems or for no database system.
    9. If you chose For selected database systems, you must specify these systems.
    You have two possibilities here:
    List of inclusions: The index is only created automatically during activation for the database systems specified in the list. The index is not created on the database for the other database systems.
    List of exclusions: The index is not created automatically on the database during activation for the specified database systems. The index is automatically created on the database for the other database systems.
    Click on the arrow symbol behind the radio buttons. A dialog box appears in which you can define up to 4 database systems. Use the corresponding radio buttons to decide whether this list should be treated as a list of inclusions or exclusions.
    10. Activate the index with Index ® Activate. The activation log tells you about the flow of the activation. Call it with Utilities ® Act.log. If an error occurred when activating the secondary index, you will automatically go to this log.
    The secondary index is automatically created on the database during activation if the corresponding table has already been created there and index creation was not excluded for the database system.
    Reward points if useful.

  • How to use an index

    Hi,
    Can someone tell me how can I use a index of row?
    I want to see if any value is repeated in a column something like
    declare
    x number;
    type my_table is table of number;
    var_c1 my_table;
    begin
    for i in 1..6 loop
    select round(dbms_random.value(1, 49),0) bulk collect into var_c1 from dual;
    if var_c1(i) = var_c1(i).next then
    dbms_output.put_line(var_c1(1));
    end if;
    end loop;
    end;
    thank you

    I am sorry but I do not understand the question.
    If you want to see if each row is unique just try and create a unique index on the column or select column_name, count(column_name) group by column_name order by 2 or something similar.
    John
    www.jhdba.wordpress.com

  • How to use Browsing Index

    Hi, I want to speed up a search that return a large number of users. For what I understood I need to create a Browsing index. I've created a browsing index following instruction on the Admin manual, but I really don't understand how to use it ?
    After creating the index (ldapmodify + vlvindex), are this index used by default if the search mach the vlvbase and vlvfilter ?
    Thanx

    Sorry I don't know why I don't see the [notes=u] in the access log but it seam the my vlv is not created at all.
    When i run vlvindex I get the following error:
    [18/Feb/2005:12:28:01 +0100] - userRoot: Indexing VLV: Sort SN
    [18/Feb/2005:12:28:02 +0100] - userRoot: Indexed search unsuccessful, will perform unindexed search instead.
    No vlv#.... files are created in the db directory, so I think no vlv index are created..

  • How to transport Secondary Index, If I created it via DB02-directly on DB?

    Hi Experts,
    For curiosity, wuld like to know that,
    How to transport the Secondary Index, If I created it via DB02 i.e. directly on DB?
    thanq.

    Hi srikhar,
    1. How to transport the Secondary Index, If I created it via DB02 i.e. directly on DB?
    Now, There is no question of transport,
    bcos what u will transport.
    We can only transport objects which
    are created from r/3 data dictionary etc.
    regards,
    amit m.

  • How to use bitmap index

    when we will use bitmap index in oracle?

    hi,
    you can take a look this documents
    http://dylanwan.wordpress.com/2008/02/01/bitmap-index-when-to-use-it/
    http://www.oracle.com/technetwork/articles/sharma-indexes-093638.html
    regards,

  • How to create secondary indexes in DB2e from MI

    Hello,
    we need to create secondary indexes in the DB2e SyncBO tables for a SynBO containing several thousands entries.
    We create it manually and works fine, but we have to distribute
    this to every user (about 300).
    Is there a way to distribuite this index creation for an
    application from a central location (WebConsole)?
    Or,
    is there any attribute in the SyncBO definitions for creating indexes on selected fields in teh database?
    Thanks in advance and best regards,
    Angel

    Hi,
    I found the way to create the indexes. In the metadata
    function of the SyncBO builder, you can mark any field
    as index (either in the header or in the detail tables).
    This creates a secondary index in the database per marked
    field.
    Regards,
    Angel

Maybe you are looking for