‎2009 Jul 29 10:52 AM
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
‎2009 Jul 29 10:57 AM
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
‎2009 Jul 29 11:04 AM
Hi..
In function module 'GUI_UPLOAD' use FILETYPE = 'DAT' .
Check it works or not.
Hope, it will help u.
Thanks & Regards,
Poonam.
‎2009 Jul 29 11:09 AM
‎2009 Jul 29 11:19 AM
If you are uploading from text file,
use FILETYPE = 'DAT' in FM.
Regards,
Sumit Nene.
‎2009 Jul 29 11:26 AM
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
‎2009 Jul 29 11:26 AM
Hi,
if you are uploading from text file.
then use filetype = 'ASC'.
Regards,
Tutun
‎2009 Jul 29 11:31 AM
‎2009 Jul 29 11:37 AM
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
‎2009 Jul 30 5:52 AM