2006 Apr 03 10:03 AM
Dear experts, I use a DEC field in a table control, but when the user enters a negative value there, it gives an error : 'negative values not allowed'. What should I do in my screen so that to overcome this problem?
Thank you
Roxani
2006 Apr 03 10:09 AM
what is the field that u had used in the table control , and what is the dataelement of the field that is used??
Dear experts, I use a DEC field in a table control, but when the user enters a negative value there, it gives an error : 'negative values not allowed'. What should I do in my screen so that to overcome this problem?
Thank you
Roxani
2006 Apr 03 10:05 AM
Use a string or char type variable in the table control and then move that value entered in the table control into a Dec type variable in the module pool program.
2006 Apr 03 10:10 AM
So, should I use another format than DEC? I cannot see any format named VAR.
2006 Apr 03 10:09 AM
what is the field that u had used in the table control , and what is the dataelement of the field that is used??
2006 Apr 03 10:12 AM
sekhar,
this is the data element i'm using:
Data type CURR Currency
No. characters 13
Decimal places 2
Output length 18
Convers. routine
sign = yes
please help.
2006 Apr 03 10:22 AM
Hi Roxani,
You can use a data element or data type (CHAR) of length 18 directly.
In the PAI section, read the value entered on the table control into another variable of type CURR.
Regards,
Ravi
2006 Apr 03 10:25 AM
Hi Roxani!
Your dynpro just don't know where to put the sign. Define an edit mask in the attributes of the screen field '______V'(it's the field, where already the underline is in, delete the last underline and put V(orzeichen - german word for sign)).
Regards,
Christian
2006 Apr 03 10:32 AM
wonderful, thank you Christian.
And Thank you all for your help.
Roxani
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |