<?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: about string manipulation ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428872#M542817</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;check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c55479b3dc11d5993800508b6b8b11/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c55479b3dc11d5993800508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2007 06:06:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-20T06:06:47Z</dc:date>
    <item>
      <title>about string manipulation ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428870#M542815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends..&lt;/P&gt;&lt;P&gt;can you tell. me about string manipulation ?&lt;/P&gt;&lt;P&gt;explain with some example ? &lt;/P&gt;&lt;P&gt;how many string manipulation statements are there? explain each with eg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428870#M542815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: about string manipulation ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428871#M542816</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 out the following link it may help you to solve your query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/abap-4-development-code-efficiency-guidelines.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/abap-4-development-code-efficiency-guidelines.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************&lt;STRONG&gt;please reward points if the information is helpful to you&lt;/STRONG&gt;***************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428871#M542816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: about string manipulation ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428872#M542817</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;check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c55479b3dc11d5993800508b6b8b11/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c55479b3dc11d5993800508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428872#M542817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: about string manipulation ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428873#M542818</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;There r so many string manipulation statements in ABAP...&lt;/P&gt;&lt;P&gt;some of those r..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;REPLACE &amp;lt;str1&amp;gt; WITH &amp;lt;str2&amp;gt; INTO &amp;lt;c&amp;gt; [LENGTH &amp;lt;l&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;SHIFT &amp;lt;c&amp;gt; [BY &amp;lt;n&amp;gt; PLACES] [&amp;lt;mode&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;TRANSLATE &amp;lt;c&amp;gt; TO UPPER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;TRANSLATE &amp;lt;c&amp;gt; TO LOWER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;OVERLAY &amp;lt;c1&amp;gt; WITH &amp;lt;c2&amp;gt; [ONLY &amp;lt;str&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;SEARCH &amp;lt;c&amp;gt; FOR &amp;lt;str&amp;gt; &amp;lt;options&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;[COMPUTE] &amp;lt;n&amp;gt; = STRLEN( &amp;lt;c&amp;gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;CONDENSE &amp;lt;c&amp;gt; [NO-GAPS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;CONCATENATE &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt; INTO &amp;lt;c&amp;gt; [SEPARATED BY &amp;lt;s&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;MOVE &amp;lt;c1&amp;gt; TO &amp;lt;c2&amp;gt; PERCENTAGE &amp;lt;p&amp;gt; [RIGHT].&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;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428873#M542818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: about string manipulation ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428874#M542819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Processing Byte Strings and Character Strings &lt;/P&gt;&lt;P&gt;This section describes the statements that are specially intended for processing byte and character strings in byte-type data objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Byte Strings and Character Strings &lt;/P&gt;&lt;P&gt;Byte-type data objects contain byte strings. A byte-type data object always has a byte-type data type x or xstring. &lt;/P&gt;&lt;P&gt;Character-type data objects contain character strings. A character-type data object either has a character-type data type c, d, n, t, string or is a structure with purely character-type components. &lt;/P&gt;&lt;P&gt;Since Release 6.10 any flat structures and byte-type data objects can only be treated as character strings outside Unicode programs. Before Release 6.10, this was possible in all programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instructions for Byte and Character String Processing &lt;/P&gt;&lt;P&gt;The following table lists the keywords for byte and character string processing and states which processes the statements support: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key word            Byte string processing    Character string processing &lt;/P&gt;&lt;P&gt;CONCATENATE                   x                        x &lt;/P&gt;&lt;P&gt;FIND                                    x                        x &lt;/P&gt;&lt;P&gt;SEARCH                              x                        x &lt;/P&gt;&lt;P&gt;REPLACE                            x                        x &lt;/P&gt;&lt;P&gt;SHIFT                                  x                        x &lt;/P&gt;&lt;P&gt;SPLIT                                  x                        x &lt;/P&gt;&lt;P&gt;CONDENSE                        -                         x &lt;/P&gt;&lt;P&gt;CONVERT TEXT                  -                         x &lt;/P&gt;&lt;P&gt;OVERLAY                          -                         x &lt;/P&gt;&lt;P&gt;TRANSLATE                      -                          x &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SET BIT                             x                           - &lt;/P&gt;&lt;P&gt;GET BIT                             x                           - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Release 6.10, there is a clear difference between the processing of byte strings and character strings. Since Release 6.10, the keywords in the table that support both byte and character string processing have an optional addition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... IN { BYTE | CHARACTER } MODE ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This addition defines which process is carried out. If the addition is not specified, character string processing is carried out in these statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before Release 6.10, this addition cannot be specified. The system always carries out character string processing. Flat structures and byte strings are treated as character strings (implicit casting). All statements for which explicit byte string processing is possible since Release 6.10 (according to the table above) have the correct result when accessing byte strings even before Release 6.10, provided the character-type processing of the binary content is irrelevant. As of Release 6.10, character string processing and the statements GET BIT or SET BIT are only possible outside Unicode programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operands in Byte and Character String Processing &lt;/P&gt;&lt;P&gt;Operands in Byte String Processing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With byte string processing triggered by the IN BYTE MODE addition and in the statements GET BIT or SET BIT, the relevant operands must be byte-type because they are processed byte-by-byte. This condition applies within and outside classes and in both Unicode and non-Unicode programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operands in Character String Processing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With character string processing defined using the IN CHARACTER MODE addition and in the statements that support only character string processing, the relevant operands must be character-type, because they are processed character-by-character and the storage of the characters in the memory depends on the Codepage used. This condition is essential for character string processing to function properly, but is checked in different ways: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before Release 6.10, non-observance of this rule will only cause a syntax error or exception within classes. &lt;/P&gt;&lt;P&gt;As of Release 6.10, the condition is checked in both classes and Unicode programs in the syntax check or at runtime. Outside of classes or in non-Unicode programs, non-observance of this rule will only cause a syntax check warning, but no exception. &lt;/P&gt;&lt;P&gt;Note that in Unicode programs, the term character-type has a more specific meaning than in non-Unicode programs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Unicode programs, only data objects of the character-type data types c, d, n, t, and string or structures with purely character-type components are character-type. Data objects of the type d, n, or t and structures with purely character-type components are handled like data objects of the type c (implicit casting). &lt;/P&gt;&lt;P&gt;In non-Unicode programs any flat structures and byte-type data objects can also be character-type. Operands of non-character-type data types are also treated like character-type data objects of the type c, irrespective of their type (implicit casting). &lt;/P&gt;&lt;P&gt;In non-Unicode programs, that is especially all programs before Release 6.10, the last point allows character string processing of byte strings with the same results as the byte string processing as from Release 6.10, if the statement is appropriate (according to the table above). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If you use the character-type data objects d, n, or t in character string processing when assigning interim results to target fields, note that the rules for the data type c apply and not the type-specific conversion rules. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handling Closing Blanks in Character String Processing &lt;/P&gt;&lt;P&gt;With operands of the data types with fixed length (c, d, n, and t or structures regarded as character-type), leading blanks in the statements for character string processing are generally taken into account, while closing blanks are truncated. Exceptions to this rule are listed for the relevant statements. In the case of operands of the data type string, all blanks are taken into account. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the result of a statement for character string processing is assigned to an operand, it is generally filled with blanks on the right if the result is shorter than the length of the operand. When assigning to a string, its length generally adapts to that of the result. Exceptions to this rule are listed for the relevant statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;These rules also apply particularly to the processing of byte strings in non-Unicode programs. If a byte string contains values in its closing bytes that represent the space character in the current codepage, these bytes are truncated in insufficiently long result fields of fixed length while result fields that are too long are filled with these byte values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428874#M542819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: about string manipulation ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428875#M542820</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;String Manipulation is nothing but Processing Strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String Manipulation Statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Shifting Field Contents &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; [BY &amp;lt;n&amp;gt; PLACES] [&amp;lt;mode&amp;gt;].&lt;/P&gt;&lt;P&gt;&amp;lt;mode&amp;gt; - LEFT,RIGHT,CIRCULAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; UP TO &amp;lt;str&amp;gt; &amp;lt;mode&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; LEFT DELETING LEADING &amp;lt;str&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; RIGHT DELETING TRAILING &amp;lt;str&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)To replace a string in a field with a different string, use the REPLACE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE &amp;lt;str1&amp;gt; WITH &amp;lt;str2&amp;gt; INTO &amp;lt;c&amp;gt; [LENGTH &amp;lt;l&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Converting to Upper or Lower Case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; TO UPPER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; TO LOWER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substituting Characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; USING &amp;lt;r&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)Overlaying Character Fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OVERLAY statement overlays one string with another: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OVERLAY &amp;lt;c1&amp;gt; WITH &amp;lt;c2&amp;gt; [ONLY &amp;lt;str&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)Finding Character Strings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To search a character field for a particular pattern, use the SEARCH statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH &amp;lt;c&amp;gt; FOR &amp;lt;str&amp;gt; &amp;lt;options&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)Condensing Field Contents &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONDENSE statement deletes redundant spaces from a string: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE &amp;lt;c&amp;gt; [NO-GAPS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7)Finding the Length of a Character String &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP function STRLEN returns the length of a string up to the last character that is not a space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[COMPUTE] &amp;lt;n&amp;gt; = STRLEN( &amp;lt;c&amp;gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8)Concatenating Character Strings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONCATENATE statement combines two or more separate strings into one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt; INTO &amp;lt;c&amp;gt; [SEPARATED BY &amp;lt;s&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement concatenates the character fields &amp;lt;c1&amp;gt; to &amp;lt;cn&amp;gt; and assigns the result to &amp;lt;c&amp;gt;. The system ignores spaces at the end of the individual source strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition SEPARATED BY &amp;lt;s&amp;gt; allows you to specify a character field &amp;lt;s&amp;gt; which is placed in its defined length between the individual fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9)Splitting Character Strings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To split a character string into two or more smaller strings, use the SPLIT statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system searches the field &amp;lt;c&amp;gt; for the separator &amp;lt;del&amp;gt;. The parts before and after the separator are placed in the target fields &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To place all fragments in different target fields, you must specify enough target fields. Otherwise, the last target field is filled with the rest of the field &amp;lt;c&amp;gt; and still contains delimiters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10)Assigning Parts of Character Strings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following variant of the MOVE statement works only with type C fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;c1&amp;gt; TO &amp;lt;c2&amp;gt; PERCENTAGE &amp;lt;p&amp;gt; [RIGHT].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the percentage &amp;lt;p&amp;gt; percent of the character field &amp;lt;c1&amp;gt; left-justified (or right-justified if specified with the RIGHT option) to &amp;lt;c2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of &amp;lt;p&amp;gt; can be a number between 0 and 100. The length to be copied from &amp;lt;f1&amp;gt; is rounded up or down to the next whole number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one of the arguments in the statement is not type C, the parameter PERCENTAGE is ignored.&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;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428875#M542820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: about string manipulation ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428876#M542821</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;String Manipulation is nothing but Processing Strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;String Manipulation Statements:&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1)Shifting Field Contents&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; [BY &amp;lt;n&amp;gt; PLACES] [&amp;lt;mode&amp;gt;]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;mode&amp;gt; - LEFT,RIGHT,CIRCULAR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; UP TO &amp;lt;str&amp;gt; &amp;lt;mode&amp;gt;. &lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; LEFT DELETING LEADING &amp;lt;str&amp;gt;. &lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; RIGHT DELETING TRAILING &amp;lt;str&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2)Replacing Field Contents&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To replace a string in a field with a different string, use the REPLACE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE &amp;lt;str1&amp;gt; WITH &amp;lt;str2&amp;gt; INTO &amp;lt;c&amp;gt; [LENGTH &amp;lt;l&amp;gt;]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;3)Converting to Upper or Lower Case&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; TO UPPER CASE. TRANSLATE &amp;lt;c&amp;gt; TO LOWER CASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Substituting Characters&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; USING &amp;lt;r&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;4)Overlaying Character Fields&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OVERLAY statement overlays one string with another: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OVERLAY &amp;lt;c1&amp;gt; WITH &amp;lt;c2&amp;gt; [ONLY &amp;lt;str&amp;gt;]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;5)Finding Character Strings&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To search a character field for a particular pattern, use the SEARCH statement as follows: &lt;/P&gt;&lt;P&gt;SEARCH &amp;lt;c&amp;gt; FOR &amp;lt;str&amp;gt; &amp;lt;options&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;6)Condensing Field Contents&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONDENSE statement deletes redundant spaces from a string: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE &amp;lt;c&amp;gt; [NO-GAPS]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;7)Finding the Length of a Character String&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP function STRLEN returns the length of a string up to the last character that is not a space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[COMPUTE] &amp;lt;n&amp;gt; = STRLEN( &amp;lt;c&amp;gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The keyword COMPUTE is optional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;8)Concatenating Character Strings&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONCATENATE statement combines two or more separate strings into one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt; INTO &amp;lt;c&amp;gt; [SEPARATED BY ]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement concatenates the character fields &amp;lt;c1&amp;gt; to &amp;lt;cn&amp;gt; and assigns the result to &amp;lt;c&amp;gt;. &lt;/P&gt;&lt;P&gt;The system ignores spaces at the end of the individual source strings. The addition SEPARATED BY allows you to specify a character field which is placed in its defined length between the individual fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;9)Splitting Character Strings&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To split a character string into two or more smaller strings, use the SPLIT statement as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system searches the field &amp;lt;c&amp;gt; for the separator &amp;lt;del&amp;gt;. The parts before and after the separator are placed in the target fields &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To place all fragments in different target fields, you must specify enough target fields. Otherwise, the last target field is filled with the rest of the field &amp;lt;c&amp;gt; and still contains delimiters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;10)Assigning Parts of Character Strings&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following variant of the MOVE statement works only with type C fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MOVE &amp;lt;c1&amp;gt; TO &amp;lt;c2&amp;gt; PERCENTAGE [RIGHT]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the percentage &amp;lt;p&amp;gt; percent of the character field &amp;lt;c1&amp;gt; left-justified (or right-justified if specified with the RIGHT option) to &amp;lt;c2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of &amp;lt;p&amp;gt;can be a number between 0 and 100. The length to be copied from &amp;lt;f1&amp;gt; is rounded up or down to the next whole number. If one of the arguments in the statement is not type C, the parameter PERCENTAGE is ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-string-manipulation/m-p/2428876#M542821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:19:31Z</dc:date>
    </item>
  </channel>
</rss>

