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

comma problem in charcter field

Former Member
0 Likes
636

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
618

Hi,

Just inform your basis consultants. Because i have had the problem on before.

Regards,

Sankar.

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

4 REPLIES 4
Read only

Former Member
0 Likes
619

Hi,

Just inform your basis consultants. Because i have had the problem on before.

Regards,

Sankar.

Read only

Former Member
0 Likes
618

when UR passing amount to character ...

pass it as

write v_amount to v_amount1.

where v_amount1 is of type character ...

Read only

Former Member
0 Likes
618

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

Read only

Former Member
0 Likes
618

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