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

ABAP Value Range

Former Member
0 Likes
1,112

CLEAR g_s_range.

g_s_range-chanm = '/ba1c/corgunit'.

g_s_range-sign = rs_c_range_sign-including.

g_s_range-compop = rs_c_range_opt-equal.

g_s_range-low = '01001'.

APPEND g_s_range TO g_t_range.

hi...i have this abap code to select the range of value. for the g_s_range-low, i would like to 3 values (01001,01002,01003) but when i run the program, it does not work out and it always select the "01001" for the comparison. How to include the range of value for this? Let say I want to have the 3 above values together?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
648

Use :

g_s_range-compop = rs_c_range_opt-between.
g_s_range-low = '01001'.
g_s_range-high = '01003'.

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
648

check in bold ...

CLEAR g_s_range.

g_s_range-chanm = '/ba1c/corgunit'.

g_s_range-sign = rs_c_range_sign-including.

g_s_range-compop = 'BT'.

g_s_range-low = '01001'.

g_s_range-high = '01003'.

APPEND g_s_range TO g_t_range.

Read only

Former Member
0 Likes
648

CLEAR g_s_range.

g_s_range-chanm = '/ba1c/corgunit'.

g_s_range-sign = 'I'.

g_s_range-compop = rs_c_range_opt-equal.

g_s_range-low = '01001'.

g_s_range-option = 'EQ'.

APPEND g_s_range TO g_t_range.

CLEAR g_s_range.

g_s_range-chanm = '/ba1c/corgunit'.

g_s_range-sign = 'I'.

g_s_range-compop = rs_c_range_opt-equal.

g_s_range-low = '01002'.

g_s_range-option = 'EQ'.

APPEND g_s_range TO g_t_range.

CLEAR g_s_range.

g_s_range-chanm = '/ba1c/corgunit'.

g_s_range-sign = 'I'.

g_s_range-compop = rs_c_range_opt-equal.

g_s_range-low = '01003'.

g_s_range-option = 'EQ'.

APPEND g_s_range TO g_t_range.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
649

Use :

g_s_range-compop = rs_c_range_opt-between.
g_s_range-low = '01001'.
g_s_range-high = '01003'.

Regards