2005 Nov 24 12:31 PM
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
2005 Dec 04 12:23 PM
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
2005 Dec 04 12:29 PM
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)