‎2008 Mar 07 10:51 AM
hai sir
work area is mandatory while using select-options but it's optional while using parameters.
why ;;;;give me reason
‎2008 Mar 07 10:57 AM
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.
‎2008 Mar 07 10:54 AM
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
‎2008 Mar 07 10:54 AM
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
‎2008 Mar 07 10:55 AM
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.
‎2008 Mar 07 10:56 AM
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
‎2008 Mar 07 10:57 AM
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.