cancel
Showing results for 
Search instead for 
Did you mean: 

problem with decimals in quan fields in smartform

former_member186143
Active Contributor
0 Kudos

although there are already many topics I still can't resolve my problem with decimal fields in smartforms

I have in global definitions under Value/quan the field

WA_CATS_DATA-MAAND1 WA_CATS_DATA-TOTAAL QUAN

where WA_CATS_DATA-TOTAAL is a quantity field of length 7 and without decimals

the original element of WA_CATS_DATA-MAAND1 has 1 decimal and it is still printed

I also tried to inlcude the decimal amount in the fieldname

&WA_CATS_DATA-MAAND12(4.0)&

but I get error SSFCOMPOSER602 ???

anybody know what to do ?

kind regards

arthur

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

I am confused, what you are trying to print ?

if WA_CATS_DATA-MAAND1, than it will print with 1 decimal because it has 1 decimal in the domain.

If WA_CATS_DATA-TOTAAL, the it should not print any decimals.

Regards,

Naimesh Patel

former_member186143
Active Contributor
0 Kudos

WA_CATS_DATA-TOTAAL is the reference field for WA_CATS_DATA-MAAND1 so it should display the nr of decimals from that field ? or not ?

and if I want so supress 0 values , how is the way to handle that.?

Message was edited by:

A. de Smidt

naimesh_patel
Active Contributor
0 Kudos

Yes, it must print number of decimals from WA_CATS_DATA-TOTAAL. But instead of giving local field (WA_CATS_DATA-TOTAAL) as reference use the data element from the field WA_CATS_DATA-TOTAAL and check what happens.

Regards,

Naimesh Patel

former_member186143
Active Contributor
0 Kudos

the sollution was quite different, I had to include in my structure the field meinh and use that as reference in the structure itself instead of another table.

in the global defenitions I made a field meinh with reference to my meinh in the structure and gave it default value 'H'

and I used that as reference field.

now the decimals were gone

Answers (0)