title: Convert Character to Integer
body: <p>I have this ABAP code:</p>
  
  <pre><code>CLEAR NEGATIIVNE.
  DATA gv_negativenumericvalue_txt TYPE CHAR40.
  SELECT SINGLE NETWR INTO NEGATIIVNE
    FROM VBRK
    WHERE VBELN = VBRK-VBELN.
  IF DEBIT_CREDIT = 'CRED'.
    NEGATIIVNE = NEGATIIVNE * -1.
  ELSE.
    NEGATIIVNE = NEGATIIVNE.
    ENDIF.
  WRITE NEGATIIVNE TO gv_negativenumericvalue_txt.
  REPLACE ALL OCCURRENCES OF '.' in gv_negativenumericvalue_txt with ''.
  CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
   CHANGING
    value = gv_negativenumericvalue_txt.
  CALL FUNCTION 'MOVE_CHAR_TO_NUM '
    EXPORTING
      CHR = gv_negativenumericvalue_txt
    IMPORTING
      NUM = NEGATIIVNE
    EXCEPTIONS
      CONVT_NO_NUMBER = 1
      CONVT_OVERFLOW  = 2
      OTHERS          = 3.
  write:/ gv_negativenumericvalue_txt.
  </code></pre>
  
  <p>What I need to do is write variable <code>gv_negativenumericvalue_txt into variable NEGATIIVNE</code> but I can't do it any way :/ I need it do show the value NEGATIIVNE in my ALV layout.</p>
  
  <p>Right now the code works fine but as soon as I try to do something like this - </p>
  
  <p><code>NEGATIIVNE = gv_negativenumericvalue_txt</code> I get dump saying that system can't recognize the character as number.</p>