<?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 not creating a file when executing in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909560#M1146204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know about this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Radhika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2008 17:45:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-12T17:45:20Z</dc:date>
    <item>
      <title>Open Data set not creating a file when executing in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909557#M1146201</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 a program which creates a text file. This program is attached to an output type.&lt;/P&gt;&lt;P&gt;When i run a transaction VT70 in background, i dont see any error but the files are not created either.&lt;/P&gt;&lt;P&gt;But if i run it in foreground and in debugging i change sy-batch and force it to run it in background the files are created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code im using:&lt;/P&gt;&lt;P&gt;DATA: l_file TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      l_file = l_manifest.&lt;/P&gt;&lt;P&gt;      OPEN DATASET l_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT MESSAGE    l_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        LOOP AT gt_manifest INTO gs_manifest.&lt;/P&gt;&lt;P&gt;          TRANSFER gs_manifest TO  l_file.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;        CLOSE DATASET  l_file.&lt;/P&gt;&lt;P&gt;      Endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 16:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909557#M1146201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T16:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open Data set not creating a file when executing in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909558#M1146202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;                            WITH SMART LINEFEED.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 17:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909558#M1146202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T17:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Open Data set not creating a file when executing in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909559#M1146203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No this is not working.&lt;/P&gt;&lt;P&gt;After executing in background from VT70 when in go and check in shipment (VT02N) ,&lt;/P&gt;&lt;P&gt;it says directory does not exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 17:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909559#M1146203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T17:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Open Data set not creating a file when executing in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909560#M1146204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know about this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Radhika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 17:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909560#M1146204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T17:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open Data set not creating a file when executing in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909561#M1146205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is ur system UNICODE? Is this is the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess, u can debug a back ground job, some thing like SMQ1, i forgot the tx code!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 18:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909561#M1146205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T18:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open Data set not creating a file when executing in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909562#M1146206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Sm50 you can debug your background running job...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you maintain exceptions or use try this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET filename FOR INPUT IN --BINARY-- MODE.
        IF sy-subrc NE 0.
          WRITE / 'File open failure'.
          RETURN.
        ENDIF.
        READ DATASET filename INTO str_utf16.
        CLOSE DATASET filename.

      CATCH cx_root INTO lr_ex.
        message = lr_ex-&amp;gt;if_message~get_longtext( ).
        WRITE:/ message.
        CLOSE DATASET filename.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 19:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-not-creating-a-file-when-executing-in-background/m-p/4909562#M1146206</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-12T19:50:33Z</dc:date>
    </item>
  </channel>
</rss>

