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

Quan data type

Former Member
0 Likes
1,462

Hi All,

I want to display table field ( i.e. quan data type) value as char data type in maintenance view,

without changing the domain data type in the table.

Ex. In table the quan field value is 125.600000

In maintance view it should be 125.6

Thanks in advance

Venkatesh K

5 REPLIES 5
Read only

Former Member
0 Likes
730

is it a ztable or standard table?

Read only

0 Likes
730

Hi Soumyaprakash,

It is a Ztable.

Thanks and Regards,

Venkatesh

Read only

0 Likes
730

guys venkatesh wants for display purpose only..

use the events of table maintenance generator,

Read only

Former Member
0 Likes
730

If you give data type as Quan . it will not take number as what you want.

Instead of QUAN data type use CHAR .

It will accept the values waht u r entering.

delete table maintence and regnerate it.

Regards,

Pravin

Read only

Former Member
0 Likes
730

Hi Venkatesh,

What has been written by Pravin is correct that in the table you need to change the domain from QUAN type to CHAR.

Also with that in the 05 event of table maintainance generator you need to write the code for validations such as.

1) Only numerical entry is allowed in that field

2) Only one . (dot) is allowed in the string

3) If user has has added leading or trailing 0's then remove the same first and the store it.

I guess this much validations will solve the purpose.

Thanks