‎2007 Jun 05 8:20 AM
Hi.
Is there any FM i can use to select a file in the server with a dialog window?
‎2007 Jun 05 10:02 AM
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
‎2007 Jun 05 8:22 AM
Hi,
you can use F4_FILENAME , GET_FILENAME to fetch the filename from presentation server.
Reward points if it is helpful.
Regards,
Sangeetha.a
‎2007 Jun 05 8:25 AM
Hi,
TO select the Presentation server file then use the F4_FILENAME function module
Regards
Sudheer
‎2007 Jun 05 8:32 AM
Are you sure about this?
I'm checking this, and i get the dialog of my local computer filesystem, not the server filesystem.
Thanks
‎2007 Jun 05 8:29 AM
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..
‎2007 Jun 05 8:35 AM
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
‎2007 Jun 05 8:43 AM
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
‎2007 Jun 05 10:02 AM
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
‎2007 Jul 09 4:13 PM
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.