<?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 special characters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952827#M944811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have reqwirement, Purchasing data, using data source 2LIS_02_SCL (Purchasing Data (Schedule Line Level)) fails frequently because it brings unassigned "#" values for the object ZQUOTNUM (Quotation number). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To eliminate the unassigned "#" values automatically write a routine at transfer rules leval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I found out one function module SCP_REPLACE_STRANGE_CHARS but how to use this function module&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;Venkat Marneni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 07:01:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-29T07:01:38Z</dc:date>
    <item>
      <title>Replacing special characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952827#M944811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have reqwirement, Purchasing data, using data source 2LIS_02_SCL (Purchasing Data (Schedule Line Level)) fails frequently because it brings unassigned "#" values for the object ZQUOTNUM (Quotation number). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To eliminate the unassigned "#" values automatically write a routine at transfer rules leval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I found out one function module SCP_REPLACE_STRANGE_CHARS but how to use this function module&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;Venkat Marneni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 07:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952827#M944811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T07:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing special characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952828#M944812</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 use the "replace' statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: c_char type char1 value '#',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_text is the input text( purchasing data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REPLACE ALL OCCURRENCES OF  c_char IN w_text WITH  c_colon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_colon is the replacement value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sriram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 07:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952828#M944812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T07:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing special characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952829#M944813</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 create a function with this code .... and assign the result parameter.&lt;/P&gt;&lt;P&gt;Remember you need to do only Result parameter..&lt;/P&gt;&lt;P&gt;Code follows...&lt;/P&gt;&lt;P&gt;FUNCTION Z_TO_CHANGE_SPECIAL_CHARS.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;  DATA: L_USER_ALLOWED_CHAR TYPE RSALLOWEDCHAR,&lt;/P&gt;&lt;P&gt;  L_ALL_ALLOWED_CHAR(140) TYPE C,&lt;/P&gt;&lt;P&gt;  L_RESULT_STR_LEN TYPE I,&lt;/P&gt;&lt;P&gt;  L_STR_INCREMENT TYPE I.&lt;/P&gt;&lt;P&gt;  CONSTANTS C_SAP_ALLOWED_CHAR(58) TYPE C VALUE&lt;/P&gt;&lt;P&gt;  ' !"%&amp;amp;''()*+,-./:;&amp;lt;=&amp;gt;?_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF L_ALL_ALLOWED_CHAR IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM RSALLOWEDCHAR&lt;/P&gt;&lt;P&gt;    INTO L_USER_ALLOWED_CHAR&lt;/P&gt;&lt;P&gt;    WHERE ALLOWKEY = 'S'.&lt;/P&gt;&lt;P&gt;    CONCATENATE C_SAP_ALLOWED_CHAR&lt;/P&gt;&lt;P&gt;    L_USER_ALLOWED_CHAR-ALLOWCHAR&lt;/P&gt;&lt;P&gt;    INTO L_ALL_ALLOWED_CHAR.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  RESULT = TRAN_STRUCTURE-ZZZ.&lt;/P&gt;&lt;P&gt;  TRANSLATE RESULT TO UPPER CASE.&lt;/P&gt;&lt;P&gt;  L_RESULT_STR_LEN = STRLEN( RESULT ).&lt;/P&gt;&lt;P&gt;  L_STR_INCREMENT = 0.&lt;/P&gt;&lt;P&gt;  WHILE L_STR_INCREMENT L_RESULT_STR_LEN.&lt;/P&gt;&lt;P&gt;    IF NOT RESULT+L_STR_INCREMENT(1) CO L_ALL_ALLOWED_CHAR.&lt;/P&gt;&lt;P&gt;      RESULT+L_STR_INCREMENT(1) = ' '.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    ADD 1 TO L_STR_INCREMENT.&lt;/P&gt;&lt;P&gt;  ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add your table or structure to the RESULT parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are writing a routine... You just copy the whole code and paste it between form ... end form... statments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this works..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 08:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952829#M944813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T08:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing special characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952830#M944814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:char(25) value '5#4#2#&amp;amp;1#&amp;amp;' .&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;       replace all occurrences of '#' in char with space.&lt;/P&gt;&lt;P&gt;       replace all occurrences of '&amp;amp;' in char with space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     write: char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 08:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-special-characters/m-p/3952830#M944814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T08:50:22Z</dc:date>
    </item>
  </channel>
</rss>

