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

select-options

Former Member
0 Likes
646

hai sir

work area is mandatory while using select-options but it's optional while using parameters.

why ;;;;give me reason

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
626

When we use select-options then a one d area is automatically created in the run time having fields Sign, Options, Low and High with the name of the select-options. for example if the select-options is S1 then it will take s1-sign, s1-options, s1-low, s1-high as the fields of that one d area. but in case of parameter no such one d area is created . so work area is optiona for parameters.

Give points.

5 REPLIES 5
Read only

Former Member
0 Likes
626

hi,

That is because select options forms a internal table and parameters is just a field, so it doesn't require a work area.

Selection ranges are stored in programs using an internal table.

The ABAP statement SELECT-OPTIONS <selname> FOR <field> declares an internal table called

<selname>, containing four fields - SIGN, OPTION, LOW, and HIGH. The fields LOW and HIGH have

the same type as the field <field>.

The SIGN field can take the value 'I' (for inclusive) or 'E' (for exclusive).

The OPTION field can contain relational operators (EQ, NE, LE, LT, GE, GT), pattern operators (CP,

NP), and operators that allow you to enter intervals (BT, NB).

You place a single input/output field on the selection screen using the PARAMETERS statement.

You can use the SELECT-OPTIONS statement to place a group of fields on the screen that allows users

to enter complex selections. The selection may be a single value, or any form of interval

Hope this helps, Do reward.

Edited by: Runal Singh on Mar 7, 2008 4:26 PM

Read only

dhruv_shah3
Active Contributor
0 Likes
626

Hi,

Because parameters are having their own memory

and Select options have various inputs so at that time work area is needed.

HTH

Regards,

Dhruv Shah

Read only

Former Member
0 Likes
626

Hi,

Say if you have select-options for field F

There is an internal table declared with the name F and it has 4 fields, SIGN, OPTION, HIGH, LOW.

So in order to any kind of manipulation, you need to have a work area.

But this is not the case with PARAMETERS.

Reward if helpful.

Regards.

Read only

Former Member
0 Likes
626

Hi

basically select-option is a table... with contains all the values in between what ever you enter between low and high of SO

parameter is not a table it acepts only one value

Read only

Former Member
0 Likes
627

When we use select-options then a one d area is automatically created in the run time having fields Sign, Options, Low and High with the name of the select-options. for example if the select-options is S1 then it will take s1-sign, s1-options, s1-low, s1-high as the fields of that one d area. but in case of parameter no such one d area is created . so work area is optiona for parameters.

Give points.