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

detect SAP client

OttoGold
Active Contributor
0 Likes
1,603

Dear sirs,

I hope you can help me with this: I have few reports with output into MS Word using ABAP OLE. That works just fine with SAP GUI. The problem is the number of my users work with the web GUI. When using web GUI I cannot work with OLE (at least I think so, how could SAP establish a connection with word through the browser, right?).

I need to hide the "print it into Word" icons so the users don´t get the error every time they try in web GUI. Does anybody know how can I detect which SAP client/ frontend the users are working with?

Thank you all, reagrds, Otto

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,131

Hi Otto,

We can use the function module



GUI_IS_ITS                     


If we are using GUI, it will return nothing, else if we are using browser/ITS then it will return X.

Hope this helps.

Regards,

Amit Mittal.

6 REPLIES 6
Read only

Former Member
0 Likes
1,132

Hi Otto,

We can use the function module



GUI_IS_ITS                     


If we are using GUI, it will return nothing, else if we are using browser/ITS then it will return X.

Hope this helps.

Regards,

Amit Mittal.

Read only

Former Member
0 Likes
1,131

HI,

Try using these FMs

TH_DISPLAY_USER_LIST

TH_DISPLAY_SERVER_LIST

TH_REMOTE_USER_LIST

TH_SERVER_LIST

TH_SYSTEMWIDE_USER_LIST

TH_USER_LIST

OR

RSPO_SERVER_GET_LIST

Hope these help

Regards,

Aditya

Read only

Former Member
0 Likes
1,131

heard about sy-mandt ??

Read only

0 Likes
1,131

Hi Soumya,

Just for information. SY-MANDT we cannot use to detect. Bcos from wherever we login (either gui or browser or any other front-end), we will always have a MANDT.

Regards,

Amit Mittal.

Read only

OttoGold
Active Contributor
0 Likes
1,131

Amit, thank you!! You´re 1) super fast 2) awesome!! )

Your FM works of course. But... can you possibly explain:if I go into this FM I find another FM which I call with some HTML constant. There is a constant for OLE in the list as well. If I call the inner FM with OLE paramater, I would expect to get "FALSE" answer (because my problem with OLE appeared using web GUI). But I get "TRUE" what I though means "capable of XY" (capable of OLE). Why did I missinterpret this? Or what that doesn´t work:))

Thank you again, Otto

Read only

Former Member
0 Likes
1,131

Hi again,

Not sure, but did you try calling from the browser or the gui itself.

If we call using GUI itslelf, then return = 'X' is understandable,

but if this was done using browser, then no ideas.

Regards,

Amit Mittal.