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

OLE - Insert a TabStop

Former Member
0 Likes
400

I inserted a Tabstop using the method:

CALL METHOD OF h_word 'FormatTabs'

EXPORTING

#1 = '1,25 cm'.

But how can I insert a Tab when I'm writing the text?

There is a method called 'NextTab()' but how do I use it?

E.g. when I insert "1.1 <i>(tab)</i> XYZ...".

Thank you!

1 ACCEPTED SOLUTION
Read only

former_member182670
Contributor
0 Likes
376

To insert tab you can try two options:

DATA: lv_text(20) type c.

1.

lv_text+2(1) = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

or

2.

concatenate 'aa' CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB 'bb' into lv_text.

2 REPLIES 2
Read only

former_member182670
Contributor
0 Likes
377

To insert tab you can try two options:

DATA: lv_text(20) type c.

1.

lv_text+2(1) = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

or

2.

concatenate 'aa' CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB 'bb' into lv_text.

Read only

0 Likes
376

Thanks again!