<?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: Opne file on client computer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505630#M1259272</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;You have to understand that I odn't want to have it in table. I just wan tot open this file in appriopriate program on user's PC. Maybe something according below logic:&lt;/P&gt;&lt;P&gt;1. Read file from Unix to some temporart memory on user's PC&lt;/P&gt;&lt;P&gt;2. Open file in proper program on the screen.&lt;/P&gt;&lt;P&gt;3. Then program should go furthrer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2009 08:37:12 GMT</pubDate>
    <dc:creator>bartlomiej_lach</dc:creator>
    <dc:date>2009-04-27T08:37:12Z</dc:date>
    <item>
      <title>Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505625#M1259267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one question. How can I open file which is on Unix server on client computer. I have to say that I don't know file type, it could be pdf, excel file or ordinary text file. In dependence of file type I would like to open it in proper program on user computer.&lt;/P&gt;&lt;P&gt;I found following function modules:  GUI_RUN, WS_EXECUTE. With files which are saved on user computer everything is ok but when I pass path for Unix i.e. '/usr/sap/tmp/test.txt' functions are not able to find them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is possibility to use one of these functions but I don't know how, if not could you give me other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Baru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 06:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505625#M1259267</guid>
      <dc:creator>bartlomiej_lach</dc:creator>
      <dc:date>2009-04-27T06:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505626#M1259268</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;Have anyone any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 07:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505626#M1259268</guid>
      <dc:creator>bartlomiej_lach</dc:creator>
      <dc:date>2009-04-27T07:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505627#M1259269</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;here a short example for output and input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARA.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: DATEI_A(30) TYPE C VALUE '/usr/sap/tmp/test.txt'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF IMARA,&lt;/P&gt;&lt;P&gt;         MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;         MTART LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;       END OF IMARA.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: ITAB        TYPE TABLE OF IMARA WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: ITAB_READ   TYPE TABLE OF IMARA WITH HEADER LINE.&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;  SELECT MATNR MTART INTO TABLE ITAB FROM MARA UP TO 20 ROWS.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  PERFORM DATEI_AUSGEBEN.&lt;/P&gt;&lt;P&gt;  PERFORM DATEI_EINLESEN.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;FORM DATEI_AUSGEBEN.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  OPEN DATASET DATEI_A FOR OUTPUT IN TEXT MODE encoding default.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    TRANSFER ITAB TO DATEI_A.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CLOSE DATASET DATEI_A.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ENDFORM.                    "DATEI_AUSGEBEN&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;FORM DATEI_EINLESEN.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  OPEN DATASET DATEI_A FOR INPUT IN TEXT MODE encoding default.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    READ DATASET DATEI_A INTO ITAB_READ.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    APPEND ITAB_READ.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CLOSE DATASET DATEI_A.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB_READ. WRITE: / ITAB_READ. ENDLOOP.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ENDFORM.                    "DATEI_EINLESEN&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to search in this forum for open/close/read DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 08:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505627#M1259269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T08:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505628#M1259270</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;Sorry but you showed me how to save information in file on Unix, but I want to display on user's screen in proper program file which is already saved on Unix. I know path and so one. I just need to diplsy it on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 08:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505628#M1259270</guid>
      <dc:creator>bartlomiej_lach</dc:creator>
      <dc:date>2009-04-27T08:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505629#M1259271</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;do you look on the 2. FORM??&lt;/P&gt;&lt;P&gt;If you will only show a file take the 2. form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 08:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505629#M1259271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T08:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505630#M1259272</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;You have to understand that I odn't want to have it in table. I just wan tot open this file in appriopriate program on user's PC. Maybe something according below logic:&lt;/P&gt;&lt;P&gt;1. Read file from Unix to some temporart memory on user's PC&lt;/P&gt;&lt;P&gt;2. Open file in proper program on the screen.&lt;/P&gt;&lt;P&gt;3. Then program should go furthrer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 08:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505630#M1259272</guid>
      <dc:creator>bartlomiej_lach</dc:creator>
      <dc:date>2009-04-27T08:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505631#M1259273</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;what do you mean by proper program? is this abap or a windows program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If abap read it as i have shown and show the entries from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a windows program read it in abap, download it on your PC and open your&lt;/P&gt;&lt;P&gt;windows-program with this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 08:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505631#M1259273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505632#M1259274</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 want to open it in Windows program. The problem is that I dont' know where on the PC he will be able to save it. But do you know maybe function to download file from Unix to local file in Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Bartek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 09:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505632#M1259274</guid>
      <dc:creator>bartlomiej_lach</dc:creator>
      <dc:date>2009-04-27T09:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Opne file on client computer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505633#M1259275</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;sorry, but do you search in this forum for GUI_DOWNLOAD or&lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a lot of examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it. If you then get problems with your code, post it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 09:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opne-file-on-client-computer/m-p/5505633#M1259275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T09:22:33Z</dc:date>
    </item>
  </channel>
</rss>

