Skip to Content
0
Former Member
Jul 08, 2010 at 04:17 PM

GUI_DOWNLOAD - DBF file type

1809 Views

Hi All,

I am trying to download a internal table to presentation server using the FM GUI_DOWNLOAD and specifying the file type as DBF.

Everything looks fine, I see the columns neatly arranged in excel sheet. But I do get an additional row with the column headers like F1, F2.... I need to avoid this.

I surfed SDN and was not able to figure out a solution, There's a post posted way back in 200 but was not answered. I am just wondering if any one of you have found a solution for this in recent past.

Please help me with your inputs.

CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename              = file_name2
        filetype              = 'DBF'

      TABLES
        data_tab              = it_pc_output
      EXCEPTIONS
        OTHERS                = 1.

    IF sy-subrc EQ 0.
      WRITE :/ text-028, file_name2.
    ELSE.
      WRITE :/ text-004.
    ENDIF.

Thanks,

Vijay