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

Tab Spacing the notepad

Former Member
0 Likes
921

Hi

I need a exact 4 tab space between each fields in the downloaded notepad.

Regards

Sathya

7 REPLIES 7
Read only

Former Member
0 Likes
816

Concatenate CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB into your field four times.

Darren

Read only

Former Member
0 Likes
816

Hi Darren

Thanks for your timely reply

Can you explain me what this class does so that it helps me to incorporate the same in my program

Regards

Sathya

Read only

0 Likes
816

You only need to use the attribute of the class HORIZONTAL_TAB, this is a TAB in a character field.

You can concatenate this attribute 4 times into another field and use that as your separator for your data.

Darren

Read only

former_member156446
Active Contributor
0 Likes
816

hi

if you wanted to do in a generic way , you will declare a variable

data: lv_tab type X value 09.

concatenate lv_tab lv_tab lv_tab lv_tab into string.

this is the generic way of doing it.

now we have a global variable alrady exiting in this class CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB so why to declare it again.. when we have it.. so CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB

Read only

Former Member
0 Likes
816

Hi Darren

Thanks a lot

What should i do if i need a 4 space other than tab in the notepad

Regards

Sathya

Read only

0 Likes
816

you can try some thing like this..

concatenate var1 `` `` `` `` var2  into somevar.

Read only

0 Likes
816

concatenate space space space space into varable.

concatenate f1 varable f2 varable.... into ..