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

GUI_UPLOAD

vallamuthu_madheswaran2
Active Contributor
0 Likes
1,087

Hi Friends,

I'm using GUI_UPLOAD usig file type 'BIN'.

now i want to convert BIN format to internal table or text format.

Is there any FM.

Thanks & Regards,

Vallamuthu.M

9 REPLIES 9
Read only

Former Member
0 Likes
1,038

Hi ,

Give file name with .txt extension in GUI_UPLOAD to download as text format

Regards,

Vijay

Edited by: vijay kumar pamulapati on Jul 29, 2009 11:59 AM

Read only

Former Member
0 Likes
1,038

Hi..

In function module 'GUI_UPLOAD' use FILETYPE = 'DAT' .

Check it works or not.

Hope, it will help u.

Thanks & Regards,

Poonam.

Read only

0 Likes
1,038

It's not working. i'll try to upload word doc to sap.

Read only

Former Member
0 Likes
1,038

If you are uploading from text file,

use FILETYPE = 'DAT' in FM.

Regards,

Sumit Nene.

Read only

0 Likes
1,038

in the GUI upload there is a field TABLES, it transfers all the contents you have in an internal table...

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

filename = f_upload

has_field_separator = 'X'

TABLES

data_tab = i_tab

Read only

Former Member
0 Likes
1,038

Hi,

if you are uploading from text file.

then use filetype = 'ASC'.

Regards,

Tutun

Read only

Former Member
0 Likes
1,038

hi,

It is the same FM

see this link

hope it helps

Read only

Former Member
0 Likes
1,038

Hi,

Take a look at the following code:

DATA: lv_filetype(10) TYPE c,

lv_gui_sep TYPE c,

lv_file_name TYPE string.

lv_filetype = 'ASC'.

lv_gui_sep = 'X'.

lv_file_name = pa_dfile.

  • FM call to upload file

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

filename = lv_file_name

filetype = lv_filetype

has_field_separator = lv_gui_sep

TABLES

data_tab = gi_Table

Hope it helps.

Regards

Rajesh Kumar

Read only

vallamuthu_madheswaran2
Active Contributor
0 Likes
1,038

solved my self