Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 09, 2008 at 03:15 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 03:15 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.