Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.77 KB | None | 0 0
  1. DATA: lt_vtab  TYPE  filetable,
  2.       lt_vinfo TYPE file_table,
  3.       rc       TYPE i.
  4.  
  5. CALL METHOD cl_gui_frontend_services=>get_gui_version
  6.   CHANGING
  7.     version_table            = lt_vtab
  8.     rc                       = rc
  9.   EXCEPTIONS
  10.     get_gui_version_failed   = 1
  11.     cant_write_version_table = 2
  12.     gui_no_version           = 3
  13.     cntl_error               = 4
  14.     error_no_gui             = 5
  15.     not_supported_by_gui     = 6
  16.     OTHERS                   = 7.
  17. IF sy-subrc <> 0.
  18. * Implement suitable error handling here
  19. ENDIF.
  20.  
  21.  
  22. read table lt_vtab into lt_vinfo index 1.
  23. write:/ 'SAP GUI' , lt_vinfo.
  24. read table lt_vtab into lt_vinfo index 4.
  25. write:/ 'SAP GUI build' , lt_vinfo.
  26. read table lt_vtab into lt_vinfo index 3.
  27. write:/ 'SAP GUI patch' , lt_vinfo.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement