Skip to Content
0
Former Member
Jul 03, 2007 at 09:59 AM

Number Range Problem

14 Views

Hi ABAPers,

I have a problem regarding the checking of my number range...this is the sample

itab i created :

DATA : it_nriv TYPE RANGE OF NRFROM WITH HEADER LINE.

under load-program , i declare this.

LOAD-OF-PROGRAM.

it_nriv-sign = 'I'.

it_nriv-option = 'CP'.

it_nriv-low = '0100000000'.

it_nriv-high = '0299999999'.

APPEND it_nriv.

the checking value is <in>-kunnr = 100000056.

so i declare this to my program

LOOP AT it_data ASSIGNING <in>.

IF <in>-kunnr(10) IN it_nriv

AND it_nriv IS NOT INITIAL.

PERFORM insert_data.

ELSE.

PERFORM insert_norange.

ENDIF.

the main problem is , everytime i pass a value for example <in>-kunnr = 100000056.

it will pass or go to perform insert_data...but unfortunately...it always goes to perform insert_norange..

What should be the problem to this syntax?

Kindly Help Me.....

Thanks in advance

aVaDuDz