How to Fix OLE Automation Errors in Word from SAP GUI
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.

- 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.
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.
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.
Launch Microsoft Word. Click on 'File' in the top-left corner, then select 'Account' from the bottom-left menu.
Locate the 'Product Information' section and click on the 'Update Options' dropdown button next to 'Office Updates'.
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.

Downgrade Microsoft 365 to Version 2211 (Workaround)
If you are unable to install the latest update immediately, you can temporarily downgrade Word to version 2211 where the OLE automation function works normally.
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. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
- 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to set up the office suite.
- 3. Open Your Documents: Launch WPS Writer to seamlessly open, edit, and save your existing Word documents.

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.




