Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Download data into .csv format ( ABAP webDynpro )

Hi gurus ,

I am new to WebDynpro .

My requirement is that i need to download all my datas into csv format . But when i am using the function module

GUI_DOWNLOAD , an error is coming " Couldnot ascertain code page "

I have used the F.M ' SAP_CONVERT_TO_CSV_FORMAT '

call function 'SAP_CONVERT_TO_CSV_FORMAT'

exporting

i_field_seperator = ';'

  • I_LINE_HEADER =

  • I_FILENAME = ''

  • I_APPL_KEEP = ' '

tables

i_tab_sap_data = it_fail

changing

i_tab_converted_data = csv_converted_table

exceptions

conversion_failed = 1

others = 2

when i am using GUI_DOWNLOAD i am getting the above error

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = 'C:\test.csv'

tables

data_tab = csv_converted_table.

ENDIF.

suggest me or provide some sample code to download the the csv_converted_table that i got from the F.M

'SAP_CONVERT_TO_CSV_FORMAT' into .csv format to my local drive .

Thanx Gurus .

Former Member
Not what you were looking for? View more on this topic or Ask a question