‎2007 Jul 05 1:22 PM
Hi,
Here in my programme there is one function module wa_querry.
But this is obsolete.
So pls tell me the replacement of thid FM.
Will the new one increase performance.
Thanks.
‎2007 Jul 05 1:25 PM
‎2007 Jul 05 1:26 PM
‎2007 Jul 05 1:29 PM
u can use the methods FILE_EXIST or DIRECTORY_EXIST of the class
CL_GUI_FRONTEND_SERVICES, depending on the query in WS_QUERY
if 'FE' : use FILE_EXIST
'DE': use DIRECTORY_EXIST.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
EXPORTING
FILE = W_FILENAME
RECEIVING
RESULT = W_RETURN
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
WRONG_PARAMETER = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2007 Jul 05 1:32 PM
Hi,
Check the Function group SFES.
Also check the Class CL_GUI_FRONTEND_SERVICES.
Regards,
Sesh