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

regarding layout compressing

Hi All,

could you please tell me to how to remove trailing zeros, after fullstop, for example

mine is quantity field ,the value is 12.000, i need to print only 12 in the layout..this for the logic purpose i need to do in layout only..no way of doing in program..so could you please tell me , how to do it in layout..

regards,

vinesh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jun 10, 2008 at 10:19 AM

    HI,

    Simply decalre the variable of type I.

    data : l_qty type i.

    l_quantity = 12.343.

    move l_quantity to l_qty.

    l_qty will have value 12.

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2008 at 10:23 AM

    Hi,

    u can make use of ceil or floor commands in program lines.

    Rgds.,

    subash

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2008 at 10:40 AM

    hi,

    sorry please discard the previous message, make use of TRUNC command in program lines.

    Rgds.,

    subash

    Add a comment
    10|10000 characters needed characters exceeded

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.