Application Development 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: 

Select-options

Former Member
0 Kudos

what is the use of SIGN in Select-options? 'I' and 'E'

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I means Include the values you have entered.

E Exclude the values you have entered.

Eg. You have entered 5 to 10 in the select option.

then usign I the values considered are 5,6,7,8,9,10.

Using E the values considered are 6,7,8,9

- guru

Reward points for helpful answers

6 REPLIES 6

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

SIGN means INCLUDE or EXCLUDE.

Regards,

Rich Heilman

0 Kudos

So if you were to have something like this.

s_bukrs-sign = 'E'.
s_bukrs-option = 'EQ'.
s_bukrs-low = '0010'.
append s_Bukrs.

This would mean that you want all of the values except for 0010

Regards,

Rich Heilman

Former Member
0 Kudos

I means Include the values you have entered.

E Exclude the values you have entered.

Eg. You have entered 5 to 10 in the select option.

then usign I the values considered are 5,6,7,8,9,10.

Using E the values considered are 6,7,8,9

- guru

Reward points for helpful answers

Former Member
0 Kudos

Hi ,

It stands for inclue and Exclude.

Now this is basically used to include and exclude it from data selection.

e.g of include

I EQ 10

So select statement will select all records where the field has the value 10 .

so the statement becomes similar to

select *
  from table
  where field1 eq 10.
endselect.

for excelude

E EQ 10 ,

mease the selct statement will select all records where the value of field is not equal to 10.

select *
  from table
  where field1 ne 10.
endselect.

Hope this makes the stuff clear,

Regards

Arun

Former Member
0 Kudos

Hi,

Structure of Selection Tables

The row type of a selection table is a structure that consists of four components: SIGN, OPTION, LOW, and HIGH. Each row of a selection table that contains values represents a sub-condition for the complete selection criterion. Description of the individual components:

SIGN

The data type of SIGN is C with length 1. The contents of SIGN determine for each row whether the result of the row condition is to be included in or excluded from the resulting set of all rows. Possible values are I and E.

– I stands for "inclusive" (inclusion criterion - operators are not inverted)

– E stands for "exclusive" (exclusion criterion - operators are inverted)

OPTION

The data type of OPTION is C with length 2. OPTION contains the selection operator. The following operators are available:

– If HIGH is empty, you can use EQ, NE, GT, LE, LT,CP, and NP. These operators are the same as those that are used for logical expressions. Yet operators CP and NP do not have the full functional scope they have in normal logical expressions. They are only allowed if wildcards ( '*' or '+' ) are used in the input fields. If wildcards are entered on the selection screen, the system automatically uses the operator CP. The escape character is defined as #.

– If HIGH is filled, you can use BT (BeTween) and NB (Not Between). These operators correspond to BETWEEN and NOT BETWEEN that you use when you check if a field belongs to a range. You cannot use wildcard characters.

LOW

The data type of LOW is the same as the column type of the database table, to which the selection criterion is linked.

– If HIGH is empty, the contents of LOW define a single field comparison. In combination with the operator in OPTION, it specifies a condition for the database selection.

– If HIGH is filled, the contents of LOW and HIGH specify the upper and lower limits for a range. In combination with the operator in OPTION, the range specifies a condition for the database selection.

HIGH

The data type of HIGH is the same as the column type of the database table, to which the selection criterion is linked. The contents of HIGH specify the upper limit for a range selection.

If the selection table contains more than one row, the system applies the following rules when creating the complete selection criterion:

Form the union of sets defined on the rows that have SIGN field equal to I (inclusion).

Subtract the union of sets defined on the rows that have SIGN field equal to E (exclusion).

If the selection table consists only of rows in which the SIGN field equals E, the system selects all data outside the set specified in the rows.

Regards,

Vara

Former Member
0 Kudos

hi balu,

sign option has two values

'I' is for include.ie the system includes the value ranges specified in the select-options.

'E' is for exclude.ie the system excludes the value ranges specified in the select-options.

with regards,

magesh