‎2005 Oct 20 6:28 AM
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.
‎2005 Oct 20 6:45 AM
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.
‎2005 Oct 20 7:37 AM
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
‎2007 Mar 20 9:01 AM
Hi ,
Did you get any solution for the FM ws_query.
if so , please let me know the replacement method used.
Regards,
Lakshmi.