<?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 method not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-method-not-working/m-p/1958934#M394387</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;The file transfers OK, the problem is the spaces are not present on the output file.  I thought the filler would be output as 10 blank spaces on the end of the data element, but it doesn't output them unless I have a carriage return on the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 09:56:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T09:56:19Z</dc:date>
    <item>
      <title>Transfer method not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-method-not-working/m-p/1958932#M394385</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 have this code to transfer a file, but it doesn't do what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_output TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF e_output,&lt;/P&gt;&lt;P&gt;       text(10)    TYPE c,&lt;/P&gt;&lt;P&gt;       filler(10)    TYPE c.&lt;/P&gt;&lt;P&gt;DATA: END OF e_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_text(10) TYPE c VALUE 'Test Data'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE wa_text TO e_output-text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_output FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;TRANSFER e_output TO p_output.&lt;/P&gt;&lt;P&gt;CLOSE DATASET p_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want in the output is 'Test Data___________'. With the filler showing as blank spaces, the spaces don't work in this forum, so I have represented them with _.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found that it respecs the spaces if I use this code.&lt;/P&gt;&lt;P&gt;CLASS: cl_abap_char_utilities DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_output TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF e_output,&lt;/P&gt;&lt;P&gt;       text(10)    TYPE c,&lt;/P&gt;&lt;P&gt;       filler(200)    TYPE c,&lt;/P&gt;&lt;P&gt;       c_ret TYPE c VALUE cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;DATA: END OF e_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_text(10) TYPE c VALUE 'Test Data'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE wa_text TO e_output-text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_output FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;TRANSFER e_output TO p_output.&lt;/P&gt;&lt;P&gt;CLOSE DATASET p_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then I have an extra line caused by the carriage return.  Any ideas how I can do this?  Just to add, I am on unicode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-method-not-working/m-p/1958932#M394385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer method not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-method-not-working/m-p/1958933#M394386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI jez, &lt;/P&gt;&lt;P&gt;Put a break point at te OPEN dataset statement and see if the open dataset statement is successfull or not.&lt;/P&gt;&lt;P&gt;If it is not, then you may not have the write permission on the application server or the file name is wrong.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-method-not-working/m-p/1958933#M394386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer method not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-method-not-working/m-p/1958934#M394387</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;The file transfers OK, the problem is the spaces are not present on the output file.  I thought the filler would be output as 10 blank spaces on the end of the data element, but it doesn't output them unless I have a carriage return on the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-method-not-working/m-p/1958934#M394387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:56:19Z</dc:date>
    </item>
  </channel>
</rss>

