‎2010 Jan 07 12:44 PM
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
‎2010 Jan 07 12:48 PM
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.
‎2010 Jan 07 12:48 PM
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.
‎2010 Jan 07 1:02 PM
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
‎2010 Jan 07 1:11 PM
‎2010 Jan 07 1:13 PM
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.
‎2010 Jan 07 1:33 PM
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
‎2010 Jan 07 1:39 PM
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.