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

record between to values

former_member630092
Participant
0 Likes
923

in my report i have selectio-screen fiels s_lifnr.

I want to display only records betweeb two values.

ex. it should disply records between 100 and 300 including both limits.

here 100 and 300 are not fixed.may vary

but it is displaying all records.(i.e. starting from 100 upto 900 )

i wrote like this.

Initialization.

clear So_lifnr.

so_lifnr-SIGN = 'I'.

so_lifnr-OPTION = 'BT'.

APPEND so_lifnr.

thanks

6 REPLIES 6
Read only

Former Member
0 Likes
761

Hello Ravi,

can u tell me wat exact code you have written...

your code should be like...

so_lifnr-high = '0000000100'

so_lifnr-low = '0000000300'

so_lifnr-SIGN = 'I'.

so_lifnr-OPTION = 'BT'.

append so_lifnr.

it will surely work

Note: if you are using select option thn no need for this code.. it is only required if u are using range and not select option.

Read only

Former Member
0 Likes
761

nothing to change in code.

no initialization needed.

select option by default comes with BT facility.

why do you need a code for this?

its just

select-options s_lifnr for abcd-lifnr.

Read only

Former Member
0 Likes
761

hi

Ravi,

If u r using select-options by default it will fetch all the values between low and high value no need to initiliaze this.,.,.,

If u r going for ranges it may be useful..

Thanks and REgards,

Thirukumaran. R

Read only

Former Member
0 Likes
761

Hi Ravi ,

You need not to do anything with select option.

Provide selection screen validation on the field and restrict the entries between 100 and 300.Display an error message if a user enters some other value.

Also, you an set default value if required.

Hope it helps you.

Read only

former_member203501
Active Contributor
0 Likes
761

Hi,

As per my understanding you need a select-option with the defaults between two intervals. you need to get the values in the f4 function with the limits entered on the selection. if so write the coding for at selection-screen on field s_lifnr.

Regards,

Venkat.

Read only

former_member630092
Participant
0 Likes
761

Answered