Skip to Content
avatar image
Former Member

Why does not work OLE2 on ITS?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 08, 2014 at 02:58 PM

    Hi,

    OLE is a limitation of the ITS.

    See the note:

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

    Regards,

    Oisin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2014 at 12:44 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded