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: 

Find SAPGui patch level from Appl Server

former_member194669
Active Contributor
0 Kudos

Hi,

I have requirement to write a program to find what will be patch level applied in the each presentation server that login into server.

This will be my requirement. We have around 6000 terminals, some of terminals giving short dump in server due to non applying of latest GUI patch in the presentation server, requirement is to find what will be patch level of presentation server from application server.

I like to know whether it is possible to find what will be patch level applied in the

presentation server from Application server.

Thanks

aRs

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this FM RFC_GET_SYSTEM_INFO.

Also you can use class CL_GUI_FRONTEND_SERVICES=>GET_GUI_VERSION.


data: v_tab type  filetable,
      v_info type file_table,
      rc type i.
 
call method cl_gui_frontend_services=>get_gui_version
  changing
    version_table            = v_tab
    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
    others                   = 7.
if sy-subrc <> 0.
  message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
  read table v_tab into v_info index 3.
  write:/ 'Patch level:', v_info(2).
endif.

Regards,

Ferry Lianto

3 REPLIES 3

Former Member
0 Kudos

Hi,

The class CL_GUI_FRONTEND_SERVICES has the method GET_GUI_VERSION..which would be good for your requirement..

Thanks,

Message was edited by:

Deepu Venugopal

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this FM RFC_GET_SYSTEM_INFO.

Also you can use class CL_GUI_FRONTEND_SERVICES=>GET_GUI_VERSION.


data: v_tab type  filetable,
      v_info type file_table,
      rc type i.
 
call method cl_gui_frontend_services=>get_gui_version
  changing
    version_table            = v_tab
    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
    others                   = 7.
if sy-subrc <> 0.
  message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
  read table v_tab into v_info index 3.
  write:/ 'Patch level:', v_info(2).
endif.

Regards,

Ferry Lianto

Former Member
0 Kudos

Have you got a solution for your problem. We are planning for insallation sever setup thereby we can distribute GUI via SMS server to n number of pc and the same way could upgrade patches.

1) Any experince on the installation server is appreciated.

2) How about the getting new patches to end user pc when the GUI installation server updated with new patches, pros & cons are appreciated.

Thanks,

Selva