Application Development and Automation 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: 
Read only

Intervals in Domain - Problem when INT2

Former Member
0 Likes
1,688

Hi Experts!!

I have created two domains ZTEST_INT2 and ZTEST_NUMC with mentioned types. For both I have mentioned the intervals as 0 to 10 and one more as 15 to 20.

Now, when I place these in a table and try, ZTEST_NUMC is working fine with not allowing the values out of the range. But ZTEST_INT2 is taking any value given. As per my knowledge, INT2 is a 2-byte integer which takes values between -32767 and 32767. But when I mention the range, why is not considering it?

Can somebody temme why it's happening so? Thanks a lot.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,259

Hi,

Are you sure that ZTEST_NUMC is not allowing?

Can you please explain where do you have specified the value range and how you are checking it?

As I have specified range in domain and tested on selection screen for ZTEST_NUMC where it is allowing me.

As far as I know, range that you specify in domain will give you just a proposal or search help but will not restrict the values.

Hi,

Are you sure that ZTEST_NUMC is not allowing?

Can you please explain where do you have specified the value range and how you are checking it?

As I have specified range in domain and tested on selection screen for ZTEST_NUMC where it is allowing me.

As far as I know, range that you specify in domain will give you just a proposal or search help but will not restrict the values.

5 REPLIES 5
Read only

Former Member
0 Likes
1,260

Hi,

Are you sure that ZTEST_NUMC is not allowing?

Can you please explain where do you have specified the value range and how you are checking it?

As I have specified range in domain and tested on selection screen for ZTEST_NUMC where it is allowing me.

As far as I know, range that you specify in domain will give you just a proposal or search help but will not restrict the values.

Read only

0 Likes
1,259

Sorry to totally disagree with you. In domain, we give the fixed values and intervals to restrict the field values. And ZTEST_NUMC will not allow beyond the range while creating data in table in a field with that domain. But ZTEST_INT2 does.

Can anybody help me out?

Read only

0 Likes
1,259

Hi All,

Can somebody please check on this and help me out?

Your help is highly appreciable. Thanks a lot.

Read only

0 Likes
1,259

Hi,

what you experienced is explained in the documentation: http://help.sap.com/saphelp_nw70/helpdata/en/e2/66708f730811d2959500a0c929b3c3/frameset.htm

BR

Sandra

Read only

0 Likes
1,259

Hi Srinivas,

ABAP is not like PASCAL/DELPHI or other languages where you can defines value sets. In ABAP, fixed values are used only for input check or F4 respectively - as revealed in the docu link provided by Sandra.

Regards,

Clemens