<?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 DATASET returning '#' character in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438161#M1053223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this REPLACE cl_abap_char_utilities=&amp;gt;horizontal_tab IN wa_tab with SPACE and check in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SPACE is not working, use ` `. &lt;/P&gt;&lt;P&gt;To get `, press the button before 1 button in the keyboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2008 04:01:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-15T04:01:03Z</dc:date>
    <item>
      <title>OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438157#M1053219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts, I have a question regarding the OPEN DATASET. I know that there are so many threads regarding OPEN DATASET, however, i haven't found any issues like mine. So, here is the issue &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to uploading a text file in a format (MT940) to t-code FF.5 in a background mode. In my program, i am using the OPEN DATASET to read the file and implement some validation in my program. The problem is like this: in the end of each line of the text file, it seems an extra character is appear. For example, if the actual line in the file is &lt;STRONG&gt;'1234567'&lt;/STRONG&gt; then, when use OPEN DATASET, the ABAP will read that line as &lt;STRONG&gt;'1234567#'&lt;/STRONG&gt; . Any one know why? And anyone know if that &lt;STRONG&gt;'#'&lt;/STRONG&gt; characters will always be in the end of the line ? Anyway, my OPEN DATASET code is like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;OPEN DATASET dsn FOR INPUT IN TEXT MODE ENCODING UTF-8 TYPE 'UNIX' .&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone could tell me what i am doing wrong or anyone have any suggestions, please feel free to reply to my threads..All useful suggestion will be rewarded...Thank you in advance guys....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 03:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438157#M1053219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T03:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438158#M1053220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are getting the '#' at the end of each line , then that means it is NEWLINE symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can replace the '#'  NEWLINE using the CL_ABAP_CAHR_UTILITIES=&amp;gt;NEWLINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE CL_ABAP_CAHR_UTILITIES=&amp;gt;NEWLINE in w_record with space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 03:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438158#M1053220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T03:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438159#M1053221</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 also faced the similar sitation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Us e the following codeing to remove that # symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can search for that # using the method, cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;So your coding should look like this. REPLACE cl_abap_char_utilities=&amp;gt;horizontal_tab IN wa_tab with space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional Information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concept behind that is, every character including space can be represented in Hexadecimal Format. The Hexadecimal value for TAB is 9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 03:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438159#M1053221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T03:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438160#M1053222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just tried using the &lt;EM&gt;REPLACE cl_abap_char_utilities=&amp;gt;cr_lf IN my_wa WITH space&lt;/EM&gt; , &lt;EM&gt;REPLACE cl_abap_char_utilities=&amp;gt;newline IN my_wa WITH space&lt;/EM&gt; and &lt;EM&gt;REPLACE cl_abap_char_utilities=&amp;gt;horizontal_tab IN my_wa WITH space&lt;/EM&gt; and it does not seems to have any effect at all. I know this because i am inserting the text file line to a table and i still can see the '#' character in it. Anymore suggestion? Thank you so much anyway...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 03:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438160#M1053222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T03:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438161#M1053223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this REPLACE cl_abap_char_utilities=&amp;gt;horizontal_tab IN wa_tab with SPACE and check in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SPACE is not working, use ` `. &lt;/P&gt;&lt;P&gt;To get `, press the button before 1 button in the keyboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 04:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438161#M1053223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T04:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438162#M1053224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing cross platform transfers?&lt;/P&gt;&lt;P&gt;I mean is the file comming from a UNIX sytem to a Windows system or vice versa. read dataset normally doesnt read the end of line character unless the file was transfered incorrectly. IF you are doing cross platfor transfers you have to select the appropriate transfer mode so that the unix end of line character is replaced by windows end of line character or vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above statement is true for you then the hash you see is not actually a hash, instead it is the end of line character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use the right transfer mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 04:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438162#M1053224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T04:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438163#M1053225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, my actual file is actually in Windows environment then i copied the file to my AIX system (where my SAP is installed) then the my program is execute the FF.5 by using the file that is already in the AIX system...Is that make anything different?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 04:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438163#M1053225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T04:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438164#M1053226</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;cross platform data trnsfer is appending  the # .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using CG3Z to do drop the file to app server using ASCII mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 04:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438164#M1053226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T04:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438165#M1053227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; cross platform data trnsfer is appending  the # .&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; try using CG3Z to do drop the file to app server using ASCII mode&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; regards&lt;/P&gt;&lt;P&gt;&amp;gt; vivek&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, is the '#' character will always be there in every end of line? If that is the case, than probably i can just delete the last character of each line of my text file in my program. What do you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 06:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438165#M1053227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T06:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438166#M1053228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following code.&lt;/P&gt;&lt;P&gt;OPEN DATASET dsn FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 06:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438166#M1053228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T06:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438167#M1053229</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 can do that but that wil be computing effort...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u can find a way to upload file in ASCII mode there shouldn't be any problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i think deleteing symbol in code wont be that easy..&lt;/P&gt;&lt;P&gt;i have used dat...its diif to do...let me know if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 06:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438167#M1053229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T06:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438168#M1053230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Use the following code.&lt;/P&gt;&lt;P&gt;&amp;gt; OPEN DATASET dsn FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did...This is the first thing i did when using OPEN DATASET....Thank you very much anyway...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 06:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438168#M1053230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T06:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438169#M1053231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the character is in end of line then that is NEWLINE, so try to use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after open the dataset, Read the records then replace the NEWLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE CL_ABAP_CAHR_UTILITIES=&amp;gt;NEWLINE in w_record with space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you Try that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 08:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438169#M1053231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T08:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438170#M1053232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; if the character is in end of line then that is NEWLINE, so try to use this&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; after open the dataset, Read the records then replace the NEWLINE.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;REPLACE CL_ABAP_CAHR_UTILITIES=&amp;gt;NEWLINE in w_record with space.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Did you Try that...&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, i tried that...and the '#' is still there...I also tried:&lt;/P&gt;&lt;P&gt;          REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=&amp;gt;horizontal_tab IN rec WITH space&lt;/P&gt;&lt;P&gt;          REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=&amp;gt;cr_lf IN rec WITH space.&lt;/P&gt;&lt;P&gt;          REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=&amp;gt;newline IN rec WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it's not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 09:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438170#M1053232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T09:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438171#M1053233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;as i said it will be diff to change the symbol in code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try file transfer with ASCII.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 09:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438171#M1053233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T09:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438172#M1053234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then it is From CR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try with this example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_REMOVE_CR.

data: cr(1) type c.
data: text(10).

cr = cl_abap_char_utilities=&amp;gt;cr_lf.

text = cr.


replace cr in text with space.

write text.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in you case it will be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF cr IN rec WITH space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 09:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438172#M1053234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T09:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438173#M1053235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi&lt;/P&gt;&lt;P&gt;&amp;gt; as i said it will be diff to change the symbol in code.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; try file transfer with ASCII.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; regards&lt;/P&gt;&lt;P&gt;&amp;gt; vivek&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to upload a file to SAP apps server in background mode? Because when i am using the CG3Z, it only works when i execute my function module in front end (via GUI). However, when i execute my function module from my middleware (webmethods), it doesn't work. It seems CG3Z is only for front end upload... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Any idea guys?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 06:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438173#M1053235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T06:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438174#M1053236</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;Unfortunately, the GUI FM's can only be used in foreground... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In background you need to use open dataset.&lt;/P&gt;&lt;P&gt;If there is the  '#', it might be because the data type  you are using is not char, please try using a data type of CHAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sooness&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 06:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438174#M1053236</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2008-09-17T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET returning '#' character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438175#M1053237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same problem... looks like OPEN DATASET WITH SMART LINEFEED removes the '#'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 20:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-returning-character/m-p/4438175#M1053237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-25T20:24:54Z</dc:date>
    </item>
  </channel>
</rss>

