Application Development and Automation 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: 
Read only

Re : filepath

Former Member
0 Likes
723

hi

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

downloading purpose.

thanks

mani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
693

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

4 REPLIES 4
Read only

former_member195383
Active Contributor
0 Likes
693

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

Read only

Former Member
0 Likes
693

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.

Read only

Former Member
0 Likes
694

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

Read only

Former Member
0 Likes
693

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.