Skip to Content
author's profile photo Former Member
Former Member

hi all this is my second question pls help me

ATA: BEGIN OF line,

land(3) TYPE c,

name(10) TYPE c,

age TYPE i,

weight TYPE p DECIMALS 2,

END OF line.

DATA itab LIKE SORTED TABLE OF line

WITH NON-UNIQUE KEY land name age weight.

thats an eg how do we know its a sorted or hashed or standard table???

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2007 at 11:22 AM

    or to be more specific how do we know whether it should be hashed or sorted or std table of ???

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      its mostly on your requirement and the application which you are gone implement.

      hashed table is generally used if the internal table is very large and you

      want to access it by key only.

      sorted table if you mainly access the internal table with

      the key or would like the table to be automatically sorted by key.

      It depends.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2007 at 11:15 AM

    in the syntax u declared internal table to be sorted table of line .

    internal table is sorted table .

    DATA itab LIKE SORTED TABLE OF line -- sorted table

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Depending on the access type used, you should use the appropriate

      table type for the definition in order to enable high performance access.

      If you primarly key access - sorted /unique and non unique keys

      Exclusively key access - hashed / unique keys

      Primarily index access - standard /non unique keys

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.