on 02-28-2019 10:24 PM
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
you can use SHIFT...RIGHT CIRCULAR to move minus to the left.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.