<?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: Upload MS Document into Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861277#M48088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the replies. i will try and let u know what i have. i think what andreas and brad have put to-gether i will be having a good solution up by trw. thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2005 13:34:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-09T13:34:32Z</dc:date>
    <item>
      <title>Upload MS Document into Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861271#M48082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I want to upload a file which is of *.doc file from local disk and want to store it on a location remotely.&lt;/P&gt;&lt;P&gt;After I store this at the remote location. I have to store the link to that document in the Database Table.&lt;/P&gt;&lt;P&gt;Could anyone help in this. I have tried using GUI_UPLOAD but I am sure I am not doing it right. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 13:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861271#M48082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-06T13:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upload MS Document into Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861272#M48083</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;For storing on a application server you should use 'Open dataset' and 'Transfer' statements. For presentation server, use GUI_UPLOAD and GUI_DOWNLOAD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 14:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861272#M48083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-06T14:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Upload MS Document into Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861273#M48084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of the Business Doc Service (BDS) to store docs (e.g Word or Excel files) using tcode OAER.&lt;/P&gt;&lt;P&gt;A good example for retrieving the stored file via program:  SAPRDEMOVIEWING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enjoy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kelvin Dela Rosa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 15:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861273#M48084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-06T15:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Upload MS Document into Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861274#M48085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kshitij,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, I am very new to ABAP. right now i am undergoing a training for the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first question is Is it possible for a flat file to be selected from my local system and save it on a remote server hard disk?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you also guide me to an example code for the same. I am stuck with this problem and am not making any headway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shivani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2005 06:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861274#M48085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-09T06:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Upload MS Document into Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861275#M48086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivani&lt;/P&gt;&lt;P&gt;  here's a sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztrans01 .
*Parameters(files)
PARAMETERS: ux_dir TYPE epsf-epsdirnam OBLIGATORY,
            filename TYPE epsf-epsfilnam OBLIGATORY,
            pc_dir TYPE rlgrap-filename OBLIGATORY.
*DATA(Strings)
DATA itab TYPE TABLE OF string.
DATA wa TYPE string.
DATA file TYPE string.
DATA size TYPE epsf-epsfilsiz.
DATA ux_file TYPE epsf-epspath.
DATA mode TYPE epsf-epstxtmod.
*start-of-selection
START-OF-SELECTION.

*1)upload
  CONCATENATE  pc_dir  '' filename  INTO file.

  CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
            filename = file
       TABLES
            data_tab = itab.

*2) transfer
  CONCATENATE ux_dir '/' filename INTO ux_file.
  OPEN DATASET ux_file FOR OUTPUT IN TEXT MODE.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i502(me) WITH ux_file.
  ENDIF.

  LOOP AT itab INTO wa.
    TRANSFER wa TO ux_file.
  ENDLOOP.

  CLOSE DATASET ux_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2005 08:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861275#M48086</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-05-09T08:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Upload MS Document into Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861276#M48087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are trying to copy/move the file to a remote file server (not the application server) yes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, then use Andreas's code for the upload, but use the GUI_DOWNLOAD to write the file to a remote file server (assuming your PC has a connection to this file server).  It would look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*  SNIP

*1)upload
  CONCATENATE  pc_dir  '' filename  INTO file.
 
  CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
            filename = file
       TABLES
            data_tab = itab.

*2)download remote_dir = '\serverdirectory'
  CLEAR: file.
  CONCATENATE  remote_dir  '' filename  INTO file.

  CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
            filename = file
       TABLES
            data_tab = itab.

* SNIP
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not happy with this approach then you could create a batch script on your PC and execute it using WS_EXECUTE (although you then need a batch file on every PC that will run the program &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2005 10:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861276#M48087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-09T10:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Upload MS Document into Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861277#M48088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the replies. i will try and let u know what i have. i think what andreas and brad have put to-gether i will be having a good solution up by trw. thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2005 13:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861277#M48088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-09T13:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Upload MS Document into Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861278#M48089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's fine that we could help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please say &lt;/P&gt;&lt;P&gt;'Thanks the SDN way'. Click on the yellow star, and award suitable points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this weblog:&lt;/P&gt;&lt;P&gt;/people/mark.finnern/blog/2004/08/10/spread-the-love&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2005 13:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-ms-document-into-server/m-p/861278#M48089</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-05-09T13:48:29Z</dc:date>
    </item>
  </channel>
</rss>

