03-11-2009 7:27 AM
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
03-11-2009 7:30 AM
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.
03-11-2009 7:30 AM
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..
03-11-2009 7:42 AM
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.
03-11-2009 7:59 AM
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