cancel
Showing results for 
Search instead for 
Did you mean: 

Key figure in char

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

DoanManhQuynh
Active Contributor

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

Answers (1)

Answers (1)

Jelena
Active Contributor

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.

0 Kudos

Thanks for the advice