Application Development 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: 

Decimal Fields in screen

former_member226234
Contributor
0 Kudos

Hi,

I have developed a Module pool program. I have a screen field type DEC. I have two modes, EDIT and DISPLAY. In EDIT mode, when i enter 0.00 into this screen field and press save, the value displayed is BLANK and not '0.00' as required. In DISPLAY mode the value is displayed correctly as '0.00'.

I tried changing the screen field to type CHAR. But the same field variable is declared as TYPE 'p' for underlying calculations. Thus it gives me an 'SCREEN FORMAT ERROR'.

Any ideas how to diplay '0.00' in the decimal field in EDIT mode?

Awaiting your responses.

Regards,

Sandeep

1 REPLY 1

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

What you are seeing is the stanard way the gui handles these fields in the particular mode(change,display). You can not get around this using the decimal field. Your only solution is to make are character field on the screen as well as character field in the underlying program.

Regards,

Rich Heilman