2015 Jun 08 3:29 PM
hello expert i need help
m trying to round value in smart forms and declare two variable in smart forms
LV_NET_VAL type 'i'
LV_NET_VAL1 type 'i'
LV_NET_VAL = 1234567.76
but in
LV_NET_VAL1 = its shows 1234568
but i need to show like 12345678.00
and i also need to show exact round off value = .25
pls help
2015 Jun 08 4:14 PM
Hi Sumit,
Why not to declare it as P with decimal 2?
regards,
Archer
hello expert i need help
m trying to round value in smart forms and declare two variable in smart forms
LV_NET_VAL type 'i'
LV_NET_VAL1 type 'i'
LV_NET_VAL = 1234567.76
but in
LV_NET_VAL1 = its shows 1234568
but i need to show like 12345678.00
and i also need to show exact round off value = .25
pls help
2015 Jun 08 4:14 PM
Hi Sumit,
Why not to declare it as P with decimal 2?
regards,
Archer
2015 Jun 08 4:16 PM
2015 Jun 08 4:35 PM
2015 Jun 08 4:32 PM
Your text element should have something like this: &STRUC-FIELD(.2)&
2015 Jun 08 4:35 PM
2015 Jun 08 4:37 PM
2015 Jun 08 5:41 PM
Using a TEXT element, when you insert a field, normally the field is entered like so: &STRUC-FIELD&. But to specify decimals, enter the field like this: &STRUC-FIELD(.2)& The .2 is the number of decimals added to the field.
2015 Jun 08 5:24 PM
What exactly your requirement is?
Convert 1234568 to 1234568.00?
You have mentioned
"1234568
but i need to show like 12345678.00"
What is the logic of getting 12345678 from 1234568? Is it a typo?