<?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 Replacing comma with space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345108#M1230992</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;Note : I am using SAP 4.6 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Task      : Replace Comma with space&lt;/P&gt;&lt;P&gt;Problem : Not able to replace comma with space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have task where I have to write result file to application server, when I am writing string to application server it is separating by comma, for example if you take below statement it is dividing by space that means in first column PO and then ITEM etcu2026.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE  'PO ITEM is not there in table EKPO' TO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so to resolve this situation I have used below code for now, I know I can use &lt;/P&gt;&lt;P&gt;REPLACE ... ALL ENTRIES but this statement is not working in SAP 4.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appreciate if somebody can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Mar 2009 15:26:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-15T15:26:52Z</dc:date>
    <item>
      <title>Replacing comma with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345108#M1230992</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;Note : I am using SAP 4.6 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Task      : Replace Comma with space&lt;/P&gt;&lt;P&gt;Problem : Not able to replace comma with space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have task where I have to write result file to application server, when I am writing string to application server it is separating by comma, for example if you take below statement it is dividing by space that means in first column PO and then ITEM etcu2026.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE  'PO ITEM is not there in table EKPO' TO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so to resolve this situation I have used below code for now, I know I can use &lt;/P&gt;&lt;P&gt;REPLACE ... ALL ENTRIES but this statement is not working in SAP 4.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;  CONDENSE W_RECORD_OUT-ERROR_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appreciate if somebody can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 15:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345108#M1230992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-15T15:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing comma with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345109#M1230993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overlay &amp;lt;variable&amp;gt; with &amp;lt;spaces based on length&amp;gt; ONLY ','.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathews&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 15:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345109#M1230993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-15T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing comma with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345110#M1230994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if w_record_out-error_msg ca ','.&lt;/P&gt;&lt;P&gt;split w_record_out-error_msg at ','  into lv_string1 &lt;/P&gt;&lt;P&gt;lv_string2&lt;/P&gt;&lt;P&gt;contatenate lv_string1 lv_string2 seperated by space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 15:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345110#M1230994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-15T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing comma with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345111#M1230995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ur replace statment is fine just dont use ' ' instead use ` ` ( the quotes beside number 1 on top left).&lt;/P&gt;&lt;P&gt;Then it will work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 16:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345111#M1230995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-15T16:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing comma with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345112#M1230996</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;just see the code below if you feel that its fine then you can proceed with it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ',' WITH space INTO W_RECORD_OUT-ERROR_MSG.
"  Replaced with the keyword space&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 16:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345112#M1230996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-15T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing comma with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345113#M1230997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;replace all occurrences of ','&lt;/P&gt;&lt;P&gt;                    in &amp;lt;field&amp;gt; with space . &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 02:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345113#M1230997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T02:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing comma with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345114#M1230998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see: [Inconsistent Behavior of the REPLACE statement|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="578006"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 03:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345114#M1230998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T03:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing comma with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345115#M1230999</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;Please check the below code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  YSAT_TEST.

Data: Var1(40) type c value 'Test1,Test2,Test3,Test4'.

break-point.

REPLACE ',' WITH space INTO Var1.                   " It will replace only first occurrence
replace all occurrences of ',' in var1 with '   '.
CONDENSE Var1 no-gaps.

write: var1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 03:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-comma-with-space/m-p/5345115#M1230999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T03:20:09Z</dc:date>
    </item>
  </channel>
</rss>

