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

Replace tab character from string in ABAP

Former Member
0 Likes
4,116

hi experts,

I have a string like this "a<tab character>b<tab character>c<tab character>d". for my processing i want the output like "abcd". How can i replace all occurances of this tab character from my string.

tab character = a hexa decimal character. I dont know the hex value for this.

regards

Raghav

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,438

tabulator is 09

if you are in ECC there is a class to mantain Unicode, I think it's called cl_abap_char_utilities and it has the tabulator inside

8 REPLIES 8
Read only

Former Member
0 Likes
2,439

tabulator is 09

if you are in ECC there is a class to mantain Unicode, I think it's called cl_abap_char_utilities and it has the tabulator inside

Read only

0 Likes
2,438

we are in CRM

Read only

0 Likes
2,438

you got to declate tab :


*tab decleration
datA: lv_tab type c value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

Read only

0 Likes
2,438

hi,

I am new to ABAP, can you explain it little more.

raghav

Read only

0 Likes
2,438

hi you joined SCN in 2007 its a way long time to say.. ur new.. any ways.

after declaring the lv_tab as I said...

REPLACE ALL OCCURRENCES OF lv_tab in <string> with space.

Read only

0 Likes
2,438

You shouldn't consider anybody's expertise based on the joining date.

Regards,

Naimesh Patel

Read only

0 Likes
2,438

I apologize....

Read only

0 Likes
2,438

thanks J@Y. I am actually posting this question on behalf of our developers.

I am new ABAP and not to SAP. I am SA for CRM and BI