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

Former Member
0 Likes
798

Hi Guy's,

Please help me i want to check the high value of select-option.

for low i wrote like this, it is wrorking fine but i want how to write the logic for to check high value also.

RANGES: rgion FOR ptk05-rgion OCCURS 0

IF NOT ( ptk05-rgion IS INITIAL ).

rgion-low = ptk05-rgion.

rgion-sign = 'I'.

rgion-option = 'EQ'.

APPEND rgion.

ELSE.

rgion = ' '.

endif.

Thanks,

Sai.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
771

hi,

Select-options is an internal table.

Having fields SIGN, OPTION, LOW HIGH.

You can check high value in tha same way you check LOW value.

Regards

Sumit Agarwal

7 REPLIES 7
Read only

Former Member
0 Likes
771

If U want to give value to high ..

IF NOT ( ptk05-rgion IS INITIAL ).

rgion-low = ptk05-rgion.

rgion-high = ''. <-- enter a value which is greater than ptk05-rgion.

rgion-sign = 'I'.

rgion-option = 'BT'.

APPEND rgion.

ELSE.

rgion = ' '.

endif.

Read only

Former Member
0 Likes
771

Hi Sai,

Use something like this :

RANGES: rgion FOR ptk05-rgion OCCURS 0

IF NOT ( ptk05-rgion IS INITIAL ).

rgion-low = ptk05-rgion.

rgion-high = ptk05-rgion.

rgion-sign = 'I'.

rgion-option = 'EQ'.

APPEND rgion.

ELSE.

rgion = ' '.

endif.

Regards,

Swapna.

Read only

Former Member
0 Likes
771

Hi,

select-options : rgion FOR ptk05-rgion.

IF NOT ( ptk05-rgion IS INITIAL ).

rgion-high = ptk05-rgion.

rgion-sign = 'I'.

rgion-option = 'EQ'.

APPEND rgion.

endif.

U will be having low and high options ... if u want to choose higher limit go for high...........

Read only

Former Member
0 Likes
771

Use.

Select-options :s_matnr for mara-matnr.

at selection-screen.

loop at screen.

if screen-name eq 'S_MATNR-HIGH'

"Do your action here.

endif.

endloop.

Regards

rajesh

Read only

Former Member
0 Likes
771

hi check this..

rgion-low = s_ptk05-low.

rgion-sign = 'I'.

rgion-option = 'BT'.

rgion-high = s_ptk05-high

Read only

Former Member
0 Likes
772

hi,

Select-options is an internal table.

Having fields SIGN, OPTION, LOW HIGH.

You can check high value in tha same way you check LOW value.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
771

Hi Sai,

Try the following:

RANGES: rgion FOR ptk05-rgion OCCURS 0
IF NOT ( ptk05-rgion IS INITIAL ).
rgion-low = ptk05-rgion.
rgion-high = ptk05-rgion.
rgion-sign = 'I'.
rgion-option = 'EQ'.
APPEND rgion.
ELSE.
rgion = ' '.
ENDIF.

Regards,

Chandra Sekhar