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

classes CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_GUI_VERSION

Former Member
0 Likes
740

hi,

anyone used the class CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_GUI_VERSION?

if so, can you send the code?

thanks

3 REPLIES 3
Read only

Former Member
0 Likes
568

Check the sample code

REPORT  ZTEST.

data: version type FILETABLE,
      rc type i.

cl_gui_frontend_services=>get_gui_version(
  CHANGING
    version_table            = version
    rc                       = rc
  EXCEPTIONS
    GET_GUI_VERSION_FAILED   = 1
    CANT_WRITE_VERSION_TABLE = 2
    GUI_NO_VERSION           = 3
    CNTL_ERROR               = 4
    ERROR_NO_GUI             = 5
    NOT_SUPPORTED_BY_GUI     = 6
       ).
IF sy-subrc <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Read only

Former Member
0 Likes
568

helpful

Read only

0 Likes
568

Hi,

Please check these threads

Hope this would help you.

Good luck

Narin