<?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: Error while OPEN DATASET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034634#M1349939</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;If it's all OK, u should ask if something is changed on Server to your basis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 09:53:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-04T09:53:29Z</dc:date>
    <item>
      <title>Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034622#M1349927</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 am getting a text file from presentation server and uploading it to application server like /tmp/TEXTFILE .&lt;/P&gt;&lt;P&gt;Then I am scheduling a job in the same program .In the job I'll be retrieving the data from the file in app server like &lt;/P&gt;&lt;P&gt;OPEN DATASET w_infile FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But m getting the error in msg as "No such file or directory".And my job is getting failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to open the file through AL11,It is opening.Also while I try to debug the failed job the file is opening properly and my changes are carried out succesfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can smbody help???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034622#M1349927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034623#M1349928</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;Are u sure to transfer the correct path in w_infile?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should consider the statament to open the file is case sensitive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034623#M1349928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034624#M1349929</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 need to give extension of the file.&lt;/P&gt;&lt;P&gt;eg: /tmp/TEXTFILE.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Milan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034624#M1349929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034625#M1349930</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 think your Path string is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insterd of '/' use ' \'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also use Extension of the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shreemohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034625#M1349930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034626#M1349931</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;Take the help of your basis team for the correct physical path or logical path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034626#M1349931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034627#M1349932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;              the mystery is ..it is working smtimes n smtimes it is giving this error...the filename is correct only...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034627#M1349932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034628#M1349933</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;Please validate the path before uploading/downloading using following Code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;     OPEN DATASET G_FILE_NAME3
      FOR OUTPUT
      IN TEXT MODE.
    MOVE SY-SUBRC TO L_SUBRC.
  ENDCATCH.
  IF L_SUBRC  &amp;lt;&amp;gt; 0
  OR SY-SUBRC &amp;lt;&amp;gt; 0.
    DELETE DATASET G_FILE_NAME3.
    G_FILE_NAME3E = G_FILE_NAME3.
    G_FILE_NAME3 = ''.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remember to use ' / ' in the filepath .(forwardslash).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034628#M1349933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034629#M1349934</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;&lt;/P&gt;&lt;P&gt;There is also a Function Module can be used, named 'OCS_GET_FILE_INFO'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gdt_ocs_file TYPE TABLE OF ocs_file.&lt;/P&gt;&lt;P&gt;PARAMETERS p_file   TYPE dxfile-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OCS_GET_FILE_INFO'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dir_name           = p_file&lt;/P&gt;&lt;P&gt;      file_name          =  '*'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dir_list               = gdt_ocs_fileImporting parameter 'file_name' is set as '*' means all the file in the specfied directory will be get and stored in the internal table 'gdt_ocs_file'. If the input file is included in the internal table, this file exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks 7 regards,&lt;/P&gt;&lt;P&gt;shreemohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034629#M1349934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034630#M1349935</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;Try using the sample code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


  DATA: l_file TYPE tpfht-pffile                                  .
  DATA:g_data(1000) TYPE c                                        ,
       g_delim TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab.
  CLEAR l_file                                                    .

  l_file = p_file               "In P_file the path entered on the selection screen in captured                                   .

  CALL FUNCTION 'PFL_CHECK_OS_FILE_EXISTENCE'     "this function module will check the                                                                                
"existence of the file on application server
    EXPORTING
      fully_qualified_filename = l_file
    IMPORTING
      file_exists              = l_true.

  IF l_true = space   .
    MESSAGE e001(zmsg).
  ENDIF               .

*&amp;amp; File upload from application server
  OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
  IF sy-subrc = 0                                              .
    DO.
      READ DATASET l_file INTO g_data                          .
      IF sy-subrc = 0                                          .

        SPLIT g_data AT g_delim INTO
        wa_upload-doc_type
*       wa_upload-neg_posting
        wa_upload-comp_code    wa_upload-currency
        wa_upload-doc_date     wa_upload-pstng_date
        wa_upload-ref_doc_no   wa_upload-accnt
        wa_upload-amt_doccur   wa_upload-indicator
        wa_upload-header_txt   wa_upload-pmnttrms
        wa_upload-payment_meth wa_upload-gl_account
        wa_upload-tax_code     wa_upload-taxjurcode
        wa_upload-kostl        wa_upload-prctr
        wa_upload-alloc_nmbr
*       wa_upload-wbs_element
       wa_upload-item_text                                   .
        .
        IF wa_upload-doc_date IS NOT INITIAL.
          APPEND wa_upload TO it_upload                      .
          CLEAR wa_upload                                    .
        ENDIF                                                .
      ELSE                                                   .
        EXIT                                                 .
      ENDIF                                                  .
    ENDDO                                                    .
    CLOSE   DATASET l_file.
  ELSE.
    MESSAGE e004(zmsg)                                       ." error message if no file is uploaded
  ENDIF                                                      .

*&amp;amp; Check for data exist or not
  IF it_upload[] IS INITIAL.
    MESSAGE e002(zmsg)     .
  ENDIF                    .

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034630#M1349935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034631#M1349936</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;Please do one thing,go to basis &amp;amp; ask them to add your program &amp;amp; provide the authorization for read,write &amp;amp; delete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034631#M1349936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034632#M1349937</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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it happens in background only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many Servers SAP are in your system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034632#M1349937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034633#M1349938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya..but in bkgrnd it was working fine till last day...the problem began from today morning only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034633#M1349938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034634#M1349939</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;If it's all OK, u should ask if something is changed on Server to your basis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034634#M1349939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034635#M1349940</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;While using OPEN DATASET statement, take care while giving file path. Because it is case sensitive. If you give it in small case like 'aaa.txt' and if it is stored as 'Aaa.txt' then also it givens error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 09:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034635#M1349940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T09:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034636#M1349941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 10:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034636#M1349941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T10:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034637#M1349942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 07:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034637#M1349942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-30T07:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error while OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034638#M1349943</link>
      <description>&lt;P&gt;hey your P_FILE is of type string so when its creating the open dataset filepath the entire string is getting converted into CAPS. AL11 directory path is case sensitive so even though you are entering the correct filepath ald code looks correct it cannot find the directory in app server. Just change the type of P_FILE to FILEINTERN and your code will work. Hope its now clear. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 10:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-open-dataset/m-p/6034638#M1349943</guid>
      <dc:creator>former_member745706</dc:creator>
      <dc:date>2021-08-02T10:05:57Z</dc:date>
    </item>
  </channel>
</rss>

