07-01-2009 11:52 AM
Hi Experts,
We have designed one customized screen with CHAR as input option to pass on Tax Percentage. We have defined as CHAR in screen logic as well as program also.
Where as while we enter value with decimals like 2.5 or 5.4 its throwing a error message "Entry is too long for the field". But when I pass on Integer values like 2 or 4 then its working fine.
Can you pls suggest on this how to rectify this error.
Thanks in advance.
VJ
07-01-2009 11:59 AM
Hi,
Declare the field type as below and check in the debug mode where exactly its falling.
DATA P_FIELD TYPE P DECIMALS 2.
Regards,
Kumar
07-01-2009 12:03 PM
Hi,
Increase the length of the character field in the screen as well as in the program declaration.
Example;
DATA gv_tax(10) type C.
Regards
Karthik D
07-01-2009 12:20 PM
Hi,
Thanks.
I have tried by defining Variable as P with Decimals 2 as well as by increasing the field lengh to 25 in screen field. Still the same problem exists. Could you pls provide other alternatives.
Thxs&rgds,
VJ
07-01-2009 12:41 PM
Hi,
Declare as follows
data: p(4) type p decimals 1. in the program
goto the screen layout->click on button 'program/dictionary fields' and enter '*' and click on 'get from the program', there you can find 'p' which we declared. select if and click 'ok' button