Skip to Content
-1

ABAP INT4 domain negative range or fixed values

Hello,

I have created a domain and its data type is INT4. When I try to add negative value to fixed values or to value range the system says:

I also tried to add Value Table and its structure

the domain of field VALUE has the domain I am trying to add a negative values to.

But event the value table is not working. Could you please hint me, how should I solve this problem?

Thank you.

capture.png (17.2 kB)
capture.png (12.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 16, 2017 at 09:01 AM

    The long text of the error message (DO195) says "Only whole positive numbers are allowed as values and value interval limits of a numeric data type." Looks like a built in restriction.

    "But event the value table is not working." - what do you mean "not working"? Causes your computer to blow up, causes SAP to shut down, causes the universe to reboot, or values aren't validated, or what?

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 16, 2017 at 10:10 AM

    Works as documented

    https://help.sap.com/doc/PRODUCTION/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenddic_domains_sema.htm

    "Positive integers (including 0) for the types NUMC, INT1, INT2, INT4, INT8, and DEC"

    Add comment
    10|10000 characters needed characters exceeded