cancel
Showing results for 
Search instead for 
Did you mean: 

Why does not work OLE2 on ITS?

Former Member
0 Kudos

Hi

I created SAP module pool program with OLE2. This program read data from control and set into word template - create word document. This program work perfect.

I generated ITS program from my module pool using this manual

http://www.riyaz.net/sap/developing-web-transactions-in-its-part-i/434/

ITS program work, but with some restriction.

Does not work or not show:

OLE2

MESSAGE

SEARCH HELP

Can you help me how solve these prolems?

It is possible work OLE with ITS?

How template it is perfects for work with dynamics data?

http://help.sap.com/saphelp_nw04s/helpdata/en/70/57950ca7c611d3961700a0c94260a5/content.htm

Classical, HTML business or WebGUI?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

former_member194364
Active Contributor
0 Kudos

Hi,

OLE is a limitation of the ITS.

See the note:

314568 SAP GUI for HTML functionality / Limitations / Sp. Behaviour

Regards,

Oisin

Former Member
0 Kudos

Hi Oisin ONidh

And is possible use JavaScript or VBscript in ITS?

Thank you

Answers (1)

Answers (1)

Former Member
0 Kudos

I check code what give an error and:

this part

CREATE OBJECT gs_app 'WORD.APPLICATION'.


SY-SUBRC -> 2


CREATE OBJECT in OLE2 sets SY-SUBRC to 0 if an external object could be created, otherwise to 1, 2, or 3, depending on the cause.


OLE2 Automation, executed successfully, otherwise 1, 2, 3, or 4, depending on the cause of the error.


SY-SUBRC = 2:  SAP GUI function call error. The front-end ports of SAP’s OLE implementation modules are implemented only under Microsoft Windows and Apple Macintosh.