<?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: shift string1 by 3 places right. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986186#M73037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  it is right that only ij is gone. Please consider the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially:&lt;/P&gt;&lt;P&gt;string1 = 'abcdefghj'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after shift string1:&lt;/P&gt;&lt;P&gt;string1 = 'bcdefghj ' (with trailing space)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after shift string1 by 3 places right:&lt;/P&gt;&lt;P&gt;string1 = '   bcdefg' (deletes ij and the space character)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2005 16:56:10 GMT</pubDate>
    <dc:creator>manuel_bassani</dc:creator>
    <dc:date>2005-08-03T16:56:10Z</dc:date>
    <item>
      <title>shift string1 by 3 places right.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986184#M73035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;code -&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: string1(10) type c value 'abcdefghij',
      string2 like string1.

write:  / 'Before Manipulations : ',
        / 'string1 = ',string1,
        / 'string2 = ',string2.

string2 = string1.
shift string1.

write : / 'after one shift first letter is gone :-) (leftShift)',
          ' ', string1.

write : / 'after the shift operation there is a permanent change in',
          'the field value of string1'.
shift string1 by 3 places right.

write : / 'after shifting 3 places on the right-', string1,
        / 'DOUBT - only ij has gone, but hij should have gone right ?'.
        


write : / 'string2 also has same as string1 had initially-', string2.

shift string2 by 3 places right.

write : / 'after shifting 3 places on the right-', string2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doubt has been marked in the code itself. This is my first post. Please do explain me concept , in the above code,if i am wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2005 16:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986184#M73035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-03T16:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: shift string1 by 3 places right.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986185#M73036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer you question, no because a space was the third character.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After your initial shift, "A" has been removed, which has added a space to the end of the 10 chanacter field.  Then shifting right 3 places would get rid of the space, then the "J", then the "I".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this answer was helpful, please remember to award points accordingly.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2005 16:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986185#M73036</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-03T16:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: shift string1 by 3 places right.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986186#M73037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  it is right that only ij is gone. Please consider the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially:&lt;/P&gt;&lt;P&gt;string1 = 'abcdefghj'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after shift string1:&lt;/P&gt;&lt;P&gt;string1 = 'bcdefghj ' (with trailing space)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after shift string1 by 3 places right:&lt;/P&gt;&lt;P&gt;string1 = '   bcdefg' (deletes ij and the space character)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2005 16:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986186#M73037</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2005-08-03T16:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: shift string1 by 3 places right.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986187#M73038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works in STRING2 because you never did an initial shift to the left.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you did want this to work in the string... you would have to find out the length of the string and then shift on that offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: stlen type i.

shift string2.

stlen = strlen( string2 ).

shift string2+0(stlen) by 3 places right.&lt;/CODE&gt;&lt;/PRE&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2005 16:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-string1-by-3-places-right/m-p/986187#M73038</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-03T16:56:37Z</dc:date>
    </item>
  </channel>
</rss>

