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

regarding WS_QUERY function

Former Member
0 Likes
545

HEY GUYS,

i have used old func module as below.

CALL FUNCTION WS_QUERY

exporting

QUERY = XP

IMPORTING

RETURN = XXL_DIR

CALL FUNCTION WS_QUERY

exporting

QUERY = ws

IMPORTING

RETURN = win_sys

now i want the same functionality replacement in 4.7

can u sugest me both equavalent one.

regards

ambichan.

3 REPLIES 3
Read only

Former Member
0 Likes
516

You can use methods of class CL_GUI_FRONTEND_SERVICES.

In SE38 -> click on patterns -> ABAP Object patterns .

Next screen in the Class / Interface put CL_GUI_FRONTEND_SERVICES. Next do an F4 on methods . Here you will find a lot of methods which may be useful.

GET_PLATFORM is to get the operating system.

Cheers.

Read only

andreas_mann3
Active Contributor
0 Likes
516

Hi ambi,

try:


  CALL METHOD cl_gui_frontend_services=>directory_list_files
    EXPORTING
      directory                   = directory
    CHANGING
      file_table                  = ftab
      count                       = z.
*don't forget:
CALL METHOD cl_gui_cfw=>flush.

Andreas

Read only

Former Member
0 Likes
516

Hi ,

Did you get any solution for the FM ws_query.

if so , please let me know the replacement method used.

Regards,

Lakshmi.