Application Development and Automation 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: 
Read only

How to Replace Line feed

Former Member
0 Likes
2,355

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
Read only

former_member156446
Active Contributor
1,073

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.

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

2 REPLIES 2
Read only

former_member226519
Active Contributor
0 Likes
1,073

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

Read only

former_member156446
Active Contributor
1,074

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.