Application Development 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: 

Class object

Former Member
0 Kudos
127

what is CL_GUI_FRONTEND_SERVICES =>file_open_dialog

1 ACCEPTED SOLUTION

Former Member
0 Kudos
78

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.

4 REPLIES 4

Former Member
0 Kudos
78

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.

Former Member
0 Kudos
78

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.

Former Member
0 Kudos
78

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

Former Member
0 Kudos
79

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.