‎2008 Nov 12 1:30 PM
Hi,
I am using the following stat for checking whether the the TCODE is in the given range in tab lt_tab3.
If i give values in in LOW & HIGH and In HIGH the following stat working fine. But If i give the value in Only Low field Bothe stat r not working.
CHECK lt_tab3-tcode between lt_tab1-low and lt_tab1-high.
OR (I'm using only one stat from these)
IF LT_TAB3-TCODE GE LT_TAB1-LOW LT_TAB3-TCODE LE
LT_TAB1-HIGH.
Give me suggestions
‎2008 Nov 12 1:34 PM
Hi,
I'm assuming the lt_tab1 is a range or select-option. If that is the case. Just use the statment for checking if the valud in within the list of specified value range, as follows :
check lt_tab3-tcode in lt_tab1 .
or
if lt_tab3-tcode in lt_tab1 .
endif.
regards,
Advait
‎2008 Nov 12 1:34 PM
Hi,
I'm assuming the lt_tab1 is a range or select-option. If that is the case. Just use the statment for checking if the valud in within the list of specified value range, as follows :
check lt_tab3-tcode in lt_tab1 .
or
if lt_tab3-tcode in lt_tab1 .
endif.
regards,
Advait
‎2008 Nov 12 3:10 PM
‎2008 Nov 12 1:35 PM
You must use this instead
check lt_tab3-tcode in lt_tab1.
It will solve both cases.
‎2008 Nov 12 1:40 PM
Hi,
I think you can do some changes to the internal table first.
if the lt_tab1-high is initial.
lt_tab1-high = lt_tab3-tcode.
endif.
Then you can use one of the following statement:
CHECK lt_tab3-tcode between lt_tab1-low and lt_tab1-high.
OR (I'm using only one stat from these)
IF LT_TAB3-TCODE GE LT_TAB1-LOW LT_TAB3-TCODE LE
LT_TAB1-HIGH.
Hope this will help you.