cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP GUI Scripting - Check if program is been accessed by script

0 Likes
3,285

Hello all!

I need to check if a program is been accessed by user using some script.

Is it possible to check if a program is been executed using SAP GUI scripting?

Best regards,

Allan Cristian Barros Silva

View Entire Topic
0 Likes

Hi all,

Found it.

There is a method in CL_GUI_FRONTEND_SERVICES:

  DATA: li_result TYPE i.
  CALL METHOD cl_gui_frontend_services=>is_scripting_active
    RECEIVING
      result               = li_result
    EXCEPTIONS
      cntl_error           = 1
      not_supported_by_gui = 2
      error_no_gui         = 3
      OTHERS               = 4.

Result:

Thanks all

Regard,

Allan Cristian Barros Silva