<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Microsoft word in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280708#M152677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Since you are already using I_OI_DOCUMENT_PROXY, i assume you are familiar with the classes and interfaces provided by sap for office integration. They are all part of development class sofficeintegration.&lt;/P&gt;&lt;P&gt;Anyways, there is a class in the same development class called C_OI_AUTOMATION_OBJECT. It has a method which can be used to call methods for the intance objects. It is CALL_OBJECT_METHOD. You can use this to call the insert method of Word. The method is "InsertBreak" and should be with parameter "wdPageBreak" &lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2006 06:56:06 GMT</pubDate>
    <dc:creator>Rashid_Javed</dc:creator>
    <dc:date>2006-04-10T06:56:06Z</dc:date>
    <item>
      <title>Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280700#M152669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been asking to create a document word using ABAP programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the interface I_OI_DOCUMENT_PROXY.&lt;/P&gt;&lt;P&gt;The question is how can I insert a "new page" in the document word ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 04:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280700#M152669</guid>
      <dc:creator>david_fryda2</dc:creator>
      <dc:date>2006-04-10T04:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280701#M152670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check transaction code &amp;lt;b&amp;gt;OLE&amp;lt;/b&amp;gt; and click on Start (Word) or execute program &amp;lt;b&amp;gt;RSOLETT1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 04:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280701#M152670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T04:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280702#M152671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Herewith i am sending one report,i hope this will help you to solve your probelm.&lt;/P&gt;&lt;P&gt;  1 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  2 *   INCLUDE ZIOIEXCEL                                                  *&lt;/P&gt;&lt;P&gt;  3 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  4 * Instantiates the control framework using i_oi_document factory.&lt;/P&gt;&lt;P&gt;  5 * Excapsulates SAP Office Integration specific functionality.  Uses the&lt;/P&gt;&lt;P&gt;  6 * i_oi_document_proxy class to create the document link then&lt;/P&gt;&lt;P&gt;  7 * uses the i_oi_table collection for transporting SAP internal tables&lt;/P&gt;&lt;P&gt;  8 * from the server to the client for display in the active document&lt;/P&gt;&lt;P&gt;  9 * server.&lt;/P&gt;&lt;P&gt; 10 &lt;/P&gt;&lt;P&gt; 11 INCLUDE &amp;lt;CTLDEF&amp;gt;.                "General Definitions For Controls (CET)&lt;/P&gt;&lt;P&gt; 12 * Platform- and application-indep. Office integration&lt;/P&gt;&lt;P&gt; 13 INCLUDE OFFICEINTEGRATIONINCLUDE.&lt;/P&gt;&lt;P&gt; 14 &lt;/P&gt;&lt;P&gt; 15 CLASS COIEXCEL DEFINITION.  "Excel DOI wrapper class&lt;/P&gt;&lt;P&gt; 16   PUBLIC SECTION.&lt;/P&gt;&lt;P&gt; 17 &lt;/P&gt;&lt;P&gt; 18 * Create the control framework and returns a document proxy interface&lt;/P&gt;&lt;P&gt; 19   METHODS: CONSTRUCTOR,&lt;/P&gt;&lt;P&gt; 20 * Clean up routine&lt;/P&gt;&lt;P&gt; 21            DESTROY.&lt;/P&gt;&lt;P&gt; 22 * Catch the on_close event to process cleanup&lt;/P&gt;&lt;P&gt; 23   METHODS: ON_CLOSE_DOCUMENT&lt;/P&gt;&lt;P&gt; 24              FOR EVENT ON_CLOSE_DOCUMENT OF I_OI_DOCUMENT_PROXY.&lt;/P&gt;&lt;P&gt; 25   METHODS: CREATEDOCUMENT   "Not used&lt;/P&gt;&lt;P&gt; 26              IMPORTING S_DOCTITLE TYPE C&lt;/P&gt;&lt;P&gt; 27              EXPORTING RETCODE TYPE T_OI_RET_STRING.&lt;/P&gt;&lt;P&gt; 28   METHODS: OPENDOCUMENT&lt;/P&gt;&lt;P&gt; 29              IMPORTING FILEURL TYPE C&lt;/P&gt;&lt;P&gt; 30              EXPORTING RETCODE TYPE T_OI_RET_STRING.&lt;/P&gt;&lt;P&gt; 31   METHODS: TRANSFERTABLE&lt;/P&gt;&lt;P&gt; 32               IMPORTING S_TABLENAME TYPE C&lt;/P&gt;&lt;P&gt; 33               EXPORTING RETCODE TYPE T_OI_RET_STRING&lt;/P&gt;&lt;P&gt; 34               CHANGING I_TAB TYPE TABLE.&lt;/P&gt;&lt;P&gt; 35   METHODS: LAUNCHSE16 IMPORTING C_TBLNAME TYPE C&lt;/P&gt;&lt;P&gt; 36                                 C_FILEPATH TYPE C&lt;/P&gt;&lt;P&gt; 37                       CHANGING  TBL_TAB TYPE TABLE.&lt;/P&gt;&lt;P&gt; 38   PRIVATE SECTION.&lt;/P&gt;&lt;P&gt; 39   DATA:&lt;/P&gt;&lt;P&gt; 40     H_FACTORY TYPE REF TO I_OI_DOCUMENT_FACTORY,&lt;/P&gt;&lt;P&gt; 41     H_TABLES TYPE REF TO I_OI_TABLE_COLLECTION,&lt;/P&gt;&lt;P&gt; 42     H_DOCUMENT TYPE REF TO I_OI_DOCUMENT_PROXY,&lt;/P&gt;&lt;P&gt; 43     S_RETCODE TYPE T_OI_RET_STRING,&lt;/P&gt;&lt;P&gt; 44     S_FILEURL(256) TYPE C,&lt;/P&gt;&lt;P&gt; 45     S_DOCURL(256) TYPE C.&lt;/P&gt;&lt;P&gt; 46 &lt;/P&gt;&lt;P&gt; 47 ENDCLASS.&lt;/P&gt;&lt;P&gt; 48 &lt;/P&gt;&lt;P&gt; 49 CLASS COIEXCEL IMPLEMENTATION.&lt;/P&gt;&lt;P&gt; 50   METHOD CONSTRUCTOR.&lt;/P&gt;&lt;P&gt; 51 *----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt; 52 *  For external execution we simply use the factory class.  (vs 4.5)&lt;/P&gt;&lt;P&gt; 53 *&lt;/P&gt;&lt;P&gt; 54 *----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt; 55 DATA: DOCUMENT_EXCEL TYPE SOI_DOCUMENT_TYPE&lt;/P&gt;&lt;P&gt; 56                  VALUE SOI_DOCTYPE_EXCEL97_SHEET.&lt;/P&gt;&lt;P&gt; 57 &lt;/P&gt;&lt;P&gt; 58     CALL FUNCTION 'CONTROL_INIT'   "Initialize the control framework&lt;/P&gt;&lt;P&gt; 59          EXCEPTIONS&lt;/P&gt;&lt;P&gt; 60               CONTROL_INIT_ERROR = 1&lt;/P&gt;&lt;P&gt; 61               OTHERS             = 2.&lt;/P&gt;&lt;P&gt; 62 * Starting point - get a reference to the control framework&lt;/P&gt;&lt;P&gt; 63     call method c_oi_factory_creator=&amp;gt;get_document_factory&lt;/P&gt;&lt;P&gt; 64          exporting factory_type = 'OLE'&lt;/P&gt;&lt;P&gt; 65          IMPORTING FACTORY = H_FACTORY&lt;/P&gt;&lt;P&gt; 66                    RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt; 67     call method c_oi_errors=&amp;gt;show_message exporting type = 'E'.&lt;/P&gt;&lt;P&gt; 68 * DOI Container object creation&lt;/P&gt;&lt;P&gt; 69     CALL METHOD H_FACTORY-&amp;gt;START_FACTORY&lt;/P&gt;&lt;P&gt; 70          EXPORTING R3_APPLICATION_NAME = 'SAP-Excel DOI'&lt;/P&gt;&lt;P&gt; 71                    REGISTER_ON_CLOSE_EVENT = 'X'&lt;/P&gt;&lt;P&gt; 72          IMPORTING RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt; 73 * Get a reference to the document proxy&lt;/P&gt;&lt;P&gt; 74     CALL METHOD H_FACTORY-&amp;gt;GET_DOCUMENT_PROXY&lt;/P&gt;&lt;P&gt; 75       EXPORTING DOCUMENT_TYPE = DOCUMENT_EXCEL&lt;/P&gt;&lt;P&gt; 76       IMPORTING DOCUMENT_PROXY = H_DOCUMENT&lt;/P&gt;&lt;P&gt; 77             RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt; 78     CALL METHOD C_OI_ERRORS=&amp;gt;SHOW_MESSAGE&lt;/P&gt;&lt;P&gt; 79                             EXPORTING TYPE = 'E'.&lt;/P&gt;&lt;P&gt; 80 * Register the on_close event&lt;/P&gt;&lt;P&gt; 81    SET HANDLER ME-&amp;gt;ON_CLOSE_DOCUMENT FOR H_DOCUMENT.&lt;/P&gt;&lt;P&gt; 82 &lt;/P&gt;&lt;P&gt; 83   ENDMETHOD.                           " Constructor.. COIExcel&lt;/P&gt;&lt;P&gt; 84 &lt;/P&gt;&lt;P&gt; 85 * Cleanup&lt;/P&gt;&lt;P&gt; 86   METHOD DESTROY.&lt;/P&gt;&lt;P&gt; 87 &lt;/P&gt;&lt;P&gt; 88     IF NOT H_TABLES IS INITIAL.&lt;/P&gt;&lt;P&gt; 89       CALL METHOD H_TABLES-&amp;gt;REMOVE_ALL_TABLES&lt;/P&gt;&lt;P&gt; 90                     IMPORTING RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt; 91       FREE H_TABLES.&lt;/P&gt;&lt;P&gt; 92     ENDIF.&lt;/P&gt;&lt;P&gt; 93 &lt;/P&gt;&lt;P&gt; 94     IF NOT H_FACTORY IS INITIAL.&lt;/P&gt;&lt;P&gt; 95       CALL METHOD H_FACTORY-&amp;gt;STOP_FACTORY.&lt;/P&gt;&lt;P&gt; 96       FREE H_FACTORY.&lt;/P&gt;&lt;P&gt; 97     ENDIF.&lt;/P&gt;&lt;P&gt; 98 &lt;/P&gt;&lt;P&gt; 99     FREE H_DOCUMENT.&lt;/P&gt;&lt;P&gt;100     CALL FUNCTION 'CONTROL_EXIT'.&lt;/P&gt;&lt;P&gt;101 &lt;/P&gt;&lt;P&gt;102   ENDMETHOD.                           " Destructor.... COIExcel&lt;/P&gt;&lt;P&gt;103 &lt;/P&gt;&lt;P&gt;104   METHOD ON_CLOSE_DOCUMENT.&lt;/P&gt;&lt;P&gt;105 *        for event on_close_document of i_oi_document_proxy.&lt;/P&gt;&lt;P&gt;106     IF NOT H_DOCUMENT IS INITIAL.&lt;/P&gt;&lt;P&gt;107       CALL METHOD H_DOCUMENT-&amp;gt;CLOSE_DOCUMENT&lt;/P&gt;&lt;P&gt;108         IMPORTING RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt;109       CALL METHOD C_OI_ERRORS=&amp;gt;SHOW_MESSAGE&lt;/P&gt;&lt;P&gt;110                                     EXPORTING TYPE = 'E'.&lt;/P&gt;&lt;P&gt;111     ENDIF.&lt;/P&gt;&lt;P&gt;112 &lt;/P&gt;&lt;P&gt;113 * Cleanup the DOI allocations and the control framework.&lt;/P&gt;&lt;P&gt;114     CALL METHOD ME-&amp;gt;DESTROY.&lt;/P&gt;&lt;P&gt;115 *   message id 'mo' type 'S' number '001' with 'Enter selection table.'.&lt;/P&gt;&lt;P&gt;116   ENDMETHOD.&lt;/P&gt;&lt;P&gt;117 &lt;/P&gt;&lt;P&gt;118   METHOD CREATEDOCUMENT.&lt;/P&gt;&lt;P&gt;119 *        importing s_doctitle type c&lt;/P&gt;&lt;P&gt;120 *        exporting s_retcode type t_oi_ret_string.&lt;/P&gt;&lt;P&gt;121 &lt;/P&gt;&lt;P&gt;122     IF NOT H_DOCUMENT IS INITIAL.&lt;/P&gt;&lt;P&gt;123       CALL METHOD H_DOCUMENT-&amp;gt;CREATE_DOCUMENT&lt;/P&gt;&lt;P&gt;124         EXPORTING OPEN_INPLACE = ' '&lt;/P&gt;&lt;P&gt;125                 DOCUMENT_TITLE = S_DOCTITLE&lt;/P&gt;&lt;P&gt;126         IMPORTING RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt;127       CALL METHOD C_OI_ERRORS=&amp;gt;SHOW_MESSAGE EXPORTING TYPE = 'E'.&lt;/P&gt;&lt;P&gt;128     ENDIF.&lt;/P&gt;&lt;P&gt;129 &lt;/P&gt;&lt;P&gt;130   ENDMETHOD.&lt;/P&gt;&lt;P&gt;131 &lt;/P&gt;&lt;P&gt;132 * Parameters are set to open the document specified by fileurl,&lt;/P&gt;&lt;P&gt;133 *  opened externally, and run the startup macro that resides&lt;/P&gt;&lt;P&gt;134 *  inside the Excel document.&lt;/P&gt;&lt;P&gt;135   METHOD OPENDOCUMENT.&lt;/P&gt;&lt;P&gt;136 *   importing fileurl type c&lt;/P&gt;&lt;P&gt;137 *   exporting s_retcode type t_oi_ret_string.&lt;/P&gt;&lt;P&gt;138 &lt;/P&gt;&lt;P&gt;139     CALL METHOD H_DOCUMENT-&amp;gt;OPEN_DOCUMENT&lt;/P&gt;&lt;P&gt;140            EXPORTING&lt;/P&gt;&lt;P&gt;141                     DOCUMENT_URL = FILEURL&lt;/P&gt;&lt;P&gt;142                     OPEN_INPLACE = ' '&lt;/P&gt;&lt;P&gt;143                     STARTUP_MACRO    = 'Module1.LoadR3Data'&lt;/P&gt;&lt;P&gt;144           IMPORTING RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt;145 &lt;/P&gt;&lt;P&gt;146     CALL METHOD C_OI_ERRORS=&amp;gt;SHOW_MESSAGE EXPORTING TYPE ='E'.&lt;/P&gt;&lt;P&gt;147 &lt;/P&gt;&lt;P&gt;148   ENDMETHOD.&lt;/P&gt;&lt;P&gt;149 &lt;/P&gt;&lt;P&gt;150   METHOD TRANSFERTABLE.&lt;/P&gt;&lt;P&gt;151 *    importing s_tblname type c&lt;/P&gt;&lt;P&gt;152 *    exporting retcode type t_oi_ret_string&lt;/P&gt;&lt;P&gt;153 *    changing i_tab type table&lt;/P&gt;&lt;P&gt;154 &lt;/P&gt;&lt;P&gt;155     IF H_TABLES IS INITIAL.&lt;/P&gt;&lt;P&gt;156       CALL METHOD H_FACTORY-&amp;gt;GET_TABLE_COLLECTION&lt;/P&gt;&lt;P&gt;157                     IMPORTING TABLE_COLLECTION = H_TABLES&lt;/P&gt;&lt;P&gt;158                               RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt;159       CALL METHOD C_OI_ERRORS=&amp;gt;SHOW_MESSAGE EXPORTING TYPE = 'E'.&lt;/P&gt;&lt;P&gt;160     ENDIF.&lt;/P&gt;&lt;P&gt;161 &lt;/P&gt;&lt;P&gt;162 *transfer data to presentation server&lt;/P&gt;&lt;P&gt;163     CALL METHOD H_TABLES-&amp;gt;ADD_TABLE&lt;/P&gt;&lt;P&gt;164          EXPORTING TABLE_NAME   = 'ITAB'&lt;/P&gt;&lt;P&gt;165                    TABLE_TYPE   = H_TABLES-&amp;gt;TABLE_TYPE_OUTPUT&lt;/P&gt;&lt;P&gt;166                    DDIC_NAME    = S_TABLENAME&lt;/P&gt;&lt;P&gt;167                    DESCRIPTION  = 'Block Data'&lt;/P&gt;&lt;P&gt;168          IMPORTING&lt;/P&gt;&lt;P&gt;169                    RETCODE      = S_RETCODE&lt;/P&gt;&lt;P&gt;170          CHANGING  DATA_TABLE   = I_TAB.&lt;/P&gt;&lt;P&gt;171     RETCODE = S_RETCODE.&lt;/P&gt;&lt;P&gt;172   ENDMETHOD.&lt;/P&gt;&lt;P&gt;173 &lt;/P&gt;&lt;P&gt;174 * Specific method for use in the ZBTableListGeneration program.&lt;/P&gt;&lt;P&gt;175 * Simplifies the dynamic program creation&lt;/P&gt;&lt;P&gt;176   METHOD LAUNCHSE16.&lt;/P&gt;&lt;P&gt;177 *      importing c_tblname type c&lt;/P&gt;&lt;P&gt;178 *                c_filepath type c&lt;/P&gt;&lt;P&gt;179 *      changing  tbl_tab type table&lt;/P&gt;&lt;P&gt;180 &lt;/P&gt;&lt;P&gt;181     CALL METHOD ME-&amp;gt;TRANSFERTABLE&lt;/P&gt;&lt;P&gt;182                   EXPORTING S_TABLENAME = C_TBLNAME&lt;/P&gt;&lt;P&gt;183                   IMPORTING RETCODE = S_RETCODE&lt;/P&gt;&lt;P&gt;184                   CHANGING I_TAB = TBL_TAB.&lt;/P&gt;&lt;P&gt;185 &lt;/P&gt;&lt;P&gt;186     CALL METHOD ME-&amp;gt;OPENDOCUMENT&lt;/P&gt;&lt;P&gt;187                  EXPORTING FILEURL = C_FILEPATH.&lt;/P&gt;&lt;P&gt;188   ENDMETHOD.&lt;/P&gt;&lt;P&gt;189 &lt;/P&gt;&lt;P&gt;190 ENDCLASS.                              "COIEXCEL Implemetation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mrutyunjaya Tripathy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 05:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280702#M152671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T05:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280703#M152672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a document word dynamically from a program ABAP. I do not know in advance which text I will have. I have to insert this text in a table and pass it to the interface I mentionned earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is to insert a new page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 05:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280703#M152672</guid>
      <dc:creator>david_fryda2</dc:creator>
      <dc:date>2006-04-10T05:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280704#M152673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the code.&lt;/P&gt;&lt;P&gt;Can you please tell me where in your code I can find what precisely I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot (nice program).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 05:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280704#M152673</guid>
      <dc:creator>david_fryda2</dc:creator>
      <dc:date>2006-04-10T05:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280705#M152674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**The question is how can I insert a "new page" in the document word ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you just tell us what you want?Is it that you want a new document to be created just like New document creation in MS Word ? Or you want to create new page in an existing word document like the NEW-PAGE command? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is creating a new document, then it is easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interface I_OI_DOCUMENT_PROXY, there is no facility for creating new documents . So what I think is create a new class which has I_OI_DOCUMENT_PROXY as interface and create a new method in the class. Then you can use OLE Methodology to create new documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code to create a new Word document&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;Declarations&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;INCLUDE ole2incl .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gs_word TYPE ole2_object . "OLE object handle&lt;/P&gt;&lt;P&gt;DATA gs_documents TYPE ole2_object . "Documents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the particular Function Code&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT gs_word 'WORD.APPLICATION' .&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0 .&lt;/P&gt;&lt;P&gt;MESSAGE s000(su) WITH 'Error while creating OLE object!'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM .&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Setting object's visibility property&lt;/P&gt;&lt;P&gt;SET PROPERTY OF gs_word 'Visible' = '1' .&lt;/P&gt;&lt;P&gt;*--Opening a new document&lt;/P&gt;&lt;P&gt;GET PROPERTY OF gs_word 'Documents' = gs_documents .&lt;/P&gt;&lt;P&gt;CALL METHOD OF gs_documents 'Add' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 05:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280705#M152674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T05:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280706#M152675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to create a document word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am asking is : when creating the document, I want to transfer to it text using a table. How can I pass to this docuemnt a NEW PAGE code ( in order to make the docuemnt create a new page) ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I made myself more understable and sorry if I wasn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 05:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280706#M152675</guid>
      <dc:creator>david_fryda2</dc:creator>
      <dc:date>2006-04-10T05:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280707#M152676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if this is your requirement.&lt;/P&gt;&lt;P&gt;You have going to create a document. In that document, you have number of pages. You have certain values of a table to be printed and the data can be dynamic. You want that data to be print in a separate page of the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if this is not exactly your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My mail-id is sylendra.prasad@wipro.com.You can contact me in this id so that we can discuss this matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 06:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280707#M152676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T06:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft word</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280708#M152677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Since you are already using I_OI_DOCUMENT_PROXY, i assume you are familiar with the classes and interfaces provided by sap for office integration. They are all part of development class sofficeintegration.&lt;/P&gt;&lt;P&gt;Anyways, there is a class in the same development class called C_OI_AUTOMATION_OBJECT. It has a method which can be used to call methods for the intance objects. It is CALL_OBJECT_METHOD. You can use this to call the insert method of Word. The method is "InsertBreak" and should be with parameter "wdPageBreak" &lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 06:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/microsoft-word/m-p/1280708#M152677</guid>
      <dc:creator>Rashid_Javed</dc:creator>
      <dc:date>2006-04-10T06:56:06Z</dc:date>
    </item>
  </channel>
</rss>

