‎2007 Sep 20 9:08 AM
Hi Experts,
In screen painter I have designed one screen in that screen I am using net weight field that I am taking from VEKP table as per database table it should allow 3 decimals. But as per my requirement I need to restrict it to only one decimal I mean if any body enters net weight as 100.523 system should take 100.5 only and need to display message like only one decimal allowed. Please help me how to do this. I will give the points.
Thanks a lot.
‎2007 Sep 20 9:10 AM
You need to define the screen based on a SAP field which only has one decimal.
‎2007 Sep 20 9:13 AM
Hi Babji,
Try this,
Data : temp type p decimals 1.
temp = "your fiel name".
You can use this parameter "temp".
If input is 100.523 means it displays only 100.5.
if you want message means,
if "your field" is initial.
<b>message "Enter the Values with one Decimal" type 'I'.</b>
endif.
Write the code for the particular field.
Thanks,
Reward If Helpful.