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

Quest

Hi,

What is the main diff between Select options and ranges?

Thanks in advance

Rgds

venugopal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jan 11, 2007 at 04:07 AM

    Hi,

    Basically select-options are used to refer the table fields and are diretcly linked to the table references...

    If we want to define our own variables for the select options, then we use the Ranges options and define an internal table with all the fields we want and also the comparisions like inclusion, exclusion and all...

    Cheers,

    SImha.

    Reward if helpful..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 04:09 AM

    Select option and ranges are same technically. The only difference is that if you declare a variable as select option you will see it in the selection screen where as if you declare it as a range you wont.

    Typically range is used when you want the features of a select option but do not want it to be displayed on the screen.

    - Guru

    Reward points for helpful points

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 11, 2007 at 04:11 AM

    Hi,

    Select option is used in selection screen so that user can decide the input.

    Ranges are also similar to select option.It cannot be used in selection screen.The input to ranges is mostly decided by developers.

    Check this link.

    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/ranges.htm

    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_o.htm

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 04:22 AM

    Both SELECT-OPTIONS & RANGES works for the same purpose. They both are used for the range selection from selection screen. The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the select options internal table which contains the fields of SIGN,OPTION,LOW & HIGH. But in case of RANGES, this internal table should be defined explicitly.

    Have a look at below link.

    Difference" target="_blank">http://www.sap-img.com/abap/difference-between-select-options-ranges.htm">Difference between select-options and ranges

    I hope it helps.

    Best Regards,

    Vibha

    *Please mark all the helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 05:02 AM

    Hi,

    As everyone said, both does the same functionality.

    In SELECT-OPTIONS, you can have additional features as whether to have INTERVALS, EXTENSION. You can also have MODIF-ID implemented for the SELECT-OPTIONS as it is displayed on the screen.

    These options are not available with RANGES.

    Regards

    Subramanian

    Add a comment
    10|10000 characters needed characters exceeded

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.