cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating SAP Win GUI with a browser

02-23-2005 8:56 PM
2052 views 15 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

Hi,

I hope its not too late to post to this topic. Following Christian's example I have successfully embedded the wingui activex using the '/INPLACE' switch.

The first time the page is loaded all is well, however navigating away from the page and then reloading it results in some very unpleasant display problems.

Essentially on subsequent reloads the 'inplace' gui is displayed with a windows title bar and border entitled something like 'SapguiScriptingCtrlWnd'. The window is parented by the Internet Explorer window and can be moved, maximized or minimized within the browser as if it were an mdi child. This also results in some painting/refresh problems when one clicks around the gui.

Interestingly if the url is a local file then this problem doesn't occur but anything starting with http:// exhibits the problem. I thought it may be related to internet security zones but I have the same settings for 'local intranet' and 'my computer' and it doesn't make any difference. Does anyone have any ideas on what may be causing this?

Thanks in advance,

Daniel Dorosz.

Christian_Cohrs1
Product and Topic Expert
Product and Topic Expert
0 Likes

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

0 Likes

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

gregorw
SAP Mentor
SAP Mentor
0 Likes

Hello Bernd,

I hope you have a Portal avaliable. You can call the Application Integrator via this URL to do exactly what you want:

http://your.portal.server:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.Trans...?

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

Christian_Cohrs1
Product and Topic Expert
Product and Topic Expert
0 Likes

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

-->

Former Member
0 Likes

Hello Gregor

I have tried to use your code but for some reason it will not execute

Here's the code I put in:

http://idesportalnws3.wdf.sap.corp:1080/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator....

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?

Former Member
0 Likes

Hi Christian

Did you ever get a chance to go back and see what was wrong with this?

Thanks,

Tony

gregorw
SAP Mentor
SAP Mentor
0 Likes

Hello Anthony,

no, the Parameter "ApplicationParameter" is used to fill the fields in the Called Dynpro. You have to provide the Field names. Authentication is done via SSO.

Regards

Gregor

0 Likes

Hello Gregor,

Is there a way to deactivate SSO and instead pass the logon credentials via the URL?

Thanks, Bernd

0 Likes

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

Christian_Cohrs1
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Bernd,

I also saw the crash, and we will try to fix this with the next patch for SAP GUI.

The documentation is currently being updated for SAP GUI 6.40. I'll make sure these properties will also be documented.

Best regards,

Christian

Christian_Cohrs1
Product and Topic Expert
Product and Topic Expert
0 Likes

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

0 Likes

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

http://idesportalnws3.wdf.sap.corp:1080/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator....

gregorw
SAP Mentor
SAP Mentor
0 Likes

Hi Bernd,

as Christian mentioned, the SSO Setting is not done via the Application Integrator Link it is maintained in the System which you have specified in the System Parameter. Go to the Portal System Administration an have a look what is maintained there.

Regards

Gregor

gregorw
SAP Mentor
SAP Mentor
0 Likes

Hello Harsha,

if you are using the SAP Enterprise Portal you can have a look on my Weblog <a href="/people/gregor.wolf3/blog/2004/08/25/create-sap-transaction-iview-using-sapgui-for-windows SAP Transaction iView using SAPGUI for Windows</a>.

Regards

Gregor