Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function module upload and download

Former Member
0 Likes
756

Hello All,

while using Upload and download function modules, how to avoid popup for providing file path, as am already passing it from reading from the selections screen. while running again i dont want to get the popup asking file path.

thx in advance,

sippy.

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
726

UPLOAD and DOWNLOAD FMs are obsolute.

Use the FM GUI_UPLOAD and GUI_DOWNLOAD.

Regards,

Naimesh Patel

5 REPLIES 5
Read only

naimesh_patel
Active Contributor
0 Likes
727

UPLOAD and DOWNLOAD FMs are obsolute.

Use the FM GUI_UPLOAD and GUI_DOWNLOAD.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
726

Hi,

You can try with

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD

EXPORTING

FILENAME = I_DIR

READ_BY_LINE = 'X' " FILETYPE = 'ASC'

CHANGING

DATA_TAB = IT_TEXTO

EXCEPTIONS

FILE_OPEN_ERROR = 1

FILE_READ_ERROR = 2

BAD_DATA_FORMAT = 8

OTHERS = 19.

__________________________________________________

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

EXPORTING

  • BIN_FILESIZE =

FILENAME = I_DIR2

  • FILETYPE = 'ASC'

  • APPEND = SPACE

  • WRITE_FIELD_SEPARATOR = SPACE

  • HEADER = '00'

  • TRUNC_TRAILING_BLANKS = SPACE

CHANGING

DATA_TAB = IT_TEXTO.

Best Regards

Ana

Read only

Former Member
0 Likes
726

Hi,

You can try with

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD

EXPORTING

FILENAME = I_DIR

READ_BY_LINE = 'X' " FILETYPE = 'ASC'

CHANGING

DATA_TAB = IT_TEXTO

EXCEPTIONS

FILE_OPEN_ERROR = 1

FILE_READ_ERROR = 2

BAD_DATA_FORMAT = 8

OTHERS = 19.

__________________________________________________

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

EXPORTING

  • BIN_FILESIZE =

FILENAME = I_DIR2

  • FILETYPE = 'ASC'

  • APPEND = SPACE

  • WRITE_FIELD_SEPARATOR = SPACE

  • HEADER = '00'

  • TRUNC_TRAILING_BLANKS = SPACE

CHANGING

DATA_TAB = IT_TEXTO.

Best Regards

Ana

Read only

Former Member
0 Likes
726

Hi ,

you can pass the name of parameter in fun mod.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD

EXPORTING

FILENAME = P_DIR

Thanks & Regards,

Krishna..

Read only

Former Member
0 Likes
726

Hi,

put the file path name in the parameter of FM, like:

CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    FILENAME                        = *path_name*
  TABLES
    DATA_TAB                        = it_output

.

Regards,

Chris gu