Skip to Content

Abap Webdynpro decimal field allowing alpha values

Hi,

I have web dynpro input field which is linked to data element of Decimal (length 4 decimal place 0). I am doing validation in BEFOREACTION method.

Issue is, if user is entering some alpha values in that field, in method, this values is not accepted and previous valid value is coming field.( If previous value is 7, and user enters 'ABC' then value in method is coming as 7).

I need to stop user from entering the wrong value.

Please suggest is there any method or setting for same in ABAP web dynpro.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 18, 2017 at 01:01 PM

    Hi,

    If you have created an attribute with NUMERIC data type . it will not accept any other data including special characters. I guess you are setting the previous value to the input element.please check you code.please refer the screen shot for your reference.

    Add comment
    10|10000 characters needed characters exceeded