Skip to Content
avatar image
Former Member

Why does not work OLE2 on ITS?


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

ITS program work, but with some restriction.

Does not work or not show:




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?

Classical, HTML business or WebGUI?

Thank you

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

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


    OLE is a limitation of the ITS.

    See the note:

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



    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


    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