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

Function Module

Former Member
0 Likes
408

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.

4 REPLIES 4
Read only

Former Member
0 Likes
392

Hi.

I couldnt find any such FM.

any more information?

Read only

0 Likes
392

Sorry i have written wrong.

This is WS_QUERRY.

Read only

Former Member
0 Likes
392
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.
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
392

Hi,

Check the Function group SFES.

Also check the Class CL_GUI_FRONTEND_SERVICES.

Regards,

Sesh