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

about the diff..

wat is the difference between the select-options and range? in which situation we need to u the these options.......................

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 11:00 AM

    Difference Between Select-Options & Ranges

    Here 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.

    Eg. to SELECT-OPTIONS :

    -


    REPORT YARSELECT.

    TABLES YTXLFA1.

    SELECT-OPTIONS : VENDOR FOR YTXLFA1-LIFNR.

    INITIALIZATION.

    VENDOR-LOW = 1000. " It specifies the range starting value.

    VENDOR-HIGH = 2000. " It specifies the range ending value.

    VENDOR-OPTION = 'BT'. " specifies ranges value is in between.

    VENDOR-SIGN = 'I'. "specifies both inclussive.

    APPEND VENDOR.

    - - -

    - - -

    SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB

    WHERE LIFNR IN VENDOR.

    Eg. to RANGES:

    -


    REPORT YARRANGE.

    TABLES YTXLFA1.

    RANGES: VENDOR FOR YTXFLA1-LIFNR.

    - - -

    - - --

    - - -

    SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB

    WHERE LIFNR IN VENDOR.

    Here with RANGES user has to design an internal table with fields -

    SIGN,OPTION,LOW and HIGH EXPLICITLY.

    or check this link-

    http://www.sap-img.com/abap/difference-between-select-options-ranges.htm

    Select-options:

    1.select options internally takes the table structure of sign option low and high.

    2.it appears on the selection screen.

    Range:

    1.we need to explicitly define its structure manually.

    2.it does not appear on the selection screen

    Shakir

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 11:01 AM

    Hi vannamvijaypal,

    1. Internall both are same. they are

    internal tables having four fields - sign,option, low and high.

    2. The only differnce is select option

    shows a input field on screen.

    regards,

    amit m.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2008 at 11:02 AM
    Add a comment
    10|10000 characters needed characters exceeded

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

    Both act in a similar way. But the variables given with Select-Options are displayed on the Selection Screen.

    When u r dealing with a range of values ( High and Low) u will declare ranges variables in the program

    awrd points if useful

    Bhupal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2008 at 11:02 AM

    Hi,

    Check this link..

    http://72.14.203.104/search?q=cache:btyoj86smhEJ:www.sap-img.com/abap/difference-between-select-options-ranges.htmSelect-optionsandrangesIN+ABAP&hl=en&gl=in&ct=clnk&cd=1

    Add a comment
    10|10000 characters needed characters exceeded

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

    Select-options:

    1.select options internally takes the table structure of sign option low and high.

    2.it appears on the selection screen.

    Range:

    1.we need to explicitly define its structure manually.

    2.it does not appear on the selection screen

    regards,

    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.