<?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 Problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901405#M682329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Thanura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might help you .....Your problem seems to related with stmt in Bold. Check in SM51..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From one of my articles...all may not be relevant to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check that the shared directory, being accessed in your program, is accessible from all the Servers ( Development, Test as well as Production )? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And did you also check that directory is accessible from all the Application Servers, in case there are multiple Application Servers in production? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your customer reported that he is not able to download the file on configured directory and program is terminating with some message like &amp;#145;File could not be opened&amp;#146; or &amp;#145;Directory not accessible&amp;#146;. &lt;/P&gt;&lt;P&gt;You tried from your side and everything is working fine. &lt;/P&gt;&lt;P&gt;So do you think that now your user is trying to irritate you like you did to him earlier? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not really, just check out and there might be multiple Application Servers in production ( Use Transaction SM51 ) and probably the way you coded and configured file path, either you made it Application Server dependent or it is not accessible from all the application servers ( except from the central instance as this particular directory is only created on central application server ). e.g in FILE transaction, you have configured the file path as &lt;/P&gt;&lt;P&gt;&amp;#145;&lt;BR /&gt;&amp;lt; INSTANCE&amp;gt;\Outbound&amp;#146; or &amp;#145;&lt;BR /&gt;&amp;lt; HOST&amp;gt;\Outbound&amp;#146; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, since as a developer, you generally login to central instance, you will not be able to see the problem unless you deliberately login to other instances. Ask the user to run it from central instance for the time being and then modify you program to make the file path instance independent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2007 08:51:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-11T08:51:15Z</dc:date>
    <item>
      <title>OPEN DATA SEt Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901404#M682328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi freinds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Referring to the thread&lt;/P&gt;&lt;P&gt;&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="726595"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the same issue.  So if u can pls paste the sample code how u make it correct that will be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Thanura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 08:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901404#M682328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T08:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SEt Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901405#M682329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Thanura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might help you .....Your problem seems to related with stmt in Bold. Check in SM51..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From one of my articles...all may not be relevant to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check that the shared directory, being accessed in your program, is accessible from all the Servers ( Development, Test as well as Production )? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And did you also check that directory is accessible from all the Application Servers, in case there are multiple Application Servers in production? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your customer reported that he is not able to download the file on configured directory and program is terminating with some message like &amp;#145;File could not be opened&amp;#146; or &amp;#145;Directory not accessible&amp;#146;. &lt;/P&gt;&lt;P&gt;You tried from your side and everything is working fine. &lt;/P&gt;&lt;P&gt;So do you think that now your user is trying to irritate you like you did to him earlier? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not really, just check out and there might be multiple Application Servers in production ( Use Transaction SM51 ) and probably the way you coded and configured file path, either you made it Application Server dependent or it is not accessible from all the application servers ( except from the central instance as this particular directory is only created on central application server ). e.g in FILE transaction, you have configured the file path as &lt;/P&gt;&lt;P&gt;&amp;#145;&lt;BR /&gt;&amp;lt; INSTANCE&amp;gt;\Outbound&amp;#146; or &amp;#145;&lt;BR /&gt;&amp;lt; HOST&amp;gt;\Outbound&amp;#146; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, since as a developer, you generally login to central instance, you will not be able to see the problem unless you deliberately login to other instances. Ask the user to run it from central instance for the time being and then modify you program to make the file path instance independent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 08:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901405#M682329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SEt Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901406#M682330</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;As u said  I have 2 application server in sm51. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is in As400 and the other one is a dialog instant in a windows server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the OPEN DATASET going to be looks like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the statement currently using and is  works fine in foreground&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls chenge this and show me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    f_filename = '/usr/sap/DBI/INVD.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET f_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;  MESSAGE mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since the application in as400 I have to use '/' not like windows '\'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANd sm51 shows the following details &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R3PROD_R3P_00                  R3PROD                         Dialog Update Enqueue Backg Spool Upd2 ICM         Active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r3prod-d_R3P_02                R3PROD-D                       Dialog Update Backg Spool Upd2 ICM                 Active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls use this detail and correct my statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate u'r help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thanura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 08:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901406#M682330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATA SEt Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901407#M682331</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;Check this simple code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF WA_CUST_INITIAL,
       STYPE(5),
       CUSTOMER(10),
       Company_Code(10),
       Sales_Organization(10),
       Distribution_Channel(10),
       Division(10),
       Account_Group(10),
       END OF WA_CUST_INITIAL.
 
DATA : IT_CUST_INITIAL LIKE STANDARD TABLE OF WA_CUST_INITIAL WITH HEADER LINE.
 
DATA : SOURCE_FILE_INITIAL TYPE STRING VALUE 'C:256_FLATCUST_INITIAL.TXT'.
DATA : TARGET_FILE_INITIAL(200) VALUE 'D:usrsaptransCUST_INITIAL.TXT'.
 
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                      = SOURCE_FILE_INITIAL
   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = 'X'
 
 TABLES
    DATA_TAB                      = IT_CUST_INITIAL.
 
OPEN DATASET TARGET_FILE_INITIAL IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
 
LOOP AT IT_CUST_INITIAL INTO WA_CUST_INITIAL.
TRANSFER WA_CUST_INITIAL TO TARGET_FILE_INITIAL.
ENDLOOP.
CLOSE DATASET TARGET_FILE_INITIAL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 08:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-problems/m-p/2901407#M682331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T08:58:10Z</dc:date>
    </item>
  </channel>
</rss>

