Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8557

Re: Problem in replacing '#' in a given string with space

$
0
0

Hi,

Try:

CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab .
CONSTANTS: c_crg TYPE abap_char1 VALUE cl_abap_char_utilities=>cr_lf .
CONSTANTS: c_nln TYPE abap_char1 VALUE cl_abap_char_utilities=>newline .
*----------------------------------------------------------------------*

FORM clean_string
  CHANGING
    string .

  REPLACE ALL OCCURRENCES OF c_tab IN string WITH ' ' .
  REPLACE ALL OCCURRENCES OF c_crg IN string WITH ' ' .
  REPLACE ALL OCCURRENCES OF c_nln IN string WITH ' ' .

ENDFORM .                    "clean_string
*----------------------------------------------------------------------*


Regards.


Viewing all articles
Browse latest Browse all 8557

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>