cancel
Showing results for 
Search instead for 
Did you mean: 

Suppressing zero's in smartforms

Former Member
0 Kudos

hi,

my requirement is to suppress the zeros for field MENGE NETPR NETWR.output is as follows

10,000 10,00 100,00

but i want it as

10 10 100

kindly help me regarding this issue.

Thanks and regards,

siri

Accepted Solutions (1)

Accepted Solutions (1)

krishnendu_laha
Active Contributor
0 Kudos

Hi Friend,

Suppose for amopunt you need to show as 10,00 and the varaible name is WS_NETWR.

So code it like &WS_NETWR(18.2)&

If you do not want any zero after decimal...&WS_NETWR(18.0)&

Hope it will help you.

Regards

Krishnendu

Former Member
0 Kudos

Hi,

Thanks everybody. my question is resolved.

thanks and regards,

siri

Answers (6)

Answers (6)

Former Member
0 Kudos

Use &variablename(CIZ)& in the text editor of the smartform.

- Ashok

Former Member
0 Kudos

Please use &symbol(.N)& Display upto N decimal places

Former Member
0 Kudos

HI,

w_amount = 10.000

/: &w_amount(.0)&

give in text editor as above

i hope i will work

regards,

bhupal.

Former Member
0 Kudos

your field name say if you are printing &wa_menge& then give it as

&wa_menge(Z)& and so as

&wa_netpr(Z)&

&wa_netwr(Z)&

former_member181995
Active Contributor
0 Kudos

Try to Move the value into Character field and Set Right alignment ( either Character / paragraph format).

OR

sometimes it happens in smartform templates. Try increase the width of the template cell .

either you can use this formatting (C)option example &v_variable(c)&.

Former Member
0 Kudos

use this:

&symbol(.N)& Display upto N decimal places

Other options

&symbol(Z)& Omit Leading Zeros

&symbol(S)& Omit Leading Sign

&symbol(<)& Display Leading Sign to the Left

&symbol(>)& Display Leading Sign to the Right

&symbol(C)& Compress Spaces

&symbol(.N)& Display upto N decimal places

&symbol(T)& Omit thousands separator

&symbol(R)& Right justified

&symbol(I)& Suppress output of the initial value

eg &SFSY-FORMPAGES(3ZC)& ---outputlen,c-condense,z-Omit Leading Zeros

somopriyo_gorai
Discoverer
0 Kudos

Hi,

use &symbol(.N)& Display upto N decimal places