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

write 0 into table control

Former Member
0 Likes
425

Hi guys:

I have several columns which are type "DEC". When I try to assign 0(zero) to one of this columns , the table controls delete this number and put "space". The number zero is a data so when I put zero I need save zero and not "space".

I hope someone can help me.

Thanks.

Javier.

PS: I need a FM to convert char to decimal. Someone knows anyone?

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
382

For an input field of type DEC, that is the normal behavior, it will show as space if it is zero(0), but rest assured that it is being saved in the database table as 0 and not space. If you set the field to output, and not input, you can see that it will show as 0 and not space. If your require that the field is to show 0 even when it is ready for input, then you must use a character based field instead of the numeric DEC type field.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
382

Hi

Function Module MOVE_CHAR_TO_NUM

Hope this helps

Regards,

Jayanthi.K