Skip to Content
author's profile photo Former Member
Former Member

ABAP Value Range

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jun 16, 2008 at 07:45 AM

    Use :

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

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:44 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:44 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.