Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Separated by comma

Former Member
0 Likes
868

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.

4 REPLIES 4
Read only

Former Member
0 Likes
668

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.

Read only

Former Member
0 Likes
668

Hi,

Refer to the same Data Element NETWR. it will print as same way that you want.

Please close if it works,

Thanks,

Aditya

Read only

Former Member
0 Likes
668

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

Read only

0 Likes
668

HI ADITYA

if i am not changing the data elemnt from netwr to char17 it will not display the smartform.