07-31-2008 2:35 PM
Hello,
I want to convert following logic in ABAP.
if i_out-belnr is between 90000000 and 99999999.
:
:
endif.
07-31-2008 2:38 PM
hi
do this
if i_out-belnr GT 90000000 and i_out-belnr LT 99999999.
:
:
endif.
Cheers
Snehi
07-31-2008 2:37 PM
Hi Rajesh,
Try this
if i_out-belnr GT 90000000 and
i_out-belnr LT 99999999.
:
:
endif.
07-31-2008 2:38 PM
hi
do this
if i_out-belnr GT 90000000 and i_out-belnr LT 99999999.
:
:
endif.
Cheers
Snehi
07-31-2008 2:41 PM
You can use the BETWEEN keyword
if i_out-belnr between 90000000 and 99999999.
:
:
endif.
is the piece of code you can use.
Hope this helps!
07-31-2008 2:41 PM
Hi Rajesh,
Your logic also works
,
chk this
if sy-index between 0 and 1.
endif.
07-31-2008 2:43 PM
You can do this...
data: r_belnr type range of belnr,
wa_belnr like line of r_belnr.
data: belnr type belnr.
wa_belnr-low = '90000000'.
wa_belnr-high = '99999999'.
wa_belnr-sign = 'I'.
wa_belnr-option = 'BT'.
append wa_belnr to r_belnr.
if i_out-belnr in r_belnr.
endif.
07-31-2008 2:49 PM
07-31-2008 2:49 PM