Code: Alles auswählen.
DATA: crlf2(2) TYPE x VALUE '0D0A',
str TYPE string,
such TYPE string
crlf TYPE string.
CALL METHOD cl_abap_conv_in_ce=>uccp
EXPORTING
uccp = '0010'
RECEIVING
char = crlf.
such = crlf.
str = remarks.
WHILE sy-subrc EQ 0.
* REPLACE crlf2 IN remarks WITH ' '.
REPLACE such IN str WITH ' '.
ENDWHILE.
Code: Alles auswählen.
* This command will remove ## in string
* ## is sometimes the sign for breaks
DATA:
cr_lf TYPE string.
cr_lf = cl_abap_char_utilities=>cr_lf.
REPLACE ALL OCCURRENCES OF cr_lf IN remarks WITH ' '.