Skip to Content

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

Error Message: GUI_DOWNLOAD

Hi people,

You could help me please.

1 - In this case, i have a simple program to download a itab contents. When i executing it on-line, saving in a local drive, the file is created normally, but when is executed in Background saving in a local drive too, the Job is terminated, but the file isn't created. In the end of this message have a example of the code.

2 - In other case, I have 1 program that executing in background too, the JOB aren't concluded and occurs Exception Error: UNKNOWN_ERROR.

Code Example for the 1. problem.

-


REPORT ZZ_TESTE .

tables: t030.

data: it_t030 LIKE t030 OCCURS 0 WITH HEADER LINE,

i_ktopl LIKE t030-ktopl,

v_tabix like sy-tabix.

data: begin of itab_t030 occurs 0.

include structure t030.

data: end of itab_t030.

selection-screen begin of block b1 with frame title text-001.

parameters: p_ktopl like t030-ktopl obligatory.

selection-screen end of block b1.

v_tabix = sy-tabix.

select ktopl

ktosl

bwmod

komok

bklas

konts

konth

FROM t030

INTO table it_t030

WHERE ktopl = p_ktopl.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = 'C:\TESTE_FLAVIO.TXT'

FILETYPE = 'ASC'

DAT_MODE = space

TABLES

DATA_TAB = it_t030

EXCEPTIONS

FILE_WRITE_ERROR = 1

NO_BATCH = 2

GUI_REFUSE_FILETRANSFER = 3

INVALID_TYPE = 4

NO_AUTHORITY = 5

UNKNOWN_ERROR = 6

HEADER_NOT_ALLOWED = 7

SEPARATOR_NOT_ALLOWED = 8

FILESIZE_NOT_ALLOWED = 9

HEADER_TOO_LONG = 10

DP_ERROR_CREATE = 11

DP_ERROR_SEND = 12

DP_ERROR_WRITE = 13

UNKNOWN_DP_ERROR = 14

ACCESS_DENIED = 15

DP_OUT_OF_MEMORY = 16

DISK_FULL = 17

DP_TIMEOUT = 18

FILE_NOT_FOUND = 19

DATAPROVIDER_EXCEPTION = 20

CONTROL_FLUSH_ERROR = 21

OTHERS = 22.

Tags:
Former Member
replied

No you cannot save your file to your personal computer in background, except if YOUR PC is a FTP server....

Look at these blogs : <a href="/people/monalisa.biswal/blog/2007/06/28/download-in-background in Background</a> and <a href="/people/thomas.jung3/blog/2004/11/15/performing-ftp-commands-from-abap FTP Commands From ABAP</a>

Regards

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question