Application Development 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: 

regarding ',' in output

Former Member
0 Kudos

hi experts,

i have developed a smartforms in which the total value is coming like this 134567,what i want that it sud come like this 13,4567.plz help me for this....

thnx in advance.

2 REPLIES 2

Former Member
0 Kudos

Hi,

declare a global variable of type c.

in the program line

you will be getting the total value which is of type dmbtr or wrbtr

then

write dmbtr to global variable currency '2'.

then it will come like

12,231.00

thanks & regards,

Venkatesh

varma_narayana
Active Contributor
0 Kudos

Hi..

Open the Global Definitions in Smartform.

In the Global data declare a Variable like G_TOTAL TYPE C.

Create a Program lines node before displaying this field in the Page/window.

In program lines node maintain like this:

INPUT: <YOURFIELD> for eg wa-total

OUTPUT: G_TOTAL

Code:

WRITE WA-TOTAL TO G_TOTAL DECIMALS 2.

<b>Reward if Helpful</b>