Skip to Content
0
Former Member
Nov 09, 2008 at 11:09 AM

FM to upload the text file

504 Views

I am trying to use the function "GUI_UPLOAD" to uplad atext file with delimiter as semicolon.But i do not see exporting parameter in this function "has_delimiter" where i can mention semicolon for my file uplaod purpose .What could be the reason ,the FM defintiona which i get is like

CALL FUNCTION 'GUI_UPLOAD'

  • EXPORTING

  • FILENAME = ' '

  • FILETYPE = 'ASC'

  • IMPORTING

  • FILELENGTH =

TABLES

data_tab =

  • EXCEPTIONS

  • FILE_OPEN_ERROR = 1

  • FILE_READ_ERROR = 2

  • NO_BATCH = 3

  • GUI_REFUSE_FILETRANSFER = 4

  • INVALID_TYPE = 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.

Please suggest if there is any other FM to uplaod the text file with delimiter .

Thanks ,

Swati