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: 

Field Seperator in excel sheet

Former Member
0 Kudos

Hi everyone,

I m populating an excel sheet with fields from an internal table using fm GUI_DOWNLOAD. I want to add ~ symbol as seperator for each fields. If i use the WRITE_FIELD_SEPARATOR = '~' i am getting a box symbol as field seperator. I tried with other symbols like #, but then too i am getting the box symbox in output excel sheet and not the required symbol. I kindly request you to help me in this issue.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I feel the field separator used here is only TAB and not other characters if you are getting something else then check for the unicode compatibilty for the program.

Thanks

Sudharshan

4 REPLIES 4

Former Member
0 Kudos

Hi,

I feel the field separator used here is only TAB and not other characters if you are getting something else then check for the unicode compatibilty for the program.

Thanks

Sudharshan

0 Kudos

so what should i do to put a field seperator as a symbol like ~ or #

0 Kudos

Hi,

There is a class(cl_abap_char_utilities), in it all the symbols (like: newline, horizontal_tab, vertical_tab...etc) are defined in Attributes which are static. so you can use them from that class. please find the below piece of code.

Type X value '09' --> TYPE c VALUE cl_abap_char_utilities=>horizontal_tab
Type X value '0A' --> TYPE c VALUE cl_abap_char_utilities=>newline
Type X value '0D' --> TYPE c VALUE cl_abap_char_utilities=>cr_lf

Thanks,

Ravi

Former Member
0 Kudos

Hi

To get field separator other than TAB you need to

U need to insert the separator'~' directly in internal table with the record of the file, so while you're filling the field of the file, you have to insert the separator.

Thanks

Sudharshan