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
606

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
Read only

Former Member
0 Likes
585

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..

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!

2 REPLIES 2
Read only

Former Member
0 Likes
586

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..

Read only

Former Member
0 Likes
585

Thanks Srikanth.Its now working....

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