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

How to remove decimal in BODS

Hello Gurus,

I have a requirement where the numbers should be displayed as below with fixed width of 8 and implied(removed) decimal. Can you please tell me how I can achieve this in SAP BODS Query?

150.00 ---> 00015000

2758.00 ---> 00275800

897.52 ---> 00089752

Thank you,

Priyansh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 28, 2016 at 09:34 PM

    ltrim_blanks(to_char(decimal_field*100,'00000000'))

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 28, 2016 at 10:30 PM

    That solved it.Thank you Dirk!

    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.