Skip to Content
avatar image
Former Member

regarding ',' in output

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 20, 2007 at 09:59 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 20, 2007 at 10:04 AM

    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>

    Add comment
    10|10000 characters needed characters exceeded