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

Function module taking default value despite of giving values

0 Likes
882

Requirement is to download a CSV file,
by default this FM takes Field separator as tabs
but here i have given field separator as ','
its still separating the Fields by Tabs.

i want to download output in CSV file.
is this FM correct way to do so.
Thank you.

1 REPLY 1
Read only

harald_lesche-holzbecher
Product and Topic Expert
Product and Topic Expert
840

WRITE_FIELD_SEPARATOR is a flag whether fields shall be separated and not the separating character, see function module documentation:

Separate Columns by Tabs in Case of ASCII Download

Description

In the downloaded file, the columns are separated by tab characters (cl_abap_char_utilities=>horizontal_tab). You should use this setting if you want to upload the data from the file at a later time, because this is the only way of identifying individual columns.

The parameter makes sense only for the FILETYPE values ASC, DAT and IBM; for DAT it is set implicitly.

Value range

'X' : Write separator.

SPACE : Do not write separator.

Default

SPACE