logo
search
Office Apps Not Opening

How to Fix OLE Automation Errors in Word from SAP GUI

John WilsonJohn Wilson Oct 19, 2026 868 views

Question details

Users need to resolve an issue where Microsoft 365 blocks automated document generation from SAP GUI due to an OLE automation function error.

How to Fix OLE Automation Errors When Creating Word Documents from SAP GUI
Product
Microsoft Word (Microsoft 365)
Device & OS
not provided
Scenario
Generating or opening Microsoft Word documents automatically using OLE automation via SAP GUI.
Observed behavior
Microsoft 365 displays the error message 'You cannot control and use the OLE automation function' (LS0003) and fails to create the document. This issue specifically impacts Word version 2212.
Before you start

Verify your current Microsoft 365 version build by opening Word, clicking on 'File', and selecting 'Account'. This will help determine if you are on the affected version 2212.

Solution 1Recommended

Update Microsoft 365 to Version 2302 or Later

The OLE automation issue was permanently resolved by Microsoft in version 2302. Updating your Office suite is the most effective and recommended solution.

1
Open Word Account Settings

Launch Microsoft Word. Click on 'File' in the top-left corner, then select 'Account' from the bottom-left menu.

2
Access Update Options

Locate the 'Product Information' section and click on the 'Update Options' dropdown button next to 'Office Updates'.

3
Update Now

Select 'Update Now' from the dropdown menu. Microsoft 365 will check for and install the latest updates. Ensure it installs version 2302 or newer, then restart Word and SAP GUI to test the OLE automation.

Update Microsoft 365 to Version 2302 or Later
Update Verification: Once the update is complete, verify under the 'About Word' section that your build number reflects version 2302 or higher.
Free Microsoft Office alternative

Experience Seamless Document Creation with WPS Office

If frequent Office updates and OLE automation errors disrupt your workflow, consider using WPS Office. It is a highly stable, lightweight office suite that handles Word documents smoothly without the bloat.

  1. 1. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
  2. 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to set up the office suite.
  3. 3. Open Your Documents: Launch WPS Writer to seamlessly open, edit, and save your existing Word documents.
Completely free and lightweight office suiteExcellent compatibility with Microsoft Word (.docx) formats and filesFamiliar user interface for immediate productivityStable performance without frequent update-breaking bugs
microsoft office alternative - wps office

Frequently Asked Questions

What is the OLE automation error (LS0003) in SAP GUI?

This error occurs when SAP GUI attempts to control Microsoft Word to generate a document, but Word's security or a software bug blocks the OLE (Object Linking and Embedding) automation request. It became prominent in Office 365 version 2212.

How do I check my current Microsoft Word version?

Open Microsoft Word, click on the 'File' tab in the top-left corner, and select 'Account' at the bottom. Your current version and build number will be displayed under the 'About Word' section.

Is downgrading Microsoft 365 safe?

Downgrading is generally safe as a temporary workaround for specific bugs. However, running older versions means you may miss out on recent security patches, so you should update to the latest version (like 2302) as soon as the specific bug is patched.