Application Development 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: 

gui_download .

Former Member
0 Kudos
1,077

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 ?

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos
156

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.

7 REPLIES 7

Former Member
0 Kudos
156

What is the error coming? Please paste the code section for troubleshooting.

Regards

Karthik D

Former Member
0 Kudos
156

hi

check the type of changing parameter in the method,you have to declare DATA_ITAB of same type.

former_member598013
Active Contributor
0 Kudos
156

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

Former Member
0 Kudos
156

Hi,

IN OO for DATA_TAB parameter you have to pass internal table without header line.

Thanks & Regards,

Navneeth K.

former_member188685
Active Contributor
0 Kudos
157

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.

0 Kudos
156

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 .

0 Kudos
156

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.