Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What is the difference between Range & Select option.

Former Member
0 Likes
831

What is the difference between Range & Select option.

What is the difference between Range & Select option.

6 REPLIES 6
Read only

Former Member
0 Likes
808

Hi,

Check this link..

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

reward if it helps..

Regards,

Omkar.

Read only

Former Member
0 Likes
808

Hi Dilip,

Range - It would give you values BETWEEN two entries made.

Select-Options - Here you can restrict with Individual values also. You can INCLUE, EXCLUDE single values.

<b><i>Reward points for useful answers.</i></b>

Best Regards,

Ram.

Read only

0 Likes
808

Ram,

is there any other differece.

Read only

Former Member
0 Likes
808

Hi,

Only difference b/w Range and Select-option is, if you are using Select-Option, the user can enter the value at the selection screen, however with Range option, it will not come to the selection screen but the value will be hard coded in the code itself.

check out this link

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

<b>Rewrd points</b>

Regards

Read only

Former Member
0 Likes
808

Hi,

Both r same

except select-options provide an interface on selection screen for user to input data.

Reward if helpful,

pritha

Read only

Former Member
0 Likes
808

SELECT-OPTIONS :-----This will create a internal table implicitly.The values you enter on selection screen are automatically passed to that internal table.

Example :----


SELECT-OPTIONS : s_vbeln for vbak-vbeln.

An internal table is created with name <b>s_vbeln</b> implicitly,with 4 fields

<b>1)High,2)Low,3)sign,4)Options. </b>

<b>RANGES</b> :------> This will not create a internal table and you have to create it explicitly, inorder to accept the values which you enter in selection screen.

eg: ---> <b>RANGES</b> r_vbeln for vbak-vbeln.

Here you need to create a internal table with name <b>r_vbel</b>n with 4 fields as above.