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

Replacement for WS_QUERY

Former Member
0 Likes
720

Hi,

Currently i am using the FM 'WS_QUERY' and passing Query as 'WS' for check the existence of windows system. But i am doing in ECC 6.0 and this FM is obsolete, so which FM replaces the above said one. I want to check for windows existence only and passing Query field only.

Waiting for your replies.

Regards,

Bujji

4 REPLIES 4
Read only

Former Member
0 Likes
636

hi,

Ths replacement for the FM WS_QUERY is CL_GUI_FRONTEND_SERVICES

Hope this helps, Do reward

Read only

Former Member
0 Likes
636

Hello,

GUI_GET_DESKTOP_INFO replaces ws_query

**************Reward points if found useful

Read only

Former Member
0 Likes
636

Hi,

the FM WS_QUERY is replaced with GUI_GET_DESKTOP_INFO in ECC6.

Also click below to check for other FM updates in ECC6.

[http://www.erpgenie.com/abap/functions.htm]

Regards,

Balaram D

Read only

Former Member
0 Likes
636

Check the method CL_GUI_FRONTEND_SERVICES=>GET_PLATFORM.

Sample code:


  data: platform type i.

  platform = CL_GUI_FRONTEND_SERVICES=>GET_PLATFORM( ).

  case platform.
    when CL_GUI_FRONTEND_SERVICES=>PLATFORM_WINDOWS95.
      write: / 'Windows 95'.
      write: / 'GET_PLATFORM test OK.'.
    when CL_GUI_FRONTEND_SERVICES=>PLATFORM_WINDOWS98.
      write: / 'Windows 98'.
      write: / 'GET_PLATFORM test OK.'.
    when CL_GUI_FRONTEND_SERVICES=>PLATFORM_NT351.
      write: / 'Windows NT 3.51'.
      write: / 'GET_PLATFORM test OK.'.
    when CL_GUI_FRONTEND_SERVICES=>PLATFORM_NT40.
      write: / 'Windows NT 4.0'.
      write: / 'GET_PLATFORM test OK.'.
    when CL_GUI_FRONTEND_SERVICES=>PLATFORM_NT50.
      write: / 'Windows 2000'.
      write: / 'GET_PLATFORM test OK.'.
    WHEN CL_GUI_FRONTEND_SERVICES=>PLATFORM_UNKNOWN.
      write: / 'Platform unknown'.
      write: / 'GET_PLATFORM test OK.'.
    WHEN OTHERS.
      write: / 'GET_PLATFORM test failed.'.
  endcase.

Following are the attributes returned by the get_platform method.


PLATFORM_UNKNOWN
PLATFORM_WINDOWS95
PLATFORM_WINDOWS98
PLATFORM_NT351
PLATFORM_NT40
PLATFORM_NT50
PLATFORM_MAC
PLATFORM_OS2
PLATFORM_LINUX
PLATFORM_HPUX
PLATFORM_TRU64
PLATFORM_AIX
PLATFORM_SOLARIS
PLATFORM_MACOSX
PLATFORM_WINDOWSXP

For more details check the documentation of the class CL_GUI_FRONTEND_SERVICES.

Hope this helps. Reward points if helpful.

Thanks,

Balaji