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: 

Concatenate with two tab stops

Former Member
0 Kudos

Hi all,

I want to write an email with a table. (headline and items)

How can I separate the values that the headline fits to the column size of the items?

One tab stop is not enough. How can I use two tabstops?

CONSTANTS:

C_TAB TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

CONCATENATE lt_nriv-object lt_nriv-subobject lt_nriv-nrrangenr lt_nriv-toyear range_text

INTO line SEPARATED BY C_TAB. <-- here i want to use two tab stops!!!!

regards

4 REPLIES 4

Former Member
0 Kudos

I am not sure about 2 tabs space. But why cant you use some symbol '$' or '#' 16 times (for 2 tabs) and replace while displaying / moving data using TRANSLATE statement.

former_member242255
Active Contributor
0 Kudos

concatenate the C_TAB two times instead of separated by,as you are having not many fields,

you can write manually concatenate all the fields in between write two times the same delimiter.

hope this hould work..

Former Member
0 Kudos

try this:

CONSTANTS:

C_TAB(2) TYPE C.

C_TAB+0(1) = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

C_TAB+1(1) = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

CONCATENATE lt_nriv-object lt_nriv-subobject lt_nriv-nrrangenr lt_nriv-toyear range_text

INTO line SEPARATED BY C_TAB.

Former Member
0 Kudos

Before the CL_ABAP_CHAR* came in, we used to use the ASCII codes for tabs, may be you should try the old method if its still supported for these weird requirements

CONSTANTS: c_tab TYPE x VALUE '09'.

CONCATENATE lt_nriv-object c_tab c_tab lt_nriv-subobject c_tab c_tab lt_nriv-nrrangenr c_tab c_tab lt_nriv-toyear c_tab c_tab range_text

INTO line .

Mathews