<?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 offset value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-value/m-p/991196#M74240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;Iam new to abap can any one solve the above example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: c type i,&lt;/P&gt;&lt;P&gt;      c1 type i,&lt;/P&gt;&lt;P&gt;      len type i,&lt;/P&gt;&lt;P&gt;      flag type c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;parameters word(20).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;c = 0.&lt;/P&gt;&lt;P&gt;len = strlen( word ).&lt;/P&gt;&lt;P&gt;c1 = len - 1.&lt;/P&gt;&lt;P&gt;len = len / 2.&lt;/P&gt;&lt;P&gt;flag = '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;  if ( word&lt;EM&gt;c(1) &amp;lt;&amp;gt; word&lt;/EM&gt;c1(1) ).&lt;/P&gt;&lt;P&gt;    flag = 'X'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if flag = 'X'.&lt;/P&gt;&lt;P&gt;write: / 'Word', word, 'is not Palindrome'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write: / 'Word', word, 'is Palindrome'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inthe above program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if word = abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than what is the value of &lt;/P&gt;&lt;P&gt;word&lt;EM&gt;c(1) and word&lt;/EM&gt;c1(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and how many times the do statement work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain the above program with the above example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2005 13:10:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-26T13:10:54Z</dc:date>
    <item>
      <title>offset value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-value/m-p/991196#M74240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;Iam new to abap can any one solve the above example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: c type i,&lt;/P&gt;&lt;P&gt;      c1 type i,&lt;/P&gt;&lt;P&gt;      len type i,&lt;/P&gt;&lt;P&gt;      flag type c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;parameters word(20).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;c = 0.&lt;/P&gt;&lt;P&gt;len = strlen( word ).&lt;/P&gt;&lt;P&gt;c1 = len - 1.&lt;/P&gt;&lt;P&gt;len = len / 2.&lt;/P&gt;&lt;P&gt;flag = '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;  if ( word&lt;EM&gt;c(1) &amp;lt;&amp;gt; word&lt;/EM&gt;c1(1) ).&lt;/P&gt;&lt;P&gt;    flag = 'X'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if flag = 'X'.&lt;/P&gt;&lt;P&gt;write: / 'Word', word, 'is not Palindrome'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write: / 'Word', word, 'is Palindrome'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inthe above program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if word = abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than what is the value of &lt;/P&gt;&lt;P&gt;word&lt;EM&gt;c(1) and word&lt;/EM&gt;c1(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and how many times the do statement work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain the above program with the above example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 13:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-value/m-p/991196#M74240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T13:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: offset value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-value/m-p/991197#M74241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should have posted this in ABAP forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyhow to answer your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if word = abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than what is the value of &lt;/P&gt;&lt;P&gt;word&lt;EM&gt;c(1) and word&lt;/EM&gt;c1(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c1 = 4 - 1 .&lt;/P&gt;&lt;P&gt;c = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;word+c(1) =&amp;gt; a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;word+c1(1) =&amp;gt; p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 13:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-value/m-p/991197#M74241</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-26T13:26:39Z</dc:date>
    </item>
  </channel>
</rss>

