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 GUI_DOWNLOAD: Type String Issue

Former Member
0 Likes
957

I am working in 4.6C. I have used this Function Module many times in the past without issue, but not at this site. It abends and gives me the error message:

The call to the function module "GUI_DOWNLOAD" is incorrect:

The function module interface allows you to specify only fields

of a particular type under "FILENAME". The field "FNAME" specified here

has a different field type.

Here is the field declaration in the code:

PARAMETER: fname type rlgrap-filename DEFAULT 'C:/New_PO_Format.xls'.

The import parameter in GUI_DOWNLOAD for FILENAME is type STRING. When I double click on STRING in the FM I get "Unable to find a tool to process request". And, TYPE STRING does not exist in the system? I started making a Z version of GUI_DOWNLOAD, but it started giving me headaches because I had to start copying other SAP function modules.

Am I missing something? Or, is there a new and improved version of GUI_DOWNLOAD to use?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
538

data : v_file type string.

PARAMETER: fname type rlgrap-filename DEFAULT 'C:/New_PO_Format.xls'.

start-of-selection.

v_file = fname.

use v_file in gui_download parameter.

Thanks

Seshu

3 REPLIES 3
Read only

Former Member
0 Likes
538

Hi Tom,

Just define your parameter as : fname TYPE string as well. (string is generic type, you will not find in the dicationary!).

Regards,

John.

Read only

0 Likes
538

I did this:

PARAMETER: fname type string

DEFAULT 'C:/New_PO_Format.xls'.

I get syntax error The nested data type string is not allowed.

? Thanks

Read only

Former Member
0 Likes
539

data : v_file type string.

PARAMETER: fname type rlgrap-filename DEFAULT 'C:/New_PO_Format.xls'.

start-of-selection.

v_file = fname.

use v_file in gui_download parameter.

Thanks

Seshu