<?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: checking last digit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721398#M631347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once correction to the suggest code, I believe you would have to substract one form the length in order to get the right positioning,  yes?  And the lv_length shouldn't be in parenthesis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: lv_length type i.

lv_length = strlen( itab-field ).

lv_length = lv_length  - 1.

if itab-field+lv_length(1) eq '*'.

endif.

&lt;/CODE&gt;&lt;/PRE&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>Thu, 16 Aug 2007 20:02:07 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-08-16T20:02:07Z</dc:date>
    <item>
      <title>checking last digit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721396#M631345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one of my table field is  character  which is of  30 characters in length. But it generally has value 7 or 8 characters. I have to check whether the last character of the value is * or not....how can i do that..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721396#M631345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: checking last digit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721397#M631346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_length type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_length = strlen( itab-field ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-field+(lv_length) eq '*'.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721397#M631346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: checking last digit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721398#M631347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once correction to the suggest code, I believe you would have to substract one form the length in order to get the right positioning,  yes?  And the lv_length shouldn't be in parenthesis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: lv_length type i.

lv_length = strlen( itab-field ).

lv_length = lv_length  - 1.

if itab-field+lv_length(1) eq '*'.

endif.

&lt;/CODE&gt;&lt;/PRE&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>Thu, 16 Aug 2007 20:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721398#M631347</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-16T20:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: checking last digit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721399#M631348</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;data : lv_data(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_data = 'Hello'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;STRING = lv_data.&lt;/P&gt;&lt;P&gt;lang  = 'E'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;RSTRING  = lv_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_data+0(1) eq '*'.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 20:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-last-digit/m-p/2721399#M631348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T20:06:29Z</dc:date>
    </item>
  </channel>
</rss>

