<?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 OPEN DATASET return error when call program background (JOB) in PRD Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588038#M1274052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program read file from application server. And I use statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET path_file FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE errormsg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;path_file = '/inf/HR/100/INCOMING/ZSHRPA_1000000020090421.TXT'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I process program by foreground.It's no error message.&lt;/P&gt;&lt;P&gt;But If I process program by background.It's return error "No such file or directory".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My production server has two Server.(I user Tcode SM51).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I read file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sasitha k.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2009 08:37:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-07T08:37:22Z</dc:date>
    <item>
      <title>OPEN DATASET return error when call program background (JOB) in PRD Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588038#M1274052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program read file from application server. And I use statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET path_file FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE errormsg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;path_file = '/inf/HR/100/INCOMING/ZSHRPA_1000000020090421.TXT'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I process program by foreground.It's no error message.&lt;/P&gt;&lt;P&gt;But If I process program by background.It's return error "No such file or directory".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My production server has two Server.(I user Tcode SM51).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I read file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sasitha k.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 08:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588038#M1274052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T08:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET return error when call program background (JOB) in PRD Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588039#M1274053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sasitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You first check the server whether this file really exists or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this you can use tcode AL11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not available then contact the basis consultant to create such path.&lt;/P&gt;&lt;P&gt;if available then send me the code where you are reading the path n data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a Nice Day,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 08:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588039#M1274053</guid>
      <dc:creator>SujeetMishra</dc:creator>
      <dc:date>2009-05-07T08:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET return error when call program background (JOB) in PRD Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588040#M1274054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;File exist in app server path.(use tcode AL11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET path_file FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE errormsg.
  IF sy-subrc = 0.
    DO.
      READ DATASET path_file INTO gw_file.
      IF sy-subrc = 0.
        APPEND gw_file TO it_file.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    IF it_file[] IS INITIAL.
      status = 'E'.
    ENDIF.
  ELSE.
    status = 'E'.
    CONCATENATE errormsg path_file text-e01 into errormsg.
  ENDIF.

  CLOSE DATASET path_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 08:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588040#M1274054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T08:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET return error when call program background (JOB) in PRD Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588041#M1274055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You set Job Schedule with Tcode SM36 and SM37. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should to select Exec.Target that content your file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 10:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588041#M1274055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T10:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET return error when call program background (JOB) in PRD Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588042#M1274056</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;Use this Fm&lt;/P&gt;&lt;P&gt;TXW_FILE_OPEN_FOR_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; DO.&lt;/P&gt;&lt;P&gt;      CLEAR gi_text.&lt;/P&gt;&lt;P&gt;      READ DATASET lv_filename INTO gi_text.&lt;/P&gt;&lt;P&gt;      IF gi_text IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;        APPEND gi_text.&lt;/P&gt;&lt;P&gt;      ENDIF.&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 lv_filename.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 10:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-return-error-when-call-program-background-job-in-prd-server/m-p/5588042#M1274056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T10:07:54Z</dc:date>
    </item>
  </channel>
</rss>

