‎2008 May 21 10:15 AM
Hi
Im doing smartform for displaying the sales order details.In that im displaying the net value also.
Actually im taking this net value from VBRK table there net value is of type NETWR. In my program for displaying this net value in smartform for that i have changed net value is of type char. So in smartform comma is not coming. it is display as 5000.00. But i need comma like 5,000.00. How can i add comma. Please help me for this.
‎2008 May 21 10:38 AM
Hi Hima,
Why have you changed the data to char? You can pass the value as it is. In the smartform you can mention the value as
X(10.0)
where X is the variable for printing NETWR.
Regards,
Aravinda Sarma M.
‎2008 May 21 10:46 AM
Hi,
Refer to the same Data Element NETWR. it will print as same way that you want.
Please close if it works,
Thanks,
Aditya
‎2008 May 21 10:46 AM
HI hima,
you have got the data in NETWR field.
use statement
"WRITE netwr TO lv_char15." to move the '5000.00' to char15 in format '5,000.00'
here lv_char15 is a local variable of type char15
sent this lv_char15 field for display in smartform.
it is something like this code
DATA : test1 TYPE char15,
test2 TYPE netwr VALUE '5000.00'.
WRITE test2 to test1 CURRENCY '2'.
WRITE : test1.
hope this helps.let me know if there is any problems.
reward if usefull,
taher
‎2008 May 21 11:14 AM
HI ADITYA
if i am not changing the data elemnt from netwr to char17 it will not display the smartform.