<?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 Abt String Operation. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402088#M816893</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;I have one string name source.&lt;/P&gt;&lt;P&gt;Which contain 'ABCDEFGHIJ'&lt;/P&gt;&lt;P&gt;Now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put first two character(AB) in one variable.&lt;/P&gt;&lt;P&gt;next three(CDE) in other variable &lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;remaining into other variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this.&lt;/P&gt;&lt;P&gt;What are the function available.&lt;/P&gt;&lt;P&gt;Is SUBSTRING function is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITS URGENT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2008 12:40:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-18T12:40:56Z</dc:date>
    <item>
      <title>Abt String Operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402088#M816893</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;I have one string name source.&lt;/P&gt;&lt;P&gt;Which contain 'ABCDEFGHIJ'&lt;/P&gt;&lt;P&gt;Now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put first two character(AB) in one variable.&lt;/P&gt;&lt;P&gt;next three(CDE) in other variable &lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;remaining into other variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this.&lt;/P&gt;&lt;P&gt;What are the function available.&lt;/P&gt;&lt;P&gt;Is SUBSTRING function is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITS URGENT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 12:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402088#M816893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Abt String Operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402089#M816894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use SPLIT Command.&lt;/P&gt;&lt;P&gt;Below is an example for the same&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of wa,
ch(30) type c,
end of wa.
data: itab like table of wa.
data: text type string value 'abcd | xyz | nhyu | adfsfs | fslfs | fjsflsfl |'.
SPLIT text AT '|' INTO TABLE itab.
loop at itab into wa.
write:/ wa-ch.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 12:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402089#M816894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T12:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Abt String Operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402090#M816895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use the offset operater.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store the value in a variable(VALUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ value+0(2).   "AB&lt;/P&gt;&lt;P&gt;       / value+2(3).    "CDE&lt;/P&gt;&lt;P&gt;       / value+5.        "FGHIJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBSTRING is not available in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 12:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402090#M816895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T12:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Abt String Operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402091#M816896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it a TYPE string or a TYPE fixed length character field.  For a fixed length character string you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF my_type,
         first_bit  TYPE C LENGTH 2,
         second_bit TYPE C LENGTH 3,
         last_bit   TYPE C LENGTH 5,
       END OF my_type.

DATA: l_mytext TYPE my_type.

l_mytext = 'ABCDEFGHIJ'.

WRITE: / l_mytext-first_bit, l_mytext-second_bit, l_mytext-last_bit. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is better programming than the use of arbitary offsets.  See this article on [Magic Numbers|http://en.wikipedia.org/wiki/Magic_number_%28programming%29#Unnamed_numerical_constant] for the reasons why you should avoid the use of offsets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 12:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402091#M816896</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-02-18T12:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Abt String Operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402092#M816897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;u can use offset.&lt;/P&gt;&lt;P&gt;var = ABCDEFGHIJ&lt;/P&gt;&lt;P&gt;var1 = var+0(2).&lt;/P&gt;&lt;P&gt;var2 = var+2(3).&lt;/P&gt;&lt;P&gt;var3 = var+4(5).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 13:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-string-operation/m-p/3402092#M816897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T13:04:37Z</dc:date>
    </item>
  </channel>
</rss>

