<?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: string processing statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535993#M850776</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;Here are some examples....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) CONCATENATE C1 C2 C3 C4 INTO C5.&lt;/P&gt;&lt;P&gt;	WRITE C5.&lt;/P&gt;&lt;P&gt;2) LEN = STRLEN( STRING ).&lt;/P&gt;&lt;P&gt;3) CONDENSE STRING.&lt;/P&gt;&lt;P&gt;4) TRANSLATE STRING TO LOWER CASE.&lt;/P&gt;&lt;P&gt;5) TRANSLATE STRING TO UPPER CASE.&lt;/P&gt;&lt;P&gt;6) TRANSLATE STRING USING RULE.&lt;/P&gt;&lt;P&gt;7) OVERLAY STRING WITH OVER ONLY STR.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; REPLACE STR1 WITH STR2 INTO STRING.&lt;/P&gt;&lt;P&gt;9) SPLIT STRING AT DEL INTO P1 P2 P3 P4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search SAP help for more string processing statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 04:31:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T04:31:25Z</dc:date>
    <item>
      <title>string processing statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535991#M850774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  i like to know what is string processing statement and i like to have an example for string processing statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535991#M850774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: string processing statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535992#M850775</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;hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Reward if help.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String processing statements, whose arguments were all interpreted as fields of type C until now, are now divided into statements with character arguments and those with byte arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String processing statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ... WITH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT TEXT ... INTO SORTABLE CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OVERLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... TO UPPER/LOWER CASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... USING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The arguments of these instructions must be single fields of type C, N, D, T or STRING or structures of character-type only. There is a syntax or runtime error if arguments of a different type are passed. A subset of this function is provided with the addition IN BYTE MODE for processing byte strings &amp;#150; that is, operands of type X or XSTRING. A statement such as CONCATENATE a x b INTO c is thus no longer possible when a,b, and c are all character-type, but x is of type X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... CODEPAGE ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... NUMBER FORMAT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statements are not allowed in Unicode programs. Instead, you can use the new conversion classes, which are described in more detail in Converting Data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparison operators for string processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CO &lt;/P&gt;&lt;P&gt;CN &lt;/P&gt;&lt;P&gt;CA &lt;/P&gt;&lt;P&gt;NA &lt;/P&gt;&lt;P&gt;CS &lt;/P&gt;&lt;P&gt;NS &lt;/P&gt;&lt;P&gt;CP &lt;/P&gt;&lt;P&gt;NP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As with the string processing statements, these operators need single fields of type C, N, D, T or STRING as arguments and again structures of character-type only are allowed. Special compare operators defined with the prefix BYTE- are provided for byte strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions for string processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function STRLEN only works with character-type fields and returns the length in characters. The new function XSTRLEN finds the length of byte strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until now, function CHARLEN returned the value1 for a text field beginning with a single byte character under an NUS. The value 2 is returned for text fields beginning with a double byte character. Under a US, CHARLEN returns the value 1 if text begins with a single Unicode character. If text begins with a Unicode double character from the surrogate area, the value 2 is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function NUMOFCHAR returns the number of characters in a string or a character-type field. In single byte code pages, the function behaves like STRLEN. In multi-byte code pages, characters filling more than 1 byte are nevertheless considered to have length 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output in fields and lists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In WRITE ...TO, any flat data types that were handled like C fields were allowed as the target field. A UP now requires that the target field be of character-type in a WRITE ... TO ... statement. The line type of the table must be of character-type for the table variant WRITE ... TO itab INDEX idx. The offset and length are counted in characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until now, any flat structures could be output with WRITE. If the source field is a flat structure in a WRITE, it must have character-type only, in a UP. This affects the following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE f TO g[+off][(len)].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE (name) TO g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE f TO itab[+off][(len)] INDEX idx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE (name) TO itab[+off][(len)] INDEX idx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535992#M850775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: string processing statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535993#M850776</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;Here are some examples....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) CONCATENATE C1 C2 C3 C4 INTO C5.&lt;/P&gt;&lt;P&gt;	WRITE C5.&lt;/P&gt;&lt;P&gt;2) LEN = STRLEN( STRING ).&lt;/P&gt;&lt;P&gt;3) CONDENSE STRING.&lt;/P&gt;&lt;P&gt;4) TRANSLATE STRING TO LOWER CASE.&lt;/P&gt;&lt;P&gt;5) TRANSLATE STRING TO UPPER CASE.&lt;/P&gt;&lt;P&gt;6) TRANSLATE STRING USING RULE.&lt;/P&gt;&lt;P&gt;7) OVERLAY STRING WITH OVER ONLY STR.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; REPLACE STR1 WITH STR2 INTO STRING.&lt;/P&gt;&lt;P&gt;9) SPLIT STRING AT DEL INTO P1 P2 P3 P4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search SAP help for more string processing statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535993#M850776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: string processing statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535994#M850777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check to this link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[String processing][http://help.sap.com/saphelp_470/helpdata/EN/fc/eb3357358411d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535994#M850777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: string processing statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535995#M850778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;shifting strings by a given number of places*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: t1(10) TYPE c VALUE 'abcdefghij',&lt;/P&gt;&lt;P&gt;      string1 LIKE t1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string1 = t1.&lt;/P&gt;&lt;P&gt;WRITE string1.&lt;/P&gt;&lt;P&gt;SHIFT string1.&lt;/P&gt;&lt;P&gt;WRITE / string1.&lt;/P&gt;&lt;P&gt;string1 = t1.&lt;/P&gt;&lt;P&gt;SHIFT string1 BY 3 PLACES LEFT.&lt;/P&gt;&lt;P&gt;WRITE / string1.&lt;/P&gt;&lt;P&gt;string1 = t1.&lt;/P&gt;&lt;P&gt;SHIFT string1 BY 3 PLACES RIGHT.&lt;/P&gt;&lt;P&gt;WRITE / string1.&lt;/P&gt;&lt;P&gt;string1 = t1.&lt;/P&gt;&lt;P&gt;SHIFT string1 BY 3 PLACES CIRCULAR.&lt;/P&gt;&lt;P&gt;WRITE / string1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;shifting up to a given string*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: t2(10) TYPE c VALUE 'abcdefghij',&lt;/P&gt;&lt;P&gt;      string2 LIKE t2,&lt;/P&gt;&lt;P&gt;      str2(2) TYPE c VALUE 'ef'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string2 = t2.&lt;/P&gt;&lt;P&gt;WRITE string2.&lt;/P&gt;&lt;P&gt;SHIFT string2 UP TO str2.&lt;/P&gt;&lt;P&gt;WRITE / string2.&lt;/P&gt;&lt;P&gt;string2 = t2.&lt;/P&gt;&lt;P&gt;SHIFT string2 UP TO str2 LEFT.&lt;/P&gt;&lt;P&gt;WRITE / string2.&lt;/P&gt;&lt;P&gt;string2 = t2.&lt;/P&gt;&lt;P&gt;SHIFT string2  UP TO str2 RIGHT.&lt;/P&gt;&lt;P&gt;WRITE / string2.&lt;/P&gt;&lt;P&gt;string2 = t2.&lt;/P&gt;&lt;P&gt;SHIFT string2  UP TO str2 CIRCULAR.&lt;/P&gt;&lt;P&gt;WRITE / string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;shifting a string depending on the first or last sign*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: t3(14) TYPE c VALUE '    abcdefghij',&lt;/P&gt;&lt;P&gt;      string3 LIKE t3,&lt;/P&gt;&lt;P&gt;      str3(6) TYPE c VALUE 'ghijkl'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string3 = t3.&lt;/P&gt;&lt;P&gt;WRITE string3.&lt;/P&gt;&lt;P&gt;SHIFT string3 LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;WRITE / string3.&lt;/P&gt;&lt;P&gt;string3 = t3.&lt;/P&gt;&lt;P&gt;SHIFT string3 RIGHT DELETING TRAILING str3.&lt;/P&gt;&lt;P&gt;WRITE / string3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;replacing values*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: t4(10) TYPE c VALUE 'abcdefghij',&lt;/P&gt;&lt;P&gt;      string4 LIKE t4,&lt;/P&gt;&lt;P&gt;      str41(4) TYPE c VALUE 'cdef',&lt;/P&gt;&lt;P&gt;      str42(4) TYPE c VALUE 'klmn',&lt;/P&gt;&lt;P&gt;      str43(2) TYPE c VALUE 'kl',&lt;/P&gt;&lt;P&gt;      str44(6) TYPE c VALUE 'klmnop',&lt;/P&gt;&lt;P&gt;      len4 TYPE i VALUE 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string4 = t4.&lt;/P&gt;&lt;P&gt;WRITE string4.&lt;/P&gt;&lt;P&gt;REPLACE str41 WITH str42 INTO string4.&lt;/P&gt;&lt;P&gt;WRITE / string4.&lt;/P&gt;&lt;P&gt;string4 = t4.&lt;/P&gt;&lt;P&gt;REPLACE str41 WITH str42 INTO string4 LENGTH len4.&lt;/P&gt;&lt;P&gt;WRITE / string4.&lt;/P&gt;&lt;P&gt;string4 = t4.&lt;/P&gt;&lt;P&gt;REPLACE str41 WITH str43 INTO string4.&lt;/P&gt;&lt;P&gt;WRITE / string4.&lt;/P&gt;&lt;P&gt;string4 = t4.&lt;/P&gt;&lt;P&gt;REPLACE str41 WITH str44 INTO string4.&lt;/P&gt;&lt;P&gt;WRITE / string4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;searching strings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DATA string7(30) TYPE c VALUE 'This is a little sentence.'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ULINE /1(26).&lt;/P&gt;&lt;P&gt;SEARCH string7 FOR 'X'.&lt;/P&gt;&lt;P&gt;WRITE: / 'X', sy-subrc UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;               sy-fdpos UNDER 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;SEARCH string7 FOR 'itt   '.&lt;/P&gt;&lt;P&gt;WRITE: / 'itt   ', sy-subrc UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;                   sy-fdpos UNDER 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;SEARCH string7 FOR '.e .'.&lt;/P&gt;&lt;P&gt;WRITE: / '.e .', sy-subrc UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;                  sy-fdpos UNDER 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;SEARCH string7 FOR '*e'.&lt;/P&gt;&lt;P&gt;WRITE: / '*e ', sy-subrc UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;                sy-fdpos UNDER 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;SEARCH string7 FOR 's*'.&lt;/P&gt;&lt;P&gt;WRITE: / 's* ', sy-subrc UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;                sy-fdpos UNDER 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: int TYPE i,&lt;/P&gt;&lt;P&gt;      word1(20) TYPE c VALUE '12345',&lt;/P&gt;&lt;P&gt;      word2(20) TYPE c ,&lt;/P&gt;&lt;P&gt;      word3(20) TYPE c VALUE '   4         '.&lt;/P&gt;&lt;P&gt;int = strlen( word1 ). WRITE   int.&lt;/P&gt;&lt;P&gt;int = strlen( word2 ). WRITE / int.&lt;/P&gt;&lt;P&gt;int = strlen( word3 ). WRITE / int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;condensing strings*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: string9(25) TYPE c VALUE ' one  two   three    four',&lt;/P&gt;&lt;P&gt;      len9 TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len9 = strlen( string9 ).&lt;/P&gt;&lt;P&gt;WRITE: string9, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', len9.&lt;/P&gt;&lt;P&gt;CONDENSE string9.&lt;/P&gt;&lt;P&gt;len9 = strlen( string9 ).&lt;/P&gt;&lt;P&gt;WRITE: string9, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', len9.&lt;/P&gt;&lt;P&gt;CONDENSE string9 NO-GAPS.&lt;/P&gt;&lt;P&gt;len9 = strlen( string9 ).&lt;/P&gt;&lt;P&gt;WRITE: string9, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', len9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;concatenating strings*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: c1(10)  TYPE c VALUE  'Sum',&lt;/P&gt;&lt;P&gt;      c2(3)   TYPE c VALUE  'mer',&lt;/P&gt;&lt;P&gt;      c3(5)   TYPE c VALUE  'holi ',&lt;/P&gt;&lt;P&gt;      c4(10)  TYPE c VALUE  'day',&lt;/P&gt;&lt;P&gt;      c5(30)  TYPE c ,&lt;/P&gt;&lt;P&gt;      sep(3)  TYPE c VALUE ' - '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE c1 c2 c3 c4 INTO c5.&lt;/P&gt;&lt;P&gt;WRITE c5.&lt;/P&gt;&lt;P&gt;CONCATENATE c1 c2 c3 c4 INTO c5 SEPARATED BY sep.&lt;/P&gt;&lt;P&gt;WRITE / c5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;splitting strings*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: string10(60) TYPE c ,&lt;/P&gt;&lt;P&gt;      p1(20) TYPE c VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;      p2(20) TYPE c VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;      p3(20) TYPE c VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;      p4(20) TYPE c VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;      del10(3) TYPE c VALUE '***'.&lt;/P&gt;&lt;P&gt;string10 = ' Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5'.&lt;/P&gt;&lt;P&gt;WRITE string10.&lt;/P&gt;&lt;P&gt;SPLIT string10 AT del10 INTO p1 p2 p3 p4.&lt;/P&gt;&lt;P&gt;WRITE / p1.&lt;/P&gt;&lt;P&gt;WRITE / p2.&lt;/P&gt;&lt;P&gt;WRITE / p3.&lt;/P&gt;&lt;P&gt;WRITE / p4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;moving parts of strings*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: mc1(10) TYPE c VALUE 'ABCDEFGHIJ',&lt;/P&gt;&lt;P&gt;      mc2(10) TYPE c .&lt;/P&gt;&lt;P&gt;MOVE mc1 TO mc2 PERCENTAGE 40.&lt;/P&gt;&lt;P&gt;WRITE mc2.&lt;/P&gt;&lt;P&gt;MOVE mc1 TO mc2 PERCENTAGE 40 RIGHT.&lt;/P&gt;&lt;P&gt;WRITE / mc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers wholly!!&lt;/P&gt;&lt;P&gt;Bijal:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-processing-statements/m-p/3535995#M850778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:37:06Z</dc:date>
    </item>
  </channel>
</rss>

