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: 

Capturing SAP GUI patch level

Former Member
0 Kudos
294

Team,

I want to know how to capture SAP GUI patch level. I want to know where is this information in SAP.

The fm:

CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION 'SAPGUI'

IMPORTING rfcsi_export = internal_table.

(The fm only returns sapgui version as internal_table-rfcsaprl.)

Does anyone know a related fm for capturing Patch Level.

Thanks

Message was edited by: SAPna2000

1 ACCEPTED SOLUTION

Former Member
0 Kudos
166

1.Go to SM04

2.click on settings>Layout>current

3.Transfer GUI version from right pane to left pane.

4.You will see the GUI versions of all connected users.

regards

vivek

reward points for helpful answers

13 REPLIES 13

Former Member
0 Kudos
167

1.Go to SM04

2.click on settings>Layout>current

3.Transfer GUI version from right pane to left pane.

4.You will see the GUI versions of all connected users.

regards

vivek

reward points for helpful answers

0 Kudos
166

Thanks for your information.

I am looking for 'Patch Level' information. I am already getting the SAP GUI version thru the above fm.

We have over 500 users.

Thanks

Message was edited by: SAPna2000

0 Kudos
166

CL_GUI_FRONTEND_SERVICES=>GET_GUI_VERSION returns VERSION_TABLE, third record is patch level.

Regards

Sridhar

0 Kudos
166

HI Naved,

RFC_GET_SYSTEM_INFO

Regards,

ravi

0 Kudos
166

Thanks for your anwer.

I don't know how to use class.

in CLABAP tcode I entered CL_GUI_FRONTEND_SERVICES and executed.

could you give me a sample code. I want to save this info in a ztable.

Thanks

Message was edited by: SAPna2000

0 Kudos
166

Here's the code:

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

Sridhar

0 Kudos
166

Thanks.

I used SAPGUI as destination. I did not see Patch Level. What field contains Patch Level info.

Thanks

Naved

0 Kudos
166

Above code gives version, patch level info of SAP GUI installed on the user's pc, who is executing the code, no need of destination.

The method returns VERSION_TABLE, first line is GUI version, third line is patch level.

Regards

Sridhar

0 Kudos
166

Thanks.

I get Patch Level 0. I think which is incorrect. I have GUI 640. The following info is from system-->status screen (and then little icon 'Component info'). Please tell me what is my Patch Level? I think it is 0050. What do you think?

SAP_BASIS 620 0050

SAP_ABA 620 0050

SAP_APPL 470 0024

SAP_HR 470 0042

EA-IPPE 110 0006

PI 2004_1_470 0011

PI_BASIS 2005_1_620 0006

EA-FINSERV 110 0006

EA-GLTRADE 110 0006

EA-HR 110 0010

EA-PS 110 0006

EA-RETAIL 110 0006

BIZRDEE 100 0003

BIZRIGHT 230 0000

BP-R3PF 470V2 0000

ST-A/PI 01D_R3_470 0000

ST-PI 003C_620 0001

0 Kudos
166

The list shows app server components patch level, not GUI patch level.

0050 is patch level of component SAP_BASIS .

Regards

Sridhar

0 Kudos
166

Thanks.

My patch level indded is zero. Thanks for your code.

*******

By the way, I commented out

"cntl_error = 4

"error_no_gui = 5

"not_supported_by_gui = 6

because they give me errors 'does not exist'. What could be the reason.

Thanks

0 Kudos
166

Not sure, I've posted code from 640 system, all exceptions may not exist in your system, check it in SE24.

If the method is raising error, then you are not getting the actual patch level.

Add the following code after the method call:

call method cl_gui_cfw=>flush

exceptions

cntl_system_error = 1

cntl_error = 2.

Regards

Sridhar

Message was edited by: Sridhar K

0 Kudos
166

The method is not raising any error during execution. I am getting sytax error. When I comment out them I don't get any syntax error.

However, the code is working and I am getting correct Patch Level on different machines.

Thanks

Message was edited by: SAPna2000