Application Development 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: 

select-options in screen

Former Member
0 Kudos
60

Hi all,

I am using select option for MARA-MATNR. I am trying to fetch materials from MARA by entering a range like ABC5 to ABC20. Though ABC5 is less than ABC20, the program is throwing an error stating "lower limit is greater than higher limit".

Is there any way to eliminate this error? Same error I am getting with MARA table for same selection. Please guide me.

Regards,

Suresh.

4 REPLIES 4

rajasekhar_matukumalli3
Active Participant
0 Kudos
35

Hi,

Since MATNR is of type CHAR, it just does a character comparision for your data

ABC5 and ABC20

The first three characters are same but 4th character '5' is greater than '2' hence the error.

Try creating a type with NUMC and use it to create your select option. I think it might solve your problem.

Regards,

Raj

0 Kudos
35

Hi, type n will accept only numbers, not characters. The system is throwing error "enter a numeric value".

Regards,

Suresh.

0 Kudos
35

Hi Suresh,

Two ways to remove this error

Search as ABC05 to ABC20

OR

Use NUMC (not numeric) as said above. NUMC can have number + character.

Option 1 is recommended as it is the standard way of doing.

Regards,

Atish

0 Kudos
35

Hi Suresh,

Did you try creating a variable of type NUMC? It should accept both numbers and characters.

DATA: VAR1(10) TYPE N.

Regards,

Raj