Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDS: error in GET_WORDPROCESSOR_INTERFACE

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Kudos
581

Hi Experts,

We are using Bussiness Document Services to populate data in MS word templates through program.

Last few days we have seen  sometimes method GET_WORDPROCESSOR_INTERFACE is not able to initialize the interface object  V_WHANDLE. Please see the code below: This error is coming randomly and many times restarting the system resolves the issue. We are accessing SAP and MS word application installed in a Citrix server.

  CALL METHOD V_PROXY->HAS_WORDPROCESSOR_INTERFACE

    IMPORTING

      IS_AVAILABLE = L_V_HAS.

  CALL METHOD V_PROXY->GET_WORDPROCESSOR_INTERFACE

    IMPORTING

      ERROR        = L_V_ERROR

      WP_INTERFACE = V_WHANDLE.

Please suggest any way to ensure GET_WORDPROCESSOR_INTERFACE works perfectly.

Thanks,

4 REPLIES 4
Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Kudos
549

Error was in some Citrix servers. It was not able to call MS Word application. Rebuilding user profile and server resolve the issue.

Read only

0 Kudos
549

Hi Alok Patra!

I'm having the same problem.

You have found the solution to this problem?

Thanks!!!

Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Kudos
549

Hi Rogerio,

As I mentioned in my earlier reply, in my case the error was in Citrix server. Both SAP and Word applications are executed in Citrix and due to some unknown reason, SAP was not able to invoke MS Word processor.

Citrix administrator rebuild the user profiles, refreshed the server and the issue was resolved.

You can do similar check in transaction OLE to ensure your SAP system is able to call MS applications. If you are running SAP through GUI installed in your PC, make sure MS Word is installed properly in that system.

Thanks,

Alok

Read only

0 Kudos
549

Hello Alok,

Thanks for the reply. I will do the tests according to the information.