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

Re : filepath

hi

how to get filepath(dynamic) in f4 help. This is for

downloading purpose.

thanks

mani

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 Jun 16, 2008 at 11:09 AM

    Hi,

    Try this FM

    CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'

    EXPORTING

    window_title = l_c_title " Title of dialogue box

    default_extension = l_c_fext " Extesion

    IMPORTING

    filename = l_filename. " File name

    Hope it helps you.

    Regards

    Manjari

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 16, 2008 at 11:09 AM

    Use the below methos.....

    CALL METHOD cl_guid->directory_browse

    EXPORTING window_title = 'Test'

    CHANGING selected_folder = wf_path2.

    CALL METHOD cl_gui_cfw=>flush.

    pa_fpath = wf_path2 .

    wf_path = wf_path2.

    or use the FM...

    KD_GET_FILENAME_ON_F4

    first one is more prefered.....

    Reward points...if its useful...

    Regards

    Rudra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 11:09 AM

    Hi

    You can use Function module REPOSITORY_INFO_SYSTEM_F4 to get dynamice f4 help..

    CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4'

    EXPORTING

    object_type = 'PROG'

    object_name = p_name

    IMPORTING

    object_name_selected = p_name

    EXCEPTIONS

    cancel = 1

    wrong_type = 2

    OTHERS = 3

    .

    IF sy-subrc <> 0.

    ENDIF.

    This will solve your problem.

    Regards,

    Nisrin.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 11:11 AM

    Hi,

    try this..

    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.

    PARAMETERS: p_efile TYPE rlgrap-filename OBLIGATORY.

    *To use F4 help to find file path( Upload File ).

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

    CALL FUNCTION 'F4_FILENAME'

    EXPORTING

    program_name = syst-cprog

    dynpro_number = syst-dynnr

    IMPORTING

    file_name = p_file.

    Regards,

    Karthik.

    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.