Hi folks,
I am trying to figure out a way by which i can integrate the SAP Desktop client with the browser. For example, i am looking at how to invoke the client with a particular context passed into it.
Can you please direct me to resources which show me how to do it? I hope this is the right forum for my question.
thanks,
Harsha
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi Harsha,
you could use SAP GUI Scripting to instantiate SAP GUI for Windows inside IE, and navigate to the transaction you want.
Best regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
That's exactly what I am looking for. I would like to open a SAP Win GUI session within an HTML page inside IE (but NOT using SAP Portal). The Win GUI session should be called from an SAP Business Server Page (or any HTML page), e.g. using ABAP, Java Script, or HTML. When calling a specific transactions I would like to pass through certain field values and fcodes. For example, open Win GUI with transaction SU01, pass along the value "myers" for the field "BNAME" and confirm entry screen with fcode "SHOW" to display the user data. I know how to do that with the ITS HTML GUI, but have no idea on how this works with the WIN GUI. Do you have some sample coding by any chance on how to do that?
Thanks, Bernd
Hello Bernd,
I hope you have a Portal avaliable. You can call the Application Integrator via this URL to do exactly what you want:
System=SystemAlias&
Technique=SSD&
TCode=SU01&
OkCode=SHOW&
GuiType=WinGUI&
ApplicationParameter=BNAME%3dmyers
The Parameter names are Case Sensitive. If you have more than one Application Parameter concaternate them with ";".
Regards
Gregor
Hi Bernd,
I've pasted a sample page below. There seems to be a problem in the current version of SAP GUI, where I get an error message about the resource DLL not being found. That will be investigated. The page used to work, I'm sure of that.
Best regards,
Christian
<!--
dim session
sub pageLoad
set connection = document.S1.OpenConnection("AL0 /INPLACE")
set session = connection.Children(0)
session.SendCommand("SU01")
end sub
Sub STARTGUI_OnClick
session.findById("wnd[0]/tbar[1]/btn[7]").press
End Sub
-->
Hello Gregor
I have tried to use your code but for some reason it will not execute
Here's the code I put in:
Is the ApplicationParameter supposed to be the log in to the Portal and you would use the 'User Mapping' to get to the backend system?
Hello Christian,
Thanks for the example coding. I tried it and especially like the possibility of displaying the WinGUI as an inplace in a Web page. That's great! Unfortunately I receive a GUI crash when executing it - I assume that's because of the DLL error you mentioned. Do you have suggestions on how to fix/overcome that problem?
Also once fixed, do you have any further information on the Active X control parameters in your example, e.g. it seems like there is a possibility to display the GUI without title bar by setting "TitleBarVisible" to 0. Is there any further documentation on this?
Thanks much, Bernd
Hi Bernd,
sorry I didn't notice your second question: SSO is enabled depending on the setting in the saplogon properties for the connection entry that you run.
If you disable it, SAP GUI will start with the login page, where you can enter the login data using script commands. Unfortunately this means you have to specify the password within your script, which is dangerous. So I suggest you stick to using SSO.
Or, you let the user do the login manually and then provide a button that takes the user to whatever transaction you want.
Best regards,
Christian
Hello Christian,
How would the URL need to be changed to access a system with "deactivated" SSO (for manual logon; or logon via script). What would have to be passed for the parameter "Technique" in such case. Thanks, Bernd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.