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

csv format output

Former Member
0 Likes
334

hi all,

i have a requirement for downloading to csv format when i give it as excell its working fine but when i use csv extension i am gettin all the column in a single column.i want each and every column to be separated that is comma separated.i have used it as folows

CALL FUNCTION 'DOWNLOAD'

EXPORTING

FILENAME = P_FILE

FILETYPE = 'DAT'

TABLES

DATA_TAB = T_T500P

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

here ,

p_file i am defining the file path with the extension

t_t500p is my internal table.

3 REPLIES 3
Read only

Former Member
0 Likes
312

Hi, Abinash,

Use

File Type = 'ASC'

and use

Write_field_separtator = 'X'.

Reward points if use full

Thankz

vinesh.

Read only

0 Likes
312

I USE THIS I GET DUMP.

Read only

Former Member
0 Likes
312

answered