<?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: OPEN DATA SET PROBLEM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808267#M1468577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you want exactly...&lt;/P&gt;&lt;P&gt;If want to read from application server then only you can use OPEN DATASET&lt;/P&gt;&lt;P&gt;if want to read from presentation then can use GUI_UPLOAD, GUI_DOWNLOAD like...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Mar 2010 14:16:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-24T14:16:11Z</dc:date>
    <item>
      <title>OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808264#M1468574</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;I use the command OPEN DATA SET in order to upload file content from server ,&lt;/P&gt;&lt;P&gt;the problem is that i getting error :_No such file or directory ._&lt;/P&gt;&lt;P&gt;the file is exist in server &lt;STRONG&gt;I can see it&lt;/STRONG&gt; when i put the path on windows  start-&amp;gt;run &lt;/P&gt;&lt;P&gt;and i give the permission for the folder to everyone .&lt;/P&gt;&lt;P&gt;1. My question is what i miss here &lt;/P&gt;&lt;P&gt;2. when i do little test and try to use GUI_UPLOAD i see the file content so i don't understand what is wrong here the file is not on my local PC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808264#M1468574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T14:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808265#M1468575</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;What do you mean by server? Which server is it? Check whether the file is available in the application server through the transaction AL11. Only then will OPEN DATASET will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808265#M1468575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808266#M1468576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;What's your operation system? Unix or Windows?&lt;/P&gt;&lt;P&gt;If for Unix try the directory absolute, sample:&lt;/P&gt;&lt;P&gt;/usr/sap/project/sample.txt&lt;/P&gt;&lt;P&gt;If Windows try:&lt;/P&gt;&lt;P&gt;C:\usr\sap\sample.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Welinton Rocha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808266#M1468576</guid>
      <dc:creator>Roc31</dc:creator>
      <dc:date>2010-03-24T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808267#M1468577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you want exactly...&lt;/P&gt;&lt;P&gt;If want to read from application server then only you can use OPEN DATASET&lt;/P&gt;&lt;P&gt;if want to read from presentation then can use GUI_UPLOAD, GUI_DOWNLOAD like...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808267#M1468577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T14:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808268#M1468578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vikranth ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file is not exist in AL11 ,it's exist on my colleague server &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why do we have to use AL11 ,what is it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808268#M1468578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T14:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808269#M1468579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AL11 is the transaction code used to view the files in the Application server of the SAP system. OPEN DATASET is only used to read the files available in the application server. If the file is available in your colleague's server, OPEN DATASET will not work. If GUI_UPLOAD works, that's the way it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808269#M1468579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T14:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808270#M1468580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OPEN DATASET cann NOT read files from any server. It can read files from the application server where SAP is runnig at. For any other machine you need a samba share, but dont know if OPEN DATASET can handle samba shares.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808270#M1468580</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-03-24T14:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808271#M1468581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report that need to run as daily job and upload the file&lt;/P&gt;&lt;P&gt;from server does GUI_UPLOAD works in this case.&lt;/P&gt;&lt;P&gt;And what do you mean by Application server of the SAP system which server is it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 15:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808271#M1468581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T15:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808272#M1468582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rainer  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a way to upload file from foreign server ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 15:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808272#M1468582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T15:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808273#M1468583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shuld use the transacion FILE to define logical and phisical paths, then use the funciton 'FILE_GET_NAME_USING_PATH' in your program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
    EXPORTING
      client                     = sy-mandt
      logical_path               = l_path
      file_name                  = p_filename
    IMPORTING
      file_name_with_path        = file_trg
    EXCEPTIONS
      path_not_found             = 1
      missing_parameter          = 2
      operating_system_not_found = 3
      file_system_not_found      = 4
      OTHERS                     = 5.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  OPEN DATASET file_trg FOR APPENDING&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 15:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808273#M1468583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T15:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808274#M1468584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sebastia ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to test it,&lt;/P&gt;&lt;P&gt; what should i put in file_name  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 16:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808274#M1468584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T16:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808275#M1468585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi James, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the parameter file_name receives the name of the file (ja, ja, ja.......)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here comes the explanation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the transaction FILE you must define phisical and logical path for a file: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: &lt;/P&gt;&lt;P&gt;MY_FILE =&amp;gt; pointing to the folder /host/temp/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here comes the call to the function in your program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
    EXPORTING
      client                     = sy-mandt
      logical_path               = l_path    " the name of your logical path defined in trx FILE (MY_FILE)
      file_name                  = p_filename " the name of the file you want to read (for example: file.txt     )
    IMPORTING
      file_name_with_path        = file_trg
    EXCEPTIONS
      path_not_found             = 1
      missing_parameter          = 2
      operating_system_not_found = 3
      file_system_not_found      = 4
      OTHERS                     = 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the variable file_trg you should  get the value /host/temp/file.txt  (from the example)  to do the open dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry about my english&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Sebastiá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 18:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808275#M1468585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T18:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808276#M1468586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sebastian ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the logical file as you mention in your previous post (via transaction file )&lt;/P&gt;&lt;P&gt;now after do open data set i get subrc = 0 but the problem is that when i read the file &lt;/P&gt;&lt;P&gt;with read data set i get subrc = 4 despite the file is &lt;U&gt;not empt&lt;/U&gt;y  ?&lt;/P&gt;&lt;P&gt;what can be the reason in this case ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: James Herb on Mar 25, 2010 9:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 07:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808276#M1468586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808277#M1468587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please paste the piece of code here, and also mention the file and directory details. There could also be possibility of authorization, or even opening a wrong data set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Kaleem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 09:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808277#M1468587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SET PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808278#M1468588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with  Kaleemullah, please paste a piece of code to give you a more exact answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, sebastiá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 14:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problem/m-p/6808278#M1468588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T14:01:19Z</dc:date>
    </item>
  </channel>
</rss>

