** Replace
  SELECT SINGLE dcpfm
  INTO lv_dcpfm
  FROM usr01
  WHERE bname = sy-uname.

    IF lv_dcpfm = 'X'.
      REPLACE '.' IN lv_tmp_cost_c WITH ',' .
    ENDIF.



Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com