2011 Jul 21 5:35 AM
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.
2011 Jul 21 6:05 AM
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.
2011 Jul 21 6:05 AM
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.
2011 Jul 21 6:46 AM
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?
2011 Jul 21 3:28 PM
Hi All,
Can somebody please check on this and help me out?
Your help is highly appreciable. Thanks a lot.
2011 Jul 21 7:58 PM
Hi,
what you experienced is explained in the documentation: http://help.sap.com/saphelp_nw70/helpdata/en/e2/66708f730811d2959500a0c929b3c3/frameset.htm
BR
Sandra
2011 Jul 21 10:46 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |