Skip to Content
0
Former Member
Apr 01, 2008 at 01:31 PM

Problems with CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD

335 Views

Hi,

i use this Method to upload data. I create the itab dynamicly. My Problem is, that the first Line of the PC-File

is a headerline wich i have to ignore, because it doesn't match to the file-structure and i get the error OTHER (=9).

Question: Is it possible to use this method with ignoring the first line in upload?

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD

EXPORTING

FILENAME = FILENAME

FILETYPE = 'ASC'

HAS_FIELD_SEPARATOR = 'X'

DAT_MODE = 'X'

CHANGING

DATA_TAB = <GT_ITAB>

EXCEPTIONS

FILE_OPEN_ERROR = 1

FILE_READ_ERROR = 2

INVALID_TYPE = 5

NO_AUTHORITY = 6

UNKNOWN_ERROR = 7

OTHERS = 9.

Thanks for help.

Regards, Dieter