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

Server file selector

Former Member
0 Likes
955

Hi.

Is there any FM i can use to select a file in the server with a dialog window?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
920

Hi Jose Otero ,

The function modules specified by me and other's earlier to this, is to fetch the name of the file from the presentation server. To get the name of the file on the application server do the following.

1. Use parameters syntax and get to type the name of the file.

2. While executing the program fill it with a name (unique) and run the program.

3. Using Transaction "AL11" check the path and get into the correct path.

4. Find the file name that you specified.

Please reward points.

Thanks,

Tej.

Message was edited by:

Shree Tejus

8 REPLIES 8
Read only

Former Member
0 Likes
920

Hi,

you can use F4_FILENAME , GET_FILENAME to fetch the filename from presentation server.

Reward points if it is helpful.

Regards,

Sangeetha.a

Read only

Former Member
0 Likes
920

Hi,

TO select the Presentation server file then use the F4_FILENAME function module

Regards

Sudheer

Read only

0 Likes
920

Are you sure about this?

I'm checking this, and i get the dialog of my local computer filesystem, not the server filesystem.

Thanks

Read only

Former Member
0 Likes
920

Hi Jose Otero ,

CALL FUNCTION 'F4_FILENAME'

EXPORTING

program_name = syst-cprog

dynpro_number = syst-dynnr

field_name = ''

IMPORTING

file_name = p_file.

here p_file is the name of the file with syntax as follows.

data: p_file type rlgrap-filename.

Please reward Points.

Tejus..

Read only

Former Member
0 Likes
920

Hi,

You can also try..

TYPE-POOLS: truxs.

DATA: it_tab TYPE filetable,

gd_subrc TYPE i.

CALL METHOD cl_gui_frontend_services=>file_open_dialog

EXPORTING

window_title = 'Select File'

  • default_filename = ' '

  • multiselection = ' '

CHANGING

file_table = it_tab

rc = gd_subrc.

Message was edited by:

JITHENDRA CHADICHAL

Read only

0 Likes
920

I've just tried these function modules, and they are only able to show a dialog with the local filesystem. What i really want to do is select a file from the server where the system is installed.

thanks

Read only

Former Member
0 Likes
921

Hi Jose Otero ,

The function modules specified by me and other's earlier to this, is to fetch the name of the file from the presentation server. To get the name of the file on the application server do the following.

1. Use parameters syntax and get to type the name of the file.

2. While executing the program fill it with a name (unique) and run the program.

3. Using Transaction "AL11" check the path and get into the correct path.

4. Find the file name that you specified.

Please reward points.

Thanks,

Tej.

Message was edited by:

Shree Tejus

Read only

0 Likes
920

I'll answer my own question:

I found the FM:

F4_DXFILENAME_TOPRECURSION

This function module shows a dialog with the file structure of the server.