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: 

Replace tab character from string in ABAP

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

we are in CRM

0 Kudos

you got to declate tab :


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

0 Kudos

hi,

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

raghav

0 Kudos

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.

0 Kudos

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

Regards,

Naimesh Patel

0 Kudos

I apologize....

0 Kudos

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