2005 Nov 24 5:38 AM
2005 Nov 24 5:50 AM
run this code..it is just a file open dialog box, generally used to browse and load filename from local pc
report zanid_test.
tables rlgrap.
data: it_tab type filetable,
gd_subrc type i.
selection-screen begin of block m with frame.
select-options so_fpath for rlgrap-filename.
selection-screen end of block m.
at selection-screen on value-request for so_fpath-low.
REFRESH: it_tab.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE = 'Select File'
DEFAULT_FILENAME = '.'
MULTISELECTION = 'X'
CHANGING
FILE_TABLE = it_tab
RC = gd_subrc.
loop at it_tab into so_fpath-low.
so_fpath-sign = 'I'.
so_fpath-option = 'EQ'.
append so_fpath.
endloop.
in selection screen put the cursor on the field and press F4.the dialog box you see, is created by this method "FILE_OPEN_DIALOG".
plz reward points by clicking the star..if my post helped you.
2005 Nov 24 5:49 AM
Jayasree,
This method will show a window where you can select a file that you are trying to upload. If you are trying to upload the file and want to give the user to browse and select the right file, you use this.
Its just like your Open command in your word.
Regards,
Ravi
Note : Please reward posts that help you.
2005 Nov 24 5:49 AM
Class CL_GUI_FRONTEND_SERVICES uses t access presentation server like access files in the system.
file_open_dailog opens the windows open file dialog box . It is similar to WS_FILENAME_GET function module. So that you select required file.
2005 Nov 24 5:50 AM
Hi,
It is a STATIC PUBLIC method (OR CLASS METHOD) defined in class CL_GUI_FRONTEND_SERVICES which means you can call this method with class name and there is no necessity to create an object.
Sri
Message was edited by: Srikanth Pinnamaneni
2005 Nov 24 5:50 AM
run this code..it is just a file open dialog box, generally used to browse and load filename from local pc
report zanid_test.
tables rlgrap.
data: it_tab type filetable,
gd_subrc type i.
selection-screen begin of block m with frame.
select-options so_fpath for rlgrap-filename.
selection-screen end of block m.
at selection-screen on value-request for so_fpath-low.
REFRESH: it_tab.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE = 'Select File'
DEFAULT_FILENAME = '.'
MULTISELECTION = 'X'
CHANGING
FILE_TABLE = it_tab
RC = gd_subrc.
loop at it_tab into so_fpath-low.
so_fpath-sign = 'I'.
so_fpath-option = 'EQ'.
append so_fpath.
endloop.
in selection screen put the cursor on the field and press F4.the dialog box you see, is created by this method "FILE_OPEN_DIALOG".
plz reward points by clicking the star..if my post helped you.