Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

express CR_LF

What is the right expression for line feed .

Below command is not correctly. How can I express

line feed CR_LF .

REPALCE ALL OCCURENCES OF '#' WITH CR_LF

IN s_test .

I intend to replace

data s_test type string.

s_test = 'afafdfd#retretertre#vmnmnmnmmnbnm#'.

reagrds

sas

Tags:
replied

I think CL_ABAP_CHAR_UTILITIES=>CR_LF have a value # then in that case why you are replacing the # with #

For testing this try to change all "a" in the string with cr_lf.

data s_test type string.
s_test = 'afafdfd#retretertre#vmnmnmnmmnbnm#'.
REPLACE ALL OCCURRENCES OF 'a' IN s_test WITH CL_ABAP_CHAR_UTILITIES=>CR_LF.
write: s_test.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question