on 02-04-2014 4:21 PM
Hi Robert,
The standard data type check ensures that the value of amount field contains only numeric But it happens upon any action on alv table. So, you are getting message displayed after scroll, or some other action.
I don't think you can restrict the user entering non-numeric in the amount field with this standard check i.e. raise an error message as soon as user key in non-numeric value.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On save check the all value with the help of Comparison operator..
Comparing Strings (SAP Library - ABAP Programming (BC-ABA))
I think this will work.. read the attribute value, let say lv_attribute..
IF lv_attribute CN '1234567890.'. "if true, means some alphabet is here..
<show some error message >
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert,
Use the data element of currency type.
Thanks & Regards,
Sankar Gelivi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sankar,
Thanks for replying.
I'm not sure if I understand what you're saying - if I use a data element of currency type it won't let me add numeric values will it?
In anycase I have found that it does work and the followign message appears:
It's just that you need to scroll up/down the table first?!
Weird?
Does anyone know why that might be?
Thanks!
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.