Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Replace Line feed

Former Member
0 Kudos

Hi All,

i want to replace a line feed which is shown as ## in debug mode with space..

Though i have tried replacing it by giving hexadecimal value of # but still its not gettign replaced.

So how do i replace these occurences of line feed in the string which i am using..

Regards,

Syed

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos

Hi try this way :

data: value type string....

data: lv_feed type c value CL_ABAP_CHAR_UTILITIES=>CR_LF.

replace all occurrences of lv_feed in value with space.

2 REPLIES 2

former_member226519
Active Contributor
0 Kudos

the HEX values of CRLF are 0D0A, try to replace this

former_member156446
Active Contributor
0 Kudos

Hi try this way :

data: value type string....

data: lv_feed type c value CL_ABAP_CHAR_UTILITIES=>CR_LF.

replace all occurrences of lv_feed in value with space.