‎2006 Sep 06 8:21 PM
Hi all,
I have doubts about these function modules (see in parenthesis)
ws_filename_get (to get the file name at ...?)
ws_query (to get file size and environment variables from the presentation server to the ...?)
upload and download (what are the new function modules used in place of these (I know they are obsolete now)
what is the Object oriented equivalents of these functions?
Thanks.
Charles.
++++++++++++++++++++++++++++++++++++
‎2006 Sep 06 8:23 PM
Check out the methods available in the class
CL_GUI_FRONTEND_SERVICES (tcode SE24)
~Suresh
‎2006 Sep 06 8:23 PM
Check out the methods available in the class
CL_GUI_FRONTEND_SERVICES (tcode SE24)
~Suresh
‎2006 Sep 06 8:27 PM
‎2006 Sep 06 8:29 PM
Hi Charles,
The equalent function modules in object oriented for
WS_FILENAME_GET ---> CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
WS_QUERY ---> CL_GUI_FRONTEND_SERVICES=>EXECUTE
UPLOAD is combination of these two function modules
CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG with CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
DOWNLOAD is combination of these two function modules
CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
Thanks,
Vinay
‎2006 Sep 06 8:35 PM
hi charles,
you could call the below methods
<b>CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD.</b>
Cheers,
Abdul Hakim
‎2006 Sep 06 10:05 PM
Hello Charles
With respect to unicode you should exclusively use the ABAP-OO approach (i.e. CL_GUI_FRONTEND_SERVICES) because the function modules (e.g. GUI_UPLOAD/GUI_DOWNLOAD) are not unicode-enabled.
Regards
Uwe
‎2006 Sep 07 1:25 PM
Nobody answered my first two questions.. I rephrase as below:
1)What is the use of ws_filename_get? Please be specific in your answer, about where the file resides: application server, presentation server or the ABAP program.
2)What is the use of ws_query? Please be specific in your answer, about where the file resides: application server, presentation server or the ABAP program.
How can GUI_UPLOAD be a substitute of Upload? It is a substitute of WS_UPLOAD as upload is used to transfer data from presentation server to the ABAP program, whereas the other two are used to get it from presentation server to the application server.
Thanks,
Charles.
+++++++++++++++++++++++++++++
‎2006 Sep 07 1:28 PM
Hi charles,
1. What is the use of ws_filename_get
Its just like FILE OPEN DIALOG Box,
for selecting a file,
FROM FRONT-END COMPUTER.
2. What is the use of ws_query
Suppose you want to know
what is the current working directory
(in the front-end computer)
ie. Basically if we want to know
some settings/environment variables
on the front-end computer,
we can use this FM.
regards,
amit m.
‎2006 Sep 07 1:57 PM
<i>(1)What is the use of ws_filename_get? Please be specific in your answer, about where the file resides: application server, presentation server or the ABAP program.</i>
It is simply providing an interface for the user to choose a filename which resides on the frontend PC(presentation server). As suggested already, this has been replaced with FILE_OPEN_DIALOG method of the class CL_GUI_FRONTEND_SERVICES.
<i>2)What is the use of ws_query? Please be specific in your answer, about where the file resides: application server, presentation server or the ABAP program.</i>
Again, already answered, this has been replace by multiple more specific methods of the same class mentioned above.
<i>How can GUI_UPLOAD be a substitute of Upload? It is a substitute of WS_UPLOAD as upload is used to transfer data from presentation server to the ABAP program, whereas the other two are used to get it from presentation server to the application server.</i>
They all transafer data from the presentation to your application. They are all interchangable(in a sense), but you should be using the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES.
Regards
Rich Heilman