Skip to Content
-2

Key figure in char

Hi Sapexpert,

I would like to see a char in a numerical format, for make this I'm trying to write a little abap code.

the result is the following

I would like to see the minus sign in the left part (and not on the right part) without any space. In case of negative number I'll multiplicate for minus one.

Any suggest?

Thak you in advance

A.C

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 01 at 02:08 AM

    you can use SHIFT...RIGHT CIRCULAR to move minus to the left.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 01 at 04:15 PM

    Please make sure that the title matches the actual question. There is no "key figure" here, the question is simply about formatting a numeric field.

    Look in the ABAP documentation under WRITE TO statement. There is an explanation how different types are interpreted for output (note the differences for decfloat... types). And the commands for string operations are also all listed right there:

    Edit: using simple REPLACE... to handle the user-specific presentation of decimal and thousand separators is usually not a good idea. And in a simple test/demo program this shouldn't even be necessary, just set your preferred delimiter in your user profile (SU3) and go with it.


    scn.jpg (58.3 kB)
    Add comment
    10|10000 characters needed characters exceeded