cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms format DEC

Former Member
0 Kudos

Hi Alll

Have Field in table format DEC 3 num after decimal separator example 7.456

like DATA DDD tye p decimals 3.

need format this field in smartform

if 7.000 need view in smartform 7

if 7.670 need view in smartform 7.67

if 7.532 need view in smartform 7.532

how format this field?

thx

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

if that field is a currency or quantity field then it can be achieved by passing the reference field in the currency/quantity tab in the global definition of the smartform else may be spliting is the only way out.

Former Member
0 Kudos

&gv_variabe(Z)&

z being the number of zros you wanto display after the decimal

Former Member
0 Kudos

Hi,

First divide the Value 7.570 as Var1 = 7 and Var2 = 570 use string operations.

By using String operations deleted leading Zeros right side of that value Var2.

Again Concatenate those Var1 and Var2 separated by '.' into another variable display it.

Former Member
0 Kudos

only this way?