<?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: Transfer  command not working fine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752340#M640231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naval,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are using a dataset... first you have to lock it. after your usage you have to unlock it. The property CONSISTENCY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your problem occurs due to.. already some other user is using that dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful.&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;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2007 07:21:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-31T07:21:34Z</dc:date>
    <item>
      <title>Transfer  command not working fine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752339#M640230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all .... I am using the following code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not giving any error and file is also getting created but when we view the file in AL11 the file dosnet shows the  data updated and gives a message that the data in the file cant be viewed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET i_file FOR OUTPUT IN BINARY MODE .&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT i_record INTO wa_record .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TRANSFER wa_record-FELD1 TO i_file.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0 .&lt;/P&gt;&lt;P&gt;        RAISE  open_dataset_no_authority.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0 .&lt;/P&gt;&lt;P&gt;      RAISE error_opening_file.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Naval Bhatt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 07:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752339#M640230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T07:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer  command not working fine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752340#M640231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naval,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are using a dataset... first you have to lock it. after your usage you have to unlock it. The property CONSISTENCY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your problem occurs due to.. already some other user is using that dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful.&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;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 07:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752340#M640231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T07:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer  command not working fine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752341#M640232</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 should add tha statement close dataset like in the code below , else it won't release the lock to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;        LOOP AT gt_fichier INTO gs_fichier.&lt;/P&gt;&lt;P&gt;          TRANSFER gs_fichier TO p_file.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;       &amp;lt;b&amp;gt; CLOSE DATASET p_file.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 07:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752341#M640232</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-08-31T07:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer  command not working fine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752342#M640233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...Naval...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may be bcoz you opened the file in BINARY mode.&lt;/P&gt;&lt;P&gt;In this mode records are not transferred line be line.&lt;/P&gt;&lt;P&gt;So you can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Varma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 07:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752342#M640233</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-31T07:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer  command not working fine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752343#M640234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naval,&lt;/P&gt;&lt;P&gt;             Refer this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; open dataset i_files for output in text mode encoding default.&lt;/P&gt;&lt;P&gt; loop at i_data into wa_data.&lt;/P&gt;&lt;P&gt; transfer wa_data to i_files.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt; close dataset i_files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; message i001.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; clear files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 07:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-command-not-working-fine/m-p/2752343#M640234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T07:35:23Z</dc:date>
    </item>
  </channel>
</rss>

