2008 Oct 21 5:32 AM
Hi
Am replacing DOWNLOAD Fm in 4.6 c with
cl_gui_frontend_services => file_save_dialog
and
cl_gui_frontend_serivces => gui_download .
1) A field symbol <itab> for a standard table is assigned to "Data_tab" parameter of DOWNLOAD Fm .
2) I have assigned this <itab> to the changing parameter "data_tab" of
cl_gui_frontend_services => gui_download.
on executing it , it is throwing a dump .
Is there any specific rule to assign a field symbol to
cl_gui_frontend_services => gui_download ?
2008 Oct 21 5:57 AM
it is related to field-symbols error. nothing to do with GUI_DOWNLOAD.
did you assign the field-symbol.
ex: it_data is internal table which you want to download
assign it_data to <itab> .
i think you are getting the error field-symbol not assigned.
2008 Oct 21 5:35 AM
What is the error coming? Please paste the code section for troubleshooting.
Regards
Karthik D
2008 Oct 21 5:47 AM
hi
check the type of changing parameter in the method,you have to declare DATA_ITAB of same type.
2008 Oct 21 5:50 AM
Hi Gethanjali,
Use the below sample code for your requirement.
data: ld_filename type string,
ld_path type string,
ld_fullpath type string,
ld_result type i.
* Display save dialog window
call method cl_gui_frontend_services=>file_save_dialog
exporting
* window_title = ' '
default_extension = 'xls'
default_file_name = 'accountsdata'
initial_directory = 'c:\temp\'
changing
filename = ld_filename
path = ld_path
fullpath = ld_fullpath
user_action = ld_result.
Thanks,
Chidanand
2008 Oct 21 5:55 AM
Hi,
IN OO for DATA_TAB parameter you have to pass internal table without header line.
Thanks & Regards,
Navneeth K.
2008 Oct 21 5:57 AM
it is related to field-symbols error. nothing to do with GUI_DOWNLOAD.
did you assign the field-symbol.
ex: it_data is internal table which you want to download
assign it_data to <itab> .
i think you are getting the error field-symbol not assigned.
2008 Oct 21 7:27 AM
Hi all,
1) The field symbol is assigned to a standard table .
2) the gui_download method also uses standard table as the changing parameter . so type conflict is not a problem
3) I passed even without the header line , stil the dump appears .
2008 Oct 21 7:34 AM
post the code once. to see and identify the exact problem.
just debug , keep a break point at gui_download and see field-symbol value incase if it is assigned. if it is not assigned then you will not able to see the field-symbols.