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

F4 help for GUI

Former Member
0 Likes
952

Hi,

I need to store a file on the presentation server. For this purpose, I have an icon on the GUI , to download the file from the output screen to the PS.

I have used the FM 'GUI_DOWNLOAD' for this.

I need an F4 help, so that when i click on the download icon the menu bar, a popup should come asking for the path on the PS where i want to store the file.

Can anyone tell me which FM should I call for the popup?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
812

Hi,

use this class CL_GUI_FRONTEND_SERVICES and its method FILE_SAVE_DIALOG.

6 REPLIES 6
Read only

Former Member
0 Likes
813

Hi,

use this class CL_GUI_FRONTEND_SERVICES and its method FILE_SAVE_DIALOG.

Read only

Former Member
0 Likes
812

hi ,

in order to get the browse option use FM

F4_FILENAME.

Rgds.,

subash

Read only

Former Member
0 Likes
812

Hi,

You can use this FM 'F4_FILENAME' inorder to get pop-up box.

I am giving one example below:

PARAMETER:pw_filename TYPE rlgrap-filename OBLIGATORY

CALL FUNCTION 'F4_FILENAME'

EXPORTING

program_name = syst-cprog

dynpro_number = syst-dynnr

IMPORTING

file_name = pw_filename.

Your problem will be solved.

Reward some points.

Regards,

Anomitro Guha

Read only

Former Member
0 Likes
812

At the AT SELECTION_SCREEN ON VALUE-REQUEST FOR p_path and code your value help.

DATA:

zz_folder TYPE string.

CALL METHOD cl_gui_frontend_services=>directory_browse

CHANGING

selected_folder = zz_folder

EXCEPTIONS

OTHERS = 0.

p_path = zz_folder.

<b>file from application server</b>

1. F4_DXFILENAME_TOPRECURSION

This is the FM.

Reward points,if found useful

Read only

Former Member
0 Likes
812

Hi.

Use FM "GUI_FILE_SAVE_DIALOG". It may help u.

Award points, if helpful.

Regards.

Read only

Former Member
0 Likes
812

Thank u