<?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 Export data to Word template in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735472#M635328</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;How exactly do I export data to a Word template? I have a custom program in which data is stored in an internal table. I would like to create an option for the user so that a Word template is opened and the fields are filled with the data from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, transaction FBL5N has this option: File-&amp;gt;Export-&amp;gt;Word Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have something like that.&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, 03 Sep 2007 08:25:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-03T08:25:28Z</dc:date>
    <item>
      <title>Export data to Word template</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735472#M635328</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;How exactly do I export data to a Word template? I have a custom program in which data is stored in an internal table. I would like to create an option for the user so that a Word template is opened and the fields are filled with the data from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, transaction FBL5N has this option: File-&amp;gt;Export-&amp;gt;Word Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have something like that.&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, 03 Sep 2007 08:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735472#M635328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T08:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Word template</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735473#M635329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM - &amp;lt;b&amp;gt;ALV_WORD_EXECUTE_SIMPLE_LIST&amp;lt;/b&amp;gt; for doing this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to pass your internal table to this FM alongwith ur ALV fieldcatalog - and you will be able to export your internal table in the same way FBL1N does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;SKC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 08:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735473#M635329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Word template</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735474#M635330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end, I use the FM MS_WORD_OLE_FORMLETTER. I think that FM makes it easier to work with templates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question: in the Word template there are checkboxes. Is there a way to check/uncheck these automatically? Depending on whether a value in the internal table is 'X' or not, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 08:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735474#M635330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T08:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Word template</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735475#M635331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no readymade FM to do that automatically.. for acessing the Form Controls ( like check Boxes,edit boxes, buttons or drop down boxes). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to do that programatically...if u have a look at the FM MS_WORD_OLE_FORMLETTER.. it will give u some idea of doing this... It basically calls the methods of &amp;lt;b&amp;gt;Word.Document&amp;lt;/b&amp;gt;. By this object you will be able to access the form objects too ( provided u understand the methods of the Word.Document - u need to some VBA basics.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735475#M635331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Word template</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735476#M635332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. I think I'll leave the checkboxes for what they are then. Maybe I could just replace them by a simple 'X' in the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 10:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-word-template/m-p/2735476#M635332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T10:39:52Z</dc:date>
    </item>
  </channel>
</rss>

