2008 May 14 9:59 AM
hi all,
i am developing a report for that i need to show the total amount for one field.i did it. but to show the amount i used a varible of type CHAR.but i want a comma between the digits of toatal amount.
can any one tell me how to do this without any coding i mean by using any function module or something.
points will be awarded.
thanks,
gupta
2008 May 14 10:02 AM
Hi,
Just inform your basis consultants. Because i have had the problem on before.
Regards,
Sankar.
2008 May 14 10:02 AM
Hi,
Just inform your basis consultants. Because i have had the problem on before.
Regards,
Sankar.
2008 May 14 10:04 AM
when UR passing amount to character ...
pass it as
write v_amount to v_amount1.
where v_amount1 is of type character ...
2008 May 14 10:10 AM
Hi Gupta,
let us take g_amount is the field which you are assigning to g_amt. Here g_amt is the character type and which cannot hold 'comma'.
g_amt = g_amount (DONT DO LIKE THIS)
write g_amount to g_amt. (DO LIKE THIS, THE COMMA WILL ALSO APPEAR IN G_AMT)
thanks & regards
Kishore Kumar Maram
2008 May 14 10:10 AM
Hi,
Refer to the following code:
DATA:BEGIN OF int_final OCCURS 0,
bukrs LIKE bseg-bukrs,
lifnr LIKE bseg-lifnr,
belnr LIKE bkpf-belnr,
h_dmbtr(15),
END OF int_final.
WRITE INT_BSEG-H_DMBTR TO INT_FINAL-H_DMBTR CURRENCY WF_WAERS.
Hope this helps.
Reward if helpful.
Regards,
Sipra