<?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: Write MS Word Document into Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806139#M1468220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To upload data from doc file to internal table you can use the function module GUI_UPLOAD ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare P_DATA as :&lt;/P&gt;&lt;P&gt;P_DATA(255) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and give the file location in it &lt;/P&gt;&lt;P&gt;for example : P_DATA = 'C:\text.doc'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constant : P_DATA(255) type c value 'C:\text.doc'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                      = P_DATA&lt;/P&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = IT_TAB&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not forget to mention HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;This is the one which should solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 09:41:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-09T09:41:03Z</dc:date>
    <item>
      <title>Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806136#M1468217</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 have to upload an ms word document into an internal table, change its contents and write the internal table to word document again. I am able to do this with .txt file but not with .doc. Any suggestions?&lt;/P&gt;&lt;P&gt;Thnx in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 09:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806136#M1468217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T09:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806137#M1468218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3939429"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 09:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806137#M1468218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T09:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806138#M1468219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open you worddocument with notepad and have a look at the mess you're getting. You cant do meaninggful changes to this. What you can see in notepad is what you're getting in your ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 09:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806138#M1468219</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-04-09T09:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806139#M1468220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To upload data from doc file to internal table you can use the function module GUI_UPLOAD ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare P_DATA as :&lt;/P&gt;&lt;P&gt;P_DATA(255) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and give the file location in it &lt;/P&gt;&lt;P&gt;for example : P_DATA = 'C:\text.doc'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constant : P_DATA(255) type c value 'C:\text.doc'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                      = P_DATA&lt;/P&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = IT_TAB&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not forget to mention HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;This is the one which should solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 09:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806139#M1468220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T09:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806140#M1468221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well my requirement is actually to modify and save a word document using ABAP code. Using internal table was the one started with. If that is not posible can you suggest any other method ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806140#M1468221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T13:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806141#M1468222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the same code but it did not work. The text was still gibberish.  Is there any other way to modify and save a word document using ABAP Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: tshouri on Apr 9, 2010 6:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806141#M1468222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T13:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806142#M1468223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this example: SAPRDEMO_FORM_INTERFACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kleber Santos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 16:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806142#M1468223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T16:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806143#M1468224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kleber,&lt;/P&gt;&lt;P&gt;thanks for the reply.I tried the program but am not able to understand how to link the program parameters to word file parameters.Please help me out with this.Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 08:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806143#M1468224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T08:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806144#M1468225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problemo Solvedo!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 14:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806144#M1468225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T14:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806145#M1468226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Problemo Solvedo!&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide the solution..It would be of kind help for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Abhisek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 13:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806145#M1468226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Write MS Word Document into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806146#M1468227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this example: SAPRDEMO_FORM_INTERFACE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 06:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-ms-word-document-into-internal-table/m-p/6806146#M1468227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T06:15:27Z</dc:date>
    </item>
  </channel>
</rss>

