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-option

0 Likes
569

Hello,

I have given 1 value for the input in Select-option.

I have to compare this value in read table statment.

How to proceed?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
546

Hi Manas,

Let's say that the select option name is s_option.

then you can compare the value with <b>'s_option-low'</b> in order to compare that single value.

<b>

Reward with points if this helps,

Kiran</b>

4 REPLIES 4
Read only

Former Member
0 Likes
546

select-options will create an internal table with these fields..

SIGN, OPTION, LOW, HIGH.

You can use READ TABLE statement to read values from SELECT-OPTIONS.

use READ TABLE statement and compare the required value.

Read only

Former Member
0 Likes
547

Hi Manas,

Let's say that the select option name is s_option.

then you can compare the value with <b>'s_option-low'</b> in order to compare that single value.

<b>

Reward with points if this helps,

Kiran</b>

Read only

Former Member
0 Likes
546

HI

select option acts like an STRUCTURE like it had fileds like

LOW

HIGH

OPTION

SIGN

SO YO CAN CREAT A INTERNAL TABLE FOR THIS AND USE IT IN READ STATEMENT

REWARD IF USEFULL

Read only

Former Member
0 Likes
546

SELECT * FROM marc INTO CORRESPONDING FIELDS OF TABLE itab
                    WHERE matnr in  s_matnr.

"OR

READ TABLE itab WITH KEY  matnr = s_matnr-low.