10-16-2008 9:02 AM
Hi folks,
We are displaying amounts in one smartform. Amount format should be as '$2,000.00'. we changed it into character variable and concatenated with the dollar symbol. Its wroking fine. But, as it is a character variable, the commas in the middle of the amount is not displaying.But we need it also....Could any body suggest me to accomplish it...
Thanks in advance,
Shyam.
10-16-2008 9:15 AM
HI,
While assigning the data from a currency variable to character variable use MOVE statement.
Move l_curr to l_char_curr.
Concatenate '$' l_char_curr into l_char_curr separated by ' '.
Best regards,
Prashant
10-16-2008 9:38 AM
Hi Prasanth,
Thanks for your answer. I folloed your suggestion, even then its not working. Once it is moved to charater variable, it is unable to display the commas..any other alternatives pls..
Thanks...
Edited by: shyam prasad on Oct 16, 2008 10:38 AM
10-16-2008 9:43 AM
Hi Shyam
In one of my smartforms i have used data type STRING. Can you try this out and let me know.
Regards
Edited by: Rajvansh Ravi on Oct 16, 2008 10:44 AM
10-16-2008 9:45 AM
Hi Shyam,
You have to display the $ sign separately..before the amount. Dont concatenate it.
If you are displaying it in a text field. then create another text field and put the $ sign thr.