<?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: Send Data into word. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944109#M63795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel, if you do this for MS Excel then It woud be good and easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  MULTIEXCEL                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ole2incl.&lt;/P&gt;&lt;P&gt;DATA: application TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       workbook TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       sheet TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       cells TYPE ole2_object.&lt;/P&gt;&lt;P&gt;CONSTANTS: row_max TYPE i VALUE 256.&lt;/P&gt;&lt;P&gt;DATA index TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab1 OCCURS 0, &lt;/P&gt;&lt;P&gt;first_name(10), &lt;/P&gt;&lt;P&gt;END OF itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND: 'Arpit' TO itab1,&lt;/P&gt;&lt;P&gt;          'John' TO itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT application 'excel.application'.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF application 'visible' = 1.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF application 'Workbooks' = workbook.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF workbook 'Add'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create first Excel Sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt;                               EXPORTING #1 = 1.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF sheet 'Activate'.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF sheet 'Name' = 'Sheet1'.&lt;/P&gt;&lt;P&gt;  LOOP AT itab1.&lt;/P&gt;&lt;P&gt;    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name&lt;/P&gt;&lt;P&gt;    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.&lt;/P&gt;&lt;P&gt;    SET PROPERTY OF cells 'Value' = itab1-first_name.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Save excel speadsheet to particular filename&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF sheet 'SaveAs'&lt;/P&gt;&lt;P&gt;                  EXPORTING #1 = 'c:\temp\exceldoc1.xls'     "filename&lt;/P&gt;&lt;P&gt;                            #2 = 1.                          "fileFormat&lt;/P&gt;&lt;P&gt;                            &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Closes excel window, data is lost if not saved&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PROPERTY OF application 'visible' = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Arpit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2005 10:46:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-31T10:46:02Z</dc:date>
    <item>
      <title>Send Data into word.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944104#M63790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there ! I got this problem I need to send some datas from an abap program to a Microsoft word document &lt;/P&gt;&lt;P&gt;(In the word file i need two colums that come from the abap program and two colums that the user will input. ), i tried to search different things but without result..&lt;/P&gt;&lt;P&gt;there is someone who can help me &lt;/P&gt;&lt;P&gt;Thanks Gil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 10:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944104#M63790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Send Data into word.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944105#M63791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out the following article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/technologies/an" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/technologies/an&lt;/A&gt; easy reference for ole automation.article&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 10:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944105#M63791</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-31T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Send Data into word.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944106#M63792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are lot's of ways to download the data into MS word through ABAP program like use FM GUI_DOWNLOAD, ALV menu already having default option, through OLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls be more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Arpit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 10:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944106#M63792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T10:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Send Data into word.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944107#M63793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What i mean is that two columns will be trnsfer to the word document and it will be a nother two columns for input by the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 10:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944107#M63793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T10:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Send Data into word.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944108#M63794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need OLE programming. its explained well in the doc. i have given the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 10:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944108#M63794</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-31T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Send Data into word.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944109#M63795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel, if you do this for MS Excel then It woud be good and easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  MULTIEXCEL                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ole2incl.&lt;/P&gt;&lt;P&gt;DATA: application TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       workbook TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       sheet TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       cells TYPE ole2_object.&lt;/P&gt;&lt;P&gt;CONSTANTS: row_max TYPE i VALUE 256.&lt;/P&gt;&lt;P&gt;DATA index TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab1 OCCURS 0, &lt;/P&gt;&lt;P&gt;first_name(10), &lt;/P&gt;&lt;P&gt;END OF itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND: 'Arpit' TO itab1,&lt;/P&gt;&lt;P&gt;          'John' TO itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT application 'excel.application'.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF application 'visible' = 1.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF application 'Workbooks' = workbook.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF workbook 'Add'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create first Excel Sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt;                               EXPORTING #1 = 1.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF sheet 'Activate'.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF sheet 'Name' = 'Sheet1'.&lt;/P&gt;&lt;P&gt;  LOOP AT itab1.&lt;/P&gt;&lt;P&gt;    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name&lt;/P&gt;&lt;P&gt;    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.&lt;/P&gt;&lt;P&gt;    SET PROPERTY OF cells 'Value' = itab1-first_name.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Save excel speadsheet to particular filename&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF sheet 'SaveAs'&lt;/P&gt;&lt;P&gt;                  EXPORTING #1 = 'c:\temp\exceldoc1.xls'     "filename&lt;/P&gt;&lt;P&gt;                            #2 = 1.                          "fileFormat&lt;/P&gt;&lt;P&gt;                            &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Closes excel window, data is lost if not saved&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PROPERTY OF application 'visible' = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Arpit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 10:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944109#M63795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T10:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Send Data into word.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944110#M63796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'll try to explain my request again...&lt;/P&gt;&lt;P&gt;So this is what i'm looking for:&lt;/P&gt;&lt;P&gt;Transfer data into ms word document at the top of the page will be the logo of the company beneath that will be a sub title and date of printing beneath the date of printing will be a table with 6 columns and 13 rows,&lt;/P&gt;&lt;P&gt;2 columns will receive the data from the sap and the others columns by the users.&lt;/P&gt;&lt;P&gt;i hope it's more clear now.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 07:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-data-into-word/m-p/944110#M63796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-07T07:01:23Z</dc:date>
    </item>
  </channel>
</rss>

