Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Screen Change

Former Member
0 Likes
387

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.

2 REPLIES 2
Read only

Former Member
0 Likes
368

You need to define the screen based on a SAP field which only has one decimal.

Read only

Former Member
0 Likes
368

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.