‎2010 Oct 07 12:01 PM
Hi,
i have developed a Function Module where in i need to down load data in to a PDF file. While downloading i need to give F4 help to user for selecting the path to where to store the file. I am able to get it with the fm DOWNLOAD but it is outdated now.
Can i know any other technique to give F4 help in a function module. Please note mine is not a report with selection screen. It is a FM from where i need to down load data into local system.
Regards,
Pavan Jhawar.
‎2010 Oct 07 12:16 PM
Refer to this Wiki Post : [F4 Help for Appl.Server & GUI Files using CL_RSAN_UT_FILES |http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=199984233]
Edit : Or You can refer to the Wiki related to Class CL_GUI_FRONTEND_SERVICES : [File, Directory Operations using CL_GUI_FRONTEND_SERVICES |http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=198738548]
‎2010 Oct 07 12:17 PM
Hi Pavan,
You can use method file_open_dialog of class cl_gui_frontend_services.
The file name will be in the field filename of the changing parameter file_table.
Hope it helps.
Sujay
‎2010 Oct 07 12:25 PM
I don't think we can have f4 for importing parameters in FM , you may specify a dafault value (e.g C:\) and this can be changed by the user.
‎2010 Oct 07 1:51 PM