2006 Apr 11 11:23 PM
I usually use this in a selection screen for browsing my drives to select a file, but it does not exist in BW. Anybody know a similar Function Module in BW I could use in its place that uses the same parameters?
Thank-You.
I usually use this in a selection screen for browsing my drives to select a file, but it does not exist in BW. Anybody know a similar Function Module in BW I could use in its place that uses the same parameters?
Thank-You.
2006 Apr 11 11:29 PM
Do you have the class CL_GUI_FRONTEND_SERVICES . There is a method. Its called FILE_OPEN_DIALOG.
report zrich_0001.
data: ifile type filetable.
data: xfile like line of ifile.
data: rc type i.
parameters: p_file type localfile.
at selection-screen on value-request for p_file.
call method cl_gui_frontend_services=>file_open_dialog
exporting
* WINDOW_TITLE =
* DEFAULT_EXTENSION =
* DEFAULT_FILENAME =
* FILE_FILTER =
* WITH_ENCODING =
initial_directory = 'C:'
* MULTISELECTION =
changing
file_table = ifile
rc = rc
* USER_ACTION =
* FILE_ENCODING =
exceptions
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
others = 5
.
read table ifile into xfile index 1.
if sy-subrc = 0.
p_file = xfile-filename.
endif.Regards,
Rich Heilman
2006 Apr 12 12:26 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |