cancel
Showing results for 
Search instead for 
Did you mean: 

comma need to be displayed in the floating point value in scripts

Former Member
0 Kudos

Hi Experts,

while i am doing the totals for the credit amounts in the backend program(Subroutine pool) for the sap scripts, i am deleting the comma(,) to do the total calculation.

comma needs to be deleted because the values are passed through the ITCSY sctructure..its VALUE field is of type CHAR. so in the subroutine i deleted the comma & caluculated the total & the total is also displaying properly.

but in the total display the comma's are not displaying..

Is there any function module to insert the comma's in the floating point value...???

i think we can't do manually coz the total value size may vary..

Can any body help me please..?? its very urgent..

Valuable answers will be rewarded.

Immediate response will be appreciated..

Thanks & Regards,

Satish.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Satish,,

The variable what you are using for displaying Total should be a Currency field.

If it is a Currency field then you will get the value with camas in output.

If you are using a Character field now then move it to a currency field and use that in final display

Regards Rk.

Former Member
0 Kudos

Hi,

you are right. but what i am doing here is i am deleting comma's to add the floating point values...here i am adding two values which are of float values(if you keep comma while adding floating point values its not supporting & it is giving dump)

the result is coming currect & i am assiginig the last total to the char value of ITCSY...while dispalying it is showing with comma's

Waiting for valuable feed back

Hope u understand my problem.

Thanks & Regards,

Satish.

naimesh_patel
Active Contributor
0 Kudos

Before passing the value to the Output table, you can do like this to get the "Commas" back in the field.

DATA: W_VALUE_F TYPE F,

W_VALUE_C(30).

WRITE: W_VALUE_F TO W_VALUE_C.

Then Pass this value W_VALUE_C to relevent field of the Value.

Regards,

Naimesh Patel