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

Is it possible to configure thousands and decimal separator

Hi,

I have a problem related to decimal characters and thousands separators.

<b>Situation :</b>

I use EP 7, SP11

Suppose I have a variable called <i>Invoiced_value</i>, with numeric value 67892,2811

I want it displayed like this :

67.892,28 (with . for thousands separator and , for decimal seperator)

Therefore I use this function nstr (see help.sap.comhttp://help.sap.com/saphelp_nw04s/helpdata/en/40/a228173435437394f54c56de571ca4/frameset.htm">help.sap.com> for related documentation)

<i>NSTR(@Invoiced_value,"C.2")</i>

<b>problem : </b>

This function does exactly the opposite of what I want, it displays the numeric value as :

67,892.28

<b>my question</b>

Is there any way to configure the decimal characters on any (Visual Composer, Portal, ...) place/way ? I'm not able to find a way how to do it...

Reward points will be given.

BR,

Wouter

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2007 at 09:05 PM

    Hi,

    There is one way but its bit crude. If you dont use any function ( say NSTR), by default the system would take the decimal notation convention set for the user in the backend. So if u have in the backend . for thousands separator and , for decimal seperator, it should reflect on the portal and visual composer as well.

    Regards

    Nidhi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Wouter,

      With backend I meant the ECC or BW system which you are using for getting your data. In the User Profile at the backend( ECC/BW), you can set the default decimal notation. As for Visual Composer, need to check out and will let you know.

      Cheers

      Nidhi

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2007 at 02:50 PM

    Hi,

    The thousands separator change in the backend dind't work. (+ it only works for text input fields, not for text fields)

    Anyhow, this is how we created a workaround :

    Suppose we did this : <b>NSTR(@CREDITLIMIT,"C.2")</b>

    This resulted in the field being displayed as <i>67,234.56</i>

    The 'dirty' way to convert this to an european format is :

    <b>REPLACE(REPLACE(REPLACE(NSTR(@CREDITLIMIT,"C.2"),",",";"),".",","),";",".")</b>

    Output is <i>67.234,56</i>

    (we just replaced the '.' by ',' and vice versa)

    I still feel quite uncomfortable with this solution, but this is the only way we got it to work.

    I really hope a next patch/servivepack provided a more elegant solution for this problem... (hint hint)

    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.