Application Development 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: 

Macros with WORD.BASIC (MS WORD 2003)

Former Member
0 Kudos
217

Hi:

I have created a program linked with Microsoft Word with WORD.BASIC object. The program run correctly with MS Word 2002 executing all the methods

....

CREATE OBJECT h_word 'WORD.BASIC' LANGUAGE 'e'

CALL METHOD OF h_word 'APPSHOW' EXPORTING #1 = 'Microsoft Word'

CALL METHOD OF h_word 'FILENEW' EXPORTING #1 = file

CALL METHOD OF h_word 'TOOLSMACRO' EXPORTING

#1 'MACRO1'

#2 = 'RUN'.

....

my serious problem is that the macros include don´t run properly in Microsoft Office Word 2003. Can someone hep me with this issue, please?

Thanks in advance

Abel

2 REPLIES 2

athavanraja
Active Contributor
0 Kudos
109

check out the following function module.

RH_START_EXCEL_WITH_DATA

though this dosent deal with word, you can get the basic idea as to how to handle macro by following the code in this fm.

Regards

Raja

Former Member
0 Kudos
109

Hi,

Please check the Fucntion Group DSVAS_MSWORD. It has all the Function Modules related to MSWord interface with SAP.

Lokesh

(please reward appropriate points)