<?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 how to trim a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471228#M1059104</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 have a problem where in I have to trim the characters from the second name.e.g.Manish Kumar should be trimmed to Manish K.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2008 08:48:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-12T08:48:02Z</dc:date>
    <item>
      <title>how to trim a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471228#M1059104</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 have a problem where in I have to trim the characters from the second name.e.g.Manish Kumar should be trimmed to Manish K.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471228#M1059104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T08:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471229#M1059105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Offset Concept.Check the field length and use it accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:-syntax WA_EMP-JOBTI+27(56) where u want to access starting from the 27th character to 56th character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471229#M1059105</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-09-12T08:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471230#M1059106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SPLIT name AT space INTO itab.
gv_lines = lines( itab ). "in case there are more first names
READ TABLE itab INTO wa INDEX gv_lines. "this will be the last name
wa = wa(1).
MODIFY itab FROM wa INDEX gv_lines.
CONCATENATE itab INTO name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471230#M1059106</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-12T08:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471231#M1059107</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: off type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c1='Manish kumar'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find ' ' in c match offset off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c2 = c1+0(off + 1).&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;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471231#M1059107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471232#M1059108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manish ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See pseudo code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA name(50) TYPE c VALUE 'manish kumar'.

DATA : BEGIN OF itab OCCURS 0,
       a(50),
       b(50),
       END OF itab.

SPLIT name AT space INTO itab-a
                         itab-b.

CONCATENATE itab-a itab-b+0(1) INTO name separated by space.

write name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471232#M1059108</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2008-09-12T08:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471233#M1059109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI...&lt;/P&gt;&lt;P&gt;Please see this example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  l_str1 TYPE string,&lt;/P&gt;&lt;P&gt;      l_str2  TYPE string,&lt;/P&gt;&lt;P&gt;      l_str3  TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_str1 = 'Subhankar Garani'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT l_str1 at space INTO l_str2 l_str3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: l_str1.&lt;/P&gt;&lt;P&gt;CONCATENATE l_str2 l_str3(1) INTO l_str1 SEPARATED BY space.&lt;/P&gt;&lt;P&gt;WRITE: l_str1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471233#M1059109</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-09-12T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471234#M1059110</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 code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;  SPLIT wa_itab-name AT space INTO name1 name2.&lt;/P&gt;&lt;P&gt;  CONCATENATE name1 name2(1) INTO wa_itab-name separated by space.&lt;/P&gt;&lt;P&gt;  MODIFY itab FROM wa_itab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471234#M1059110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T08:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471235#M1059111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to get the length of string of second name by some coding say it is &lt;STRONG&gt;n&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;now &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shift &amp;lt;name&amp;gt; by n-1 places right&lt;/P&gt;&lt;P&gt;condense &amp;lt;name&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 09:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trim-a-string/m-p/4471235#M1059111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T09:02:17Z</dc:date>
    </item>
  </channel>
</rss>

