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

Getting the SAPGUI versin via ABAP code

yes_sapteam
Participant
0 Likes
1,128

Hi.

I know there is a User-exit that is executed during the login and can be used to ban users.

I'm looking for a way to tell the SAPGUI version during this User-exit.

Thanks everybody.

ayal.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,065

Hi Ayal,

Try this


REPORT  YCHATEST                                .


DATA : VER(10).

CALL FUNCTION 'DSVAS_RPGEN_SAPGUI_VERSION_GET'
  IMPORTING
    PF_VERSION = VER.

WRITE : VER.

Hi.

I know there is a User-exit that is executed during the login and can be used to ban users.

I'm looking for a way to tell the SAPGUI version during this User-exit.

Thanks everybody.

ayal.

7 REPLIES 7
Read only

Sm1tje
Active Contributor
0 Likes
1,065

CL_GUI_FRONTEND_SERVICES=>GET_GUI_PROPERTIES.

sorry should be:

CL_GUI_FRONTEND_SERVICES=>GET_GUI_VERSION

Edited by: Micky Oestreich on Apr 3, 2008 1:43 PM

Read only

0 Likes
1,065

I don't have this Method in my 4.6c version.

Thank you.

Read only

Former Member
0 Likes
1,065

hi,

GUI_GET_DESKTOP_INFO – Returns information about the end-users desktop

Hope this helps, Do reward.

Read only

Former Member
0 Likes
1,065

Hi,

try this:

DATA: VTABLE TYPE TABLE OF FILE_TABLE.

DATA: RC LIKE SY-SUBRC.

*

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_GUI_VERSION

CHANGING

VERSION_TABLE = VTABLE

RC = RC.

*

Regards, Dieter

Read only

0 Likes
1,065

Hi Dieter.

I don't have this Method in my version.

Thank you.

Read only

Former Member
0 Likes
1,066

Hi Ayal,

Try this


REPORT  YCHATEST                                .


DATA : VER(10).

CALL FUNCTION 'DSVAS_RPGEN_SAPGUI_VERSION_GET'
  IMPORTING
    PF_VERSION = VER.

WRITE : VER.

Read only

0 Likes
1,065

Dear Chandrasekhar.

It worked.

Thanks.