2008 Feb 26 9:00 AM
hi experts,
In my smartforms,i have a variable temp_menge which is having value 1000000 but i want to get it displayed as 1,000,000.How to write the same.?????
Thanks,
Gaurav
Edited by: Gaurav Kumar on Feb 26, 2008 2:30 PM
hi experts,
In my smartforms,i have a variable temp_menge which is having value 1000000 but i want to get it displayed as 1,000,000.How to write the same.?????
Thanks,
Gaurav
Edited by: Gaurav Kumar on Feb 26, 2008 2:30 PM
2008 Feb 26 9:03 AM
Hi,
might be the variable temp_menge has been declared as charater field in your smartform/program. check it and declare the variable temp_menge as menge_d. then your problem will be get solved.
2008 Feb 26 9:07 AM
hi,
that variable is of type menge_d.
I'll explan:
data : temp1(50).
temp1 is having 1000000.
now when i assign it to variable temp_menge it does not take it in with commas rather it takes as it is from char variable, i want it to displayed like 1,000,000 .
Thanks,
Gaurav
2008 Feb 26 9:07 AM
Hi,
There might be 2 possibilities. One is data type. Symbols of the DEC, CURR, INT, and QUAN data types are normally formatted with the a thousands separator character. The T option allows you to omit this separator character.
Syntax:
&symbol(T)&
The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
&EKPO-MENGE& -> 1,234.560
&EKPO-MENGE(T)& -> 1234.560
So one thing is change your data type to TYPE P or remove the (T) from your code. This should work.
Reward points if helps.
Regards,
JLN
2008 Feb 26 9:11 AM
Hi,
check in your smartforms....
&temp_menge(t)& -> 1000000
&temp_menge& -> 1,000,000
2008 Feb 26 9:30 AM
2008 Feb 26 9:32 AM
Gentlemen,
It will work for both scripts & smartforms.
Regards,
JLN
2008 Feb 27 3:57 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |