Skip to Content

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

function module GUI_UPLOAD

Hi ,

Iam using GUI_UPLOAD function module to upload file from desktop to the internal table .Iam using more than 1 rows of data in text TAB delimated file .But when iam using the function module , it always take first record from the file and put it into internal table.

************************************************************************

  • Start-of-selection

************************************************************************

START-OF-SELECTION.

IF p_ppath IS NOT INITIAL.

l_filenm = p_ppath.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

filename = l_filenm

filetype = 'ASC'

has_field_separator = 'X'

TABLES

data_tab = itab_item

EXCEPTIONS

file_open_error = 1

file_read_error = 2

no_batch = 3

gui_refuse_filetransfer = 4

invalid_type = 5

no_authority = 6

unknown_error = 7

bad_data_format = 8

header_not_allowed = 9

separator_not_allowed = 10

header_too_long = 11

unknown_dp_error = 12

access_denied = 13

dp_out_of_memory = 14

disk_full = 15

dp_timeout = 16

OTHERS = 17.

ENDIF.

Regards,

Sri

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