2010 Mar 17 2:34 PM
Hi All,
I have designed the screen 1000 with table control and displaying the quantity values.
1. Intially as the quantity values are not allowing the -ve values at the table control level, I have defined the fields at table control as characters and can displayed even the -ve values also.
2. But now, there is another problem now is, the character fields are having decimals also (.00). Initially I can able to display the screen with decimals also. But while some user action on the screen, it is saying that decimal values are not allowed.
Kindly advice.
Regards
Ramesh.
2010 Mar 17 2:41 PM
Hi,
Is this the standard message? Can you debug and see where you are getting this message? I believe this message is coming for some other field.
solution is refer your table control field to a domain that allows negative values. You can check it in table DD01L by passing the data type as QUAN and signflag = X.
eg: Domain ABC_QUANT
Check below sample code where in one parameter allows negative values and other wont.
PARAMETERS: po_quan TYPE ABC_QUANT,
po_quan1 TYPE vbap-zmeng.Thanks,
Vinod.
Edited by: Vinod Vemuru on Mar 17, 2010 8:16 PM
Hi All,
I have designed the screen 1000 with table control and displaying the quantity values.
1. Intially as the quantity values are not allowing the -ve values at the table control level, I have defined the fields at table control as characters and can displayed even the -ve values also.
2. But now, there is another problem now is, the character fields are having decimals also (.00). Initially I can able to display the screen with decimals also. But while some user action on the screen, it is saying that decimal values are not allowed.
Kindly advice.
Regards
Ramesh.
2010 Mar 17 2:41 PM
Hi,
Is this the standard message? Can you debug and see where you are getting this message? I believe this message is coming for some other field.
solution is refer your table control field to a domain that allows negative values. You can check it in table DD01L by passing the data type as QUAN and signflag = X.
eg: Domain ABC_QUANT
Check below sample code where in one parameter allows negative values and other wont.
PARAMETERS: po_quan TYPE ABC_QUANT,
po_quan1 TYPE vbap-zmeng.Thanks,
Vinod.
Edited by: Vinod Vemuru on Mar 17, 2010 8:16 PM
2010 Mar 17 4:31 PM
Hi Vinod,
Still I am getting the conversion error for -ve values even though, I have assigned the domain as ABC_QUANT.
May I know where I am doing mistake.
Regards
Ramesh.
2010 Mar 17 5:59 PM
Hi,
What is the error you are getting? why don't you debug and see where you are getting the error?
Thanks,
Vinod.
2010 Mar 17 6:23 PM
Hi Vinod,
Solved it. In the screen attributes of the tablecontrol field, we have an option called 'With sign'.
Thanks for your help.
Regards
Ramesh.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |