Skip to Content
author's profile photo Former Member
Former Member

Class object

what is CL_GUI_FRONTEND_SERVICES =>file_open_dialog

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2005 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2005 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2005 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2005 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.