cancel
Showing results for 
Search instead for 
Did you mean: 

Error during initialization of SAP HTML control

david_fryda2
Participant
0 Kudos

Hi everyone,

I am trying from the portal to call a transaction which there is an HTML controller.

From the SAP GUI, everything works fine.

But if I try to call the transaction from the portal, I get the error message "Error during initialization of SAP HTML control".

I call the transaction in portal with an iView of type SAP Transaction.

Can someone help ?

Thank you.

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

former_member194364
Active Contributor
0 Kudos

Hi David,

Can you call the transaction from WEBGUI service?

Test the WEBGUI from transaction "SICF" (if you are using Integrated ITS)

Whats the name of the transaction?

Regards,

Oisin

david_fryda2
Participant
0 Kudos

Hi Oisin,

I do not know what is the WEBGUI...

The transaction is FO37.

In the tab "USER FIELDS", I added a new TAB in which I display a map (GIS) using HTML CONTROL.

In portal, In enter in System Administration->Support->SAP Application->SAP Transaction and do the test.

Regards,

Thanks

former_member194364
Active Contributor
0 Kudos

Hi David,

If you are calling a SAP Transaction iView - then I would presume it is using the WEBGUI service of the WAS that you are connecting too?

On that WAS - goto transaction SICF and search for "WEBGUI" - then right click on the WEBGUI tree node and select "Test Service" this will launch the WEBGUI service in the Browser - then from here logon again and call transaction FO37 from the OKFieldCode.

Regards,

Oisin

david_fryda2
Participant
0 Kudos

Hi Oisin,

Thanks for making me discover the WEBGUI.

I did run the "Test Service" from the WEBGUI tree node.

When executing the transaction from within the browser, I got the same message about the SAP HTML control.

So, maybe there is no way of displaying HTML using the SAP HTML control from the WEBGUI ?

Thanks,

Regards.

former_member194364
Active Contributor
0 Kudos

Hi David,

Do you have an IGS on this WAS? Will need it to display a GIS graphic via WEBGUI, you will also need to have the BWGIS interpreter.

See:

[Internet Graphics Service|http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=A1D9883672D57C73E10000009B38F889&TMP_IWB_TASK=PREVIEW2&RELEASE=692&LANGUAGE=EN&_SEQNUM=2&_LOIO=1786C039C7811F11E10000000A114084&_CLASS=IWB_EXTHLP]

Call transaction /nSIGS to see if you have an IGS running.

Regards,

Oisin

david_fryda2
Participant
0 Kudos

Hi Oisin,

I have an IGS working.

In the SIGS transaction, I run that transaction with "IGS_RFC_DEST" as RFC Destination.

It displays me the SAP Internet Graphic Service with charts.

Does it mean that I can display HTML Control ?

Thanks,

Regards.

former_member194364
Active Contributor
0 Kudos

Hi,

What IGS version is being used here? What is the Kernel version of your WAS?

RE your GIS image:

See the section (from the previous link)

"

Geographical map interpreter

BWGIS is a Geographical Information System solution for the Business Information Warehouse and generates geographical maps in order to present the dependencies between business and spatial data. It uses ABAP table based data (BW 3.x) and XML based data (BI 7.0).

"

Is this the type of GIS image that you are using?

Regards,

Oisin

david_fryda2
Participant
0 Kudos

Hi Oisin,

Everything works fine!

Thanks for all the precious information that help me in this issue.

In fact, the code I used was working fine in SAP GUI but not in WEBGUI.

I debugged the SIGS transacton and looked at their code and write my own in the same way.

Here is a sample of that code for anyone who is interested.


 DATA: g_html_control TYPE REF TO cl_gui_html_viewer,
          g_url          TYPE w3url,
          g_type         TYPE char32 VALUE 'text',
          g_subtype      TYPE char32,
          g_html         TYPE w3htmltabtype,
          gr_ccontainer TYPE REF TO cl_gui_custom_container .

IF g_html_control IS INITIAL.
*   create hmtl control
      CREATE OBJECT gr_ccontainer
        EXPORTING
          container_name = 'HTML_CONTAINER'.   "create a container in LAYOUT

      CREATE OBJECT g_html_control
        EXPORTING
          parent = gr_ccontainer.
    ENDIF.

g_url = 'http://www.sdn.sap.com/irj/sdn'.
CALL METHOD g_html_control->show_url
        EXPORTING
          url = g_url.

Thanks!

Best Regards.

Answers (0)