0

I want to display a decimal number on an ALV. But the minus sign on negative values is shown on the right side. When I use the FA "CLOI_PUT_SIGN_IN_FRONT" I need to use a char typed value. If I do that the comma is replaced by a separation point.

How can I achieve both, minus sign on the left and comma as separation sign.

Thanks for any hints!

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Dyrdek
  • 411
  • 4
  • 12
  • 33

1 Answers1

1

Try using CL_SALV_COLUMN method SET_EDIT_MASK to set either a classic mask or a conversion exit. For some reason, that method was lost in the translation of the online documentation - it is present in the German version, but missing in the English version.

vwegert
  • 18,371
  • 3
  • 37
  • 55
  • I tried it with mask `'-___,__'`. But when the value is 0 it will be displayed like. `-00 ,` – Dyrdek Dec 22 '16 at 13:25
  • 1
    You may want to [refresh your knowledge about edit masks](http://help.sap.com/abapdocu_750/en/abapwrite_to_options.htm#!ABAP_ADDITION_13@13@) - especially, use `V` for the sign and `.` for the decimal separator. – vwegert Dec 22 '16 at 16:54