<?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: Space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829364#M662116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Master , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think my question is not clear.&lt;/P&gt;&lt;P&gt;Again sir ,&lt;/P&gt;&lt;P&gt;My problem is I want to have one space from '#' character to its right side character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text field name description::&lt;/P&gt;&lt;P&gt;example::&lt;/P&gt;&lt;P&gt;description field::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;color blue #house.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to achieve this::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;color blue # house.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you see the difference?In the first text '#' house appears no space I want to have a space in between '#' character and in the right character like this '#' one space house.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why I need to have this..&lt;/P&gt;&lt;P&gt;Because when I download the file in the excel the problem is every '#' found the right character after the '#' proceeds to the next line which is wrong so I want to have at least one space between '#' character and to its right side character to avoid this error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i made it clear..&lt;/P&gt;&lt;P&gt;Sorry for the inconvinience...&lt;/P&gt;&lt;P&gt;Many thanks..&lt;/P&gt;&lt;P&gt;Help me!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 01:40:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T01:40:02Z</dc:date>
    <item>
      <title>Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829362#M662114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea on how i can separate '#' from its right side character.&lt;/P&gt;&lt;P&gt;example::&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TEXT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;#SHINE  (NO SPACE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TEXT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;SHINE (# ONE SPACE FROM SHINE)&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 01:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829362#M662114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T01:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829363#M662115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make use of the SPLIT command.&lt;/P&gt;&lt;P&gt;See the F1 help of how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : text(30) TYPE c.
DATA : text1(30) TYPE c,
       text2(30) TYPE c.

text = '# String'.

SPLIT text AT '#' INTO text1 text2.
CONDENSE text2 NO-GAPS. " removes spaces
WRITE : text1, text2. " text2 gives you STRING
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 01:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829363#M662115</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-09-19T01:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829364#M662116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Master , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think my question is not clear.&lt;/P&gt;&lt;P&gt;Again sir ,&lt;/P&gt;&lt;P&gt;My problem is I want to have one space from '#' character to its right side character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text field name description::&lt;/P&gt;&lt;P&gt;example::&lt;/P&gt;&lt;P&gt;description field::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;color blue #house.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to achieve this::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;color blue # house.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you see the difference?In the first text '#' house appears no space I want to have a space in between '#' character and in the right character like this '#' one space house.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why I need to have this..&lt;/P&gt;&lt;P&gt;Because when I download the file in the excel the problem is every '#' found the right character after the '#' proceeds to the next line which is wrong so I want to have at least one space between '#' character and to its right side character to avoid this error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i made it clear..&lt;/P&gt;&lt;P&gt;Sorry for the inconvinience...&lt;/P&gt;&lt;P&gt;Many thanks..&lt;/P&gt;&lt;P&gt;Help me!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 01:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829364#M662116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T01:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829365#M662117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab_data occurs 0 ,&lt;/P&gt;&lt;P&gt;        matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;        maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;        cr    type x value '0D',              &amp;lt;-- add this line&lt;/P&gt;&lt;P&gt;end of itab_data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;itab_data-matnr = '0000000000000000098'.&lt;/P&gt;&lt;P&gt;itab_data-maktx = '1234567890'.&lt;/P&gt;&lt;P&gt;append itab_data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME = 'C:\testddd.txt'&lt;/P&gt;&lt;P&gt;    FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;    WRITE_FIELD_SEPARATOR = ' '&lt;/P&gt;&lt;P&gt;    TRUNC_TRAILING_BLANKS = ' '               &amp;lt;--  set to space&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB = itab_data&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FILE_WRITE_ERROR = 1&lt;/P&gt;&lt;P&gt;    NO_BATCH = 2&lt;/P&gt;&lt;P&gt;    GUI_REFUSE_FILETRANSFER = 3&lt;/P&gt;&lt;P&gt;    INVALID_TYPE = 4&lt;/P&gt;&lt;P&gt;    NO_AUTHORITY = 5&lt;/P&gt;&lt;P&gt;    UNKNOWN_ERROR = 6&lt;/P&gt;&lt;P&gt;    HEADER_NOT_ALLOWED = 7&lt;/P&gt;&lt;P&gt;    SEPARATOR_NOT_ALLOWED = 8&lt;/P&gt;&lt;P&gt;    FILESIZE_NOT_ALLOWED = 9&lt;/P&gt;&lt;P&gt;    HEADER_TOO_LONG = 10&lt;/P&gt;&lt;P&gt;    DP_ERROR_CREATE = 11&lt;/P&gt;&lt;P&gt;    DP_ERROR_SEND = 12&lt;/P&gt;&lt;P&gt;    DP_ERROR_WRITE = 13&lt;/P&gt;&lt;P&gt;    UNKNOWN_DP_ERROR = 14&lt;/P&gt;&lt;P&gt;    ACCESS_DENIED = 15&lt;/P&gt;&lt;P&gt;    DP_OUT_OF_MEMORY = 16&lt;/P&gt;&lt;P&gt;    DISK_FULL = 17&lt;/P&gt;&lt;P&gt;    DP_TIMEOUT = 18&lt;/P&gt;&lt;P&gt;    FILE_NOT_FOUND = 19&lt;/P&gt;&lt;P&gt;    DATAPROVIDER_EXCEPTION = 20&lt;/P&gt;&lt;P&gt;    CONTROL_FLUSH_ERROR = 21&lt;/P&gt;&lt;P&gt;    OTHERS = 22.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 01:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829365#M662117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T01:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829366#M662118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Master , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly explain what is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE_FIELD_SEPARATOR = ' '&lt;/P&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS = ' ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did follow your advise and it seems good. But I need to verify first what does these functions are for?? Before I transport in QAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 02:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829366#M662118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T02:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829367#M662119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Salma,&lt;/P&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data old type string value 'color blue#house'.
data new type string.
data pos like sy-fdpos.

search old for '#'.
if sy-subrc = 0.
  pos = sy-fdpos + 1.
endif.

concatenate old(pos) old+pos into new separated by space.
write:/ new.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 03:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829367#M662119</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-09-19T03:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829368#M662120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Salma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a same issue and please check the my thread :&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="564653"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 03:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829368#M662120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T03:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829369#M662121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you pasted the wrong link &lt;SPAN __jive_emoticon_name="plain"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 03:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829369#M662121</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-09-19T03:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829370#M662122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh  I am so sorry Kris ,copy and paste was the problem at my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow check it now :&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="309319"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 03:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829370#M662122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T03:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829371#M662123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Salma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are getting # this problem arise becasue of length problem look if you are using DAT format then also you have to maintain the length of a field, which is define in data dictionary, as you are using Excel to upload/download the it will take tab sapce(1 tab = 8 space) between the field, so to mark the end of one field to have to use some seperator which you mention as 'X' caps. try to put X in the call function hope it will resolve problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME = '&amp;lt;Drive:\&amp;gt;&amp;lt;filename.etx&amp;gt;'&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;WRITE_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mehfuze&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 03:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space/m-p/2829371#M662123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T03:57:20Z</dc:date>
    </item>
  </channel>
</rss>

