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

how to open a floder by clicking a button

dear all,

my requirement is : i've to open a floder when ever i pressed a button on a screen.

Thanks in advance.,

Ajay Kumar K.

9908979994.

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 Jul 05, 2008 at 12:09 PM

    Hi Ajay Kanigiri,

    use SY-UCOMM to capture the user command event of the buttone

    and call the FM CALL_BROWSER and provide the URL as import parameter...

    Just copy it and try to run the program... change the url if needed but specify in CAPS

    REPORT zilesh_open_folder.
    
    CALL FUNCTION 'CALL_BROWSER'
     EXPORTING
       URL                          = 'C:\DOCUMENTS AND SETTINGS\'
    *   WINDOW_NAME                  = ' '
    *   NEW_WINDOW                   = ' '
    *   BROWSER_TYPE                 =
    *   CONTEXTSTRING                =
     EXCEPTIONS
       FRONTEND_NOT_SUPPORTED       = 1
       FRONTEND_ERROR               = 2
       PROG_NOT_FOUND               = 3
       NO_BATCH                     = 4
       UNSPECIFIED_ERROR            = 5
       OTHERS                       = 6
              .
    IF SY-SUBRC <> 0.
     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Hope it will solve your problem..

    Thanks & Regards

    ilesh 24x7

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 09:06 AM

    Hi,

    Use the method FILE_OPEN_DIALOG of class CL_GUI_FRONTEND_SERVICES

    when ever the button is clicked.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 05, 2008 at 04:26 AM

    DEAR ALL,

    PLS SEND ME THE ANS FOR MY QUESTION.IT'S URGANT.

    THANK U ALL,

    WITH REGARDS,

    AJAY KUMAR K,

    9908979994.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 05, 2008 at 10:57 AM
    • Get the file that you wish to use.

    at selection-screen on value-request for p_newfil.

    call method cl_gui_frontend_services=>file_open_dialog

    exporting

    window_title = 'Select File'

    default_filename = '*.doc'

    multiselection = ' '

    changing

    file_table = g_file

    rc = g_subrc.

    This is how I have done it.

    Regards

    J

    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.