Skip to Content
0
Former Member
Jul 10, 2012 at 08:37 AM

Logical file name 'SPACE' is not permissible

135 Views

Hi,

I am trying to upload an excel file from application server using the fm FILE_READ_AND_CONVERT_SAP_DATA,

getting an error message saying Logical file name 'SPACE' is not permissible,

I searched in sdn but did mot get any solution for this.

Kindly suggest me.

I am using the following code.

call function 'FILE_READ_AND_CONVERT_SAP_DATA'
exporting
i_filename = '/tmp/test/123.xlsx'
i_servertyp = 'APP'
i_fileformat = 'XLS'
i_field_seperator = ' '
i_line_header = ' '
tables
i_tab_receiver = tab
exceptions
close_failed = 1
authorization_failed = 2
open_failed = 3
file_not_found = 4
conversion_failed = 5
others = 6.

if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.

Thanks in advance,

ben.