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: 

Download CSV file

former_member188001
Active Participant
0 Kudos
91

Hi All,

I am using function module SAP_CONVERT_TO_TEX_FORMAT to convert the internal table into CSV file with headings .

Now, when I use the function GUI_DOWNLOAD to download the file, I get a short dump. Please let me know which parameters I am missing.

When I use the parameter data_tab in GUI_DOWNLOAD, I dont get the file with comma seperated and headings. If I remove that parameter, I get a shortdump.

Please see the code below.

CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
    EXPORTING
      i_field_seperator          = ','
      i_line_header              = 'X'
      i_filename                 = 'SALES_FORCE.CSV'
    TABLES
      i_tab_sap_data             = gt_output.

CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename = 'SALES_FORCE.CSV'
    TABLES
      data_tab = gt_output.

Thanks for your help.

Salil

Closed this because I have put the same question in ABPA General Forum

Edited by: salil vaidya on Nov 8, 2009 12:18 AM

Edited by: salil vaidya on Nov 8, 2009 1:04 PM

1 REPLY 1

former_member188001
Active Participant
0 Kudos
41

Closed this because I have put the same question in ABAP General Forum.