Application Development 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: 

regarding WS_QUERY function

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

andreas_mann3
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi ,

Did you get any solution for the FM ws_query.

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

Regards,

Lakshmi.