cancel
Showing results for 
Search instead for 
Did you mean: 

How to display the amount field with comma separated with 2 decimal place in mail body using html.

Krishna1994
Explorer
0 Kudos
252

Here is my below code :
DATA : lv_sum_wrbtr         TYPE dmbtr.
lv_sum_wrbtr lv_sum_wrbtr + lv_wrbtr.

APPEND VALUE #vendor 'TOTAL'
                        txbhw   lv_sum_txbhw
                        gst     lv_sum_wrbtr
                  tot_inv_value lv_sum_tot_inv_value TO lt_mail_mails.

CALL FUNCTION 'WWW_ITAB_TO_HTML'
          EXPORTING
            table_header wa_header
          TABLES
            html         t_html_x
            fields       t_fields
            row_header   t_header
            itable       lt_mail_mails.


ls_html_x-line 

'<P>' && 'Please be adviced that, until the issue is resolved, above mentioned GST amount <b>INR. '
        && lv_sum_wrbtr &&' </b> will be temporarily put on hold in your account. We will make the payment as soon as ITC appears in GSTR 2B.' && '<br>'.
        APPEND ls_html_x TO t_html_x.
 

 

While using in the above HTML code lv_sum_wrbtr is not displaying with comma separator.

my output displayed like this :

Krishna1994_0-1738915747498.png

Kindly help me with the code suggestion to resolve this issue...

 

View Entire Topic
Tomas_Buryanek
Active Contributor

Please check format options of string templates.

For you most relevant is most likely CURRENCY formatting option.

Krishna1994
Explorer
0 Kudos
can you please suggest a code...