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: 

OLe-Insert a tabstop

Former Member
0 Kudos

Hello everyone,

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 (tab) XYZ...".

Thank you!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hai Kiran,

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.

Regards,

Srikanth.

Reward points if helpful.Thanks in advance..

2 REPLIES 2

Former Member
0 Kudos

Hai Kiran,

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.

Regards,

Srikanth.

Reward points if helpful.Thanks in advance..

Former Member
0 Kudos

Thanks Srikanth.Its now working....

CALL METHOD OF h_word 'FormatTabs'..This was the only problem.